Jump to content
UWX

Loading/creating server mods

Recommended Posts

Hey everyone,

 

I hope this is the right place to ask this question...

 

I'm trying to make a mod that is run using the -serverMod parameter and having an issue. Basically, I have a folder structure like this:

 

@servermod

- addons

-- servermod(.pbo)

--- init.sqf

 

I've looked through the documentation and also code to several other mods and it looks like init.sqf should be automatically executed.

My config.cpp is:

class CfgPatches
{
	class servermod
	{
		units[] = {};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {"A3_Data_F","A3_Soft_F","A3_Soft_F_Offroad_01","A3_Characters_F"};
	};
};

 

My init.sqf  is:

diag_log "Testing hello 123";

Yet this never shows up in the server log file. There are no errors in the log either, the server loads and then loads whatever mission file I ask it to load, but for some reason I can't tell if init.sqf is being executed.

 

Clearly I'm doing something wrong, can anyone tell me? Google and Youtube  is really not helpful with this kind of stuff.

 

Thanks

 

Share this post


Link to post
Share on other sites

For some reason this forum won't let me edit my post, but I wanted to edit:

 

@servermod

- addons

-- servermod(.pbo)

--- init.sqf

--- config.cpp <---- this is also in there!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×