Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: karajorma on June 24, 2012, 07:12:09 am
-
I've made some changes to the way both mod.tbl and message.tbl work that might affect some mods so I just wanted to give everyone a heads up.
Basically I've moved the Praise Self settings from mod.tbl to message.tbl and altered the code to expose several hardcoded options that allow modders to choose how often builtin messages are sent.
AFAIK the Praise Self settings have never been used in any released campaigns so I simply removed them (meaning that any campaign using them will break) but if they have been used I'll change things again so that mod.tbl won't choke on them. For unreleased mods, please update as I'm about to describe.
Message.tbl now has a new section which goes right at the top before #Personas
#Message Frequencies
$Name: Praise Self
+Occurrence Chance: 10
+Maximum Count: 5
+Minimum Delay: 60
#Personas
Name is the name of the builtin message type, the same ones used later on in the table.
Occurrence Chance is the % chance that a message will be sent (For Praise Self, if a wingman gets a kill, for Check, if you have an enemy behind you).
Maximum Count is the maximum number of times you'll hear this message in a single mission.
Minimum Delay is the time that must pass after this builtin message has been sent before another one can appear from any wingman.
Although you can specify all 3 fields for any builtin message only a few of them will have any effect. The changes to maximum count and minimum delay only apply to "Check 6" "Praise" "Praise Self" and "Help". You can only use Occurrence Chance with "Praise Self" at the moment.
-
Cool, thanks for the heads up :yes:
-
Is this in trunk? if so, which revision was this done?
-
8905
-
AFAIK the Praise Self settings have never been used in any released campaigns so I simply removed them (meaning that any campaign using them will break) but if they have been used I'll change things again so that mod.tbl won't choke on them.
Dimensional Eclipse uses it. It's been released for some time now.
-
Ok, tried to create a new page for Mod.tbl, but The Force says that page already exists (Game_settings.tbl)?
-
Basically, that's what it's called now. I don't know why, but Mod.tbl has been re-named to Game_settings.tbl when it actually was implemented.
-
Well, are we going with the Mod.tbl name or the Game_settings.tbl name?
-
The file already exists. It's Game_settings.tbl. Most people still call it Mod.tbl because that's how we've always called it even before it was added to the engine, but the filename is game_settings.tbl
-
The file already exists. It's Game_settings.tbl. Most people still call it Mod.tbl because that's how we've always called it even before it was added to the engine, but the filename is game_settings.tbl
Holy confusion batman.
-
Dimensional Eclipse uses it. It's been released for some time now.
Damnit! I was hoping that I wouldn't have to support the mod table entry since it never appeared in an official build.
Oh well, I'll add it back in first chance I get.
-
Damnit! I was hoping that I wouldn't have to support the mod table entry since it never appeared in an official build.
There is something to be said for this... the "nightly" builds already carry the disclaimer that features are not considered permanent and may change.
Back in the day, one of the Inferno releases (might have been INF:Alliance) relied on difficulty.tbl, but difficulty.tbl was deprecated in favor of ai_profiles.tbl. The Inferno people were slightly miffed, but released an update. Could the Dimensional Eclipse guys do the same?
-
Right, I guess I'll need to change it then.
...Or Droid can do it. :p
-
Especially since to use game settings table, they would have had to be offering post-3.6.14 trunk builds... and we aren't really doing nightlies right now.
-
Especially since to use game settings table, they would have had to be offering post-3.6.14 trunk builds... and we aren't really doing nightlies right now.
Precisely. In fact, this is the very reason we aren't offering nightlies. :D
-
Is the wiki updated with this information? :nervous:
-
Is the wiki updated with this information? :nervous:
It hasn't been in a release build yet... so no.
-
and we aren't really doing nightlies right now.
Remember when we used to have nightlies?
It's been so long ago... I can hardly recall what that time was like :p
-
Is the wiki updated with this information? :nervous:
It hasn't been in a release build yet... so no.
We have 3.6.15 tags for that. Also game_settings.tbl is on the Wiki.
and we aren't really doing nightlies right now.
Remember when we used to have nightlies?
It's been so long ago... I can hardly recall what that time was like :p
Inorite. 3.6.12 was a 5 month RC period... we are going on 8...
-
Nightlies ? Cool guys compile the code themselves.
-
Is the wiki updated with this information? :nervous:
It hasn't been in a release build yet... so no.
We have 3.6.15 tags for that. Also game_settings.tbl is on the Wiki.
Ok, ok. I'll stick it on there. You know, some of you guys could help. :P
Edit: hey, weve got some descripancy between table files. # tags in game_settings.tbl is all-caps while Messages.tbl has the only first letter capitalized...
-
Updates Done.
Messages.tbl (http://www.hard-light.net/wiki/index.php/Messages.tbl)
Mod.tbl (http://www.hard-light.net/wiki/index.php/Mod.tbl)
-
$Self Praise has been removed from mod.tbl IIRC...
-
Yeah, for some reason the editing didn't get saved to the mod.tbl. fixed now :rolleyes:
-
Edit: hey, weve got some descripancy between table files. # tags in game_settings.tbl is all-caps while Messages.tbl has the only first letter capitalized...
.tbl/.tbm files are not case sensitive, but they are case preserving so feel free to make it consistent on the wiki.
-
So I set up our messages.tbl in BtA to use this...
#Message Frequencies
$Name: Check 6
+Maximum Count: 15
+Minimum Delay: 45
$Name: Praise
+Maximum Count: 15
+Minimum Delay: 60
$Name: Praise Self
+Occurrence Chance: 7
+Maximum Count: 15
+Minimum Delay: 75
$Name: Help
+Maximum Count: 15
+Minimum Delay: 85
I'm getting some odd behavior. Take 'Check 6' for example. It waits the specified delay, but when it happens, the same message is played upwards of 8 times right in a row. Using build 8980.
EDIT: See the timestamps on the attached image. (Must have happened at the end of the 46th second because they all popped up at the same time.)
[attachment deleted by ninja]
-
Ummm. I gave a bad example. It was the one I was using for testing so I wanted a lot of messages.
Delays are in milliseconds. :D
-
WELL THAT WOULDA BEEN NICE TO KNOW! :p
-
WELL THAT WOULDA BEEN NICE TO KNOW! :p
It was on the wiki. :rolleyes:
-
well I made my messages.tbl entries before the Wiki was updated based on the first post...
-
YOU COULD HAVE WAITED :P
-
If mod makers had to wait for all the SCP features before making mods, no mod would ever have happened, and no mod would happen for the next few decades to come...
-
If mod makers had to wait for all the SCP features to be documented on the Wiki before making mods, no mod would ever have happened, and no mod would happen for the next few decades to come...
Fixed that for you...
-
That works too.
-
Well, I was updating the wiki with the new info and I said I was. (That's compared to documentation that doesn't magically appear for some reason)
I don't remember where I found out what units the delay was in, that might've been over IRC...