Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

How to get the server folder to run on my server instead of the mission pbo.


Best Answer Melbo , 01 July 2013 - 09:35 AM

Simply make a folder in the base dir of your OA folder. Stick everything in there you want serverside then edit the relevant init to your new dir.

 

Example [] execVM "Serverside\server\donators\loadout.sqf";

Go to the full post »


  • Please log in to reply
56 replies to this topic

#41
mozzmanau

mozzmanau

    Camping Up North

  • Forum Member
  • 30 posts
  • Country: Country Flag

Anyone know why this would be happening? It seems to  be running through the scripts in the init.sqf and error straight efter the relations.sqf is run.

 

Ive tried just copying over the client only pbo and the server folder as well as setting it up as a mod but this always comes up.

 

16:04:05 "WASTELAND SERVER - Initilizing Server Compile"
16:04:05 "WASTELAND SERVER - Initilizing Server Relations"
16:04:05 Error in expression <;
_recompile = (count _this) > 0;

 

Because of this vehicles weapons etc dont spawn in.

 

Thanks



#42
KiloSwiss

KiloSwiss

    100+ Post Club

  • Forum Member
  • 455 posts
  • Country: Country Flag

It is not clear what You did before this error occured.

 

What did you change/edit exactly?

 

Which file produces this "Error in expression"?

 

Do you have a backup from before the last changes were made and does this Missionfile load without producing any errors?

 

Greez KiloSwiss



#43
mozzmanau

mozzmanau

    Camping Up North

  • Forum Member
  • 30 posts
  • Country: Country Flag

1 thing i did was simply move the server folder over to the root folder of the server. Recreated the PBO without the server folder in it and launched it that way. Im running on a Vilayer server.

 

2nd thing i did was to run it as a mod as you stated in your previous post.

 

It looks like its going through the server's init.sqf and it looks like it fails when it reaches the line relations.sqf.

 

Ill post the whole section of the log file. This is the section that shows what happens when i try to start it with the server folder on the server. 

 

Keep in mind it loads up the admins.sqf and servervars.sqf

 

=====================================================================
Exe timestamp: 2014/07/03 15:53:18
Current time:  2014/09/19 16:03:44
 
Version 1.63.125548
16:03:44 Mission Oz.Wasteland.Chernarus: Number of roles (121) is different from 'description.ext::Header::maxPlayer' (81)
16:03:45 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:45 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:45 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:45 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:45 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:45 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:45 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:45 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:45 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:45 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:45 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:45 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:45 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:45 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:45 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:45 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:45 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:45 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:46 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:46 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:46 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:46 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:46 Server error: Player without identity Flatulence Man (id 1033725775)
16:03:59 Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\wlk\non\non\amovpercmwlksnonwnondf.rtm differs (looped now 0)! MoveName: amovpercmstpsnonwnondnon_amovpercmstpsraswpstdnon
16:03:59 Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\wlk\non\non\amovpercmwlksnonwnondf.rtm differs (looped now 1)! MoveName: amovpercmrunsnonwbindf_rfl
16:04:01 "############################# Oz.Wasteland #############################"
16:04:01 "WASTELAND SERVER - Initilizing Server"
16:04:05 "WASTELAND SERVER - Initilizing Server Vars"
16:04:05 Error in expression <ars"];
 
CVG_weapons = [];
CVG_weapons = CVG_rifles;
CVG_weapons = CVG_weapons + >
16:04:05   Error position: <CVG_rifles;
CVG_weapons = CVG_weapons + >
16:04:05   Error Undefined variable in expression: cvg_rifles
16:04:05 File server\functions\serverVars.sqf, line 18
16:04:05 "WASTELAND SERVER - Initilizing Server Compile"
16:04:05 "WASTELAND SERVER - Initilizing Server Relations"
16:04:05 Error in expression <;
_recompile = (count _this) > 0;
 
 
if (BIS_fnc_init && !_recompile) exitwith {t>
16:04:05   Error position: <BIS_fnc_init && !_recompile) exitwith {t>
16:04:05   Error Undefined variable in expression: bis_fnc_init
16:04:05 File ca\Modules\Functions\init.sqf, line 28
16:05:24 Client: Remote object 2:424 not found
16:05:24 Client: Remote object 2:425 not found
16:05:24 Client: Remote object 2:426 not found
 
 
Here is what my server init.sqf looks like
 
 
// @file Version: 1.0
// @file Name: init.sqf
// @file Author: [404] Deadbeat, [404] Costlyy
// @file Created: 20/11/2012 05:19
// @file Description: The server init.
// @file Args:
 
#include "setup.sqf"
if(!X_Server) exitWith {};
 
sideMissions = 1;
serverSpawning = 1;
 
//Execute Server Side Scripts.
[] execVM "server\admins.sqf";
[] execVM "server\functions\serverVars.sqf";
_serverCompiledScripts = [] execVM "server\functions\serverCompile.sqf";
[] execVM "server\functions\broadcaster.sqf";
[] execVM "server\functions\relations.sqf"; (Looks like its failing here)
[] execVM "server\functions\serverTimeSync.sqf";
[] execVM "server\functions\antiCheatServer.sqf";
waitUntil{scriptDone _serverCompiledScripts};
 
diag_log format["WASTELAND SERVER - Server Complie Finished"];
 
#ifdef __DEBUG__
#else
//Execute Server Spawning.
if (serverSpawning == 1) then {
    diag_log format["WASTELAND SERVER - Initilizing Server Spawning"];
_vehSpawn = [] ExecVM "server\functions\vehicleSpawning.sqf";
waitUntil{sleep 0.1; scriptDone _vehSpawn};
    _objSpawn = [] ExecVM "server\functions\objectsSpawning.sqf";
waitUntil{sleep 0.1; scriptDone _objSpawn};
    _gunSpawn = [] ExecVM "server\functions\staticGunSpawning.sqf";
waitUntil{sleep 0.1; scriptDone _gunSpawn};
    _heliSpawn = [] ExecVM "server\functions\staticHeliSpawning.sqf";
    waitUntil{sleep 0.1; scriptDone _heliSpawn};
    _markerClean = [] ExecVM "server\functions\cleanMarkers.sqf";
    waitUntil{sleep 0.1; scriptDone _markerClean};
};
#endif
//Execute Server Missions.
if (sideMissions == 1) then {
diag_log format["WASTELAND SERVER - Initilizing Missions"];
    [] execVM "server\missions\sideMissionController.sqf";
    sleep 5;
    [] execVM "server\missions\mainMissionController.sqf";
    //sleep 60;
    //[] execVM "server\missions\cqMissionController.sqf";
    //[] execVM "server\missions\worldMissionController.sqf";
};
 
if (isDedicated) then {
_id = [] execFSM "server\WastelandServClean.fsm";
};


#44
mozzmanau

mozzmanau

    Camping Up North

  • Forum Member
  • 30 posts
  • Country: Country Flag

Heres what a successful start looks like

 

Version 1.63.125548
16:10:11 Mission Oz.Wasteland.Chernarus: Number of roles (121) is different from 'description.ext::Header::maxPlayer' (81)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:12 Server error: Player without identity Flatulence Man (id 1420421757)
16:10:22 Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\wlk\non\non\amovpercmwlksnonwnondf.rtm differs (looped now 0)! MoveName: amovpercmstpsnonwnondnon_amovpercmstpsraswpstdnon
16:10:22 Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\wlk\non\non\amovpercmwlksnonwnondf.rtm differs (looped now 1)! MoveName: amovpercmrunsnonwbindf_rfl
16:10:24 "############################# Oz.Wasteland #############################"
16:10:24 "WASTELAND SERVER - Initilizing Server"
16:10:29 "WASTELAND SERVER - Initilizing Server Vars"
16:10:29 Error in expression <ars"];
 
CVG_weapons = [];
CVG_weapons = CVG_rifles;
CVG_weapons = CVG_weapons + >
16:10:29   Error position: <CVG_rifles;
CVG_weapons = CVG_weapons + >
16:10:29   Error Undefined variable in expression: cvg_rifles
16:10:29 File mpmissions\__cur_mp.Chernarus\server\functions\serverVars.sqf, line 18
16:10:29 "WASTELAND SERVER - Initilizing Server Compile"
16:10:29 "WASTELAND SERVER - Initilizing Server Relations"
16:10:29 "WASTELAND SERVER - Server Complie Finished"
16:10:29 "WASTELAND SERVER - Initilizing Server Spawning"
16:10:29 Error in expression <;
_recompile = (count _this) > 0;
 
 
if (BIS_fnc_init && !_recompile) exitwith {t>
16:10:29   Error position: <BIS_fnc_init && !_recompile) exitwith {t>
16:10:29   Error Undefined variable in expression: bis_fnc_init
16:10:29 File ca\Modules\Functions\init.sqf, line 28
16:10:55 "WASTELAND SERVER - 1180 Vehicles Spawned"
16:11:37 "WASTELAND SERVER - 1540 Objects Spawned"
16:11:39 "WASTELAND SERVER - 39 Static Guns Spawned"
16:11:42 "WASTELAND SERVER - 15 Static helis Spawned"
16:11:42 "WASTELAND SERVER - Spawn markers cleaned up"
16:11:42 "WASTELAND SERVER - Initilizing Missions"
16:11:42 "WASTELAND SERVER - Started Side Mission State"
16:11:42 "DEBUG - Side Mission random index = 3 / 5"
16:11:42 "WASTELAND SERVER - Execute New Side Mission: mission_SmallHeli"
16:11:42 "WASTELAND SERVER - Side Mission Started: Immobile Small Helicopter"
16:11:47 "WASTELAND SERVER - Started Main Mission State"
16:11:47 "DEBUG - Main Mission random index = 0 / 9"
16:11:47 "WASTELAND SERVER - Execute New Main Mission: mission_SupplyDrop"
16:11:47 "CLEANUP: INITIALIZING CLEANUP SCRIPT"
16:11:47 "WASTELAND SERVER - Main Mission Started: C130 Supply Drop"
16:11:47 "WASTELAND SERVER - Main Mission Waiting to run: C130 Supply Drop"
16:12:39 Client: Remote object 2:424 not found
16:12:39 Client: Remote object 2:425 not found
16:12:39 Client: Remote object 2:426 not found


#45
KiloSwiss

KiloSwiss

    100+ Post Club

  • Forum Member
  • 455 posts
  • Country: Country Flag

A "successfull" start will not produce/log any form of Script error in the RPT!

 

Try to fix the Errors first.

The logfile tells You the exact name and folder and the line inside the .sqf where the Error occurs.

\server\functions\serverVars.sqf, line 18

This is clearly not the relations.sqf that produces the Error.

 

 

When You fixed those Error(s), edit the Mission file again to run the serverside scripts from outside the PBO.

Also tell us which method you used, since I posted two and they are different.

 

Greez KiloSwiss

 

P.S.

Please use SPOILER Tags to post long texts like Your Logfiles, also use the Edit function instead of doubleposting.


Edited by KiloSwiss, 19 September 2014 - 09:36 AM.


#46
mozzmanau

mozzmanau

    Camping Up North

  • Forum Member
  • 30 posts
  • Country: Country Flag

OK I Appreciate your response but the problem has something to do with Vilayer i think. If i run it locally i dont have the problem at all. 

 

Ignore this \server\functions\serverVars.sqf, line 18 as this is to with the update to 1.63. Nothing else

 

The error lies somewhere within the servers init.sqf. It goes through all the sqf files that need o be loaded and then fails around the relation.sqf file.

 

Im at a loss as to what it could be. I have tried both the addon @server and the simple method of just copying the server folder to the root folder on the server and produce the same sort of errors



#47
mozzmanau

mozzmanau

    Camping Up North

  • Forum Member
  • 30 posts
  • Country: Country Flag

Ok I have changed hosts and YES it was a problem with Sh***y Vilayer nut, now i only have 1 more problem, it cannot find the vehicle.sqf, everything else from the server folder is loading up, missions, weapons, vehicles but the vehicle respawn script (vehicle.sqf) isnt working. Ive tried a few different things to get it to work with no luck. Anyone have any suggestions?



#48
Schatten

Schatten

    Survivor

  • Forum Member
  • 15 posts
  • LocationMinsk
  • Country: Country Flag

Ok I have changed hosts and YES it was a problem with Sh***y Vilayer nut, now i only have 1 more problem, it cannot find the vehicle.sqf, everything else from the server folder is loading up, missions, weapons, vehicles but the vehicle respawn script (vehicle.sqf) isnt working. Ive tried a few different things to get it to work with no luck. Anyone have any suggestions?

Did you change path to vehicle.sqf in @server\spawning\vehicleCreation.sqf from "server\functions\vehicle.sqf" to "\@server\functions\vehicle.sqf"?

Also can you provide details from RPT?


Edited by Schatten, 07 October 2014 - 02:04 PM.


#49
mozzmanau

mozzmanau

    Camping Up North

  • Forum Member
  • 30 posts
  • Country: Country Flag

Hi Schatten

 

I seemed to get this working by creating a folder called server\functions in my main pbo and copying the vehicles.sqf and setup.sqf files into it, its not ideal but it works. I have seen everyone elses servers and they dont do this which means they are either running another script for vehicle respawning or they are not having vehicles respawn, could be a combination of both too.

 

Weird thing is that with UTES i had to use the @server method and with chernarus i had to use the server method. If i used the @server method on chernarus it would get stuck at wait for host. If i used the server method with UTES i would get errors saying it couldnt find the defend.sqf .Strange but its working now.



#50
KiloSwiss

KiloSwiss

    100+ Post Club

  • Forum Member
  • 455 posts
  • Country: Country Flag

Just to make things clear:

My method on how to use the @Server Folder is wrong!

It works, but not the way it was intendet, the game still loads the files from the folder and not as an addon.

 

I'm sorry for handing out wrong information (shame on me!) and I will update my Post in the upcoming days (or better make a new post here).

 

For the vehicle respawn:

Instead of running the vehicle respawn script via vehicle init, you can simply execVM the Script on vehicle creation, This will execute the Script only on the Server, so it is no longer needed to be in the client downloaded mission.PBO

Or one could use a new Vehicle respawn script (like I do), that runs only on the server, which makes the default script obsolete.

 

Greez KiloSwiss


Edited by KiloSwiss, 08 October 2014 - 09:29 AM.


#51
Schatten

Schatten

    Survivor

  • Forum Member
  • 15 posts
  • LocationMinsk
  • Country: Country Flag

My method on how to use the @Server Folder is wrong!

It works, but not the way it was intendet, the game still loads the files from the folder and not as an addon.

Strange, but it works fine for me. At least on my private server. Although I don't use vehicle.sqf.



#52
KiloSwiss

KiloSwiss

    100+ Post Club

  • Forum Member
  • 455 posts
  • Country: Country Flag

Yes it works, but it's not "the right way" like I wrote, it's just a slightly different way than the first one.



#53
mozzmanau

mozzmanau

    Camping Up North

  • Forum Member
  • 30 posts
  • Country: Country Flag

 
For the vehicle respawn:
Instead of running the vehicle respawn script via vehicle init, you can simply execVM the Script on vehicle creation, This will execute the Script only on the Server, so it is no longer needed to be in the client downloaded mission.PBO
Or one could use a new Vehicle respawn script (like I do), that runs only on the server, which makes the default script obsolete.
 
Greez KiloSwiss[/quote]

Thanks for the kilo. I was thinking if using another script as will but haven't been able to find one.

#54
mozzmanau

mozzmanau

    Camping Up North

  • Forum Member
  • 30 posts
  • Country: Country Flag

Just to make things clear:

My method on how to use the @Server Folder is wrong!

It works, but not the way it was intendet, the game still loads the files from the folder and not as an addon.

 

I'm sorry for handing out wrong information (shame on me!) and I will update my Post in the upcoming days (or better make a new post here).

 

For the vehicle respawn:

Instead of running the vehicle respawn script via vehicle init, you can simply execVM the Script on vehicle creation, This will execute the Script only on the Server, so it is no longer needed to be in the client downloaded mission.PBO

Or one could use a new Vehicle respawn script (like I do), that runs only on the server, which makes the default script obsolete.

 

Greez KiloSwiss

Where do you call it from? Tried to work this out with no luck though



#55
Schatten

Schatten

    Survivor

  • Forum Member
  • 15 posts
  • LocationMinsk
  • Country: Country Flag

Where do you call it from? Tried to work this out with no luck though

If I'm not mistaken, you need replace in server\spawning\vehicleCreation.sqf these strings

_car setVehicleInit "nul=[this, 300, 3600, 0, false] execVM 'server\functions\vehicle.sqf'";
processInitCommands;

to

[_car, 300, 3600, 0, false] execVM "server\functions\vehicle.sqf";


#56
mozzmanau

mozzmanau

    Camping Up North

  • Forum Member
  • 30 posts
  • Country: Country Flag

 

If I'm not mistaken, you need replace in server\spawning\vehicleCreation.sqf these strings

_car setVehicleInit "nul=[this, 300, 3600, 0, false] execVM 'server\functions\vehicle.sqf'";
processInitCommands;

to

[_car, 300, 3600, 0, false] execVM "server\functions\vehicle.sqf";

Schatten thank you so much for this, i think its working ill test it over the next couple of days and let you know.


Edited by mozzmanau, 13 October 2014 - 03:50 AM.


#57
mozzmanau

mozzmanau

    Camping Up North

  • Forum Member
  • 30 posts
  • Country: Country Flag

Schatten thank you so much for this, i think its working ill test it over the next couple of days and let you know.


Ok so this works on chernarus And taviana but not on zargabad or utes. Good old arma




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users