CarSpawnRate 6 is greater than max=5
0

2 posts in this topic

Recommended Posts

Dedicated server console:

1550226254921 versionNumber=40.43 demo=false
...
1550226275980 Loading: /home/pzserver/Zomboid/Server/pzserver_SandboxVars.lua
1550226275984 ERROR: IntegerConfigOption.setValue() "CarSpawnRate" 6 is greater than max=5

SandboxVars.lua:

	EnableSnowOnGround=true,
	CarSpawnRate=5,
	ChanceHasGas=3,

SandboxVars was generated by Custom Sandbox and saved. It loads OK in GUI, displays 'High' as a option #5.

 

The bug is: server sets CarSpawnRate as 6 instead of 5.

Share this post


Link to post
Share on other sites

Additional info

I have stepped from 5 to 4 in SandboxVars.lua  for this property, and now it loads without error.

However the Admin GUI displays this parameter as High (should be Normal).

 

So, somewhere in code it seems that incrementation of this value is being performed. Possibly as a workaround for some bug in earlier stages of Vehicles branch.

Currently those who set 4 get 'High', 3 - 'Normal', 2 is 'Low', 1 is 'Very Low' and 0 is 'None'.

Those who have 5, get default value of 'Low', which is counter-intuitive.

Share this post


Link to post
Share on other sites

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
0