DayZ
Forfal Nov 23, 2022 @ 8:06am
Max number of server mods
I was wondering if anyone knows if there is an upper limit regarding the number of mods one can have installed on a server. My hosts didn't know, but then again they can hardly ever answer anything I ask them.

Does Expansion have an upper limit, perhaps?
< >
Showing 1-8 of 8 comments
kolorotur Nov 23, 2022 @ 9:16am 
No hard cap on the number of mods, as far as I know.
There are soft caps, however:
1. However many your server can handle before falling apart from extra load and cross-mod conflicts
2. Server mods are enabled as command line arguments, and (at least on Windows) there is a limit of maximum 8191 characters that you can put in a command line, including expansion of all the environment variables. I don't think DayZ server has a command line option to read the mod list from file, so there's that.
Forfal Nov 23, 2022 @ 9:34am 
Thank you very much for a insightful answer.

On your first point, I have checked my log files and I cannot find any references to mods being in conflict. But then again it might be written I a way I don't understand. The only real crap I get is from Events.xml in the expansion mod, which endlessly tries to spawn in vehicles. But I think I know how to deal with that, I am pretty sure I got that right before I wiped last time. But I might be very wrong, of course.

The thing is that for some reason whenever I exceed a certain number of mods the game crashes when I load it. I have uninstalled some of my mods "to make space" and installed the new ones. The game loaded and all was well. Then I installed the ones I just uninstalled, but then I got past that certain number and I couldn't load the game. I tried 3-4 different type of mods to check if it worked. But it didn't, I can't seem to pass that limit.

On your second point, the command line is 1865 letters long.

As you perhaps understand, I do have a lot of mods installed, but I didn't want a discussion on the number of mods I have. I did not expect such a well meaning answer, I must admit. Thank you.
kolorotur Nov 23, 2022 @ 9:58am 
You might be facing some mod incompatibility - when both mods modify the same mechanic or aspect of the game and both of them assume the original behavior is that of unmodded server. This can easily lead to a crash.
Once you enable a mod that causes the crash, you can try to identify what it conflicts with using bisecting technique - you should be able to locate the culprit fairly quickly this way.
Of course, there may very well be an actual hard-coded cap on the number of mods somewhere in the server. I found this gem in 1.16 release notes (https://dayz.com/article/game-update/DayZ-Update-1-16):
"Speaking of servers, we have also increased the limits of script class indexing, which were causing issues when combining a larger amount of mods together."

Out of curiosity, how many mods are you trying to enable when the server starts crashing?
Have you found a breaking point where enabling just one more mod causes the crash?
Does it happen to be some power of 2 value, perhaps, e.g. 128 or 256?
Those can indicate an actual hard limit.
Last edited by kolorotur; Nov 23, 2022 @ 9:59am
Forfal Nov 23, 2022 @ 10:18am 
Well, my magic number is 100, and whenever I exceed that number I cannot load the game. Doesn't matter what kind of mod and if I uninstall a mod that works, install another one and then the uninstalled on top to make it 101, it goes tits up. Tried several. I thought there might be a limit at 100, but it seems that it isn't so.
Forfal Nov 23, 2022 @ 10:19am 
My server runs smoothly I should add, and most mods seem to work as intended.
Ch33s3 Dec 13, 2022 @ 1:27pm 
unfortunately the server i'm trying to set up only seems to allow 35 mods before its locking up, does anyone might have a clue what could cause this ?
In official launcher it has a grey status and no mods showing,
dayzsa server registration also fails
Forfal Dec 13, 2022 @ 2:10pm 
Originally posted by Ch33s3:
unfortunately the server i'm trying to set up only seems to allow 35 mods before its locking up, does anyone might have a clue what could cause this ?
In official launcher it has a grey status and no mods showing,
dayzsa server registration also fails
If it doesnt turn up "green" in the server list there are some error preventing the server from starting properly. I have had that a couple of times, and I have found out what caused the problem in the log files. If you have access to them I would suggest looking there first. There are often numerous such files, and some might be stored in different locations.
Было тоже самое после установки 26-го мода сервер запускался чистым вообще без модов. Однако у меня в БАТ файле были прописаны два мода которые небыли активными. 1й был удален из мастерской его создателем, 2й не использовался, но был прописан. как итог когда я добавлял любой новый мод все переставало работать. После удаления конфликтных модов все стало работать нормально. Ищите моды которые ломают запуск сервера и убирайте их!
< >
Showing 1-8 of 8 comments
Per page: 1530 50

Date Posted: Nov 23, 2022 @ 8:06am
Posts: 8