Page 1 of 4 123 ... LastLast
Results 1 to 15 of 51
  1. #1
    CrazyJani's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    2,475
    Reputation
    170
    Thanks
    15,666

    CrazyClient: Full source and setup tutorial

    I originally wanted to release the source after my vacation was over but because of Riigged's release I am giving out the full source to my client now. You can find it in my ****** SometimesRain/crazyclient. All contributions are welcome.

    Setup tutorial

    Download and install FlashDevelop. It will ask which SDKs you would like to install at some point of the installation or when first time opening the program. You'll only need Flex SDK.

    When the program is open choose "Open an existing project" on the project window. Choose WebMain.as3proj. Now you need to choose Project menu option on the top row and make sure the platform is Flash Player 11.2.

    If you want to debug the project get a debug projector and go to Tools -> Program Settings -> Plugins -> FlashViewer and set the external player path to the debug projector. Now when you want to debug you select "Debug" on the dropdown menu and press the green run button. When you want a release build, it's better to press the cog and run the client from your bin folder. This way the slower debug projector will only be used for debugging.

    When debugging the projector will attach to the IDE. If the projector crashes, the IDE will show you the function that failed. You can view all variable values by hovering your mouse over them. I'm hoping someone finds a fix to that never loading to nexus bug.

    Important classes

    HUDView.as - HUD elements
    Player.as - Player code
    Projectile.as - Projectiles and status effects
    Parameters.as - Default hotkeys (They need to be set)
    MapUserInput.as - Custom hotkeys
    Options.as - Custom options
    GameServerConnectionConcrete.as - Packet related stuff
    TextHandler.as - Chat triggered functionality
    ParseChatMessageCommand.as - Custom commands

    ActionScript oddities

    var obj:Object = param1 || new Object();
    Sets obj to param1 if param1 != null else creates a new Object.

    boolean && doSomething();
    Calls the function if boolean is true. Decompiler language.

    Use vectors instead of arrays
    var vect:Vector.<int> = new <int>[1,2,3];

    Clearing a vector
    vect.length = 0;
    I am not joking. This is the best way to clear a vector. Applies to arrays as well.

    No block scope
    Code:
    if (bool) {
        var str:String = "Enabled";
    }
    trace(str); //prints the value, undefined if bool = false
    A good practice is to define variables in the beginning of a function and reuse them when possible

    Integers are booleans (0 = false, other values = true)
    Code:
    var i:int = 0;
    if (i) {
        trace("not called");
    }
    No function overloading (this causes compiler error)
    Code:
    private function add(a:Number, b:Number):Number {
        return a+b;
    }
    
    private function add(a:String, b:String):int {
        return parseInt(a)+parseInt(b);
    }
    Dictionaries are a total nightmare, try to avoid them. Looping through them causes trouble and they don't even have a length/size field.

    IDE tips

    If you need an import, start declaring a variable. If you want to import com.company.assembleegameclient.objects.Player you could write the following:
    var p:Play
    Now you're given a list of options to import. Select the correct one and remove the line you just wrote if it's unnecessary.

    If you ever need to find a specific piece of code it's better to use a grepping software such as AstroGrep to go through the source.
    Last edited by CrazyJani; 03-28-2017 at 01:02 PM.

  2. The Following 26 Users Say Thank You to CrazyJani For This Useful Post:

    Alde. (03-28-2017),Anime (10-07-2017),Azuki (03-28-2017),bluuman (03-28-2017),citydrifter (02-03-2019),DavisXola (08-10-2018),FlutterM4rk (03-28-2017),Froz3n (03-29-2017),fuckT (03-28-2017),girtana1 (09-06-2017),Granttttttt (03-19-2018),iliketrainz (03-28-2017),kian1991 (06-11-2017),kiwi5 (12-02-2017),lolization (03-28-2017),ninjalone (07-05-2017),PapaJoe (12-04-2017),popilol99 (09-06-2017),Quaesitum (04-08-2017),Riigged (03-28-2017),RotmgSyahid (08-23-2017),Sean (11-27-2017),TheLostNomad (03-28-2017),Urantij (07-26-2017),wezoweez (12-02-2017),~V~ (03-28-2017)

  3. #2
    Riigged's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    no
    Posts
    3,846
    Reputation
    401
    Thanks
    10,254
    My Mood
    Devilish
    sorry about that lol but thanks, been wanting to play around with the client and add some of my own modifications to it;p
    since mine is somewhat bugged and this is official, mine shall be deleted @059 @Ahlwong https://www.mpgh.net/forum/showthread.php?t=1241634

    - - - Updated - - -


    a wonderful release thanks

     








  4. #3
    The richest man is not the one who has the most but the one who needs the least.
    MPGH Member
    Alde.'s Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    1,706
    Reputation
    166
    Thanks
    3,627
    My Mood
    Sleepy
    This deserves all the thanks in the world. I respect you, good job!
    Alde is Alde is

  5. #4
    lolization's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    87
    Reputation
    10
    Thanks
    18
    My Mood
    Amazed
    CrazyJani, You have no idea how much you help to the hacking community. The stuff you do are just amazing. The stuff you do are actually the biggest RotMG hacks there are.
    I have a question. If I want to decompile a flash file, how do I do that? In JPEXS I only know how to edit it and save it, not how to "extract" all the files into a folder.

  6. #5
    Riigged's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    no
    Posts
    3,846
    Reputation
    401
    Thanks
    10,254
    My Mood
    Devilish
    Quote Originally Posted by lolization View Post
    CrazyJani, You have no idea how much you help to the hacking community. The stuff you do are just amazing. The stuff you do are actually the biggest RotMG hacks there are.
    I have a question. If I want to decompile a flash file, how do I do that? In JPEXS I only know how to edit it and save it, not how to "extract" all the files into a folder.
    if youre looking to decompile his client, no need to, he just released the source in this thread
    if youre looking to decompile any other client, then yeah, use jpexs and right click scripts folder and export it, or even better use AS3 sorcerer (find a crack) and export it with that because jpexs messes with the code and causes 10x more errors than as3 sorcerer would

    - - - Updated - - -

    Mind listing a full list of all currently known bugs? @CrazyJani

     








  7. The Following User Says Thank You to Riigged For This Useful Post:

    lolization (03-28-2017)

  8. #6
    lolization's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    87
    Reputation
    10
    Thanks
    18
    My Mood
    Amazed
    I opened up the project, tried to run it without any change (pressed the "test project" button that is the Blue arrow) and it says "[Fault] exception, information=TypeError: Error #2007: Parameter type must be non-null." Have I done something wrong?

  9. #7
    CrazyJani's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    2,475
    Reputation
    170
    Thanks
    15,666
    Quote Originally Posted by lolization View Post
    I opened up the project, tried to run it without any change (pressed the "test project" button that is the Blue arrow) and it says "[Fault] exception, information=TypeError: Error #2007: Parameter type must be non-null." Have I done something wrong?
    Select "Release" on the dropdown menu and press the cog to build. Run the client from your bin folder.

  10. The Following 2 Users Say Thank You to CrazyJani For This Useful Post:

    Froz3n (03-29-2017),lolization (03-28-2017)

  11. #8
    SlickEashy's Avatar
    Join Date
    Jul 2014
    Gender
    male
    Location
    Under the Ocean
    Posts
    213
    Reputation
    21
    Thanks
    521
    My Mood
    Relaxed
    Oh shit, I have a tutorial for cracking Flash Develop. It may come in handy now :O

  12. #9
    CrazyJani's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    2,475
    Reputation
    170
    Thanks
    15,666
    Quote Originally Posted by SlickEashy View Post
    Oh shit, I have a tutorial for cracking Flash Develop. It may come in handy now :O
    FlashDevelop is free.

  13. #10
    SlickEashy's Avatar
    Join Date
    Jul 2014
    Gender
    male
    Location
    Under the Ocean
    Posts
    213
    Reputation
    21
    Thanks
    521
    My Mood
    Relaxed
    Quote Originally Posted by CrazyJani View Post
    FlashDevelop is free.
    Premium isn't

    - - - Updated - - -

    OMFG IM RETARDED I WAS THINKING OF FLASH BUILDER

    WHICH ISNT FREE

  14. #11
    Cybermariow's Avatar
    Join Date
    Jun 2015
    Gender
    male
    Posts
    111
    Reputation
    10
    Thanks
    309
    My Mood
    Angelic
    trying to do an anti pet stasis hack, can someone help me ?

  15. #12
    CrazyJani's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    2,475
    Reputation
    170
    Thanks
    15,666
    Quote Originally Posted by Cybermariow View Post
    trying to do an anti pet stasis hack, can someone help me ?
    This is already implemented.

  16. #13
    Riigged's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    no
    Posts
    3,846
    Reputation
    401
    Thanks
    10,254
    My Mood
    Devilish
    well i "fixed" character deletion if its even considered fixing, was just a bunch of code commented out n whatnot

    works how its supposed to, checked same acc logged into appspot and character was shown deleted on their as well so ya lol
    button just pretty much should be repositioned if anything















    update currently doing
    Last edited by Riigged; 03-28-2017 at 09:39 PM.

     








  17. #14
    CrazyJani's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    2,475
    Reputation
    170
    Thanks
    15,666
    Quote Originally Posted by Riigged View Post
    well i "fixed" character deletion if its even considered fixing, was just a bunch of code commented out n whatnot
    Hmm? Now how do you imagine that'd look if I had a character with a long name.

     

    Not very good.


    Quote Originally Posted by Riigged View Post
    update currently doing
    I've seen that on private servers and I don't think that's a very good idea. It'll be a pain to manage and not very helpful. Not to claim that all my additions are terribly helpful either...

  18. #15
    Tohka!'s Avatar
    Join Date
    Feb 2015
    Gender
    female
    Location
    Maple Ridge, BC
    Posts
    61
    Reputation
    10
    Thanks
    2
    My Mood
    Amazed
    Quote Originally Posted by Riigged View Post
    well i "fixed" character deletion if its even considered fixing, was just a bunch of code commented out n whatnot

    works how its supposed to, checked same acc logged into appspot and character was shown deleted on their as well so ya lol
    button just pretty much should be repositioned if anything















    update currently doing
    i want that

Page 1 of 4 123 ... LastLast

Similar Threads

  1. Replies: 32
    Last Post: 08-06-2016, 09:24 PM
  2. where can i download doomed source and pls someone teach me how to setup it
    By gui159 in forum Realm of the Mad God Private Servers Help
    Replies: 2
    Last Post: 05-27-2016, 03:02 PM
  3. Visual Basic 6 - Download and Install Tutorial
    By gbitz in forum WarRock - International Hacks
    Replies: 8
    Last Post: 03-05-2008, 06:05 PM
  4. 94 combat, full rune and 4,1 mil in cash!
    By wojteek in forum Trade Accounts/Keys/Items
    Replies: 4
    Last Post: 02-11-2008, 03:06 PM
  5. [Trade] How to make OPK and Invi Tutorial
    By Massaka in forum WarRock - International Hacks
    Replies: 6
    Last Post: 11-21-2007, 05:32 AM