Timberborn

Timberborn

Name That Beaver
Stats 14 Oct, 2024 @ 6:31am
Change name list during session?
Hey Yorg, thanks for the mod! Does this load the list from file at game load and then ignore the file contents until the next load? I'd like to programmatically change the contents of the name list while playing as I'm a Twitch streamer and used to use a similar mod to grab viewer names dynamically and have them added to the candidate name list as viewers come and go. Since Update 5, all mods now seem to load once on game load and then ignore file contents. Is changing the name list while playing even possible any more in the Mod API?
< >
Showing 1-9 of 9 comments
Yorg  [developer] 14 Oct, 2024 @ 6:35am 
Have to check. I think it might be possible for the list to be “looked at” every time a name has to be pulled from the pool (basically when a beaver is born). Will check after work
Stats 14 Oct, 2024 @ 6:39am 
Originally posted by Yorg:
Have to check. I think it might be possible for the list to be “looked at” every time a name has to be pulled from the pool (basically when a beaver is born). Will check after work
Thanks so much for the reply! I'll keep my fingers crossed!
Yorg  [developer] 14 Oct, 2024 @ 8:28am 
You mention come and go. Does that mean that as soon as a viewer is no longer watching the stream, the name is removed from the pool ?
Stats 14 Oct, 2024 @ 9:34am 
Originally posted by Yorg:
You mention come and go. Does that mean that as soon as a viewer is no longer watching the stream, the name is removed from the pool ?
Yeah so the way I was doing it with a mod (using Bepinex) which read the file every time a beaver was born was I used C# to grab the current list of viewers from the Twitch API and simply write to the text file the mod was drawing from. As far as the mod was concerned, I was just manually editing the file as I was playing, but actually it was automated. I simply want the list to be read from file every time a beaver is created. I can handle the writing part.
Last edited by Stats; 14 Oct, 2024 @ 9:35am
Yorg  [developer] 5 Nov, 2024 @ 5:14pm 
With the latest update you should be able to use the mod as you requested. Just make sure to add
"RefreshNamePoolOnFileChange": true
to your NameThatBeaverSettings.json file
Stats 6 Nov, 2024 @ 9:34am 
Originally posted by Yorg:
With the latest update you should be able to use the mod as you requested. Just make sure to add
"RefreshNamePoolOnFileChange": true
to your NameThatBeaverSettings.json file

Amazing! Can't wait to try it out! I'm due to stream Timberborn in a couple of hours, so not sure I can implement it by then, but I'll definitely be taking a look! Thank you!
Stats 6 Nov, 2024 @ 6:19pm 
Quick update: Used it to stream tonight, alongside my old Streamerbot implementation for grabbing names from Twitch channelpoint rewards for the old mod I used to use. Worked perfectly. I even realised I could allow colour choices using the <color> tag ability, though this limits the actual name to fewer characters of course. Thank you so much again for the update!
Yorg  [developer] 8 Nov, 2024 @ 1:32pm 
glad it was of use :)
Yorg  [developer] 9 Nov, 2024 @ 4:19am 
I watched your stream.
Firstly thanks for the shoutout.
Secondly: I did some tests. It appears that if you want to name a beaver from inside the game there is indeed a limitation of the number of characters. However if you use the mod you can use names that are longer than the limitation in the in-game dialog.
Also I borrowed your idea of the coloring (hope you don't mind), you can now add a color to the beaver name in the beavers.names file
the template is as follows
XXXXXX#THENAME - where XXXXXX is a valid hex color.
The mod will then transform the name into <color=#XXXXXX>THENAME so you could see the name and beaver colored in-game.
Hope it helps.
< >
Showing 1-9 of 9 comments
Per page: 1530 50