Home » MODDING HQ 1.13 » v1.13 Bug Reports » XML Editor Bug Reports
Re: XML Editor Bug Reports[message #195692] Tue, 02 September 2008 11:41 Go to previous messageGo to previous message
Starwalker

 
Messages:768
Registered:October 2005
Location: Hannover, Germany
Khor1255
Why is it now essential for ammo changes? Because of so many different ammo types or something more serious?

As I wrote elsewhere, magazines.xml is in a special order (at minimum caliber and clip-size are important), so you cannot add ammo of a exisitng caliber at the end, you must insert it in the correct place, which will add the need to change the index of each and every ammo item coming after your new entry. But that also means that all the pointers in items.xml (ubClassIndex) of the ammo items coming after your new one are now wrong, they need to be changed as well.

Example for basic 1.13:
You want to implement a .38 Spc (caliber=1) Tracer (ammotype=15) Speedloader (mag capacity=6), then you'll have to put it at index=4 (which is taken by the .38 Spc Ball ammo crate at the moment) in magazines.xml, because that index is in the correct caliber-section and has the same ammo capacity, but the new speedloade has a higher ammotype than index=3 and a lower ammo capacity than the current index=4 ammo item of the .38 Spc caliber.
Which means that you'll need to move that ammo crate to index=5 (and of course, all of the following 396 ammo items need to be moved one index higher as well).
But this is not all, because the item '.38 Spc Ball ammo crate' still points to index=4 in magazines.xml, so you'll need to move 397 pointers in items.xml as well.

Not something you'd like to do manually, do you? Wink


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bugs: 2014 Official 1.13 Release (7435) with 7609 Update
Next Topic: Bugs: Unofficial releases (SCI's), unstable and DEV builds
Goto Forum:
  


Current Time: Wed Feb 19 08:44:36 EET 2020

Total time taken to generate the page: 0.01939 seconds