Way to change .map (MTA Map) files to .pawn (SAMP Files)-
#1

Is there a way to create .map files for samp .pwn . I have tryed a generator one but it keeps coming up with this error.. "Error: Not supported format / Malformed Map file
The format you tried to convert is not supported or malformed.

Try the following:
If you tried to convert a MTA .map file, please check if the root <map> element has a correctly specified mod attribute.
Supported are the values "deathmatch" for MTAM and "race" for MTA:Race.
Correct would be for example <map mod="race">."


And heres what the map is. can you help me fix this so i can get it to work?

<map edf:definitions="deathmatch">
<object id="object (cxref_woodjetty) (1)" model="3406" interior="0" dimension="0" posX="123.60402679443" posY="-1817.6286621094" posZ="-0.25" rotX="0" rotY="0" rotZ="0" />
<object id="object (cxref_woodjetty) (2)" model="3406" interior="0" dimension="0" posX="130.96659851074" posY="-1817.6490478516" posZ="-0.25" rotX="0" rotY="0" rotZ="0" />
<object id="object (ws_jettynol_SFX) (3)" model="3886" interior="0" dimension="0" posX="132.71911621094" posY="-1811.4799804688" posZ="0.8903694152832" rotX="0" rotY="0" rotZ="0" />
<object id="object (ws_jettynol_SFX) (4)" model="3886" interior="0" dimension="0" posX="132.82197570801" posY="-1802.0079345703" posZ="0.90475749969482" rotX="0" rotY="0" rotZ="0" />
<object id="object (ws_jettynol_SFX) (5)" model="3886" interior="0" dimension="0" posX="132.65739440918" posY="-1791.9947509766" posZ="0.87744140625" rotX="0" rotY="0" rotZ="0" />
<object id="object (ws_jettynol_SFX) (6)" model="3886" interior="0" dimension="0" posX="132.57893371582" posY="-1781.6165771484" posZ="4.8865280151367" rotX="0" rotY="0" rotZ="0" />
<object id="object (cxref_woodstair) (1)" model="3361" interior="0" dimension="0" posX="132.64801025391" posY="-1790.3388671875" posZ="3.75" rotX="0" rotY="356.03002929688" rotZ="269.9599609375" />
<object id="object (vgsSstairs02_lvs) (1)" model="8572" interior="0" dimension="0" posX="134.31100463867" posY="-1775.5325927734" posZ="4.6776032447815" rotX="0" rotY="0" rotZ="179.36499023438" />
<object id="object (cxref_woodjetty) (5)" model="3406" interior="0" dimension="0" posX="115.69749450684" posY="-1817.6085205078" posZ="-0.15810871124268" rotX="0" rotY="0" rotZ="0" />
<object id="object (cxref_woodjetty) (6)" model="3406" interior="0" dimension="0" posX="127.09558105469" posY="-1803.5563964844" posZ="-0.25" rotX="0" rotY="0" rotZ="0" />
<object id="object (cxref_woodjetty) (7)" model="3406" interior="0" dimension="0" posX="120.82688140869" posY="-1803.5244140625" posZ="-0.25" rotX="0" rotY="0" rotZ="0" />
<object id="object (cxref_woodjetty) (" model="3406" interior="0" dimension="0" posX="114.84359741211" posY="-1800.6524658203" posZ="-0.25" rotX="0" rotY="0" rotZ="272.65997314453" />
<object id="object (cxref_woodjetty) (9)" model="3406" interior="0" dimension="0" posX="114.41078948975" posY="-1792.6567382813" posZ="-0.25" rotX="0" rotY="0" rotZ="272.65869140625" />
<object id="object (cxref_woodjetty) (10)" model="3406" interior="0" dimension="0" posX="133.91461181641" posY="-1821.9399414063" posZ="-0.25" rotX="0" rotY="0" rotZ="91.310028076172" />
<object id="object (cxref_woodjetty) (11)" model="3406" interior="0" dimension="0" posX="134.06169128418" posY="-1830.1866455078" posZ="-0.25" rotX="0" rotY="0" rotZ="91.307373046875" />
<object id="object (cxref_woodjetty) (12)" model="3406" interior="0" dimension="0" posX="130.44958496094" posY="-1836.1385498047" posZ="-0.25" rotX="0" rotY="0" rotZ="182.61737060547" />
<object id="object (cxref_woodjetty) (13)" model="3406" interior="0" dimension="0" posX="122.0104598999" posY="-1836.5592041016" posZ="-0.25" rotX="0" rotY="0" rotZ="182.61474609375" />
<vehicle id="vehicle (Coastguard) (2)" paintjob="3" model="472" plate="GC4OHL8" interior="0" dimension="0" posX="125.42808532715" posY="-1806.435546875" posZ="0" rotX="0" rotY="0" rotZ="91.307373046875" />
<object id="object (cxref_woodjetty) (14)" model="3406" interior="0" dimension="0" posX="116.62837219238" posY="-1834.3533935547" posZ="-0.25" rotX="0" rotY="0" rotZ="320.29998779297" />
<vehicle id="vehicle (Coastguard) (3)" paintjob="3" model="472" plate="3QQBKLY" interior="0" dimension="0" posX="125.39022064209" posY="-1814.2534179688" posZ="0" rotX="0" rotY="0" rotZ="89.322387695313" />
<vehicle id="vehicle (Coastguard) (4)" paintjob="3" model="472" plate="KNOMFXW" interior="0" dimension="0" posX="124.74137878418" posY="-1810.3735351563" posZ="0" rotX="0" rotY="0" rotZ="89.31884765625" />
<vehicle id="vehicle (Dinghy) (1)" paintjob="3" model="473" plate="1ASS2RE" interior="0" dimension="0" posX="128.08647155762" posY="-1799.2985839844" posZ="0" rotX="0" rotY="358.01501464844" rotZ="77.4150390625" />
<vehicle id="vehicle (Dinghy) (2)" paintjob="3" model="473" plate="3N2SFQM" interior="0" dimension="0" posX="128.39944458008" posY="-1793.7805175781" posZ="0" rotX="0" rotY="0" rotZ="75.429992675781" />
<vehicle id="vehicle (Launch) (1)" paintjob="3" model="595" plate="TTM3TDO" interior="0" dimension="0" posX="118.23754882813" posY="-1795.4865722656" posZ="0" rotX="0" rotY="0" rotZ="0" />
<vehicle id="vehicle (Predator) (1)" paintjob="3" model="430" plate="0Z258MV" interior="0" dimension="0" posX="125.15894317627" posY="-1821.4862060547" posZ="0" rotX="0" rotY="0" rotZ="89.325012207031" />
<vehicle id="vehicle (Predator) (2)" paintjob="3" model="430" plate="M5PVHA8" interior="0" dimension="0" posX="127.16863250732" posY="-1831.0993652344" posZ="0" rotX="0" rotY="0" rotZ="65.505004882813" />
<object id="object (od_pat_hutb) (1)" model="1637" interior="0" dimension="0" posX="138.10636901855" posY="-1772.4468994141" posZ="4.5650501251221" rotX="0" rotY="0" rotZ="47.640014648438" />
<object id="object (CJ_US_FLAG) (1)" model="2614" interior="0" dimension="0" posX="137.43556213379" posY="-1770.6707763672" posZ="7.7015686035156" rotX="0" rotY="1.9849853515625" rotZ="134.98004150391" />
<object id="object (bouy) (1)" model="1243" interior="0" dimension="0" posX="89.954277038574" posY="-1801.3078613281" posZ="-3" rotX="0" rotY="0" rotZ="0" />
</map>



