Hey ich habe grade folgendes im englischen Forum gefunden viel Spaß
ZitatAlles anzeigenHello,
I found the way to add the 0.3c objects to the MTA Map Editor and I'm going to share with you.
First of all the Lua scripts below are originally made by Gavibro and edited by me. Thanks for his great work!
I'm not very well in expressing in English but hope you understand.
Step 1
-------------------
Firstly, you need to ensure that you have SA:MP 0.3c and MTA:SA DM(a.k.a. v1.0.4) installed.
I'll use a new installed MTA:SA DM here for the tutorial.
Step 2
-------------------
Go to MTA San Andreas\server\mods\deathmatch\resources\
and decompress "editor_gui.zip" into MTA San Andreas\server\mods\deathmatch\resources\editor_gu i\
Also, decompress "editor_main.zip" into MTA San Andreas\server\mods\deathmatch\resources\editor_ma in\
Step 3
-------------------
Copy this script and save it as samp_models.lua:http://pastebin.com/S0GnQc37
Then put it in MTA San Andreas\server\mods\deathmatch\resources\editor_ma in\
Same for this meta.xml:http://pastebin.com/cna7p8Qk
Then, copy another script and save it as objects.xml:http://pastebin.com/iBv1j2eR
Then put it in MTA San Andreas\server\mods\deathmatch\resources\editor_gu i\client\browser\
You need to replace the files for the meta.xml and the objects.xml.
These scripts replaces the original GTASA objects in MTA:SA, add file syncs, and add a category that allows you to select the 0.3c objects in MTA:SA Map Editor respectively.
Step 4
-------------------
Download an IMG Editor(e.g. Alci's IMG Editor 1.5, IMG Tool, etc.)
Then, use the IMG Editor to open GTA San Andreas\models\SAMP.img
and export all the files inside SAMP.img to MTA San Andreas\server\mods\deathmatch\resources\editor_ma in\
Step 5
-------------------
Similarly, use the IMG Editor to open GTA San Andreas\models\gta3.img
and export the following files to the same folder, MTA San Andreas\server\mods\deathmatch\resources\editor_ma in\
Then, use the same editor to open GTA San Andreas\models\gta_int.img
and export "carter_block.txd" to MTA San Andreas\server\mods\deathmatch\resources\editor_ma in\
Exporting the DFF and TXD files to that folder is to let the Lua script loads the objects from that folder, so that it can replace the original GTASA objects
Step 6
-------------------
Now go to MTA San Andreas\server\mods\deathmatch\resources\editor_ma in\
and rename "carter_block.txd" and "gloopx.txd" as "Carter_block.txd" and "gloopX.txd"
Step 7
-------------------
Use your IMG Editor again to open GTA San Andreas\models\SAMPCOL.img
and export ALLSAMPCOLs.col to somewhere you like(e.g. Desktop)
This step is needed in order to split the COL library into single COL files for MTA:SA Map Editor.
Step 8
-------------------
Download CollEditor2 by Steve M here:http://www.steve-m.com/downloads/tools/colleditor2/
Then use CollEditor2 to open ALLSAMPCOLs.col that we exported in the previous step.
Select all the files and right click on them to choose Export->Single Collision Files..
Then export them to MTA San Andreas\server\mods\deathmatch\resources\editor_ma in\
Doing this allows the MTA Map Editor to load the collision file in the lua script for the 0.3c objects.
Step 9
-------------------
Now go back to MTA San Andreas\server\mods\deathmatch\resources\
Now compress the two folders "editor_main" and "editor_gui" into editor_main.zip and editor_gui.zip respectively.
Step 10
-------------------
Now you should be able to see the objects in MTA:SA.
To ensure that, open your MTA:SA and choose Map Editor.
After that, you'll need to wait for MTA:SA to open a server.
If it successfully opens a server, there should be a black screen with a bar of downloading the resources that we edited before(about 33MB).
If it succeeds, you will be able to click the "Object" button, select the category "Sa-Mp Objects" and you'll find the 0.3c objects and that's all!
Since MTA:SA cannot add new object IDs, I replaced the 0.3c objects with the original GTA:SA.
Therefore, I provided a list to show what IDs were replaced, so that you can convert them back when you put the MTA .map script into PAWN script:
Replaced ID(Original ID in 0.3c) (Offset)
14383..14483(18631..18731) (-4248)
13590..13667(18732..18809) (-5142)
14500..14522(18810..18832) (-4310)
14770..14856(18833..18919) (-4063)
14858..14871(18920..18933) (-4062)
18000..18036(18934..18970) (-934)
18038..18101(18971..19034) (-933)
14872..14883(19035..19046) (-4163)
14885..14891(19047..19053) (-4162)
14892(19901) (-5009) Note that you cannot see any animation effects of the 0.3c objects in MTA:SA Map Editor.
Credits
-------------------
Credits goes to Gavibro for his great scripts, and me for the editing.
Also thanks to Retardedwolf for his help to make others understand.
I'll post more about adding more 0.3c objects into MTA:SA Map Editor and how to convert those objects back to SA:MP from MTA:SA.
If you got any problems or found any bug about things above, please contact me.