[TEXT]How to convert 0.3c objects from MTA to SA:mp
#1

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.).
  1. Paste your PAWN object code with 0.3c objects to a TXT file and save as Source_objects.txt in
    Код:
    (Your_Server)\scriptfiles\
  2. Install sscanf 2.0 plugin by ******:(Click) so that we can use the converter can run correctly.
  3. Paste the converter script in pawno and save as samp0.3c.pwn in
    Код:
    (Your_Server)\filterscript\
    The script is here(Pastebin):(Click)
    Make sure the script is in the filterscript folder of your server that will be run, or it'll not load.
  4. Open your server and type:
    Код:
    loadfs samp0.3c
    You'll see the converter loaded and it converts the objects successfully. The number of objects converted will be shown.
  5. Go to
    Код:
    (Your_Server)\scriptfiles\
    and find Output_objects.txt
  6. That's your code with 0.3c objects! You can change it to your streamer's format or anything you like!
Method 2(Converting from MTA:SA .map file)
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:
  1. Go to
    Код:
    MTA San Andreas\server\mods\deathmatch\resources
    and find the folder of your map(The name are the same to the filename in MTA:SA), and you'll find a .map file inside the folder. The .map file contains your objects in the MTA:SA Map Editor.
  2. Now copy it and paste it to
    Код:
    (Your_Server)\scriptfiles\
    and rename it as source.map
  3. Install sscanf 2.0 plugin by ******:(Click)
  4. 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.
  5. Open your server, and type:
    Код:
    loadfs mta0.3c
  6. Objects and vehicles will be converted automatically. The converted script is in
    Код:
    (Your_Server)\scriptfiles\output.txt
FAQs
  1. 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.
  2. 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.
  3. 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.
  4. 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
    If you have already installed some other plugins, you may do it like this:
    Код:
    plugins SomePlugins sscanf
    Lastly make sure you have installed .NET Framework 3.5 SP1.
  5. 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.
Conclusion
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.
Reply
#2

Hahaaa, now you done a converter too
Thanks man, you're awesome
Reply
#3

what you should do is make it read the .map file and just convert it!
Reply
#4

Okay I'll do that if I have time.
Reply
#5

Why so hard? convertffs.com
Reply
#6

This is because the IDs of 0.3c objects in MTA:SA are not from 18631 to 19999.
We need a special script to correct the IDs.
Refer to this:https://sampforum.blast.hk/showthread.php?tid=196205

EDIT:
Now I've added a direct converter(from MTA:SA format to SA:MP 0.3c format)
It also supports converting vehicles and their paintjobs & numberplate.
Enjoy.

If you got bugs on using the direct converter, you may use the old one(MTA:SA format -> Normal CreateObjects format -> Corrected Objects ID format)
Reply
#7

Objects don't seem to convert for me...Same id.
Reply
#8

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
Objects don't seem to convert for me...Same id.
It works for me(the older version without directly converting from .map file)
Reply
#9

(New and Old converter) don't work

Sorry but for me, there is no changement, its the same id and i have too these objects will f*** my server, thats sertainly good but for me this don't work, good job else, just need a programm else if the pwn convertisseur is not too good

Bad for me and my server

good continuation and good day
Reply
#10

i am not critizise, but samp developers have a semi-stupid idea to create SUPER object but not able to use correctly -_-#, i don't understand this. Good object not usable, thats really a problem
Reply
#11

If you cannot convert the objects, then post (part of) your objects' code(either .map or semi-converted PAWN script) here.
This will help me to fix the converter.
Also, remember to install sscanf2, and install your 0.3c objects to MTA:SA(follow my tutorial here:https://sampforum.blast.hk/showthread.php?tid=196205.
Reply
#12

lol nice to see you took my suggestion I already took your first one and did that but nice xD
Reply
#13

Everytime I attempt to load the filterscript (I've tried both of them), nothing appears to happen. Nothing displays in the chatbox and an outputted text file isn't created. Any ideas?
Reply
#14

Have you renamed the filename correctly and put them in \scriptfiles\ ?
Code:
This forum requires that you wait 120 seconds between posts. Please try again in 45 seconds.
Reply
#15

Yes I have.
Reply
#16

Have you installed the sscanf2 plugin correctly?
Don't forget to add "plugins sscanf" in server.cfg.
If it still cannot work, would you mind posting (part of) your map here so that I can easier to find the problem?
Reply
#17

I converted all the objects and added the converted objects in a filterscript ( http://pastebin.com/aBtfuPU8 )

But none of them is getting loaded... whats the problem ? ( Im not a scripter, so I don't really know anything about it )
Reply
#18

Why are you commenting all the scripts?
Change
Code:
 /*CreateObject(18761, 891.434204, 892.860474, 13.652768, 0.0000, 0.0000, 0.0000);
into
Code:
CreateObject(18761, 891.434204, 892.860474, 13.652768, 0.0000, 0.0000, 0.0000);
Commenting them will not get them compiled.

EDIT:
Now I've updated the converters to support RC4 objects.
Remember to add the objects to MTA:SA Map Editor first:
http://forum.sa-mp.com/showthread.ph...110#post942110
Reply
#19

I'm not very sure about that.
Try to replace
Code:
);
with
Code:
,300.0);
for the objects to increase their draw distances.

Also, the objects seems to be far away from the land. Make sure you go to the correct place to find them...
Reply
#20

Mistake!
You have added a "-" instead of a "+: @ line 29
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)