thanks! Riley!
Reply
#2

Use RyDeR's Multi Object Converter v0.2

I forgot the Link for that converter (sorry RyDeR)

But i uploaded, download is at bottem.

Copy paste that code into the top bin, then convert it...green arrow i think.

It should come out as CreateObject etc...

And if you don't know which to convert to, choose MTA Race >> CreateObject.

If that doesn't work...use a online converter.

CLICK THE GIANT SMILE

[img width=768 height=768]http://www.free-smiley-faces.de/Big-Smileys/www.free-smiley-faces.de_big-smileys_grosse-smilies_01_800x800.jpg[/img]
Reply
#3

oh next time use [code] [/codes]
oh cange codes to code
Reply
#4

This has already been answered, but www.convertffs.com
Reply
#5

Where do you do it in convertffs to make it sa-mp object?
Reply
#6

Well, Converter is easy, but you can copy the Cords and paste them in your pawno

Example:
Код:
<object id="object (cxref_woodjetty) (1)" model="3406" interior="0" dimension="0" posX="123.60402679443" posY="-1817.6286621094" posZ="-0.25" rotX="0" rotY="0" rotZ="0" />
Код:
CreateObject(3406 ,123.60402679443, -1817.6286621094, -0.25, 0, 0, 0);
i hope this helps
Reply
#7

