SA-MP Forums Archive
Add new objects to SAMP.IMG and custom.img - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: Add new objects to SAMP.IMG and custom.img (/showthread.php?tid=250211)



Add new objects to SAMP.IMG and custom.img - OFFREAL - 22.04.2011

Hi
I want to add new objects to SAMP.img - billboard with logo of my server
I have this tools:

Notepad++ - for edit IDE
IMG Tools - for unpack IMG
TXD Workshop - for edit textures
MEd - for edit SA map
PS CS3 - Photoshop for edit texture

1. First I open Las Venturas W map in MEd and find billboard, I found name of model file .dff, texture .txd, and collision map .col
Image ---> http://cs5706.vk.com/u4537983/128131390/z_070e0d55.jpg
2. Unpack IMG gta3.img - and extract 3 files: vgwestbillbrd15.dff, vgwestabats.txd and vegasw_8.col
3. Edit texture, and save it
4. Add this 3 files in custom.img in directory /SAMP/
Files in custom.img:
Код:
vgwestbillbrd15.dff
vgwestabats.txd
vegasw_8.col
5. In directory /SAMP/ there are empty custom.ide. I edit this:
Код:
objs
19999, vgwestbillbrd15, vgwestabats, 299, 0
end
tobj
end
path
end
2dfx
end
anim
end
txdp
end
6. I Save all, restart client, run my GM and connect to server. When I try to add object, I see this:
Код:
Warning(opcode 0x107): Exception 0xC0000005 at 0x59F8B4
- - - - -
Please tell me, how to add new objects?


Re: Add new objects to SAMP.IMG and custom.img - SDraw - 22.04.2011

I think it's impossible to add your 3d model in SAMP.IMG. And nobody will see your billboard because their SAMP.IMG will be different from your.
P.s. I'm sorry for another language, but это нереально чувак, ибо вылет игры обеспечен


Re: Add new objects to SAMP.IMG and custom.img - [ADC]Aldi96 - 22.04.2011

Wow map editor but i dont like map editor i like mta san andreas because in sa-mp we can see all players the objects men!!!!!


Re: Add new objects to SAMP.IMG and custom.img - OFFREAL - 22.04.2011

SDraw, players from my server will download my custom.img to see new textures and objects
PS: Не надо извиняться, я говорю по-русски )


Re: Add new objects to SAMP.IMG and custom.img - Vince - 22.04.2011

You need to rename your new objects to something else (e.g. myNewBillboard.dff) while still keeping the original object id (in your case: 7914) in the custom.ide. I learnt this the hard way. So it could look like this:

Код:
7914, myNewBillboard, billboardTexture, 300, 128



Re: Add new objects to SAMP.IMG and custom.img - leong124 - 22.04.2011

The file name cannot be the same as the original GTA:SA files,
and some people here are NOT answering the questions and discussing another things lol...

EDIT:Oops there's a solution already


Re: Add new objects to SAMP.IMG and custom.img - OFFREAL - 22.04.2011

Ok, I rename files in custom.img:
vgwestbillbrd15.dff to my_obj_off.dff
vgwestabats.txd to my_obj_off.txd
vegasw_8.col - I do not rename because .dff has link to this filename
Edit custom.ide:
Код:
objs
19500, my_obj_off, my_obj_off, 299, 0
end
but, nothing changes =(


Re : Add new objects to SAMP.IMG and custom.img - Tha Doggfather - 04.05.2012

@OFFREAL

i have the same problem !!!


Re : Add new objects to SAMP.IMG and custom.img - DexX39 - 30.07.2014

Hi, I have the same problem too !