Project

General

Profile

Actions

Bug #1710

closed

disaster frequency value > 255 cause network problem

Added by Dean Brown 15 days ago. Updated 9 days 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 (1 open0 closed)

Blocks Tasks #1712: S3_3 network protocol freeze (npf)New10/22/2025

Actions
Actions

Also available in: Atom PDF