I have the same problem. Even the "niggo" staff that was already added in addition.xml makes everyone lag when you shoot with it...
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
I have the same problem. Even the "niggo" staff that was already added in addition.xml makes everyone lag when you shoot with it...
Did you try adding it to the client and dat1.xml instead of using additions.xml?
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
I'll check it out soon!
just my $1,128,182,510.16
- - - Updated - - -
This is my MpaInfoPacket:
- - - Updated - - -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); } } }
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
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
Desire (03-28-2016)
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
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.