User talk:Lumarin

From PZwiki

Radio data xml

Hey Lumarin, you've been a big help on the wiki so far. I saw you were not sure what to pursue next. I've been working on the Category:Transcripts section but I've made a big assumption on many of them.

Basically, under media/radio/ there is a file named RadioData.xml. That file contains all of the pre-scripted radio text that appears in game, included with their time and codes for specific entries. The codes are actually pretty easily discernable, for example BOR-1 is meant to affect the player's boredom moodle. I was curious if this is actually implemented in the game. It is quite difficult to check in game, as I dont know how to see specific stats for the character.

Beyond that, some XML entries contain no data and are followed by another entry. I'd made the assumption that multiple time entries means that the message can be viewed at multiple times (but never more than once.) I'm really not certain on that and would like someone else's thoughts on it. Also I haven't exactly figured out what the time units listed are relative to...

I know a lot of the XML is probably generated from dev tools we dont have access to, but there must be something in game to parse them.

I wont be around to add any game info for about a week but can check in pretty frequently. If you're up for it, it would help me figure out what the XML file ACTUALLY does in game beyond just the text.

Thanks!

-Thing II (talk) 01:30, 27 April 2021 (BST)

It appears that there is code with regards to it, but I'm investigating further. Specifically, RadioLine class takes an input of RGB, a String, and has a string available for private String effects = "";
Specifically, it's this.effects = (paramString2 != null) ? paramString2 : this.effects;
Which is really If this.effects is null, return null, else effects = input effect from the radio...Meaning it's possible it actually does something.
It's going to take me a bit, but I need to see what calls the 'this.effects' bits of code to try to determine if it does have any sort of impact on the character's BodyDamage(stats)
With regards to how the radio functions...You're looking for the code in /zombie/radio/ folder in the .class files via a java decompiler or IDE
It generates the radio settings at start of the game, and determines channels based upon Game Mode(Initial Infection or Six Months Later), then modifies it based upon days survived. So you can have late-game radio channels that only appear late game, and early-game channels that show only for initial infection, for example.
Lumarin (talk) 02:15, 27 April 2021 (BST)
OK, I can confirm that they do manage your character's stats. You'll want to look at ISRadioInteractions.lua in /media/lua/client/RadioCom/ Specifically lines starting at 103
Cheers
Lumarin (talk) 02:49, 27 April 2021 (BST)