06.12.2010, 09:25
(
Последний раз редактировалось leong124; 26.12.2012 в 18:35.
Причина: Update the converter for both methods
)
0.3c Objects Converter
Important
This converter only supports converting objects mapped using my mod (created with some others) which adds SA:MP 0.3c objects to MTA:SA. However, such mods are depreciated and you're suggested to use some other SA:MP map editors like JernejL's and some map editor scripts using 0.3e mapping features. I got no permission to create mods like that anymore.
Converting ordinary objects may cause problems as some of them may be identified as 0.3c objects, due to the way I add 0.3c objects to MTA:SA.
Introduction
This is a converter for 0.3c objects in MTA:SA Map Editor.
Please refer to another tutorial in GamerX Wiki on how to add 0.3c objects to MTA:SA Map Editor:http://forum.gamerxserver.com/showwi...MTA+Map+Editor
Important Notes
It's suggested that you should only convert the objects which is mapped as 0.3c objects.
Since the way 0.3c objects in MTA:SA works, converting original GTA:SA objects could be wrongly recognised as 0.3c objects and their object IDs would be converted wrongly.
If you haven't mapped any 0.3c objects in MTA:SA Map Editor, or you are using some other map editors, you DON'T need this converter.
Also, if you have added 0.3c objects in MTA:SA Map Editor and you want to convert them back to SA-MP PAWN format, you MUST use this converter. Using convertffs/delux converter only will NOT work.
Method 1(Converting from PAWN format)
This method supports most of the PAWN object formats(CreateObject, CreateDynamicObject, etc.).
- Paste your PAWN object code with 0.3c objects to a TXT file and save as Source_objects.txt in Код:
(Your_Server)\scriptfiles\
- Install sscanf 2.0 plugin by ******:(Click) so that we can use the converter can run correctly.
- Paste the converter script in pawno and save as samp0.3c.pwn in Код:
(Your_Server)\filterscript\
Make sure the script is in the filterscript folder of your server that will be run, or it'll not load. - Open your server and type: Код:
loadfs samp0.3c
- Go to Код:
(Your_Server)\scriptfiles\
- That's your code with 0.3c objects! You can change it to your streamer's format or anything you like!
This method only works with the MTA:SA .map files.
Since someone asked me for a direct converter, I've made this new method.
This converter supports objects, vehicles, vehicle paintjobs and their number plates that is in MTA:SA format.
How to use it:
- Go to Код:
MTA San Andreas\server\mods\deathmatch\resources
- Now copy it and paste it to Код:
(Your_Server)\scriptfiles\
- Install sscanf 2.0 plugin by ******:(Click)
- Download the script here(Pastebin):(Click)
Paste the code in pawno, and name it as mta0.3c.pwn and compile it as a filterscript. Make sure the script is in the filterscript folder of your server that will be opened, or it will not load. - Open your server, and type: Код:
loadfs mta0.3c
- Objects and vehicles will be converted automatically. The converted script is in Код:
(Your_Server)\scriptfiles\output.txt
-
Q: The script says "Incorrect (object) format".
A: Probably it is because you have used the wrong script, for example using the MTA version to convert PAWN scripts, or using the PAWN one to convert MTA scripts.
If you used the correct converter then probably the script has incorrect format.
If you are using the MTA version of this converter, make sure you are using MTA:SA 1.0.4 or above. Older versions are not supported.
If you still have problems, you can give me a line of the code that cannot be converted if you don't mind, so I can have a look on it and improve the converter. -
Q: The script says "source.map does not found" or "Source_objects.txt does not found".
A: Make sure you have renamed your file as the above provided name, and put that file to the scriptfiles folder of your server. -
Q: I can't load the converter script.
A: Ensure you have placed the script in filterscript folder, being compiled and you type the command correctly in the server console. Also check if your sscanf plugin is correctly installed and loaded. -
Q: I don't know how to add sscanf plugin.
A: Simply download it, unzip all the files in sscanf.zip and paste them in your server folder. Open server.cfg and find the line with a word "plugins". If you can't find it then add a new line and type it there. Then type "sscanf" like this:
Код:plugins sscanf
Код:plugins SomePlugins sscanf
-
Q: Why don't use convertffs?
A: Since the way that 0.3c objects in MTA:SA Map Editor works, the IDs of 0.3c objects in MTA:SA that is converted are not from 18631 to 19999.
We need a special script to correct the IDs, which is the reason for this script to be released.
With this converter, you can easily convert your 0.3c objects from MTA:SA Map Editor back to SA-MP, so that it will be convenient for those who use MTA:SA Map Editor to map 0.3c objects.
If you have any questions, and you can't solve it after reading the FAQs, please feel free to ask it here.
Updates
2011-08-12: The string size of the converter for method 1 is increased, so that it fixes wrong file writings and wrong countings.
2011-08-26: Fixes a bug on error message, displaying the wrong ID number.
Credits
- leong124 - Made this converter.
- Contributors of 0.3c objects @ MTA:SA - Made the MTA:SA Map Editor to be possible to map 0.3c objects.
- Contributors of 0.3c objects - Made the great 0.3c objects to improve our gaming in SA-MP.
- ****** - For his great sscanf plugin.
- Kalcor - Reverting this thread so that all of you can use this converter.