Page MenuHomeFeedback Tracker

Please remove or increase the limit for preprocessor directives count (#define)
Assigned, NormalPublic

Description

Many mods use preprocessor directives (#define) for their internal needs and to ensure compatibility with other mods.
As a result, many server owners have server crashes at startup due to reaching the maximum limit of defines declared by mods used on the server.

Please consider removing this limitation or increasing the number of maximum defines used on all installed mods.

Details

Severity
Crash
Resolution
Open
Reproducibility
Always
Operating System
Windows 11 x64
Operating System Version
23H2
Category
General
Steps To Reproduce

I attach an archive with a minimal mod (config.cpp + script.c) to reproduce this issue.

Server crash happens on server startup without any messages in the log and even without dump. The process simply stops working without any messages.

The same mod, only packaged in pbo and signed with a bikey.

Server launch command line:

start "" "DayZServer_x64.exe" "-mod=@TerjeTestMod" "-profiles=profiles" -config=serverDZ.cfg -port=2302 -cpuCount=2
Additional Information

The limit on the number of defines is for all mods on the server, not for a single mod. This means that mods that declare multiple defines can work individually without problems. But when running them to the server at the same time - lead to a crash when the total limit is reached.

Event Timeline

TerjeBruoygard edited Steps To Reproduce. (Show Details)

Confirming this is an issue on 2 of my servers.

Experienced this issue when my team was creating a new server recently, when adding Terje's new mods. We had this kind of immediate crash when the server launches and the terminal closes when displaying "Dedicated Host Created." We tested the server for several days last week, trying to resolve the issue, but without crash logs it was very difficult. Additionally, since we didn't know of the #defines issue at the time, the crashes would appear and behave inconsistently. We believed there to be certain mod incompatibilities on our server, since we had added new content, but removing and adding mods to the load order never pointed to a definitive compatibility.

When we finally got it working, we had removed a mod called "Boomlay's Things." Since Terje posted this bug, I unpacked the mod and found that it has 11 #defines in it, explaining why the server began to launch properly when the mod was removed despite nothing pointing to any actual compatibilities.

Sortek added a subscriber: Sortek.Tue, Nov 26, 1:27 AM

Please fix

Please fix this!

Attention needed :)

DzL added a subscriber: DzL.Tue, Nov 26, 1:35 AM

Needs some Fixing.

Needs to be fixed ASAP.

Please fix this for us. Please and thank you

TerjeBruoygard edited Steps To Reproduce. (Show Details)

Using the PBO provided, I tested it again on both our dedicated machine and a local instance. The first log is from a local server and the second two are from our dedicated machine. All server launches with the mod on resulted in an immediate crash.

Solo1 added a subscriber: Solo1.Tue, Nov 26, 8:13 AM

Please fix this.

Could you fix it pleeease?

+confirm, the server is crashing =/

Mods that declare multiple 'defines' can work individually without problems, although running them to the server simultaneously leads to a crash when the total limit is reached.
**Increase the limit, or remove the dependency.

This is the modern world, having a limit of 128 on anything, especially #defines, is almost archaic. Please add just one more byte so we can have 32K defines...

We need a fix!

Geez changed the task status from New to Assigned.Tue, Nov 26, 2:02 PM

I've been chasing my tail since the 1.26 update, a solution to this would be amazing!

Not a please fix. It needs fixed. The question is why hasn't it been fixed?

This is something that has been negatively affecting the modded community. Players can really lose faith in servers over something like this, especially since it's something that isn't easily explainable to a lot of players. This is something that definitely needs to resolved ASAP.

@Geez I'm sorry to bother you.
Are there any updates or any other information?
This is a critical bug that a lot of server owners have encountered and we would all like to know more information from the developers (will this bug be fixed or should we stop using defines in mods) and an estimated ETA.

This is a must fix! It is a constant plague to servers at the moment. A solution would be a god send to the community.

Absolutely needs a fix this is a huge problem for a lot of modded servers and in some cases making players stop playing certain servers because of problems like this one more byte would fix everything

Please fixed this issue. Thank You!

Please get this issue fixed as the is affecting a lot of modded servers.

Crispy added a subscriber: Crispy.Thu, Dec 5, 2:42 AM

Please address this issue ASAP. This is effecting a lot of servers and needs to be fixed.

Please fix this Issue asap!!!! Thanks!

Needs to be fixed!! This is causing so many issues in the modded community amongst both players & server owners/developers.

I play this game everyday!!!!!! on my fav modded server i work 16hr days and play this game everyday i dont know what grass is i work game dayz work game dayz repeat with this on going issues its hard to enjoy dayz please for the love of god fix this!!!!!!!

GR65476 added a subscriber: GR65476.Thu, Dec 5, 4:43 AM

Please fix this asap. The modded server community is getting hammered. Sadly, complaining isn't going to go away until fixed. Dayz peeps are persistent. You may as well get it over with and fix it so you don't have to deal with the complaining over and over. Thanks.