Thread: How to make a Project Insanity WebClient

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 How to make a Project Insanity WebClient 
    Registered Member
    Join Date
    Mar 2011
    Posts
    37
    Thanks given
    0
    Thanks received
    5
    Rep Power
    2
    WHAT YOU WILL NEED
    [*] A Project Insanity Client
    [*] Dropbox (Dropbox - Simplify your life)
    [*] Winrar
    [*] JarMaker (JarMaker.rar)

    VIDEOS
    [*]


    STEP 1:
    Putting your cache together. First off drag your 'Sprites' folder into your 'Cache' folder. Once you have done that go into your 'Cache folder and select all the files by pressing 'Ctrl+A' then right click one of the items inside the 'Cache' folder while the items inside it are still selected and press the 'Add to archive' option. Then rename it to 'Cache.zip' instead of 'Cache.rar'

    STEP 2:
    Making the cache auto download. You will need to download THIS file and add it into your Client folder. Then open up 'Client.java' and search for
    Code:
    Starting up
    and under that add this
    Code:
    new CacheDownloader(this).downloadCache();
    STEP 3:
    Changing the directories. Go into the 'Sign' folder and open up 'Signlink.java' and search for
    Code:
    public static String findcachedir() {
            return "./Cache/";
        }
    then delete that method and put this one there
    Code:
    public static String findcachedir()
    	{
    		boolean exists = (new File(System.getProperty("user.home") + "/Cachenamehere/")).exists();
    		if (exists) {
    			System.out.println("Directory exists");
    			return System.getProperty("user.home") + "/Cachenamehere/";
    		} else {
    			File f = new File(System.getProperty("user.home") + "/Cachenamehere/");
    			f.mkdir();
    			System.out.println("Directory doesnt exist, making directory");
    			return System.getProperty("user.home") + "/Cachenamehere/";
    		}
    	}
    Now open up 'Class36.java' and search for
    Code:
    abyte0 = FileOperations.ReadFile("./Cache/data/" + file + ".dat");
    and change that to
    Code:
    abyte0 = FileOperations.ReadFile(sign.signlink.findcachedir() + "data/" + file + ".dat");
    Now open up 'ModelDecompressor.java' and search for
    Code:
    DataInputStream indexFile = new DataInputStream(new FileInputStream("./Cache/models.idx"));
          DataInputStream dataFile = new DataInputStream(new FileInputStream("./Cache/models.dat"));
    and change that to
    Code:
    DataInputStream indexFile = new DataInputStream(new FileInputStream(sign.signlink.findcachedir() + "models.idx"));
          DataInputStream dataFile = new DataInputStream(new FileInputStream(sign.signlink.findcachedir() + "models.dat"));
    Now open up 'Sprite.java' and search for
    Code:
    public String location = "./Sprites/";
    and change that to
    Code:
    public String location = sign.signlink.findcachedir() + "Sprites/";
    Now it is time to download Dropbox so we can host your cache properly! So go to the link I provided right up the top and download dropbox and then install it! You will now have a new folder in 'My Documents' called 'Dropbox' and inside there you will have 'Photos' and 'Public' Now remember when we made that Cache.zip file. Copy and paste it into your 'Public' folder. Then right click it and there will be a dropbox option, then click 'Copy public link' Then go back to your client and open up 'CacheDownloader.java and search for
    Code:
    YOUR CACHE URL HERE
    Now delete that and press 'Ctrl+V' or paste and your cache URL will appear there! Then save and exit 'CacheDownloader.java'

    Now you will have to Jar and Sign your client, watch the video I posted at the top of this thread to see on how to do this! You will also need 'JarMaker' for this which you can download also at the top of this thread as I provided a download link for it!

    The HTML code for you website
    Code:
    <HTML>
    <HEAD>
    <TITLE>YOUR SERVERS NAME HERE</TITLE>
    <body bgcolor="black">
    <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
    </HEAD>
    
    <BODY>
    <center>
    <applet name="YOURSERVERSNAMEHERE'S WebClient" width="765" height="503" archive="Client.jar" code="Client.class">
    <param name="java_arguments" value="-Xmx1024m">
    </applet>
    <p>
    </BODY>
    </HTML>
    CREDITS
    Justinnn - For all of the code
    Me - Making this tutorial and changing some of the code - Making the HTML code for your website - Making the video on how to Jar and Sign your Client
     

  2. Thankful user:


  3. #2  
    I'm Baack...


    Join Date
    Mar 2011
    Posts
    1,663
    Thanks given
    281
    Thanks received
    202
    Rep Power
    324
    Hey bud. Thanks for this, I'll probably use it, looks good =)
     

  4. #3  
    Registered Member
    Join Date
    Mar 2011
    Posts
    37
    Thanks given
    0
    Thanks received
    5
    Rep Power
    2
    Thank you, it is spoonfed, clean written, the code is clean and neat. It is real easy to use and yea, thanks
     

  5. #4  
    Registered Member Russ's Avatar
    Join Date
    Jan 2011
    Age
    32
    Posts
    403
    Thanks given
    27
    Thanks received
    17
    Rep Power
    0
    You should add fancy webclient pages etc :L lol.
    for those who dont know HTML.

     

  6. #5  
    | The Original |
    Matt's Avatar
    Join Date
    Jul 2009
    Age
    30
    Posts
    534
    Thanks given
    129
    Thanks received
    87
    Rep Power
    33
    Bookmarked this for when I need to make a webclient for my server.
     

  7. #6  
    IGFXS!
    Join Date
    Apr 2011
    Posts
    403
    Thanks given
    82
    Thanks received
    34
    Rep Power
    22
    Ok stupid question: I tested the .jar in my Webclient folder and it works, but how do I add it to my website exactly.. Do I just add that HTML code.. I'm pretty sure I would have to upload the .jar somewhere and like link it.. right? o.o
    I specialize in logos, send me a PM if you would like to give your company a more professional feel.
     

  8. #7  
    Registered Member
    Join Date
    Mar 2011
    Posts
    37
    Thanks given
    0
    Thanks received
    5
    Rep Power
    2
    Upload it to your webhost and then make a new page and add the HTML code and it should work
     

  9. Thankful users:


  10. #8  
    Registered Member


    Join Date
    Sep 2010
    Posts
    1,213
    Thanks given
    87
    Thanks received
    159
    Rep Power
    726
    Thanks For this awesome tutorial Bro!

    -Best Regards,
    ~Santiago.
    "“La vida es un suspiro, basta verla diferente para que ya sea mejor”
    -Canserbero


    圣地亚哥

    "You can't buy class, class comes by itself"
    -Zlatan Ibrahimović
     

  11. #9  
    Registered Member
    Join Date
    Mar 2011
    Posts
    37
    Thanks given
    0
    Thanks received
    5
    Rep Power
    2
    No problems mate
     

  12. #10  
    Donator

    Justinnn's Avatar
    Join Date
    Oct 2008
    Age
    28
    Posts
    475
    Thanks given
    182
    Thanks received
    96
    Rep Power
    97
    Lol..? I smell leech
    ​Maybe I have no clue what I'm on about
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 318
    Last Post: 01-10-2016, 11:08 PM
  2. Project Insanity Webclient
    By Infexis in forum Downloads
    Replies: 27
    Last Post: 12-09-2011, 01:00 PM
  3. project insanity webclient
    By Wizard ebodA in forum Help
    Replies: 4
    Last Post: 04-11-2011, 11:12 AM
  4. [Project Insanity] Webclient.
    By Dan` in forum Requests
    Replies: 2
    Last Post: 09-14-2010, 08:03 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •