koragg Posted January 8, 2017 Share Posted January 8, 2017 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='[ "cj" ]'></setting> <setting name="#maxplayers" value="[ 32 ]"></setting> <setting name="#gamespeed" value="[ 1.050000 ]"></setting> <setting name="#ghostmode" value='[ "false" ]'></setting> <setting name="#time" value="20:0"></setting> <setting name="#vehicleweapons" value='[ "false" ]'></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='[ "timelimit" ]'></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
itHyperoX Posted January 8, 2017 Share Posted January 8, 2017 If you can start the resource, you can try the 'check <resource name> then upgrade <resource name> maybe.. Link to comment
koragg Posted January 8, 2017 Author Share Posted January 8, 2017 42 minutes ago, TheMOG said: If you can start the resource, you can try the 'check <resource name> then upgrade <resource name> maybe.. That doesn't work for maps, just server resources. Tried it now but nothing appeared in console. Link to comment
myonlake Posted January 8, 2017 Share Posted January 8, 2017 (edited) 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. Edited January 8, 2017 by myonlake 1 Link to comment
koragg Posted January 8, 2017 Author Share Posted January 8, 2017 (edited) 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 January 8, 2017 by koragg Link to comment
myonlake Posted January 8, 2017 Share Posted January 8, 2017 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
koragg Posted January 8, 2017 Author Share Posted January 8, 2017 59 minutes ago, myonlake said: Give me the map and I'll see what's wrong. Here it is: https://www.dropbox.com/s/r7l1ppexwbwd7m1/zole-SimpleWay.zip?dl=0 There are a lot of others too though. Link to comment
myonlake Posted January 9, 2017 Share Posted January 9, 2017 I made my own map conversion tool: http://convert.sites.paju.io/ You may also see the Resource:Race Wiki page which has a batch converter application that you can run on your PC. So if you want to make sure the conversion works, use that application as it probably does it correctly; I only used your map file as a reference when making that conversion tool site. 1 Link to comment
koragg Posted January 9, 2017 Author Share Posted January 9, 2017 The wiki batch converter works just fine (didn't try yours yet). Thanks a bunch mate Link to comment
myonlake Posted January 9, 2017 Share Posted January 9, 2017 1 hour ago, koragg said: The wiki batch converter works just fine (didn't try yours yet). Thanks a bunch mate You're welcome. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now