[Bug] XML cannot load some objects

Started by Xmair, Jul 25, 2019, 05:38 PM

Previous topic - Next topic

Xmair

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:
<?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

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.