Jump to content
IL-2 Series Forum

DServer and mods being ignored by the server


Recommended Posts

Stonehouse
Posted (edited)

Reposting a topic from the old forum in case it assists someone. Note the mods in question are ones that impact gameplay such as my AAAmod, AI Gunnery, Western bombs for A20 etc. The server doesn't need to care about cosmetic mods such as effects mods or terrain tile repaints as far as I am aware of currently.

Thread is here in case someone wants to read the discussion https://forum.il2sturmovik.com/topic/87461-dserver-and-mods-being-ignored/

But relevant info is:

So, the issue is that unlike locally hosted servers, dserver ignores mods in favour of scripts.gtp.

The workaround is to:

  • use ungtp on the server install to unpack scripts.gtp. 
  • use the results of the unpacking operation to create a jsgme mod containing the contents of scripts.gtp
  • move scripts.gtp out of the data folder of the server install - I moved it to the main IL2 folder - and possibly rename it so that the filename is no longer scripts. Possibly change the extension as well although I believe the file name is the important thing. e.g. ascripts.gtpx
  • use jsgme to enable the scripts gtp mod as the very first mod. This is important for reasons you are very likely aware of
  • then enable your server-side mods like AAAmod or AIGunnery mod. Essentially server-side mods are ones that alter play. So not things like AAA Heavy flak effects or multicoloured tracers. If you use EMG on your server then something like EMG AAA attack range mod would be a server-side mod as that's where EMG creates missions.
  • Start dserver etc and you should see the server-side mods in action.

I used a simple mod to hugely increase ROF of a Flak37 so I had an easily visible litmus test, created a mission where A20s attacked an airfield with 3 Flak37s defending. I first just renamed scripts.gtp to scripts.gtpx and enabled the scripts gtp mod but found that the game still found the gtp file even though the extension had changed. I proved this by having dserver running by mistake while trying to rename scripts.gtpx to something even less like scripts.gtp. The rename failed because dserver had a lock on scripts.gtpx. So, I believe the filename "scripts" is the important factor. Therefore, my decision to move it out of the data folder entirely. After that dserver will crash due to missing objects unless you enable the scripts gtp mod.

Final proof was to enable the scripts gtp mod and then the ROF mod and start dserver and rerun the mission... 3 AA gave the below.

I've reported the need to do this workaround to the dev team back at the time of posting in the old forum and believe the issue still exists.   

image.thumb.png.652a643a511b78e9734c839aa784f57f.png

Edited by Stonehouse

Intel Ultra9 285K, ROG Strix Z890-A, 32 GB RAM, RTX 5070 Ti 16GBVRAM and driver 616.56, Win11 Pro, Saitek Pro Flight Combat pedals, Warthog HOTAS, TM Cougar MFDs, Monitor resolution 2560x1440 at 164kHz using G-Sync. Graphics settings maximum.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...