Author Topic: Static Maps Angle  (Read 5622 times)

0 Members and 1 Guest are viewing this topic.

Offline Honey.

  • Made Man
  • ***
  • Posts: 111
    • View Profile
Static Maps Angle
« 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 :

Code: [Select]
<?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' :

Code: [Select]
<?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.

Offline Flockshot

  • Street Thug
  • *
  • Posts: 29
    • View Profile
Re: Static Maps Angle
« Reply #1 on: September 22, 2014, 06:32:22 pm »
try  going in negative number.
Or it can be that the road is present but angle is causing it to go underground.

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Static Maps Angle
« Reply #2 on: September 22, 2014, 10:29:23 pm »
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?

Offline Honey.

  • Made Man
  • ***
  • Posts: 111
    • View Profile
Re: Static Maps Angle
« Reply #3 on: September 23, 2014, 02:04:11 pm »
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 :
Code: [Select]

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


« Last Edit: September 23, 2014, 03:00:27 pm by Honey. »

Offline Honey.

  • Made Man
  • ***
  • Posts: 111
    • View Profile
Re: Static Maps Angle
« Reply #4 on: September 24, 2014, 08:04:57 pm »
Bump?

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Static Maps Angle
« Reply #5 on: September 24, 2014, 08:43:42 pm »
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 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.

Offline Honey.

  • Made Man
  • ***
  • Posts: 111
    • View Profile
Re: Static Maps Angle
« Reply #6 on: September 25, 2014, 04:53:45 am »
I will try your suggestion as for the map i was using another program called MEd because its easier to use than moomapper.