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

Title: Message.tbl / mod.tbl changes
Post 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

Code: [Select]
#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.
Title: Re: Message.tbl / mod.tbl changes
Post by: Spoon on June 24, 2012, 08:56:20 am
Cool, thanks for the heads up  :yes:
Title: Re: Message.tbl / mod.tbl changes
Post by: z64555 on June 24, 2012, 09:49:09 am
Is this in trunk? if so, which revision was this done?
Title: Re: Message.tbl / mod.tbl changes
Post by: The_Force on June 24, 2012, 09:56:54 am
8905
Title: Re: Message.tbl / mod.tbl changes
Post by: AndrewofDoom on June 24, 2012, 10:02:28 am
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.
Title: Re: Message.tbl / mod.tbl changes
Post by: z64555 on June 24, 2012, 11:30:32 am
Ok, tried to create a new page for Mod.tbl, but The Force says that page already exists (Game_settings.tbl)?
Title: Re: Message.tbl / mod.tbl changes
Post by: Dragon on June 24, 2012, 11:53:54 am
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.
Title: Re: Message.tbl / mod.tbl changes
Post by: z64555 on June 24, 2012, 12:02:27 pm
Well, are we going with the Mod.tbl name or the Game_settings.tbl name?
Title: Re: Message.tbl / mod.tbl changes
Post by: MatthTheGeek on June 24, 2012, 12:06:34 pm
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
Title: Re: Message.tbl / mod.tbl changes
Post by: z64555 on June 24, 2012, 12:15:03 pm
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.
Title: Re: Message.tbl / mod.tbl changes
Post by: karajorma on June 24, 2012, 02:23:08 pm
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.
Title: Re: Message.tbl / mod.tbl changes
Post by: Goober5000 on June 24, 2012, 11:33:36 pm
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?
Title: Re: Message.tbl / mod.tbl changes
Post by: AndrewofDoom on June 24, 2012, 11:40:38 pm
Right, I guess I'll need to change it then.

...Or Droid can do it. :p
Title: Re: Message.tbl / mod.tbl changes
Post by: mjn.mixael on June 24, 2012, 11:45:48 pm
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.
Title: Re: Message.tbl / mod.tbl changes
Post by: Goober5000 on June 24, 2012, 11:48:40 pm
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
Title: Re: Message.tbl / mod.tbl changes
Post by: mjn.mixael on June 25, 2012, 12:29:10 am
Is the wiki updated with this information? :nervous:
Title: Re: Message.tbl / mod.tbl changes
Post by: z64555 on June 25, 2012, 03:20:13 am
Is the wiki updated with this information? :nervous:

It hasn't been in a release build yet... so no.
Title: Re: Message.tbl / mod.tbl changes
Post by: Spoon on June 25, 2012, 08:26:37 am
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
Title: Re: Message.tbl / mod.tbl changes
Post by: mjn.mixael on June 25, 2012, 08:36:20 am
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...
Title: Re: Message.tbl / mod.tbl changes
Post by: MatthTheGeek on June 25, 2012, 08:40:28 am
Nightlies ? Cool guys compile the code themselves.
Title: Re: Message.tbl / mod.tbl changes
Post by: z64555 on June 25, 2012, 11:24:08 am
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...
Title: Re: Message.tbl / mod.tbl changes
Post by: z64555 on June 25, 2012, 01:22:33 pm
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)
Title: Re: Message.tbl / mod.tbl changes
Post by: mjn.mixael on June 25, 2012, 01:24:37 pm
$Self Praise has been removed from mod.tbl IIRC...
Title: Re: Message.tbl / mod.tbl changes
Post by: z64555 on June 25, 2012, 01:27:39 pm
Yeah, for some reason the editing didn't get saved to the mod.tbl. fixed now  :rolleyes:
Title: Re: Message.tbl / mod.tbl changes
Post by: Iss Mneur on June 26, 2012, 01:30:38 pm
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.
Title: Re: Message.tbl / mod.tbl changes
Post by: mjn.mixael on July 05, 2012, 11:56:07 am
So I set up our messages.tbl in BtA to use this...

Code: [Select]
#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]
Title: Re: Message.tbl / mod.tbl changes
Post by: karajorma on July 05, 2012, 06:49:34 pm
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
Title: Re: Message.tbl / mod.tbl changes
Post by: mjn.mixael on July 05, 2012, 06:52:48 pm
WELL THAT WOULDA BEEN NICE TO KNOW!  :p
Title: Re: Message.tbl / mod.tbl changes
Post by: z64555 on July 05, 2012, 09:16:19 pm
WELL THAT WOULDA BEEN NICE TO KNOW!  :p

It was on the wiki.  :rolleyes:
Title: Re: Message.tbl / mod.tbl changes
Post by: mjn.mixael on July 05, 2012, 09:30:27 pm
well I made my messages.tbl entries before the Wiki was updated based on the first post...
Title: Re: Message.tbl / mod.tbl changes
Post by: z64555 on July 05, 2012, 09:33:26 pm
YOU COULD HAVE WAITED :P
Title: Re: Message.tbl / mod.tbl changes
Post by: MatthTheGeek on July 06, 2012, 01:08:07 am
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...
Title: Re: Message.tbl / mod.tbl changes
Post by: mjn.mixael on July 06, 2012, 08:34:58 am
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...
Title: Re: Message.tbl / mod.tbl changes
Post by: MatthTheGeek on July 06, 2012, 08:41:05 am
That works too.
Title: Re: Message.tbl / mod.tbl changes
Post by: z64555 on July 06, 2012, 08:45:08 am
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...