Importing .pwn in SA:MP Map Editor
#1

guys, does anyone have idea how we can import custom objects from .pwn to the SA:MP Map Editor?
Reply
#2

You must add the objects the oldschool way (add the definitions to custom.ide and add the .dff and .txd files into custom.img, both located in the SAMP directory).

If you aren't familiar with IDE (Item Definition) files, here's the format.

If you have, for example, this AddSimpleModel line:

Код:
AddSimpleModel(-1, 19379, -16001, "model1.dff", "texture1.txd");
it will have to look like this:

Код:
15065, model1, texture1, 100, 0
It must also be added to the "objs" section of the IDE file.

The ID will be different as GTA (and also the Editor, I think) do not support negative IDs by default.
The ID range 15065 - 15999 is safe to use, they were reserved for custom.ide. But there are other free IDs if you need.

You can theoretically work with IDs 15065-15999 in the Editor and use -15065 - -15999 in SAMP, that way you can just negate the IDs when switching between them, or just calculate an offset.

Because of SAMP's COL extension it might be that SAMP doesn't start with the custom.ide in place, but the Editor will.
Reply
#3

okay thanks a lot.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)