Page 1 of 11 123 ... LastLast
Results 1 to 15 of 157
  1. #1
    WintersQ's Avatar
    Join Date
    Dec 2014
    Gender
    female
    Posts
    24
    Reputation
    10
    Thanks
    50

    Lightbulb [TUTORIAL] 27.7.X2 AS3 Client to FSOD

    For those of you that are unaware, there has been a much better way to work with RotMG clients ever since DECA made the seriously critical mistake of releasing clients that weren't ran through SecureSWF. It made creating a working source code with ActionScript 3 a breeze as well as being much easier to understand due to no obfuscation. The benefits of having such a client is obvious.

    You should never need to use RABCDAsm, JPEXS. or any other decompiler to edit the client from this point forward when you can simply edit the actual source code and compile your own version at will.

    With that said, I'm going to show you right now how to obtain the absolute cleanest RotMG source code ever created and get it connecting to your FSOD server. This tutorial only covers the basic requirements needed to connect to your private server.

    Section A (The Client)

    You'll need IntelliJ, Flex SDK 4.9.1 and a working FSOD server to get started here.

    Step 1:

    Go to ****** and search for "RotMG_Client_27.7.X2". Download it, fork it, you choose. It is highly recommended to use this as the base of all future projects.

    Step 2:

    Open the project up in IntelliJ, navigate to com/company/assembleegameclient/parameters/Parameters.as.

    Search for this:

    Code:
    public static const RSA_PUBLIC_KEY:String
    Replace the ENTIRE line with this RSA key:

    Code:
    public static const RSA_PUBLIC_KEY:String = ((((("-----BEGIN PUBLIC KEY-----\n" + "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCbqweYUxzW0IiCwuBAzx6Htskr") + "hWW+B0iX4LMu2xqRh4gh52HUVu9nNiXso7utTKCv/HNK19v5xoWp3Cne23sicp2o") + "VGgKMFSowBFbtr+fhsq0yHv+JxixkL3WLnXcY3xREz7LOzVMoybUCmJzzhnzIsLP") + "iIPdpI1PxFDcnFbdRQIDAQAB\n") + "-----END PUBLIC KEY-----");
    Step 3:

    Navigate to kabam/rotmg/ messaging/impl/data/ObjectData.as

    Find this:

    Code:
    this.objectType_ = _arg_1.readShort();
    Change to this:

    Code:
    this.objectType_ = _arg_1.readUnsignedShort();
    Step 4:

    Navigate to kabam/rotmg/ messaging/impl/GameServerConnectionConcrete.as

    Find this:

    Code:
    _local_2.buildVersion_ = ((Parameters.BUILD_VERSION + ".") + "0");
    Change to this:

    Code:
    _local_2.buildVersion_ = ((Parameters.BUILD_VERSION + ".") + Parameters.MINOR_VERSION);
    Step 5:

    Navigate to kabam/rotmg/application/impl/ProductionSetup.as

    Find this:

    Code:
     private const SERVER:String =;
    Change the realmofthemadgodhrd URL to your Domain Name/IP address, or localhost.

    Find this:

    Code:
    private const ENCRYPTED:String
    Change the "https" to "http".

    Save All, Rebuild Project

    Section B (The Server)


    Step 1:

    Navigate to wserver/PacketIds.cs and replace the entire thing with this:

    Code:
    namespace wServer
    {
        public enum PacketID : byte
        {
            FAILURE = 0, //slotid: 1
            CREATE_SUCCESS = 58, //slotid: 2
            CREATE = 48, //slotid: 3
            PLAYERSHOOT = 41, //slotid: 4
            MOVE = 24, //slotid: 5
            PLAYERTEXT = 9, //slotid: 6
            TEXT = 34, //slotid: 7
            SHOOT2 = 1, //slotid: 8
            DAMAGE = 52, //slotid: 9
            UPDATE = 44, //slotid: 10
            UPDATEACK = 96, //slotid: 11
            NOTIFICATION = 20, //slotid: 12
            NEW_TICK = 31, //slotid: 13
            INVSWAP = 64, //slotid: 14
            USEITEM = 3, //slotid: 15
            SHOW_EFFECT = 78, //slotid: 16
            HELLO = 86, //slotid: 17
            GOTO = 92, //slotid: 18
            INVDROP = 97, //slotid: 19
            INVRESULT = 18, //slotid: 20
            RECONNECT = 68, //slotid: 21
            PING = 8, //slotid: 22
            PONG = 83, //slotid: 23
            MAPINFO = 28, //slotid: 24
            LOAD = 63, //slotid: 25
            PIC = 88, //slotid: 26
            SETCONDITION = 36, //slotid: 27
            TELEPORT = 5, //slotid: 28
            USEPORTAL = 23, //slotid: 29
            DEATH = 12, //slotid: 30
            BUY = 77, //slotid: 31
            BUYRESULT = 56, //slotid: 32
            AOE = 7, //slotid: 33
            GROUNDDAMAGE = 84, //slotid: 34
            PLAYERHIT = 37, //slotid: 35
            ENEMYHIT = 94, //slotid: 36
            AOEACK = 89, //slotid: 37
            SHOOTACK = 10, //slotid: 38
            OTHERHIT = 6, //slotid: 39
            SQUAREHIT = 59, //slotid: 40
            GOTOACK = 99, //slotid: 41
            EDITACCOUNTLIST = 87, //slotid: 42
            ACCOUNTLIST = 53, //slotid: 43
            QUESTOBJID = 4, //slotid: 44
            CHOOSENAME = 25, //slotid: 45
            NAMERESULT = 62, //slotid: 46
            CREATEGUILD = 11, //slotid: 47
            CREATEGUILDRESULT = 95, //slotid: 48
            GUILDREMOVE = 75, //slotid: 49
            GUILDINVITE = 85, //slotid: 50
            ALLYSHOOT = 49, //slotid: 51
            SHOOT = 90, //slotid: 52
            REQUESTTRADE = 82, //slotid: 53
            TRADEREQUESTED = 51, //slotid: 54
            TRADESTART = 74, //slotid: 55
            CHANGETRADE = 101, //slotid: 56
            TRADECHANGED = 38, //slotid: 57
            ACCEPTTRADE = 26, //slotid: 58
            CANCELTRADE = 22, //slotid: 59
            TRADEDONE = 35, //slotid: 60
            TRADEACCEPTED = 100, //slotid: 61
            CLIENTSTAT = 57, //slotid: 62
            CHECKCREDITS = 27, //slotid: 63
            ESCAPE = 16, //slotid: 64
            FILE = 33, //slotid: 65
            INVITEDTOGUILD = 14, //slotid: 66
            JOINGUILD = 67, //slotid: 67
            CHANGEGUILDRANK = 81, //slotid: 68
            PLAYSOUND = 17, //slotid: 69
            GLOBAL_NOTIFICATION = 40, //slotid: 70
            RESKIN = 46, //slotid: 71
            PETYARDCOMMAND = 79, //slotid: 72
            PETCOMMAND = 47, //slotid: 73
            UPDATEPET = 39, //slotid: 74
            NEWABILITYUNLOCKED = 76, //slotid: 75
            UPGRADEPETYARDRESULT = 21, //slotid: 76
            EVOLVEPET = 69, //slotid: 77
            REMOVEPET = 50, //slotid: 78
            HATCHEGG = 30, //slotid: 79
            ENTER_ARENA = 45, //slotid: 80
            ARENANEXTWAVE = 65, //slotid: 81
            ARENADEATH = 55, //slotid: 82
            LEAVEARENA = 15, //slotid: 83
            VERIFYEMAILDIALOG = 80, //slotid: 84
            RESKIN2 = 13, //slotid: 85
            PASSWORDPROMPT = 61, //slotid: 86
            VIEWQUESTS = 91, //slotid: 87
            TINKERQUEST = 98, //slotid: 88
            QUESTFETCHRESPONSE = 60, //slotid: 89
            QUESTREDEEMRESPONSE = 93, //slotid: 90
            PET_CHANGE_FORM_MSG = 42,
            KEY_INFO_REQUEST = 66,
            KEY_INFO_RESPONSE = 19
        }
    }
    Step 2:

    Navigate to wserver/networking/Client.cs

    Change Server_Version to "27.7.X2"

    Save All, Clean Solution, Build Solution.

    -----------------------------------------------

    At this point your client will connect to your FSOD server but there are some things you need to know.

    1) Functions like the Friends List and Pet Reskins will not work on FSOD for obvious reasons. It's up to you to either code them in or take them out of the client...

    2) You should download the latest en.txt and replace the one in your server/app/Languages directory.

    3) You should update dat0.xml and dat1.xml with any new items from the client XML's.

    4) Remote textures are off by default in the client.

    -----------------------------------------------

    I take no credit for any of this. The guy that made this doesn't post here. All thanks should go to him for providing this high quality client source.

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

    [MPGH]Ahl (09-03-2016),Alde. (04-18-2020),backpack-o (05-12-2017),BurgerLoverMx (10-09-2016),CrazyJani (09-07-2016),dragonkiller93 (08-10-2017),HGAEHaeheadhetdhtertherh (09-04-2016),Hjkiye (02-11-2019),Hopperd (10-22-2016),In The Illuminati (11-19-2016),LollyBumBum (10-02-2016),Lutherion (02-01-2018),ManKindGaming (07-12-2017),Matrix1101 (09-04-2016),MikeRaarupBirk (10-04-2016),MrMilegit (09-05-2016),Nikolai Belinski (12-07-2016),Orbit (09-07-2016),RotmgSyahid (10-08-2016),rtHSE%he5hyeh (02-10-2017),ShadowX13 (08-22-2018),Stone2405 (08-28-2018),WcCrusher (02-14-2017),Wojtasowy1234 (04-10-2017),wycuhmi (11-25-2018),Yasuos (03-26-2018)

  3. #2
    Invader_Zim's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Atlas 2
    Posts
    546
    Reputation
    10
    Thanks
    300
    My Mood
    Tired
    You should give proper credits to the guy who made this tutorial, you didn't even state his name.

    My weapon is a backpack.

  4. #3
    HGAEHaeheadhetdhtertherh's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    281
    Reputation
    10
    Thanks
    199
    this not work on 27.7.X3

  5. #4
    B3CLAWED's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    143
    Reputation
    10
    Thanks
    57
    My Mood
    Busy
    Where can I even find an updated en.txt?
    edit: nvm i found it
    Last edited by B3CLAWED; 09-04-2016 at 11:11 PM.

  6. #5
    Lordofdoom13's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    2
    My Mood
    Amazed
    Do you have any fix for my problem? I did everything you said and can't run my client source, the run buttom is just blank.I tried lots of things nothing did work ._. help me pls.

  7. #6
    MrMilegit's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    46
    Reputation
    10
    Thanks
    10
    My Mood
    Blah
    Can someone send me link to Flex SDK 4.9.1? I'm stuck and can't google it :/
    Making my Pserver!
    15% Custom Items.
    60% Original Dungeons.
    0% Custom Dungeons.
    50% Events.
    10% Original Behaviors.
    10% Custom Behaviors.
    No shitty pets,no shitty alchemist & mystery boxes.
     

  8. #7
    Ahl's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    /modcp
    Posts
    16,599
    Reputation
    3219
    Thanks
    5,383
    My Mood
    Angelic
    Quote Originally Posted by MrMilegit View Post
    Can someone send me link to Flex SDK 4.9.1? I'm stuck and can't google it :/
    https://archive.apache.org/dist/flex/4.9.1/binaries/

    Not sure why it was so hard to find... I googled Flex SDK 4.9.1 and found that link instantly
    News Force Head Editor from 09/14/2018 - 03/02/2020
    Publicist from 11/23/2017 - 06/07/2019
    Global Moderator since 09/24/2017
    Minion+ from 04/16/2017 - 09/24/2017
    Market Place Minion from 04/16/2017 - 09/24/2017
    Minecraft Minion from 02/23/2017 - 09/24/2017
    Realm of the Mad God Minion from 11/06/2016 - 09/24/2017

    Middleman from 09/14/2016 - 09/24/2017
    News Force Editor from 08/23/2016 - 09/14/2018
    News Force (Section of the Week) from 03/21/2016 - 07/17/2017
    News Force (User News) from 10/18/2015 - 09/14/2018

    Donator since 03/16/2015
    Realm of the Mad God Editor from 05/20/2014 - 07/08/2014
    Member since 12/23/2012


    Rep Power: 82

  9. The Following User Says Thank You to Ahl For This Useful Post:

    MrMilegit (09-07-2016)

  10. #8
    WintersQ's Avatar
    Join Date
    Dec 2014
    Gender
    female
    Posts
    24
    Reputation
    10
    Thanks
    50
    Quote Originally Posted by Invader_Zim View Post
    You should give proper credits to the guy who made this tutorial, you didn't even state his name.
    He wishes to remain anonymous.

    Quote Originally Posted by GhostMareee View Post
    this not work on 27.7.X3
    This absolutely works and also it's 27.7.X2, not X3. (X2 works on X3 anyways)

    Quote Originally Posted by Lordofdoom13 View Post
    Do you have any fix for my problem?
    There are no problems here, you did something wrong. This is a very straight forward tutorial.

  11. The Following 3 Users Say Thank You to WintersQ For This Useful Post:

    HGAEHaeheadhetdhtertherh (09-07-2016),LollyBumBum (11-03-2016),MrMilegit (09-14-2016)

  12. #9
    HGAEHaeheadhetdhtertherh's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    281
    Reputation
    10
    Thanks
    199
    ok thanks

    - - - Updated - - -

    Apache Flex? why no Adobe Flex?

  13. #10
    Razor Sharp v2's Avatar
    Join Date
    Feb 2016
    Gender
    male
    Posts
    153
    Reputation
    20
    Thanks
    374
    "Error: (59, 30) [WebMain]: Error code: 1017: The definition of base class Sprite was not found."
    I have this error when I want to create my client

  14. #11
    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 Razor Sharp v2 View Post
    "Error: (59, 30) [WebMain]: Error code: 1017: The definition of base class Sprite was not found."
    I have this error when I want to create my client
    I noticed that it depends what Flex version you use, for some reason 4.9.1 wouldn't work for me, so I tried a few different versions and all works fine suddenly.

     








  15. #12
    Razor Sharp v2's Avatar
    Join Date
    Feb 2016
    Gender
    male
    Posts
    153
    Reputation
    20
    Thanks
    374
    Quote Originally Posted by Riigged View Post
    I noticed that it depends what Flex version you use, for some reason 4.9.1 wouldn't work for me, so I tried a few different versions and all works fine suddenly.
    I tried also with 4.6.0, it worked but the client won't open.

  16. #13
    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 Razor Sharp v2 View Post
    I tried also with 4.6.0, it worked but the client won't open.
    The one I am currently using:
    https://prntscr.com/chmox4

     








  17. #14
    Razor Sharp v2's Avatar
    Join Date
    Feb 2016
    Gender
    male
    Posts
    153
    Reputation
    20
    Thanks
    374
    Quote Originally Posted by Riigged View Post
    The one I am currently using:
    https://prntscr.com/chmox4
    kk I'll try.

    - - - Updated - - -

    now i got this. https://scr.hu/oYe5av

    - - - Updated - - -

    any ideas?

  18. #15
    WintersQ's Avatar
    Join Date
    Dec 2014
    Gender
    female
    Posts
    24
    Reputation
    10
    Thanks
    50
    Since links aren't allowed I'm just going to say this:

    On the ****** page, click on "Issues", then click "Closed", then read the question about "Right Click". You will find the correct SDK there...

  19. The Following 3 Users Say Thank You to WintersQ For This Useful Post:

    KillerViking (09-17-2016),MrMilegit (09-14-2016),Orbit (09-26-2016)

Page 1 of 11 123 ... LastLast

Similar Threads

  1. [TUTORIAL]How to Add Skins to the AS3 Client/Server
    By Snuffleupagus in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 65
    Last Post: 04-06-2016, 11:10 PM
  2. [Tutorial] How to add backpacks to your As3 Client
    By Omniraptor in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 15
    Last Post: 03-11-2015, 11:09 PM
  3. [TUTORIAL]How to Remove Steam, Kongregate and Google Analytics From the AS3 Client
    By Snuffleupagus in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 91
    Last Post: 02-23-2015, 08:17 PM
  4. [TUTORIAL] How to Add a Stats Tab for the AS3 Client
    By Snuffleupagus in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 28
    Last Post: 02-21-2015, 09:04 AM
  5. [Tutorial] How to add more tiers to your AS3 Client
    By Omniraptor in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 9
    Last Post: 02-19-2015, 06:12 AM