YAAAAAAA!!!
I just succeeded to get it work!
(Depreciated, please refer to this:
http://forum.sa-mp.com/showthread.ph...110#post942110
If you want to add your own custom objects,
you can follow this:
1.Edit samp_models.lua and add this at the bottom like the other objects:
Код:
txd??? = engineLoadTXD('NewTXD.txd')
engineImportTXD(txd???, ObjectID)
col??? = engineLoadCOL('NewCOL.col')
dff??? = engineLoadDFF('NewDFF.dff', 0)
engineReplaceCOL(col???, ObjectID)
engineReplaceModel(dff???, ObjectID)
engineReplaceCOL(col???, ObjectID)
2.Edit meta.xml in editor_main and add these, just like the other objects:
Код:
<file src="NewObject.txd" />
<file src="NewObject.dff" />
<file src="NewObject.col" />
3.Edit objects.xml in editor_gui\client\browser, and again, just like the other objects:
Код:
<object model="NewObjectID" name="NewObjectName" keywords="Something you like or keep it blank"/>
4.Put your new object's DFF,TXD and COL(if not combined with DFF file) into editor_main
5.Compress the editor_gui folder and the editor_main folder to replace the ZIP files with the same name
6.Done!
Hope this will be useful.
Original scripts are made by Gavibro and thanks for his great work.
EDIT:
Oops it goes wrong again, and I'm going to change to IDs.
Also, there's no UV animation in MTA map editor(except those particle objects)
EDIT 2:
Updated, if you downloaded it before, please re-download the scripts and re-compress them.
Also,I tried to add that AnimTube. I think it is possible to be added, but without animation.
EDIT 3:
Not very stable, it crashes sometime and some object IDs are missing so that those 0.3c objects cannot be continuously added.
Hope there'll be more help.
There're so many LOD objects that cannot be replaced and loaded.
I think I'll break the 0.3c objects list into 2 parts so that all objects can be shown.
EDIT 4:
Now I get all 0.3c objects work in MTA map editor(I think).
please redownload the scripts.
Here is the object convert list:
Код:
Replaced ID(Original ID in 0.3c) (Offset)
14383..14483(18631..18731) (-4248)
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)
13590..13667(18732..18809) (-5142)
14500..14522(18810..18832) (-4310)
14892(19901) (-5009)
I will post a new tutorial soon, as here is a bit messy :/
EDIT 5: (so many edits 0.0)
Here are the converter to convert the object IDs from MTA map editor to SA:MP 0.3c:
http://pastebin.com/5Z1PD8FF
How to use:
1.Download and install the sscanf2 plugin by y_less:
https://sampforum.blast.hk/showthread.php?tid=120356
1.Use a map converter(e.g. DeLux Map Converter) to convert the .map file into PAWN CreateObject format(Choose "PAWN Code for SA:MP")
2.Copy the result, and open a TXT file named "Source_objects.txt"
3.Paste the result into the text file
4.Save the file in Your_SAMP_server\scriptfiles\
5.Start your server and type "loadfs newobj_converter"
6.The script will automatically convert the objects
7.Go to Your_SAMP_server\scriptfiles\
8.The file "Output_objects.txt" is the final converted result and can be used in PAWN scripts