Here you go

Код:
CreateObject(3406, 123.60402679443, -1817.6286621094, -0.25, 0, 0, 0);
CreateObject(3406, 130.96659851074, -1817.6490478516, -0.25, 0, 0, 0);
CreateObject(3886, 132.71911621094, -1811.4799804688, 0.8903694152832, 0, 0, 0);
CreateObject(3886, 132.82197570801, -1802.0079345703, 0.90475749969482, 0, 0, 0);
CreateObject(3886, 132.65739440918, -1791.9947509766, 0.87744140625, 0, 0, 0);
CreateObject(3886, 132.57893371582, -1781.6165771484, 4.8865280151367, 0, 0, 0);
CreateObject(3361, 132.64801025391, -1790.3388671875, 3.75, 0, 356.03002929688, 269.9599609375);
CreateObject(8572, 134.31100463867, -1775.5325927734, 4.6776032447815, 0, 0, 179.36499023438);
CreateObject(3406, 115.69749450684, -1817.6085205078, -0.15810871124268, 0, 0, 0);
CreateObject(3406, 127.09558105469, -1803.5563964844, -0.25, 0, 0, 0);
CreateObject(3406, 120.82688140869, -1803.5244140625, -0.25, 0, 0, 0);
CreateObject(3406, 114.84359741211, -1800.6524658203, -0.25, 0, 0, 272.65997314453);
CreateObject(3406, 114.41078948975, -1792.6567382813, -0.25, 0, 0, 272.65869140625);
CreateObject(3406, 133.91461181641, -1821.9399414063, -0.25, 0, 0, 91.310028076172);
CreateObject(3406, 134.06169128418, -1830.1866455078, -0.25, 0, 0, 91.307373046875);
CreateObject(3406, 130.44958496094, -1836.1385498047, -0.25, 0, 0, 182.61737060547);
CreateObject(3406, 122.0104598999, -1836.5592041016, -0.25, 0, 0, 182.61474609375);
CreateObject(3406, 116.62837219238, -1834.3533935547, -0.25, 0, 0, 320.29998779297);
CreateObject(1637, 138.10636901855, -1772.4468994141, 4.5650501251221, 0, 0, 47.640014648438);
CreateObject(2614, 137.43556213379, -1770.6707763672, 7.7015686035156, 0, 1.9849853515625, 134.98004150391);
CreateObject(1243, 89.954277038574, -1801.3078613281, -3, 0, 0, 0);
Your map definition was wrong. Not sure if something changed with MTA or anything, but try using this

Код:
<map mod="deathmatch">
Instead of this:

Код:
<map edf:definitions="deathmatch">
in the first line of the code.


I hope I have helped. For future use, try using http://gtamap.delux-host.com/converter/ , it has a good error message that easily explains to you what may have caused the problem.


EDIT: Damn, just realized that this is a 2010 topic, damn people who bump old topics -.-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)