Objects

Started by PsyChO_KiLLeR, Mar 07, 2015, 04:16 PM

Previous topic - Next topic

PsyChO_KiLLeR

Well i add a custom object of a car and i also added in object.xml with id 23 then i go to my server and i type /exec CreateObject( 6024, 0, FindPlayer(0), 255 ); but nothing happens

then i add train in my objects folder and i give him id of 24 and i go in server and type /exec CreateObject( 6025, 0, FindPlayer(0), 255 );

Nothin Happens...What's Wrong....???

Thijn

You need to specify a location. Not a player.

MacTavish

Quote from: PsyChO_KiLLeR on Mar 07, 2015, 04:16 PMWell i add a custom object of a car and i also added in object.xml with id 23 then i go to my server and i type /exec CreateObject( 6024, 0, FindPlayer(0), 255 ); but nothing happens

then i add train id  24 and type /exec CreateObject( 6025, 0, FindPlayer(0), 255 );

Nothin Happens...What's Wrong....???
Do like this /exec CreateObject( 6024, 0, FindPlayer(0).Pos, 255 );
And the object id 24 is in object.xml and ingame is 6024

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Sebastian

Quote from: PsyChO_KiLLeR on Mar 07, 2015, 04:16 PMWell i add a custom object of a car and i also added in object.xml with id 23 then i go to my server and i type /exec CreateObject( 6024, 0, FindPlayer(0), 255 ); but nothing happens

then i add train in my objects folder and i give him id of 24 and i go in server and type /exec CreateObject( 6025, 0, FindPlayer(0), 255 );

Nothin Happens...What's Wrong....???


MacTavish

Quote from: sseebbyy on Mar 07, 2015, 04:41 PM
Quote from: PsyChO_KiLLeR on Mar 07, 2015, 04:16 PMWell i add a custom object of a car and i also added in object.xml with id 23 then i go to my server and i type /exec CreateObject( 6024, 0, FindPlayer(0), 255 ); but nothing happens

then i add train in my objects folder and i give him id of 24 and i go in server and type /exec CreateObject( 6025, 0, FindPlayer(0), 255 );

Nothin Happens...What's Wrong....???


Thats what my point too :D

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

PsyChO_KiLLeR

Okay so what's this seeebbyy???


PsyChO_KiLLeR


MacTavish

#7
Can you stop doing f***ing double posts

For creating an object you need 3 files .dff  .txd  .col
If you have 2 from these then your dream won't came true

For train

1. Zip all three files with 7zip, rename your archieve to train_unp.7z ( 7z is extension name like zip, rar etc)
2. Move train_unp to   yourserver>store>Here
3. Open objects.xml do as seby did in his tutorial " Custom Object" Here and save .xml

Run your server and be Spawned
Suppose if your object id is 3 in objects.xml then do this
/exec train <- CreateObject(6003, 0, Vector( FindPlayer(0).Pos ), 255);
If you wanna erase train then do this after that code ^
/exec train.Delete();

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Sebastian

Quote from: PsyChO_KiLLeR on Mar 07, 2015, 04:53 PMOkay so what's this seeebbyy???
http://i57.tinypic.com/jpk7k7.jpg

Today, someone told me that I have a nice signature (was talking about that snapshot of chat), and I told him what happened: You wanted the train object (even if you already asked me - via pm - for it, on 1st March, and I already gave you everything you needed), for the second time in 3 days, so I decided to see how far you can go + I found funny my idea to make you say anything I wanted, since you already said this:

