I did a write-up a while back on my site here that should help: Adding New Vehicles in DayZ SA v1.0+
I have yet to figure out how to spawn them with fluids good to go etc, but I spawn them fully fixed with a can of gas as cargo. It's up to the player to fill it up with the gas then use the can...
Double check your Options to see if Chat messages is Disabled. Enable them all and try again. If it still doesn't work try:
Scheduler.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Scheduler>
<job id='0'>
<day>1,2,3,4,5,6,7</day>
<start>000000</start>
<runtime>000010</runtime>...
Try this to see if it is working at all:
Scheduler.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<?xml-stylesheet href="acs.xsl" type="text/xsl" ?>
<Scheduler>
<!-- EXTERNAL COMMANDS -->
<job id="0">
<time>000005</time>
<delay>000000</delay>...
The error is telling you exactly what the prob. is:
""Can't compile mission init script" and "Unexpected statement 'serverTime'. "
serverTime shouldn't be in init.c. The error should also give you the line # of the problem.
EDIT:
The top of init.c should look something like this:
void main()
{...
"serverTime" shouldn't be in init.c. Only the line from my first post. What I was saying in the 3rd post was the settings you were referring to in the 2nd post, "Just turn off persistent time." You shouldn't have any issues if you only add the line from the first post.
serverTime="2015/4/8/12/23"; // Server Start Time // Initial ingame time of server. "SystemTime" means local time of machine. Another possibility is to set the time to some value in "YYYY/MM/DD/HH/MM" format, f.e. "2015/4/8/17/23" .
serverTimeAcceleration=1; //...
In init.c just above:
Weather weather = g_Game.GetWeather();
paste:
GetGame().GetWorld().SetDate(2018, 7, 1, 8, 30);
where GetGame().GetWorld().SetDate(YYYY, MM, DD, HH, MM);
For whatever reason serverTime in serverDZ.cfg doesn't work on my server anymore so I'm forced to FORCE it...
Steps to put wood piles back on the ground :
-In events.xml set ItemPlanks "active" variable to 0.
-Run the server. Join and check they are gone.
-Disconnect. Set "active" back to 1.
-Run the server. Join and check if they're on the ground.
You can do this for anything including vehicles. Just...
Are the tents not already 3888000? Mine are. I might have edited them a while back. I'll add all the classnames in the first post anyway so people can check.
EDIT: Should this be in Servers section maybe? If a moderator agrees can you move it there? Thx. Sorry.
They're gonna fix this soon because it's just stupid.
I'm sure there are other items that despawn way too soon, but for the Wire Mesh Barrier and Power Generator I Just searched, in types.xml, for the classnames "PowerGenerator" and "HescoBox"
Then changed their "lifetime" to "3888000" and...
Glad it worked out.
Another thing I saw today,
I had an issue with the Hordes where the town name was blank. I checked InfectedHordes.c and I think I found the problem. At line 104:
int totalPossibleTowns = m_HordePositions.Count();
int oRandValue =...
I had the same thing. Two variables I think need to be declared in DayZSurvival.c. Look for this:
ref AirDrop AirDropClass; // Class definition
bool m_debugmonitor;
//new vars
bool m_Debugmode;
bool m_NoThirst;
bool m_NoHunger;
bool m_NoStamina;
bool...
in init.c just below your character equip code (inside StartingEquipSetup) put:
EntityAI myVeh = EntityAI.Cast(GetGame().CreateObject("OffroadHatchback", player.GetPosition(), false, true));
myVeh.GetInventory().CreateAttachment("HatchbackWheel")...
You'd need to add the loadout to each one. Something like:
case 0:
itemEnt = player.GetInventory().CreateInInventory("PrisonUniformPants");
itemEnt = player.GetInventory().CreateInInventory("PrisonUniformJacket");
itemEnt =...
I was playing with vehicles a couple nights ago. Couldn't figure out a way to make them spawn out of events. I tried the way you wrote but with
<active>1</active>. I also tried with a child like:
<event name="VehicleOffroadHatchback">
<waves>0</waves>
<nominal>6</nominal>...
30 Plus (tested and working with DayZ 1.0.149918)
This script will respawn a player as 1 of 30 themed characters and add items to the loot-table that were omitted.
Here are a few of the outfits:
This script is for 0.63.148820 Experimental Server Only as it adds loot items that are not...
Copy Pasta ready:
For those that don't know, just replace the lines in cfgplayerspawnpoints.xml in the mpmissions\dayzOffline.chernarusplus folder. Tested. Works perfect.
Thanks Hicks!
PS: I made NWAF only spawn list if anyone wants to make their players confused and angry... ;)
I downloaded Tact's Taviana and it's missing dayz_code\Configs\CfgVehicles\CardboardBox.hpp so when a MedBox spawns it is empty. I haven't done this in a long time, but is it possible to #include the file CardboardBox.hpp in either dayz_server pbo or mission pbo\file? What are some other options...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.