Author Topic: a wild vehicle spawn thread appears  (Read 6635 times)

0 Members and 1 Guest are viewing this topic.

OMG Pony

  • Online Villain
  • ***
  • Posts: 194
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #60 on: June 17, 2012, 04:52:46 am »
@Rocket: What are you doing, if your boss will angry, cuz u post/help here? :D
When will added a sub-forum for german players on the offical dayz board? I ask some time ago your webmaster, but he didn't replied on my  question - russians got an sub-forum. [sorry for OT but not sure, if he can answer me with pm].
:)

Cryout

  • Online Villain
  • ***
  • Posts: 107
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #61 on: June 17, 2012, 05:33:59 am »
Help me please!

_dir = getDir vehicle player;
_pos = getPos vehicle player;
_pos = [(_pos select 0)-5*sin(_dir),(_pos select 1)4*cos(_dir),0];
_veh = createVehicle ["Ural_ZU23_Gue",[_pos select 0,_pos select 1,1], [], 0, 'NONE'];
_veh = setVariable ["Ural_ZU23_Gue", 123456, true];
Player moveInDriver _veh;
_veh setDir _dir;

What is wrong here? Why are car explodes ?

arcn

  • I leak others hard work...do u trust me?
  • Relentless Teamkiller
  • **
  • Posts: 83
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #62 on: June 17, 2012, 05:54:32 am »
Help me please!

_dir = getDir vehicle player;
_pos = getPos vehicle player;
_pos = [(_pos select 0)-5*sin(_dir),(_pos select 1)4*cos(_dir),0];
_veh = createVehicle ["Ural_ZU23_Gue",[_pos select 0,_pos select 1,1], [], 0, 'NONE'];
_veh = setVariable ["Ural_ZU23_Gue", 123456, true];
Player moveInDriver _veh;
_veh setDir _dir;

What is wrong here? Why are car explodes ?

Would be great if you could read the posts before posting this useless comment :icon_rolleyes2

arcn

  • I leak others hard work...do u trust me?
  • Relentless Teamkiller
  • **
  • Posts: 83
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #63 on: June 17, 2012, 05:55:34 am »
The answer is actually in the scripts quoted above.

If you can't figure it out, then you are struggling with basic array concepts of the RV engine, and programming in general - you definitely need to check out the BI wiki some more.

 :icon_laugh

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #64 on: June 17, 2012, 05:42:46 pm »
I cannot believe that this hasn't been figured out yet , so many threads and its so simple , really getting ridiculous this.

You all need to learn to read instead of waiting to be spoon fed , do a bit of research and at least learn about a few simple script commands ffs.
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

Buster

  • Klass Klown
  • ***
  • Posts: 295
  • Kool Kat
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #65 on: June 17, 2012, 06:30:05 pm »
I cannot believe that this hasn't been figured out yet , so many threads and its so simple , really getting ridiculous this.

You all need to learn to read instead of waiting to be spoon fed , do a bit of research and at least learn about a few simple script commands ffs.

If they were spoon fed, they'd only throw up, not bieng able to digest it properly  :icon_laugh
I agree though Mr.M. its really getting ridiculous this. Or is it _this  :icon_thumbsup

ZOldDude

  • The Unknown Rank!
  • Administrator
  • MasstKer
  • *
  • Posts: 20874
  • Old School TKC
    • View Profile
    • Admin
Re: a wild vehicle spawn thread appears
« Reply #66 on: June 17, 2012, 08:45:51 pm »
One "reason" many do.t seem to read first is because Google does a wonderful job at translating RU into English and back.

*While we crash and burn, small, low tech, agrarian societies such as the Hmong in the mountains of Laos will continue on without so much as blinking an eye.*

zlake

  • Relentless Teamkiller
  • **
  • Posts: 76
  • Killer space clowns. Twas a movie.
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #67 on: June 19, 2012, 02:07:15 pm »
I wish I had the time to figure it out lol. Been working a lot of 12 hour days no weekend last week. Its getting very annoying but anyway.

Looking for some little hints. I still got my code that works on 1.6
Now 1.7.1 removes my shit ofc.

So does it have to be written to the client only now?

