Jump to content

Map converter?


koragg

Recommended Posts

I've got a lot of maps made a very long time ago, like very long ago.

Old format:

meta.xml

<meta>
	<info type="map" gamemodes="race" name="Simple Way" author="zole" />
	<race src="Simple way.map" />
</meta>

.map

<map mod="race" version="1.0">

  <meta/>

  <options>
    <respawn>timelimit</respawn>
    <respawntime>3</respawntime>
    <duration>600</duration>
  </options>

  <spawnpoint name="spawnpoint">
    <position>2137.080566 1369.419922 10.332253</position>
    <rotation>270</rotation>
    <vehicle>522</vehicle>
  </spawnpoint>

  <spawnpoint name="spawnpoint (1)">
    <position>2136.681641 1370.788208 10.332253</position>
    <rotation>270</rotation>
    <vehicle>522</vehicle>
  </spawnpoint>
...

New format:

meta.xml

<meta>
    <info gamemodes="race" type="map" name="Abberley" author="MSD" version="1.0.2" description="Race"></info>
    <map src="Abberley.map" dimension="0"></map>
    <settings>
        <setting name="#skins" value='[ &quot;cj&quot; ]'></setting>
        <setting name="#maxplayers" value="[ 32 ]"></setting>
        <setting name="#gamespeed" value="[ 1.050000 ]"></setting>
        <setting name="#ghostmode" value='[ &quot;false&quot; ]'></setting>
        <setting name="#time" value="20:0"></setting>
        <setting name="#vehicleweapons" value='[ &quot;false&quot; ]'></setting>
        <setting name="#minplayers" value="[ 0 ]"></setting>
        <setting name="#weather" value="[ 13 ]"></setting>
        <setting name="#gravity" value="[ 0.008000 ]"></setting>
        <setting name="#waveheight" value="[ 0 ]"></setting>
        <setting name="#respawntime" value="[ 5 ]"></setting>
        <setting name="#locked_time" value="[ false ]"></setting>
        <setting name="#duration" value="[ 1800 ]"></setting>
        <setting name="#respawn" value='[ &quot;timelimit&quot; ]'></setting>
    </settings>
</meta>

.map

<map edf:definitions="race,editor_main">
    <object id="object (ggbrig_04_sfw) (1)" doublesided="false" model="9696" interior="0" dimension="0" background="" border="" foreground="" framesFaded="0" framesToFade="0" height="15" posX="6741.1650390625" posY="-1783.2001953125" posZ="97.465599060059" rotX="0" rotY="0" rotZ="0" state="hidden" text="XYZ rotation" width="65" x="0" y="0"></object>
    <object id="object (ggbrig_01_sfw) (1)" doublesided="false" model="9694" interior="0" dimension="0" posX="6740.9462890625" posY="-1892.37890625" posZ="101.89939880371" rotX="0" rotY="0" rotZ="177.99450683594"></object>
    <object id="object (ggbrig_02_sfw) (1)" doublesided="false" model="9685" interior="0" dimension="0" posX="6741.169921875" posY="-1957.484375" posZ="122.78949737549" rotX="0" rotY="0" rotZ="0"></object>
    <object id="object (ggbrig_01_sfw) (2)" doublesided="false" model="9694" interior="0" dimension="0" posX="6740.8896484375" posY="-1892.3837890625" posZ="101.8675994873" rotX="0" rotY="0" rotZ="0"></object>
    <object id="object (ggbrig_01_sfw) (3)" doublesided="false" model="9694" interior="0" dimension="0" background="" border="" foreground="" framesFaded="0" framesToFade="0" height="15" posX="6740.9462890625" posY="-2025.82421875" posZ="101.89939880371" rotX="0" rotY="0" rotZ="179.99450683594" state="hidden" text="MTA dimension" width="85" x="0" y="0"></object>
    <object id="object (ggbrig_01_sfw) (4)" doublesided="false" model="9694" interior="0" dimension="0" posX="6740.8896484375" posY="-2025.8211669922" posZ="101.8675994873" rotX="0" rotY="0" rotZ="0"></object>
    <object id="object (vgsSairportland18) (1)" doublesided="false" model="8355" interior="0" dimension="0" posX="6718.94140625" posY="-2079.9411621094" posZ="64.584602355957" rotX="0" rotY="0" rotZ="338"></object>
    <object id="object (vgsSairportland18) (2)" doublesided="false" model="8355" interior="0" dimension="0" posX="6694.1528320313" posY="-2186.5822753906" posZ="64.581596374512" rotX="0" rotY="0" rotZ="359.99987792969"></object>
    <object id="object (vgsSairportland18) (3)" doublesided="false" model="8355" interior="0" dimension="0" posX="6743.3134765625" posY="-2275.4157714844" posZ="64.556602478027" rotX="0" rotY="0" rotZ="57.994506835938"></object>
    <object id="object (vgsSairportland18) (5)" doublesided="false" model="8355" interior="0" dimension="0" posX="6842.8330078125" posY="-2337.6157226563" posZ="64.531600952148" rotX="0" rotY="0" rotZ="57.991333007813"></object>
...

How can I convert maps from the Old format to the New format?

Some scripts like my distance to next checkpoint and the race_progressbar don't work for maps in the Old format. Also I need to make some Old format maps have ghostmode off but can't unless I somehow convert them to the New format first. I just hope it's possible :|

Link to comment
1 hour ago, myonlake said:

You can use this http://www.convertffs.com/

Choose MTA Race Object and MTA Race Spawnpoint, and then convert to MTA 1.0 Object and MTA 1.0 Vehicle.

Thanks. But once converted it gave me only this line 50 times or so

<vehicle model="522" posX="2137.0805660" posY="1369.4199220" posZ="10.3322530" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="-1,-1" />

Where are spawnpoints and other stuff?

Edited by koragg
Link to comment
2 hours ago, koragg said:

Thanks. But once converted it gave me only this line 50 times or so


<vehicle model="522" posX="2137.0805660" posY="1369.4199220" posZ="10.3322530" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="-1,-1" />

Where are spawnpoints and other stuff?

Give me the map and I'll see what's wrong.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...