SA-MP Forums Archive
[Question/Help]Adding a new object - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Question/Help]Adding a new object (/showthread.php?tid=194580)



[Help]Adding a new object - marko94 - 29.11.2010

Alright so, I followed all the steps from here ( Click here ), made a custom object in 3ds max, exported the DFF/COL/IFP files + the custom TXD. I added the DFF/TXD/IFP files to SAMP.IMG and COL file to SAMPCOL.IMG.

I added a new line in SAMP.IDE

anim
<choose an id here>, AnimTestCone1, AnimTestCone1TXD, AnimTestCone1, 290, 2097284
end


I'm not sure what should I type instead of <choose an id here>, a random unique ID?

Another thing, let's say that I added the line in SAMP.IDE correct, what's the next step so I can actually see the object rotating in-game?


Thanks in advance and I hope you got my point here.


Re: [Question/Help]Adding a new object - keessie - 30.11.2010

in samp.ide you see that all de id's increase
just put in below everything and keep increasing the id's


Re: [Question/Help]Adding a new object - Flyfishes - 30.11.2010

Like:
pawn Код:
9999, AnimTestCone1, AnimTestCone1TXD, AnimTestCone1, 290, 2097284
10000, AnimTestCone1, AnimTestCone1TXD, AnimTestCone1, 290, 2097284
10001, AnimTestCone1, AnimTestCone1TXD, AnimTestCone1, 290, 2097284
10002, AnimTestCone1, AnimTestCone1TXD, AnimTestCone1, 290, 2097284
<choose an id here>, AnimTestCone1, AnimTestCone1TXD, AnimTestCone1, 290, 2097284
Then what should the next ID be? Yes, 10003!

This forum requires that you wait 120 seconds between posts. Please try again in 16 seconds.


Re: [Question/Help]Adding a new object - marko94 - 30.11.2010

Alright, I added the rotating object in-game but it's still white (untextured) although I made a .TXD file, with two images, one of the top part of the cone and one with the base part. Any solutions about how can I properly build a .TXD file? Thank you.


Re: [Question/Help]Adding a new object - marko94 - 30.11.2010

I know I shouldn't bump the topic but, does anyone know how to do it? Thank you.


Re: [Question/Help]Adding a new object - keessie - 30.11.2010

have you done a dff check in txd workshop(or other program)
it's possible that the names arent the same on your model and in your txd file


Re: [Question/Help]Adding a new object - marko94 - 30.11.2010

The name of the top part is Top and the name of the base is Base. The names are the same in 3ds max and TXD Workshop.


Re: [Question/Help]Adding a new object - Matite - 30.11.2010

Check your PM... I sent you some information to diagnose/fix this.