Desire
-
Posts
93 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by Desire
-
-
-
Dont do #restart as it only restarts the mission and not the server, Do #shutdown and then for job id="9" make it call a .bat file which is provided to start the server and what you are probably already using.
Example:
<job id="4"> <time>08:00:00</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>#shutdown</cmd> <cmdtype>0</cmdtype> </job> <job id="5"> <time>08:00:00</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\AStartNapf.bat</cmd> <cmdtype>1</cmdtype> </job>
Do you know where I would be able to locate a bat file on a vilayer server?
-
I use BEC. For some reason, this isn't restarting the server after 2 hours!Code:
<?xml version="1.0"?> <Scheduler> <!-- See: http://ibattle.org/install-and-configure/setting-up-the-scheduler --> <!-- Restart Messages --> <job id="0"> <time>010000</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 Server Restart in 1 hour</cmd> <cmdtype>0</cmdtype> </job> <job id="1"> <time>013000</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 Server Restart in 30 minutes</cmd> <cmdtype>0</cmdtype> </job> <job id="2"> <time>015000</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 Server Restart in 10 minutes</cmd> <cmdtype>0</cmdtype> </job> <job id="3"> <time>015500</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 Server Restart in 5 minutes</cmd> <cmdtype>0</cmdtype> </job> <job id="4"> <time>015900</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 Server Restart in 60 seconds, logout to avoid gear loss</cmd> <cmdtype>0</cmdtype> </job> <job id="5"> <time>015930</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 Server Restart in 30 seconds</cmd> <cmdtype>0</cmdtype> </job> <job id="6"> <time>015950</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>say -1 Server Restart in 10 seconds</cmd> <cmdtype>0</cmdtype> </job> <!-- run every 1h with a 5min delay on startup --> <job id="7"> <time>0120000</time> <delay>000500</delay> <day>1,2,3,4,5,6,7</day> <loop>1</loop> <cmd>say -1 ServerIP: 216.231.138.224:2302 | Website: http://www.plasmagaminggm.enjin.com | Tell your friends! </cmd> <cmdtype>0</cmdtype> </job> <!-- RESTART SERVER --> <job id="8"> <time>020000</time> <delay>000000</delay> <day>1,2,3,4,5,6,7</day> <loop>0</loop> <cmd>#restart</cmd> <cmdtype>1</cmdtype> </job> </Scheduler>
Please help <3
-
-
In my HiveExt.ini, I have this
[Time] ;Possible values: Local, Custom, Static Type = Static ;If using Custom type, offset from UTC in hours (can be negative as well) ;Offset = 0 ;If using Static type (Hour value always the same on every server start), the value (0-24) to set the Hour to ;Hour = 11
but it's still night when the server is started..
-
-
did you move the player_build.sqf?
-
-
Yes. Most of changes will only appear after server restart. If editing players, they need to relog for changes to kick in. Stuff like item quantity for traders happens instantly.
thanks, I got everything working and found out I could do more then just add items to traders :)
-
So you probably have a database on vilayer. You probably set a password to connect to it. I have no idea how vilayer takes care of this. But you use sql client to connect to a database.
I logged on to the heidiSQL, now I found this http://gyazo.com/644312d5197a7cf11d090e26c4794c82 Can I just make my own things and it will add it to trader?
-
heidiSQL is a good one and free. More common one is phpMyAdmin - a web based client, sometimes provided by server host (dayz.st)
I use vilayer, how would I connect to heidiSQL?
-
You need to create your own *.sql file.
Name it: custom_stuff_for_traders.sql and after you've added what you want to it, run it on an sql client you use.
So it should look like this:
custom_stuff_for_traders.sql
INSERT INTO `traders_data` (`item`,`qty`,`buy`,`sell`,`order`,`tid`,`afile`) VALUES ('["DDOPP_X26",3]', 1000, '[2,"ItemGoldBar",1]', '[1,"ItemGoldBar",1]',0, 002, 'trade_weapons'), ('["DDOPP_X26_b",3]', 1000, '[2,"ItemGoldBar",1]', '[1,"ItemGoldBar",1]',0, 002, 'trade_weapons'), ('["DDOPP_X3",3]', 1000, '[2,"ItemGoldBar",1]', '[1,"ItemGoldBar",1]',0, 002, 'trade_weapons'), ('["DDOPP_X3_b",3]', 1000, '[2,"ItemGoldBar",1]', '[1,"ItemGoldBar",1]',0, 002, 'trade_weapons'), ('["RH_deagle",3]', 1000, '[2,"ItemGoldBar",1]', '[1,"ItemGoldBar",1]',0, 002, 'trade_weapons'), ('["RH_Deagleg",3]', 1000, '[2,"ItemGoldBar",1]', '[1,"ItemGoldBar",1]',0, 002, 'trade_weapons'), ('["RH_Deagles",3]', 1000, '[2,"ItemGoldBar",1]', '[1,"ItemGoldBar",1]',0, 002, 'trade_weapons');
What would a sql client be? I'm kinda confused about this whole thing, it's kinda weird.. What do you mean run it?
-
I have been looking at this tutorial. http://epochmod.com/forum/index.php?/topic/8487-tutorial-how-to-add-itemsvehiclesweapons-to-traders/
I got lost @ First of all, at the TOP of your .SQL you need to add this.. How do I find my SQL? I have been looking for awhile now, i'm on vilayer, this is starting to get frustrating.. Please help.
-
For the LAST INDEX enter the last id used in your traders_data. On an unaltered server, this number is 7574
How do I find out the last id I used? All I have in my traders_data is a bunch of null signs and stuff.
-
So, I have been wanting to add some custom loots spawns in the industrial like "Land_Hangar_2" How would I add it? I can't seem to find the folder or file.
-
So, I added this DZE_GodModeBase = true; to my init.sqf and now when I get on, i'm not able to remove anything. I thought this was a god mode on the base, but when I created the base, I don't have the option to remove? any ideas?
-
what mods do you have added?
Many. A repair / auto refuel ( service point ) script, WAI missions, Action menu, Hemp, R3F Tow, infiSTAR. This only works on some vehicles, it's pretty weird.
-
When does the plant respawn?
-
For some reason, I can repair a vehicle with only a toolbox. Nothing else. I don't even need wheels or anything. Also, I'm not able to salvage. What could be wrong?
-
i'm assuming that the map markers will be for the new area you made for the server.
one way is to find a building you placed that's centrally placed (or close to) in the new area then find that object in the SQF file and the coords will look either like -
[14676.693, 16651.602, -0.00017356873]
or -
[14676.693, 16651.602]
So, if they look like the first set you need to swap the middle number and the most right number around so it would look like -
[14676.693, -0.00017356873, 16651.602]
And if they look like the second set you just need to add a 0 in the middle of them so it would look like -
[14676.693, 0, 16651.602]
And there is the coordinates you need :)
Thank you! it worked like a charm!
-
open the SQF file for that map edit you made and find all the buildings that aren;t spawning loot and change their prefix from
MAP_
to
LAND_
Thank you! Last question, how would I get coordinates like this 10948.426,-10.727827,654.90265 So that I can add custom map markers?
-
here is a tiny cut-out of something i made for my server - it only includes the starting code, 1 object and the end code. but that's all the example you need. this is the mission.sqf file saved in user missions.
activateAddons [ "map_eu" ]; activateAddons ["map_eu"]; initAmbientLife; _this = createCenter west; _center_0 = _this; _group_0 = createGroup _center_0; _unit_0 = objNull; if (true) then { _this = _group_0 createUnit ["BAF_Soldier_AA_W", [14675.053, 16635.396], [], 0, "CAN_COLLIDE"]; _unit_0 = _this; _this setUnitAbility 0.60000002; if (true) then {_group_0 selectLeader _this;}; if (true) then {selectPlayer _this;}; if (true) then {setPlayable _this;}; }; _vehicle_23 = objNull; if (true) then { _this = createVehicle ["MAP_Mil_Barracks_i", [14676.693, 16651.602, -0.00017356873], [], 0, "CAN_COLLIDE"]; _vehicle_23 = _this; _this setPos [14676.693, 16651.602, -0.00017356873]; }; processInitCommands; runInitScript; finishMissionInit;
you need to delete all code that comes above the first '_vehicle_XX' line. then delete the last 3 lines.
save it, put it somewhere on your server files, not your mission file. Example would be "\z\addons\dayz_server\MapAdditions\example.sqf";
now open up your 'server_functions.sqf' file and at the very bottom put
[] ExecVM "\z\addons\dayz_server\MapAdditions\example.sqf";
save all the work, start up your server and it will be on your map waiting for you :)
Yeah, Thanks man :) I figured out that I left some code that prevented it from loading.. It works now though. is there a reason why items aren't spawning in the new buildings I placed?
-
I added some buildings to my map, but they don't spawn. How do I add spawns to these new buildings? They are land_mil_Barracks_i btw. Which is the original barracks you see at certain airfields.. btw, map is Taviana.
-
For the past 2-3 hours, I have been editing my map. I finally got it done and did the steps that I was told to do. It still doesn't work.
Here is where my maps folder is located : http://gyazo.com/39f2ffe239be4f938b0eb3708a78d471
Inside my maps folder is my Outpost.sqf folder, which includes all of this.. : http://pastebin.com/jNNpBwJi
and inside my server_functions is this
server_setLocalObjVars = { private ["_obj","_holder","_weapons","_magazines","_backpacks","_player","_objectID","_objectUID"]; _obj = _this select 0; _holder = _this select 1; _player = _this select 2; _objectID = _obj getVariable["ObjectID","0"]; _objectUID = _obj getVariable["ObjectUID","0"]; _weapons = getWeaponCargo _obj; _magazines = getMagazineCargo _obj; _backpacks = getBackpackCargo _obj; deleteVehicle _obj; _holder setVariable ["WeaponCargo", _weapons]; _holder setVariable ["MagazineCargo", _magazines]; _holder setVariable ["BackpackCargo", _backpacks]; diag_log format["SAFE LOCKED: ID:%1 UID:%2 BY %3(%4)", _objectID, _objectUID, (name _player), (getPlayerUID _player)]; }; // Map Custom execVM "\z\addons\dayz_server\Maps\Outpost.sqf";
What did I do wrong? Please help!
infiSTAR Admin Tool - Need help!
in Scripting
Posted
Watch this youtube video. It's really detailed.