Jump to content

[41.29] Automated Emergency Broadcast System RNG generates odd floating point numbers


the-phil

Recommended Posts

Radio/Walkie presets only allow even numbers in the floating points. Automated Emergency Broadcast System (AEBS) can generate odd floating point numbers.

 

It looks like radios and walkies allow you to add frequencies ending with an even floating point number. Such as #.0 #.2 #.4 #.6 etc.

One of my saved games came up with the AEBS frequency as 96.1, however I can only set the radio/walkie frequencies to 96 or 96.2. Spawned in radios will show a preset of "96.1 MHz Automated Emergency Broadcast Syst" set properly and function as intended.

 

My workaround:

In the ~/Zomboid/Saves/<Type>/<Savedgame>/radio/data/RADIO_SAVE.txt the last entry shows the AEBS frequency "96100,1,1,GEN-155944,-1" The 4th field would be replaced with a new string when in game broadcasts occurred. I attempted to modify the first field only to have it overwritten at the turn of the hour.

 

Played around and found a not human friendly sequence in map_t.bin


code block was really hard to read... tried to delete... it must be sentient... deleted the data... it might repopulate...

 

00000090  45 00 6D 00  65 00 72 00   67 00 65 00  6E 00 63 00   E.m.e.r.g.e.n.c.
000000A0  79 00 20 00  42 00 72 00   6F 00 61 00  64 00 63 00   y. .B.r.o.a.d.c.
000000B0  61 00 73 00  74 00 20 00   53 00 79 00  73 00 74 00   a.s.t. .S.y.s.t.
000000C0  65 00 6D 00  00 00 00 04   00 66 00 72  00 65 00 71   e.m......f.r.e.q
000000D0  01 40 F8 12  80 00 00 00   00 00 00 00  00 08 00 63   .@.............c

 

The save with the frequency 96.1 looked like this

000000D0  01 40 F7 76  40

modified it to match the frequency 98.6

000000D0  01 40 F8 12  80

This allowed me to set the frequency to 98.6 with the radios and walkies.

 

Version 41.29 - IWBUMS (Steam)

OS Debian Linux

Edited by the-phil
sentient code block, added version info.
Link to comment
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
×
×
  • Create New...