Project

General

Profile

Actions

Bug #1710

closed

disaster frequency value > 255 cause network problem

Added by Dean Brown 12 months ago. Updated 12 months ago.

Status:
Closed
Priority:
Normal
Category:
General
Target version:
Start date:
10/19/2025
Due date:
% Done:

0%

Estimated time:

Description

In packets.def the disaster frequency is UINT8, needs to be UINT32. The ruleset value could in theory be as high as 1000000 if you wanted the disaster to always happen. Currently values > 255 get truncated.

If game.ruleset has -

[disaster_5]
...
frequency=50000

get message -
"Trying to put 50000 into 8 bits; it will result 80 at receiving side."

Pretty rare, so I suggest targeting 3.3.0


Files

1710.patch (742 Bytes) 1710.patch Dean Brown, 10/22/2025 04:28 AM

Related issues 1 (0 open — 1 closed)

Blocks Task #1712: S3_3 network protocol freeze (npf)ClosedMarko Lindqvist10/22/2025

Actions
Actions

Also available in: Atom PDF