Log in

View Full Version : I need help from the modding group!


1480
02-27-08, 08:31 PM
I was browsing my radio files and I looked at the stock SH4 station(Washington). I found way more notepad files then any other. When I opened one of them up it was a corresponding written message that would crop up on the Captains log, if so is this the way to add "radio" messages that reflected radio traffic from other fleet boats to/from COMSUBPAC? I'll show you what it looks like:

From the events file as an example:

;[EVENT]
;StartDate=07.12.1941
;StartTime=19.00.00
;MediaFile=News_Intro_Line_02.ogg
;[EVENT]
;StartDate=07.12.1941
;StartTime=19.00.03
;MediaFile=News_1941_01.ogg

This what the the first highlighted file looks like in notepad:

[NEWS]
Title=December 7th, 1941
Body=Many popular Sunday afternoon entertainment programs have been interrupted by radio bulletins with the news of the “sneak attack” against Pearl Harbor. The news sends a shock wave across the nation and results in a tremendous influx of volunteers in the U.S. armed forces. The attack united the nation behind the President and effectively ended the isolation sentiment in the country.


They are ogg files with the "gear" symbol to them. Since I can barely do radio mods, I have no clue to what this stuff means. The other question is what effects would this have on RSRD and the likes if I were to make something like this? Where would I put it? Like I said, I can barely D/L files to my hard drive but I have plenty of time trying to better to get released back to full duty at work and would like to give back a little more to this fine community. Thanks in advance commanders, Mike.

fred8615
02-27-08, 10:08 PM
Actually the text files are .ini files that display in the message clipboard, even if you're not listening to the Washington station. The game's apparently coded to look for them, and display them at the same time and date as the sound file whose name they share. That is the key to setting their display, using the same name as a scripted sound file.

It's neat, or annoying, depending on your point of view. :hmm:

1480
02-27-08, 10:29 PM
Fred, so you're saying that it would only work if there was a "shared" mp3 in the same event file? Or is there another place to look? I'm not saying heavy traffic like the stock game, but a little variety every so often is a refreshing change...

Sorry, just reread your answer, so if I were to save a message as an .ogg file could it possibly work? I have no idea what that is but could it be the key to using RSM1.2 for other scripted events in the game......

Like I said before, I have no idea what I'm doing anyway....

fred8615
02-27-08, 10:57 PM
Fred, so you're saying that it would only work if there was a "shared" mp3 in the same event file? Or is there another place to look? I'm not saying heavy traffic like the stock game, but a little variety every so often is a refreshing change...

Sorry, just reread your answer, so if I were to save a message as an .ogg file could it possibly work? I have no idea what that is but could it be the key to using RSM1.2 for other scripted events in the game......

Like I said before, I have no idea what I'm doing anyway....
.ogg is simply another sound format, like mp3 or wav. The text that appears in the message clipboard is in the .ini file that has the same name as a sound file which is used as the trigger for its display. When the sound file is called by the events.ini, it displays the text in the clipboard, even if you're not listening to that station.

Mind you, I've never tried it with anything else (been thinking about it though ;) ), but as far as I know .ogg is just another sound format. Given that the text is in a separate file, it should work with the other two as long as the .ini is formatted correctly and has the same exact name as the matching sound file and is in the same Events folder.

1480
02-27-08, 11:30 PM
Tested something out, it won't work w/rsm because it looks for sound files only, though when you type .ogg at the end of a text only file, it converts it into a sound file... absolutely fascinating. Thanks for your help, I'll try an end around to get the tack.

Digital_Trucker
02-28-08, 10:21 AM
I think you're misunderstanding what Fred was saying, 1480. You need two files for the message to display when the media file would play. One file is either an mp3 or an ogg file (that is the media file). The other (the one that generates the message) is a .ini file. Both files have the same name, but different file extensions.

For example if the media file was Mediafile.mp3, then the text file would be Mediafile.ini

Then, whenever the date and time come up for the media file to play (even if you aren't listening to that radio station, or any radio station for that matter) the text in the .ini file would be displayed as a message.

I'm guessing you probably don't have your folder settings such that known file types have their file extensions displayed. Go to your control panel, select folder options and choose the view tab. Scroll down until you get to the option that says "Hide extensions for known file types" and uncheck that option. Then hit the "Apply" button, then the "OK" button. Now when you see a file name, you will also see the file extension (the part after the last period).

What you need to do to generate a message that is associated with a media file is to create a .ini file with the exact same name as the media file. RSM won't do it for you, but you can still have the files there and they will display. Maybe while I'm working on the changes to RSM, I'll add that functionality, too.

1480
02-28-08, 10:47 AM
DT and Fred thanks alot. That add on feature to RSM would be killer.:rock: ...oh well just waiting for d2d to tell me my missions copy is ready to d/l.