This topic was marked solved by Stormeus, on August 6th, 2019, 09:31 AM
[Bug] XML cannot load some objects

Xmair

  • Wiki Contributor
  • Posts: 960
[Bug] XML cannot load some objects
« on July 25th, 2019, 06:38 PM »
Description
XML cannot create some specific objects, for example: weapons
This does work on CreateObject.

Reproducible
Always

What you were doing when the bug happened
Adding a map to my server's store folder.

What you think caused the bug
No idea.

Steps to reproduce
1. Create an XML file with this data:
Code: [Select]
<?xml version="1.0" encoding="ASCII" ?>
<itemlist>
<item model="269" name="chainsaw">
<position x="0" y="0" z="2" />
<rotation format="axisangle" x="0" y="0" z="0" angle="1" />
</item>
</itemlist>
2. Join the game.
3. You now have yourself a "[MAPS] Model index 269 is invalid." error.

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

Stormeus

  • VC:MP Developer
  • oh god how did i get here im not good w computer
  • Posts: 1,128
[Bug] Re: XML cannot load some objects
« Reply #1, on July 28th, 2019, 10:09 AM »
I'll give it a look, but no promises. The map loading system was mostly designed for "simple" objects, while weapons have some association with animations that could cause issues.