Vice City: Multiplayer

VC:MP Discussion => Support => Bugs and Crashes => Topic started by: Xmair on Jul 25, 2019, 05:38 PM

Title: [Bug] XML cannot load some objects
Post by: Xmair on Jul 25, 2019, 05:38 PM
Description
XML cannot create some specific objects, for example: weapons (http://wiki.vc-mp.org/wiki/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.
Title: Re: [Bug] XML cannot load some objects
Post by: Stormeus on Jul 28, 2019, 09: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.