Vice City Multiplayer
VC:MP 0.4 (Beta) => Script Discussion => Topic started by: Honey. on September 22, 2014, 06:19:23 pm
-
Hello,
I was trying to create Static Maps by adding a custom road of Vice City in my server.Everything goes well and the road is created but in a wrong direction.I want to change the Road Angle.The default angle was 1 so when i changed it to 2 the road simply disappears.This is my Objects.xml :
<?xml version="1.0" encoding="ASCII"?>
<objectlist>
<object id="0">
<flags value="0" />
<texture path="sanmonbhut1_law2.txd" />
<collision path="sanmonbhut1_law2.col" />
<model path="sanmonbhut1_law2.dff" distance="200" />
</object>
<object id="1">
<flags value="0" />
<texture path="electricgate.txd" />
<collision path="electricgate.col" />
<model path="electricgate.dff" distance="200" />
</object>
<object id="2">
<flags value="0" />
<texture path="road_downtown05.txd" />
<collision path="road_downtown05.col" />
<model path="road_downtown05.dff" distance="300" />
</object>
<object id="3">
<flags value="0" />
<texture path="road_downtown06.txd" />
<collision path="road_downtown06.col" />
<model path="road_downtown06.dff" distance="300" />
</object>
</objectlist>
and this is my custom xml file 'Road.xml' :
<?xml version="1.0" encoding="ASCII" ?>
<itemlist>
<item model="1840" name="road_downtown05">
<position x="-289.85" y="883.05" z="9.5994" />
<rotation format="axisangle" x="0" y="0" z="53.4" angle="1" />
</item>
<item model="1840" name="road_downtown06">
<position x="-388.808" y="844.454" z="11.0747" />
<rotation format="axisangle" x="0" y="0" z="2" angle="1" />
</item>
</itemlist>
I assumed that angle="" is the angle of the object so i changed it to 2 and 3 too but the result was the same.
-
try going in negative number.
Or it can be that the road is present but angle is causing it to go underground.
-
The actual angle are the x,y,z values. You should keep the angle="" to 1.
Where did you get the objects from, and what IPL file are you trying to convert?
-
The objects are not custom, I took them out of GTA VC Directory that is why the IDs are in 1840s in Road.xml.I am trying to convert downtows.ipl
Directory : GTA VC/maps/downtows/downtown.ipl
EDIT :
i just tried changing the X, Y, Z Rotations but the objects are still the same.This is my new Road.xml :
<?xml version="1.0" encoding="ASCII" ?>
<itemlist>
<item model="1840" name="road_downtown05">
<position x="-289.85" y="883.05" z="9.5994" />
<rotation format="axisangle" x="359.1" y="0.6" z="60.1" angle="1" />
</item>
<item model="1840" name="road_downtown06">
<position x="-388.808" y="844.454" z="11.0747" />
<rotation format="axisangle" x="0" y="0" z="2" angle="1" />
</item>
</itemlist>
This is a picture regarding them :
(http://i.imgur.com/S4FNW3q.png) (http://imgur.com/S4FNW3q)
-
Bump?
-
I don't know where you got those rotations, but I suggest you use something like moomapper to make yourself a proper map. Then use my IPL converter (http://thijn.minelord.com/vcmp/iplConvert/) to get yourself an xml.
Also, if you aren't using any custom objects you shouldn't need to use the Objects.xml file. You only need an map xml.
-
I will try your suggestion as for the map i was using another program called MEd because its easier to use than moomapper.