SA-MP Forums

Go Back   SA-MP Forums > SA-MP DL Edition > SA-MP 0.3.DL

Reply
 
Thread Tools Display Modes
Old 02/02/2018, 09:18 PM   #1
Mugala
Gangsta
 
Mugala's Avatar
 
Join Date: Nov 2012
Location: behind u
Posts: 645
Reputation: 30
Default Importing .pwn in SA:MP Map Editor

guys, does anyone have idea how we can import custom objects from .pwn to the SA:MP Map Editor?
__________________
here to help
Mugala is offline   Reply With Quote
Old 03/02/2018, 01:00 AM   #2
NaS
High-roller
 
NaS's Avatar
 
Join Date: Mar 2008
Posts: 1,585
Reputation: 461
Default Re: Importing .pwn in SA:MP Map Editor

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:

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

Code:
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.
NaS is offline   Reply With Quote
Old 05/02/2018, 08:02 AM   #3
Mugala
Gangsta
 
Mugala's Avatar
 
Join Date: Nov 2012
Location: behind u
Posts: 645
Reputation: 30
Default Re: Importing .pwn in SA:MP Map Editor

okay thanks a lot.
__________________
here to help
Mugala is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing objects? PlayHard Scripting Help 1 27/09/2016 03:41 AM
Importing scenes into 3ds max Saize Everything and Nothing 7 10/02/2015 01:05 PM
Importing Video INTO SA-MP freddypeppers Scripting Help 18 20/01/2015 04:41 PM
Problem importing mapping into SAMP map editor? jremi General 9 01/11/2014 03:11 PM


All times are GMT. The time now is 03:49 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.