FrankHorrigan

  • Relentless Teamkiller
  • **
  • Posts: 61
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #68 on: June 23, 2012, 01:16:03 am »
Code: [Select]
_class = "UH1H_DZ";
vehicleToSpawn = 'UH1H_DZ';
_location = position player;
_dir = getDir player;
if (isServer) then
{
(vehicleToSpawn createVehicle (position _location))setVariable ['153912', _class , true];
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,getPos _location nearestObject vehicleToSpawn];
};

Some help? still blowing my UH1  :icon_cry2

s0beit

  • Relentless Teamkiller
  • **
  • Posts: 94
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #69 on: June 23, 2012, 05:27:41 pm »
Code: [Select]
_class = "UH1H_DZ";
_location = position player;
_dir = getDir player;
_server = dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_object];
_object = createVehicle [_class, _location, [], 0, "CAN_COLLIDE"];
_object setdir _dir;
_object setpos _location;
_object setVariable ["153912", _class, true];
sleep 0.1;
player setVehicleInit _server;
processInitCommands;
clearVehicleInit player;
hint "Vehicle Spawned, Code Activated, Still Blowing Up?"

I knew why my previous scripts were blowing up, but I haven no clue what's wrong right now.
Code: [Select]
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_object]I'm executing this through the server. This SHOULD be adding it to the database, but I don't know why it's not. I looked through the code, and they haven't added any extra protection (that I can see)

Any advice to my script? (That's a new one)
I did this code pretty much myself, so it's not the best. If you see any mistakes I made, point them out please.

Question: How is the server supposed to know what _object even is?

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #70 on: June 23, 2012, 05:40:29 pm »
most of you are way off target now. 1 has it spot on , just a matter of what to change and what to.

thing is if you get it working they will see you have it working and probably ban you when they read the hive.

i think they have left it open on purpose tbh .. so they can catch cheaters by what is needed to be changed ( quite clever rocket )

but some people will just not listen , so carry on. :smile

« Last Edit: June 23, 2012, 05:52:47 pm by MrMedic »
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

FrankHorrigan

  • Relentless Teamkiller
  • **
  • Posts: 61
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #71 on: June 23, 2012, 10:19:20 pm »
Does that mean that MrMedic can not make a non local car Undetected?!

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #72 on: June 23, 2012, 11:27:17 pm »
Code: [Select]
_class = "UH1H_DZ";
_location = position player;
_dir = getDir player;
_server = dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_object];
_object = createVehicle [_class, _location, [], 0, "CAN_COLLIDE"];
_object setdir _dir;
_object setpos _location;
_object setVariable ["153912", _class, true];
sleep 0.1;
player setVehicleInit _server;
processInitCommands;
clearVehicleInit player;
hint "Vehicle Spawned, Code Activated, Still Blowing Up?"

I knew why my previous scripts were blowing up, but I haven no clue what's wrong right now.
Code: [Select]
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_object]I'm executing this through the server. This SHOULD be adding it to the database, but I don't know why it's not. I looked through the code, and they haven't added any extra protection (that I can see)

Any advice to my script? (That's a new one)
I did this code pretty much myself, so it's not the best. If you see any mistakes I made, point them out please.

Question: How is the server supposed to know what _object even is?

there are other ways to do it sobeit

take a look at the server files.
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

johnbowa

  • Intentional Cheater
  • **
  • Posts: 29
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #73 on: June 24, 2012, 10:59:41 am »
:D They check the hive now, *Sarcastic* I gotz global banndez.

No, I knew I was close (or maybe not close at all) but was just missing something. I don't need to cheat anymore seeing as I have a group of friends who now play. Now it's actually fun to play legit! (Usually is fun to play legit)

s0beit

  • Relentless Teamkiller
  • **
  • Posts: 94
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #74 on: June 24, 2012, 03:07:37 pm »
:D They check the hive now, *Sarcastic* I gotz global banndez.

No, I knew I was close (or maybe not close at all) but was just missing something. I don't need to cheat anymore seeing as I have a group of friends who now play. Now it's actually fun to play legit! (Usually is fun to play legit)

I was able to complete it, but like Medic said it's not something that's wise to do. You're honestly better off with local vehicles.
If you still want this (seems you don't), it's as easy as understanding how executing code on the server is supposed to work. (or even code in general)

The hint was in my last post.