Quote[17:46:11]  *XFR* [SK]PysChO_KiLLeR: seby?
[17:46:11]  *XRR* [VU_R]Razor: Lel
[17:46:15]  *XRR* [Administrator] [Ro]Seby: what
[17:46:18]  Next race in 20 seconds.
[17:46:22]  *XRR* [VU_R]Razor: Nice ping killer
[17:46:28]  Next race in 10 seconds.
[17:46:33]  *XFR* [SK]PysChO_KiLLeR: help?
[17:46:36]  You have been spawned on XRR World!
[17:46:37]  *XRR* [Administrator] [Ro]Seby: Forum
[17:46:42]  *XRR* [Administrator] [Ro]Seby: ask on forum
[17:46:43]  Loading race Airport Knight. Length: 0.80 km.
[17:46:43]  Modes: Default, Two Ways, Respawn, NewCar
[17:46:43]  1st  [DnA]habla  (0:22.978)
[17:46:43]  2nd  MK.Kelvin  (0:23.097)
[17:46:43]  3rd  PunkNoodle  (0:23.224)
[17:46:43]  4th  s19  (0:23.339)
[17:46:43]  5th  Doge  (0:23.618)
[17:46:43]  Your personal record for Airport Knight (0:25.679)
[17:46:44]  *XFR* [SK]PysChO_KiLLeR: from where i get custom train object?
[17:46:47]  *XRR* [Administrator] [Ro]Seby: I told you to stop asking me !
[17:46:49]  *XFR* [SK]PysChO_KiLLeR: tell here
[17:46:52]  *XRR* [Administrator] [Ro]Seby: no.
[17:46:55]  *XFR* [SK]PysChO_KiLLeR: plz?
[17:46:56]  Checkpoint: 1/9 Position: 2/2 Time: 0:01.562
[17:46:57]  *XRR* [Administrator] [Ro]Seby: no.
[17:47:00]  Checkpoint: 2/9 Position: 2/2 Time: 0:05.718
[17:47:02]  *XFR* [SK]PysChO_KiLLeR: i am your slave
[17:47:02]  *INFO* (XAD) Are you an attacker? Hide your vehicle when you are near the defenders' base.
[17:47:02]  Checkpoint: 3/9 Position: 2/2 Time: 0:08.116
[17:47:06]  *XRR* [Administrator] [Ro]Seby: lmao

Quote from: Beztone on Mar 07, 2015, 05:15 PM3. Open objects.xml do as seby did in his tutorial " Custom Object" Here and save .xml

Beztone, stop wasting your time by trying to help this guy. I already did that mistake. I also gave him a link to my tutorials, but no effect.
http://i.imgur.com/50TRmNl.png
http://i.imgur.com/6DzEQ9n.png



I'm done with this discussion.



ON:
Quote from: Beztone on Mar 07, 2015, 05:15 PMFor creating an object you need 3 files .dff  .txd  .col
If you have 2 from these then your dream won't came true

Actually, stormeus said we can add an object without a colision file. :)
All we have to do is to use <collision type="none" />.
(I said that in that spoiler called "Wordpad's version" )

PsyChO_KiLLeR

#9
well thnx for helping i add their 2 custom objects they come but how to run them i mean how to drive them

MacTavish

Quote from: sseebbyy on Mar 07, 2015, 07:53 PMActually, stormeus said we can add an object without a colision file. :)
All we have to do is to use <collision type="none" />.
(I said that in that spoiler called "Wordpad's version" )
Yea but that Object wont be Solid. Collision makes it solid

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Thijn

Quote from: Beztone on Mar 08, 2015, 06:09 PM
Quote from: sseebbyy on Mar 07, 2015, 07:53 PMActually, stormeus said we can add an object without a colision file. :)
All we have to do is to use <collision type="none" />.
(I said that in that spoiler called "Wordpad's version" )
Yea but that Object wont be Solid. Collision makes it solid
You can use autogenerate instead of none. That will generate the collision, but will need more processing power which some player might not have.

Sebastian

Quote from: Thijn on Mar 08, 2015, 06:25 PMYou can use autogenerate instead of none. That will generate the collision, but will need more processing power which some player might not have.

Heh, I was avoiding that.
The autogenerate option will create MANY small colision boxes that will complete the whole 3d model (.dff), but this, like you said, requires more processing power... and considering players' posibilities...
My suggestion is to not use the autogenerate option, so you will have the benefit of more players.
(instead of a big box of colision, you create thousands of small boxes to replace that big box, so there will be more things to be streamed and etc)

PsyChO_KiLLeR

so your mean i have to change collosion file to none?

PsyChO_KiLLeR

collison = "none" ????? i have to set this