SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 01-09-14, 05:36 PM   #1
ExFishermanBob
Difficulties Numbing
 
Join Date: Aug 2013
Location: AN19
Posts: 470
Downloads: 43
Uploads: 0


Default Triggering/injecting radio message

Is there a mod to inject radio message text at all? Or alternatively triggering the next one? I'm a capable programmer if it requires any assembly.
ExFishermanBob is offline   Reply With Quote
Old 01-09-14, 08:43 PM   #2
areo16
Sonar Guy
 
Join Date: Oct 2013
Posts: 382
Downloads: 64
Uploads: 0
Default

I know there is some hardcore .exe fixes. You might want to ask those modders. I forget their names. hsie I think is one.

Otherwise, the messages are launched via date in the en_messages.txt file in the data/Campaigns folder.
areo16 is offline   Reply With Quote
Old 01-10-14, 02:03 AM   #3
ExFishermanBob
Difficulties Numbing
 
Join Date: Aug 2013
Location: AN19
Posts: 470
Downloads: 43
Uploads: 0


Default

Thanks, I'll look up hsie.
ExFishermanBob is offline   Reply With Quote
Old 01-10-14, 03:28 AM   #4
areo16
Sonar Guy
 
Join Date: Oct 2013
Posts: 382
Downloads: 64
Uploads: 0
Default

What idea did you have in mind?
areo16 is offline   Reply With Quote
Old 01-10-14, 03:57 AM   #5
ExFishermanBob
Difficulties Numbing
 
Join Date: Aug 2013
Location: AN19
Posts: 470
Downloads: 43
Uploads: 0


Default

I want to attempt to tie in a chat client (Jabber or IRC, say) to the radio system on-board the sub, as it were. I've been using IRC but it fails to pop-up over the game.

It strikes me that a general chat-to-sub linker would enable both simple chat and also be useful for BdU messages for the Donitz Flotilla.

I have been pondering having a 'radio operator' program external to SH3 which uses the existing message files but modifies them with the chat-program output. I need to experiment with when SH3 opens / loads / counts the message files). I note that sending a status message in-game triggers a reply from BdU so that might be one method. I note that h.sie's V16B1 patch:

http://www.subsim.com/radioroom/show...io+message+mod

shows item 13 as a modification, so I can also have a look at the code in the patch, perhaps: there is a comment at the bottom ('original first post') which gives me some hope regarding triggering messages, etc.

