Kain Posted December 4, 2019 Author Share Posted December 4, 2019 ROBBING THIS FROM THE OLD FORUMS.STOP USING IKZELF'S MAP EDITOR, IT'S BAD AND BROKEN. USE THIS.Hello,As most of you know if you want to use a mapping on a server, most servers prefer to have it in .lua format, converting a .map file to a .lua file can be a pain, there are some converters out there (the one I have been using : http://gtamap.delux-host.com/converter/) But at least from what I had seen they only convert the objects, they do not care about scale, they do not convert removing world objects, vehicles, markers, peds.So in order to be able to convert this better, without manually converting removeWorldObject from .map to removeWorldModel() for .lua (and a lot of other functions) I have created a MTA script which will convert the file for you without you requiring to do anything manually.Installation & usage instructionsInstallationDownload the installer:nanobob.netRun the installerThe installer will ask if you want to replace your acl.xml file, if you have never before edited the acl.xml file click yes. If you have edited the acl.xml file proceed with the manual ACL instructions belowOnce the installer has finished it will run your server, in the window type the following: "start editor", and type:"start mapconverter"Manual ACL instructions:in order to add the resource to the ACL go to your server/mods/deathmatch folder.turn your server offopen acl.xml with a text editorunder the line "<group name="Admin">"add the line <object name="resource.mapConverter"></object> "save the file and turn your server back onHow to connect to your local server:Go ingame.Go to server browser.Go to the local tabYour server should be there.Usage:When ingame, turn on the editor ('start editor' in the console)Also turn on the map converter ('start mapconverter' in the console) if you have not done so alreadyNow when you have finished mapping, click the save as button. There will be a checkbox with the text :"Save .lua copy". Check this checkbox and save the file, when it saves it will convert the file and output the file size.By the way, the code is not compiled, feel free to use my code to learn from. But do not simply copy paste and call it your own. Link to comment Share on other sites More sharing options...
Daryl Posted December 4, 2019 Share Posted December 4, 2019 @Kain said in Convert Mappings to Lua:By the way, the code is not compiled, feel free to use my code to learn from. But do not simply copy paste and call it your own.nice code kainvery profeshnaldid @NanoBob teach you:honk: :honk: :honk: :honk: :honk: :honk: Link to comment Share on other sites More sharing options...
Kain Posted December 4, 2019 Author Share Posted December 4, 2019 @Daryl Were you dropped on your head as a child? Link to comment Share on other sites More sharing options...
Ikzelf Posted December 4, 2019 Share Posted December 4, 2019 So why is it broken? Link to comment Share on other sites More sharing options...
Nico Posted December 5, 2019 Share Posted December 5, 2019 Y u no fix the web version. Much easier to use for people that have no knowledge on MTA servers (not me) ( even tho u explained it correctly ). Guess thats a solution that can be used by every pleb on SAES ( even @Jasper ) Link to comment Share on other sites More sharing options...
Element Posted January 1, 2020 Share Posted January 1, 2020 Where I can get the installer from ? nanobob.net seems to be a cracking web... Link to comment Share on other sites More sharing options...
Lincoln Posted January 1, 2020 Share Posted January 1, 2020 @Element said in Convert Mappings to Lua:Where I can get the installer from ? nanobob.net seems to be a cracking web...I believe this is what you are looking for?https://nanobob.net/files/MTA%20Map%20Converter.exe Link to comment Share on other sites More sharing options...
Element Posted January 1, 2020 Share Posted January 1, 2020 @Lincoln Hope so, thank you very much! Link to comment Share on other sites More sharing options...
Terry Posted February 3, 2020 Share Posted February 3, 2020 Little heads upWhen you launch the MTA Map Converter.exe in order to install it, the default installation folder isC:\Program Files (x86)\MTA San Andreas 1.5\server\mods\deathmatch\resources[NanoBob]\mapConverterPeople who has MTA installed on D instead of C, like myself, may run into this problem as I did:When you change the default installation folder and proceed, it will not be installed properly, therefore you must avoid changing the default installation direction and let it install on C anyway even though you may not have MTA installed on C. After the installation is complete, go to your C drive and copy the files from there to its correct location and it will work.Wanted to give you guys a heads up as I ended up spending an hour trying to find what I was doing wrong even though I followed all instructions properly. Link to comment Share on other sites More sharing options...
Tut Posted February 3, 2020 Share Posted February 3, 2020 Just for the record, ikzelf made a discord server which hosts a great .map to .lua converter with many options for what to convert. I bet it's easier to use than Nanobob's as well.https://discord.gg/nPtP2Zz Link to comment Share on other sites More sharing options...
Recommended Posts