Does it mean that i have wrong classname, or something else ?
22-05-14
HDarkseer
Re: Getting cars working (123800)
From what I found there is a working system to spawn the cars already implemented. To get it to work you'll need to:
Add string in *Game*\MpMissions\dayzea.ChernarusPlus\init.sqf:
init_spawnCar = compile preprocessFileLineNumbers "\modulesDayZ\SpawnCar.sqf";
Call init_spawnCar;
This should spawn the cars but to actually make them work you'll need to:
go to vehicles_wheeled.pbo >> config.binChange the class CfgMovesBasic to class CfgMovesBasic2
and class CfgMovesMaleSdr: CfgMovesBasic to class CfgMovesMaleSdr2: CfgMovesBasic2
for the default driver \ passenger (cargo) animation i would recommend a default sit animation (f3), with this you will have pretty accurate head position that will allow you to use first person camera while in the car.
file="\dz\anims\data\anim\sdr\mov\sit\stp\non\non\CdzpAmovPsitMstpSnonWnonDnon.rtm";
22-05-14
bindik
Re: Getting cars working (123800)
Edited: I use this system, but i didnt use steps u write here.
As u can see up there, this is what is in RPT file
Ehm, i was thinking and i had an idea
2014/05/22, 17:56:39 Cannot create non-ai vehicle KIA_Skodovka_Cargo01,
2014/05/22, 17:56:39 Cannot create non-ai vehicle ThisCarShouldNotSpawnBecauseItDoesNotExists,
It still can be bad classname, but it does not have to be :(
- - - Updated - - -
In config.bin i found this CfgNonAIVehicles so i am gonna try to find something
22-05-14
eikeltjeshier
Re: Getting cars working (123800)
The vehicles_wheeled.pbo u have is it 52Kb ? , if so u dont have any cars
U need a 183 Mb file size of it (u can use the 1 in the DayzMP.tk versions 44 or 45)
22-05-14
bindik
Re: Getting cars working (123800)
Quote:
Originally Posted by eikeltjeshier
The vehicles_wheeled.pbo u have is it 52Kb ? , if so u dont have any cars
U need a 183 Mb file size of it (u can use the 1 in the DayzMP.tk versions 44 or 45)
Thank you!! Gonna test it :)
e: Corrupted data detected, when starting server
22-05-14
eikeltjeshier
Re: Getting cars working (123800)
Yes that happens with that v2 version (0.44.0000) i use the 044 123800 so then no problem
DayZ-Server-123800.rar with the dayzserver123.exe , with the DayZServerV1.1.rar u get a dayzserver.exe that checks bisign files
It also deny u to alter any pbo file , wich i need (editted the server_dat.pbo so i dont need the Hosts altering)
But it also refuses the vehicles_wheeled from other dayz
22-05-14
bindik
Re: Getting cars working (123800)
Yup, i am already looking into it, i will edit the tutorial, and everything (Tomorrow), btw thanks for the info about server_dat.pbo
22-05-14
eikeltjeshier
Re: Getting cars working (123800)
Quote:
Originally Posted by waas
hey man ! a noob question, how can i open config.bin ?
For .pbo manipulation i am using CPBO (Usable in .bat (example cpbo -e mypbo.pbo -- extract or cpbo -p folder --- pack)
and what cant cpbo do will do pbomanager
22-05-14
eikeltjeshier
Re: Getting cars working (123800)
used to use cpbo for Arma2(dayz) but not anymore
Depbo is a simple doubleclick on the .pbo file
Makepbo a simple drag/drop just pull the new-edit on Makepbo.exe
Extractpbo (a Gui-version depbo and derap for pbo-files)
23-05-14
PersonalityPi
Re: Getting cars working (123800)
Anyone mind uploading there vehicles_wheeled.pbo (The bigger non 52kb one) don't really want to download the game all over again for a pbo so small.
Thanks :) What are you guys using to spawn the vehicles? (The script that was included with the DayZ Server Files inside modulesDayZ don't work anymore)
23-05-14
bindik
Re: Getting cars working (123800)
It works, you just remove that include or compile line, and copy&paste it into init.sqf
23-05-14
PersonalityPi
Re: Getting cars working (123800)
Also getting alot of errors in the RPT
2014/05/23, 4:32:09 !!! cfgLootSpawns :: Unknown class name "PoliceCap"
2014/05/23, 4:32:09 !!! cfgLootSpawns :: Unknown class name "ConstructionHelmet_Lime"
2014/05/23, 4:32:09 !!! cfgLootSpawns :: Unknown class name "MotoHelmet_Grey"
2014/05/23, 4:32:09 !!! cfgLootSpawns :: Unknown class name "MotoHelmet_Lime"
And no items spawning in the world :<
23-05-14
eikeltjeshier
Re: Getting cars working (123800)
Those errors dont hurt :lol:
No items did you look for them in houses sheds car/truck wrecks , none there look if u got proxyexport.bin in the rootfolder Dayz :?:
If it aint then de-quote //exportProxies [_position,200000]; ,in MPMissions\dayz_Auto.ChernarusPlus\init.sqf :thumbup1:
Or simple copy it from the Domo-rar :grr:
Yeah it must have been the proxyexport.bin got one and now items (well some aleast not alot) are spawning in. One last question ^^. Where are the spawn locations located in the files? (Not to edit them just curious and to get the cooridates from them)
23-05-14
eikeltjeshier
Re: Getting cars working (123800)
Quote:
Originally Posted by PersonalityPi
Yeah it must have been the proxyexport.bin got one and now items (well some aleast not alot) are spawning in. One last question ^^. Where are the spawn locations located in the files? (Not to edit them just curious and to get the cooridates from them)
Share your wisdom with us. Also, what sql file do we use with saving. Since your way is different and i didn't see a SQL file in the thread
23-05-14
bindik
Re: Getting cars working (123800)
It does not use database, everything is saved in saves\youruid.json
23-05-14
eikeltjeshier
Re: Getting cars working (123800)
A simple Vehicle spawn in MPMissions\dayz_Auto.ChernarusPlus\init.sqf
DZ_MAX_CAR = 5; // well upto U , either u want a 1000 or just a few (5 does it they all go mad to get some wheelz)
init_wheelz = compile preprocessFileLineNumbers "Wheelz.sqf";
call init_wheelz;
( just paste it in )
then make Wheelz.sqf in MPMissions\dayz_Auto.ChernarusPlus , add this (and next is up to you to wich cars appear or where on the map)
It does not use database, everything is saved in saves\youruid.json
Yeah noticed just after I posted :). Failure on my part. Anyway, I added in the vehicle and went to see it got a warning/error when I joined back and there was no vehicle there. not sure what im doing wrong.
23-05-14
bindik
Re: Getting cars working (123800)
But still, does it save after restart ?
- - - Updated - - -
Make sure you use for example classname "skoda" , i used something different and it had error that non-ai thingie
23-05-14
PersonalityPi
Re: Getting cars working (123800)
Quote:
Originally Posted by bindik
But still, does it save after restart ?
- - - Updated - - -
Make sure you use for example classname "skoda" , i used something different and it had error that non-ai thingie
Saving works now. I must have just forgot to do something. In the logs it shows a warnign related to vehicles
2014/05/23, 5:53:22 Warning Message: No entry 'bin\config.bin/CfgVehicles/LandVehicle/Reflectors/Left.radius'.
2014/05/23, 5:53:22 Warning Message: '/' is not a value
But no vehicle.
23-05-14
bindik
Re: Getting cars working (123800)
That does it save after restart was not directed to you, i asked that other guy if the vehicles are saving after the restart :)))
23-05-14
PersonalityPi
Re: Getting cars working (123800)
Yeah all I get is that warning no vehicles. Must have messed up somewhere.
23-05-14
HDarkseer
Re: Getting cars working (123800)
Just tested the method to spawn a car near you but I can't see the car. It doesn't give me an error. I have a vehicles_wheeled.pbo bigger than 52kb. Any suggestions?
I am playing from the server(DayZ-Server-123800).
23-05-14
bindik
Re: Getting cars working (123800)
Are you sure you did the pos right ?
Vehicle spawn pos - X Z Y
Character Save pos - X Y Z
23-05-14
HDarkseer
Re: Getting cars working (123800)
Quote:
Originally Posted by bindik
Are you sure you did the pos right ?
Vehicle spawn pos - X Z Y
Character Save pos - X Y Z
I'm at "pos":[4052.07,370.125,11644.8] and the vehicle spawns on this position [4054.18, 11659.7, 0]
Could my vehicles_wheeled.pbo be the problem?
23-05-14
bindik
Re: Getting cars working (123800)
If it is 52kb then yes, if 180mb then nope, can you post me the line which are you spawning car with ?
BTW: Do you guys know how can i edit the DbLoad/SelectHost thingie ? It uses port 8080 i want it to use the port 80 or different one
Log file
2014/05/23, 14:27:10 DBLoadHost host: http://localhost:8080/DayZServlet/lud0/
Yup same as my, are you sure that you are at the place as the car is ? I mean this is somewhere near NWAF
23-05-14
HDarkseer
Re: Getting cars working (123800)
Yes next to the building with the prison.
23-05-14
bindik
Re: Getting cars working (123800)
Then i have no idea
23-05-14
HDarkseer
Re: Getting cars working (123800)
Can you give a link to a working vehicles_wheeled.pbo?
Just tried the now given here and it doesn't work for me as well.
23-05-14
eikeltjeshier
Re: Getting cars working (123800)
Quote:
Originally Posted by bindik
If it is 52kb then yes, if 180mb then nope, can you post me the line which are you spawning car with ?
BTW: Do you guys know how can i edit the DbLoad/SelectHost thingie ? It uses port 8080 i want it to use the port 80 or different one
Log file
2014/05/23, 14:27:10 DBLoadHost host: http://localhost:8080/DayZServlet/lud0/
in server_data.pbo resides config.cpp (derapped config.bin) u got adress = "http://localhost:8080/DayZServlet/";
and replace it with this
adress = "http://localhost/DayZServlet/";
i only open/save on localhost port 80
adress = "https://localhost/DayZServlet/"; // U need ssl_module in Apache
_position = [7500,7500,0];
//exportProxies [_position,200000]; // use this only when new server_data appears
call init_spawnZombies;
sleep 1;
importProxies;
spawnLoot [_position,30000,35000];
dbInitServer;
setTimeForScripts 0.03;
And then the MPMissions\dayz_Auto.ChernarusPlus\wheelz.sqf < u need to make this file with this inside
The cars respawn on the same place after a restart , so it can be a quick death if ambushed
Or look at Mizev`s script and u can make it more random with different cars on different places
23-05-14
bindik
Re: Getting cars working (123800)
Wait, how to edit config.bin ? Just notepad++ or some app to decompile it atp ?
Nevermind, got it
23-05-14
eikeltjeshier
Re: Getting cars working (123800)
Quote:
Originally Posted by bindik
Wait, how to edit config.bin ? Just notepad++ or some app to decompile it atp ?
Nevermind, got it
U need Derap for it , dunno if pbomanager does it (i dont use that)
Grap Makepbo ,Depbo ,DeRap and Extractpbo , and u got whats needed to simply open/edit pbo's
23-05-14
bindik
Re: Getting cars working (123800)
And how can i make bin again from that cpp/hcp files ? Makepbo is not working
That eliteness tool is awesome :)
23-05-14
waas
Re: Getting cars working (123800)
it doesnt work for me . :/
i got this in the server console : No entry 'bin\config.bin/CfgVehicles/LandVehicle/Reflectors/Left.radius'.
23-05-14
eikeltjeshier
Re: Getting cars working (123800)
Quote:
Originally Posted by bindik
And how can i make bin again from that cpp/hcp files ? Makepbo is not working
That eliteness tool is awesome :)
Makepbo does that per default ( u need to set it off if not desired ) always read teh manual
- - - Updated - - -
Quote:
Originally Posted by waas
it doesnt work for me . :/
i got this in the server console : No entry 'bin\config.bin/CfgVehicles/LandVehicle/Reflectors/Left.radius'.
Its no problem (that is u dont have lights kinda funny in the darkness tho )
24-05-14
linuxking51
Re: Getting cars working (123800)
I have the same problem in the server console : No entry 'bin\config.bin/CfgVehicles/LandVehicle/Reflectors/Left.radius'.
Car is not spawning help me pleas
24-05-14
eikeltjeshier
Re: Getting cars working (123800)
Quote:
Originally Posted by linuxking51
I have the same problem in the server console : No entry 'bin\config.bin/CfgVehicles/LandVehicle/Reflectors/Left.radius'.
Car is not spawning help me pleas
As i said before its a harmless error just click on continue
And just do as i said in post #45 , for me its working as explained
27-05-14
Mizev
Re: Getting cars working (123800)
"DZ_MAX_CAR = 20;" - No need to specify. I originally planned it in your script and then not considered necessary.
vehicles_wheeled.pbo must take from the 0.43 version, the later they removed vehicles
27-05-14
waas
Re: Getting cars working (123800)
i tried to add vehicles but i faield.
i use the first version of devdomo releases // v1 DayZ-Server-123800 +server exe update .in console 0.44.0000//
here is my edited init.sqf : http://kepfeltoltes.hu/140527/_j_bit...toltes.hu_.jpg (then i created the dayz_Auto.ChernarusPlus.pbo)
replaced the vehicles_wheeled.pbo with this https://mega.co.nz/#!cVgzAYjA!JtpQjy...9fp7CzuX9tGAoY --eikeltjeshier gave me.
if anyone could help I would be happy. :)
27-05-14
bindik
Re: Getting cars working (123800)
I dont use that include shitty
this is my init.sqf
DayZ-Server-123800.rar with the dayzserver123.exe , with the DayZServerV1.1.rar u get a dayzserver.exe that checks bisign files
It also deny u to alter any pbo file , wich i need (editted the server_dat.pbo so i dont need the Hosts altering)
But it also refuses the vehicles_wheeled from other dayz
hi, could you upload that exe doesn't check sign one ?
I try dazserver123.exe ...no work, dazserver.exe no work ( v1 or v2 same ) ...
04-06-14
eikeltjeshier
Re: Getting cars working (123800)
look for this 1 DayZServer-123800-update.rar in V1 megadownload
04-06-14
neo0210
Re: Getting cars working (123800)
Quote:
Originally Posted by eikeltjeshier
look for this 1 DayZServer-123800-update.rar in V1 megadownload
It's still show " Corrupted data detected", DayZServer 's size(9,726,976) ....
12-06-14
den1979
Re: Getting cars working (123800)
which script is responsible for landing in the car? please give an example
13-06-14
abxyxx
Re: Getting cars working (123800)
Can you get vehicles working with a legit steam copy of dayz, cause doesnt it not have the files?
13-06-14
eXtremousZ
Re: Getting cars working (123800)
Quote:
Originally Posted by abxyxx
Can you get vehicles working with a legit steam copy of dayz, cause doesnt it not have the files?
No, you can not.
13-06-14
abxyxx
Re: Getting cars working (123800)
On bindik's video where he is driving the car, he said he is using the official steam copy of the game
14-06-14
FatalLulz
Re: Getting cars working (123800)
@abxyxx You can, the server you join how ever must be a modded one. I'm not sure if there are downloads out there, but a quick google search will be able to show you how people do things like that :):