My second idea was to subvert the in-game multi-user chat (I have yet to use this, but can rig a couple of PC's to try it out).
ExFishermanBob is offline   Reply With Quote
Old 01-10-14, 05:32 AM   #6
areo16
Sonar Guy
 
Join Date: Oct 2013
Posts: 382
Downloads: 64
Uploads: 0
Default

Did you want to chat to be realtime or delayed, so someone can post messages that can be read in-game later?

If they were delayed we could roleplay a sort of Donitz commander player that could receive the messages and give commands to uboats, and the uboats would receive the messages once they relaunch their patrol after connecting to a server. This would require an external program to be made.

Or are you thinking of having in-game multiplayer chat between players?
areo16 is offline   Reply With Quote
Old 01-10-14, 05:48 AM   #7
ExFishermanBob
Difficulties Numbing
 
Join Date: Aug 2013
Location: AN19
Posts: 470
Downloads: 43
Uploads: 0


Default

It was originally just the latter (in-game chat) but I realised that the former would be just as useful.

If we concentrate on the 'delayed':
For the BdU stuff, there is a mod "RadioLog_expanded" which allows for daily messages, and I could also see (for BdU) that one could have an 'injector' that places real messages from the BdU controller into the campaigners message file (the 'delayed' business).

I would envisage:
Connect to chat (via 'radio-operator' program). Program updates message files.
Start SH3 and proceed as normal.

For the Donitz people, I think that they all play to a specific start date, so message dates could be set accordingly.
Sending information from the campaigner back to BdU would be more difficult, however, the radio-operator could perhaps read the mission logs, or the campaigner could have to use the radio-operator program to reply.

I am quite capable of writing the radio-operator program, and Jabber could be used for the messaging protocol (or whatever): it's the interaction with SH3 that is more of an issue. If I can get something that works with files, the radio-operator program might also function with SH4 and SH5, of course.
I'll have to experiment with the messages tonight.
ExFishermanBob is offline   Reply With Quote
Old 01-10-14, 04:00 PM   #8
areo16
Sonar Guy
 
Join Date: Oct 2013
Posts: 382
Downloads: 64
Uploads: 0
Default

Quote:
Originally Posted by ExFishermanBob View Post
It was originally just the latter (in-game chat) but I realised that the former would be just as useful.

If we concentrate on the 'delayed':
For the BdU stuff, there is a mod "RadioLog_expanded" which allows for daily messages, and I could also see (for BdU) that one could have an 'injector' that places real messages from the BdU controller into the campaigners message file (the 'delayed' business).

I would envisage:
Connect to chat (via 'radio-operator' program). Program updates message files.
Start SH3 and proceed as normal.

For the Donitz people, I think that they all play to a specific start date, so message dates could be set accordingly.
Sending information from the campaigner back to BdU would be more difficult, however, the radio-operator could perhaps read the mission logs, or the campaigner could have to use the radio-operator program to reply.

I am quite capable of writing the radio-operator program, and Jabber could be used for the messaging protocol (or whatever): it's the interaction with SH3 that is more of an issue. If I can get something that works with files, the radio-operator program might also function with SH4 and SH5, of course.
I'll have to experiment with the messages tonight.
The program should be quite simple to put together. Just a text edit, some buttons, and then have the input edit the en_messages.txt file. But are you going to connect it to a main server or something, that a "commander" can receive the uboat messages and then send them back? Otherwise, then player would be sending Bdu messages to himself, which would be kind of silly.
areo16 is offline   Reply With Quote
Old 01-11-14, 05:31 AM   #9
JeromeHeretic
Machinist's Mate
 
Join Date: Jun 2011
Location: N 50 4 E 14 25
Posts: 127
Downloads: 266
Uploads: 0
Default

I have strong feeling, that in network game is possibility to send message to other players. But i newer play SH3 network game, so i don't know how it looks in reality. But it means, that some way how to send message to player is in game already implemented. Maybe some research this way can give positive results.
JeromeHeretic is offline   Reply With Quote
Old 01-11-14, 05:58 AM   #10
ExFishermanBob
Difficulties Numbing
 
Join Date: Aug 2013
Location: AN19
Posts: 470
Downloads: 43
Uploads: 0


Default

Yes: I've yet to play the network game, so I shall rig a couple of PCs and try it out.
At the moment I've been experimenting with putting messages into the message list while SH3 is running to see if they are picked up. I'll post my results here.
ExFishermanBob is offline   Reply With Quote
Old 01-12-14, 06:14 AM   #11
areo16
Sonar Guy
 
Join Date: Oct 2013
Posts: 382
Downloads: 64
Uploads: 0
Default

Quote:
Originally Posted by ExFishermanBob View Post
Yes: I've yet to play the network game, so I shall rig a couple of PCs and try it out.
At the moment I've been experimenting with putting messages into the message list while SH3 is running to see if they are picked up. I'll post my results here.
I would think the en_messages file is loaded during the mission loading, so only a back out to the main menu would be necessary for it to be loaded in-game. This is how the campaign layers are loaded, so I would think the messages are the same, but I have not confirmed this.
areo16 is offline   Reply With Quote
Old 01-13-14, 10:23 AM   #12
ExFishermanBob
Difficulties Numbing
 
Join Date: Aug 2013
Location: AN19
Posts: 470
Downloads: 43
Uploads: 0


Default

Ah, that's a good idea for testing - currently, injected text while the program is running doesn't get picked up. My other idea was to inject directly into the messages log (not as elegant) but I'm uncertain where that is: it seems to vary by game.
ExFishermanBob is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:38 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.