Results 1 to 6 of 6
  1. #1
    ZeroTowo's Avatar
    Join Date
    Mar 2019
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    2
    My Mood
    Lurking

    [AS3] How to add a new XML file

    What you need:

    - a working as3 client
    - any kind of server

    How to do it:

    Note: In this case I will be using "Custom" as the name for the file but you can have it as whatever you want.(as long as another file by that name already exists.) Just replace the "Custom" with whatever you want to call it.

    1) Go to src > kabam > rotmg > assets


    2) Create a new text file and name it: EmbeddedData_CustomCXML.dat


    3) Copy in the following in the file you just created:
    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    
    <Objects>
    
    
    
    </Objects>
    4) Create an ActionScript file by the same name: EmbeddedData_CustomCXML


    5) Copy in the following into the ActionScript file:
    Code:
    package kabam.rotmg.assets {
    import m*****re.*;
    
    [Embed(source="EmbeddedData_CustomCXML.dat", mimeType="application/octet-stream")]
    public class EmbeddedData_CustomCXML extends ByteArrayAsset {
        public function EmbeddedData_CustomCXML() {
            super();
            return;
        }
    }
    }
    6) Navigate to src > kabam > rotmg > assets > EmbeddedData.as and add the following:
    Code:
    private static const CustomCXML:Class = EmbeddedData_CustomCXML;
    7) in the same file find the following line:
    Code:
    public static const objectFiles:Array =
    Within that function add: new CustomCXML()

    Example:
    Code:
    public static const objectFiles:Array = [new CustomCXML(), new EquipCXML(), ...
    Then its ready to go, just add your XMLs in the .dat file and it should work!


    Making this post so i don't have to answer this question anymore!

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

    philipsen (03-01-2019),RaVeN0h (03-31-2019)

  3. #2
    sebastianfra12's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    361
    Reputation
    21
    Thanks
    75
    My Mood
    Inspired
    It cannot be

  4. #3
    DarknessRealmsPs's Avatar
    Join Date
    Nov 2017
    Gender
    male
    Location
    my house,my city, god world
    Posts
    37
    Reputation
    10
    Thanks
    1
    My Mood
    Busy
    I Got Black Screen

  5. #4
    Zakhersas's Avatar
    Join Date
    Sep 2018
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    there's probably a typo in what you added somewhere

  6. #5
    ZeroTowo's Avatar
    Join Date
    Mar 2019
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    2
    My Mood
    Lurking
    Quote Originally Posted by ZeroTowo View Post
    Note: In this case I will be using "Custom" as the name for the file but you can have it as whatever you want.(as long as another file by that name already exists.) Just replace the "Custom" with whatever you want to call it.
    Here i meant to say that it cannot already exist for you to add it with that specific name. This is also only the client-sided stuff. For the server sided addition (Nr-Core in this case) you have to add the .dat file to the resources folder.

  7. #6
    TopChaosKenta's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Location
    Overseas, Saisong II
    Posts
    64
    Reputation
    10
    Thanks
    6
    My Mood
    Cool
    couldnt get it to work i also got a black screen

Similar Threads

  1. [AS3 FSOD] How to add a new sprite sheet
    By MikeRaarupBirk in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 20
    Last Post: 07-29-2020, 10:07 PM
  2. [FSOD] [AS3] How to add new pet skins, new pet families and new pet rarities!
    By BurgerLoverMx in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 14
    Last Post: 08-30-2017, 08:39 AM
  3. [AS3] How to add a entity, with panel, button(s) and content
    By lkdjnfoskjednfblksjdfn in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 20
    Last Post: 02-27-2016, 08:49 AM
  4. How to add a new class to my private server?
    By Dpalad67 in forum Realm of the Mad God Private Servers Help
    Replies: 1
    Last Post: 09-25-2015, 05:23 PM
  5. [Tutorial] How to add a new Sprite Sheet on As3 Client
    By Omniraptor in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 1
    Last Post: 02-28-2015, 04:12 PM