Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Desire's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Location
    Insert Name Here
    Posts
    1,039
    Reputation
    58
    Thanks
    1,394
    My Mood
    Amused

    Post Fabiano Custom Item Lag

    So I've been on a roll on adding custom items. All of them work and don't cause lag.

    After about 14 custom items, the rest of the items started to lag everyone in that world but not lag the person using it, in this case, Me.
    They have the latest clients with the textures in them. Items are in Additions.xml with ext="true"
    Rebuilt solution. All textures are working fine. This is confusing

    This is one of the items that make people lag
    Code:
       <Object id="Blade of the Cold Blooded" ext="true">
    	  <Class>Equipment</Class>
    	  <Item/>
    	  <Texture>
    	   	<Instance>draw</Instance>
    	   	<File>lofiObj3</File>
    	  	<Index>0x56c</Index>
    	  </Texture>
    	  <SlotType>24</SlotType>
    	  <Description>A legendary blade from a cold blooded killer which cuts anything sight.</Description>
    	  <RateOfFire>1.5</RateOfFire>
    	  <Sound>weapon/long_sword</Sound>
    	  <Projectile>
        <ObjectId>Blue Bolt Shot</ObjectId>
    	<Speed>171.5</Speed>
    	<MinDamage>130</MinDamage>
    	<MaxDamage>150</MaxDamage>
    	<LifetimeMS>350</LifetimeMS>
    	<Size>100</Size>
    	<MultiHit/>
    </Projectile>
    	  <NumProjectiles>3</NumProjectiles>
    	  <ArcGap>4</ArcGap>
    	  <BagType>6</BagType>
    	  <FameBonus>6</FameBonus>
    	  <feedPower>2000</feedPower>
    	  <Soulbound/>
    	  <DisplayId>Blade of the Cold Blooded</DisplayId>
       </Object>
    im not really back nor will i ever get back into developing pservers
    though ill check once every month atleast


     

  2. #2
    epicdemic's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    0
    My Mood
    Angelic
    I have the same problem. Even the "niggo" staff that was already added in addition.xml makes everyone lag when you shoot with it...

  3. #3
    Matrix1101's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    169
    Reputation
    10
    Thanks
    172
    Did you try adding it to the client and dat1.xml instead of using additions.xml?

  4. #4
    Desire's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Location
    Insert Name Here
    Posts
    1,039
    Reputation
    58
    Thanks
    1,394
    My Mood
    Amused
    Quote Originally Posted by Matrix1101 View Post
    Did you try adding it to the client and dat1.xml instead of using additions.xml?
    It works with dat01 too? Suprising. Im guessing I need to keep the ext="true" on it if it goes in dat01?
    im not really back nor will i ever get back into developing pservers
    though ill check once every month atleast


     

  5. #5
    JadeRue's Avatar
    Join Date
    Mar 2016
    Gender
    female
    Posts
    26
    Reputation
    43
    Thanks
    21
    My Mood
    Asleep
    Quote Originally Posted by DerpRealmz View Post
    After about 14 custom items, the rest of the items started to lag everyone in that world but not lag the person using it, in this case, Me.
    They have the latest clients with the textures in them. Items are in Additions.xml with ext="true"
    i haven't tried this source yet but have you checked the supporting network structure that allows networked xml's?

    maybe you've reached a cap on the amount of data you can send as extra xmls?

    it doesn't seem like there's anything wrong with the specific xml that you showed.

    just my two cents. :P

  6. #6
    Matrix1101's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    169
    Reputation
    10
    Thanks
    172
    Quote Originally Posted by DerpRealmz View Post
    It works with dat01 too? Suprising. Im guessing I need to keep the ext="true" on it if it goes in dat01?
    ext="true" doesn't work in dat1, no.

    You have to take away the "ext=true" and import the xml into the client with FFDEC.

    It's pretty simple once you know how to do it. If you think this might fix the lag problem I could write a short explanation on how.

  7. #7
    Desire's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Location
    Insert Name Here
    Posts
    1,039
    Reputation
    58
    Thanks
    1,394
    My Mood
    Amused
    Quote Originally Posted by JadeRue View Post
    network structure that allows networked xml's?
    Where would this be
    Just my 3 cent
    im not really back nor will i ever get back into developing pservers
    though ill check once every month atleast


     

  8. #8
    JadeRue's Avatar
    Join Date
    Mar 2016
    Gender
    female
    Posts
    26
    Reputation
    43
    Thanks
    21
    My Mood
    Asleep
    Quote Originally Posted by DerpRealmz View Post
    Where would this be
    Just my 3 cent
    i haven't dl'ed this source yet, remember? :P

    but if its like most servers, you should check something called MapInfoPacket

    just my 4 cents (i hope this doesn't get too expensive!)

  9. #9
    Desire's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Location
    Insert Name Here
    Posts
    1,039
    Reputation
    58
    Thanks
    1,394
    My Mood
    Amused
    Quote Originally Posted by JadeRue View Post
    Originally Posted by DerpRealmz
    Where would this be
    Just my 3 cent
    i haven't dl'ed this source yet, remember? :P

    but if its like most servers, you should check something called MapInfoPacket

    just my 4 cents (i hope this doesn't get too expensive!)
    I'll check it out soon!

    just my $1,128,182,510.16

    - - - Updated - - -

    Quote Originally Posted by JadeRue View Post
    you should check something called MapInfoPacket
    This is my MpaInfoPacket:
    Code:
    namespace wServer.networking.svrPackets
    {
        public class MapInfoPacket : ServerPacket
        {
            public int Width { get; set; }
            public int Height { get; set; }
            public string Name { get; set; }
            public string ClientWorldName { get; set; }
            public int Difficulty { get; set; }
            public uint Seed { get; set; }
            public int Background { get; set; }
            public bool AllowTeleport { get; set; }
            public bool ShowDisplays { get; set; }
            public string[] ClientXML { get; set; }
            public string[] ExtraXML { get; set; }
    
            public override PacketID ID
            {
                get { return PacketID.MAPINFO; }
            }
    
            public override Packet CreateInstance()
            {
                return new MapInfoPacket();
            }
    
            protected override void Read(Client psr, NReader rdr)
            {
                Width = rdr.ReadInt32();
                Height = rdr.ReadInt32();
                Name = rdr.ReadUTF();
                ClientWorldName = rdr.ReadUTF();
                Seed = rdr.ReadUInt32();
                Background = rdr.ReadInt32();
                Difficulty = rdr.ReadInt32();
                AllowTeleport = rdr.ReadBoolean();
                ShowDisplays = rdr.ReadBoolean();
    
                ClientXML = new string[rdr.ReadInt16()];
                for (int i = 0; i < ClientXML.Length; i++)
                    ClientXML[i] = rdr.ReadUTF();
    
                ExtraXML = new string[rdr.ReadInt16()];
                for (int i = 0; i < ExtraXML.Length; i++)
                    ExtraXML[i] = rdr.ReadUTF();
            }
    
            protected override void Write(Client psr, NWriter wtr)
            {
                wtr.Write(Width);
                wtr.Write(Height);
                wtr.WriteUTF(Name);
                wtr.WriteUTF(ClientWorldName);
                wtr.Write(Seed);
                wtr.Write(Background);
                wtr.Write(Difficulty);
                wtr.Write(AllowTeleport);
                wtr.Write(ShowDisplays);
    
                wtr.Write((ushort) ClientXML.Length);
                foreach (string i in ClientXML)
                    wtr.Write32UTF(i);
    
                wtr.Write((ushort) ExtraXML.Length);
                foreach (string i in ExtraXML)
                    wtr.Write32UTF(i);
            }
        }
    }
    - - - Updated - - -

    Quote Originally Posted by Matrix1101 View Post
    I could write a short explanation on how.
    You're free to do that
    im not really back nor will i ever get back into developing pservers
    though ill check once every month atleast


     

  10. #10
    Matrix1101's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    169
    Reputation
    10
    Thanks
    172
    1. Get notepad++ (If you don't already have it)
    2. Get ffdec flash decompiler
    3. open your client with ffdec open the folder called "binary data"
    4. export the very first file in the list (1.bin)
    5. edit 1.bin with notepad++ (It should look like and xml file would)
    6. paste your item xml in without ext=true
    7. save in notepad++ and close
    8. In ffdec, replace the file with the one you just saved
    9. save in ffdec and close
    10. paste the xml without ext=true in dat1.xml
    11. rebuild and save
    12. done

  11. The Following User Says Thank You to Matrix1101 For This Useful Post:

    Desire (03-28-2016)

  12. #11
    Desire's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Location
    Insert Name Here
    Posts
    1,039
    Reputation
    58
    Thanks
    1,394
    My Mood
    Amused
    Quote Originally Posted by Matrix1101 View Post
    1. Get notepad++ (If you don't already have it)
    2. Get ffdec flash decompiler
    3. open your client with ffdec open the folder called "binary data"
    4. export the very first file in the list (1.bin)
    5. edit 1.bin with notepad++ (It should look like and xml file would)
    6. paste your item xml in without ext=true
    7. save in notepad++ and close
    8. In ffdec, replace the file with the one you just saved
    9. save in ffdec and close
    10. paste the xml without ext=true in dat1.xml
    11. rebuild and save
    12. done
    Love you, I just recently found out, other people cant see my projectiles? Why is this
    im not really back nor will i ever get back into developing pservers
    though ill check once every month atleast


     

  13. #12
    Desire's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Location
    Insert Name Here
    Posts
    1,039
    Reputation
    58
    Thanks
    1,394
    My Mood
    Amused
    I put custom objects and got rid of static for a behavior to work, i can walk through them?
    im not really back nor will i ever get back into developing pservers
    though ill check once every month atleast


     

  14. #13
    Matrix1101's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    169
    Reputation
    10
    Thanks
    172
    Quote Originally Posted by DerpRealmz View Post
    Love you, I just recently found out, other people cant see my projectiles? Why is this
    Well if you imported the xml into the client correctly (and since your item is showing up, you did), then projectiles should be showing.

    Did you send the new client to the people who have the old one?

    Generally adding items into the client and dat1.xml is all you should really need to do to add items.

  15. #14
    Desire's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Location
    Insert Name Here
    Posts
    1,039
    Reputation
    58
    Thanks
    1,394
    My Mood
    Amused
    Quote Originally Posted by Matrix1101 View Post
    dat1.xml
    So keeping them in Additions.xml is a no good?
    im not really back nor will i ever get back into developing pservers
    though ill check once every month atleast


     

  16. #15
    Matrix1101's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    169
    Reputation
    10
    Thanks
    172
    Quote Originally Posted by DerpRealmz View Post
    So keeping them in Additions.xml is a no good?
    For the most part yes.

Page 1 of 2 12 LastLast

Similar Threads

  1. Fabiano Custom Item Textures
    By loxeo in forum Realm of the Mad God Private Servers Help
    Replies: 7
    Last Post: 01-13-2018, 07:57 AM
  2. [Solved] FSOD Custom item lag
    By MoonMan1 in forum Realm of the Mad God Private Servers Help
    Replies: 8
    Last Post: 11-01-2016, 07:12 PM
  3. [Help Request] [Fabiano] Custom items lag the server
    By SuperRyGuy in forum Realm of the Mad God Private Servers Help
    Replies: 5
    Last Post: 10-22-2016, 10:30 AM
  4. Custom items lag fabiano source
    By ko_rotmg in forum Realm of the Mad God Private Servers Help
    Replies: 1
    Last Post: 07-28-2016, 10:18 PM
  5. [Solved] Fabiano custom items
    By epicdemic in forum Realm of the Mad God Private Servers Help
    Replies: 7
    Last Post: 03-03-2016, 07:19 AM