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 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 08-22-16, 09:06 AM   #1
lexloma
Watch
 
Join Date: Jan 2009
Location: San Diego CA
Posts: 17
Downloads: 33
Uploads: 0
Default OrdersBar.cfg file question

Here's a snippet of code from OrdersBar.cfg:

Button10Type=Checkbox
Button10CommandWhenClicked=Toggle_silent_running
Button10CommandToCheckIfIsChecked=Is_Silent_mode_A ctive
Button10CommandToCheckIfIsEnabled=Is_Underwater


I searched and found that the commands used in OrdersBar.cfg are defined in SH4\Data\Cfg\commands.cfg file (for instance, "Toggle_silent_running", above).

My question is: where are the commands such as "Is_Silent_mode_Active" and "Is_Underwater" stored? These are the commands that let you test whether a given command is checked, enabled, etc., but for the life of me I cannot find where they are stored/defined.

Anyone know?
__________________
Silent Hunter 4 v1.5, TMO v2.5
lexloma is offline   Reply With Quote
Old 08-22-16, 10:52 AM   #2
CapnScurvy
Admiral
 
CapnScurvy's Avatar
 
Join Date: Apr 2005
Location: Dayton, Ohio
Posts: 2,292
Downloads: 474
Uploads: 64


Default

Quote:
Originally Posted by lexloma
My question is: where are the commands such as "Is_Silent_mode_Active" and "Is_Underwater" stored? These are the commands that let you test whether a given command is checked, enabled, etc., but for the life of me I cannot find where they are stored/defined.

Anyone know?
As far as I know, those "modifying" commands are in the hard coded areas of the game.....we don't have access to them. We don't really know how many there are either (could be a few more), we only know of their existence by seeing them used in the OrdersBar.cfg.

The entire list of possible button/keyboard commands (not the modifiers) can be found if you use jimimadrid's "SH 4 Menumaker". By using the mod you can see what the stock game has for those commands. He doesn't tell us what they do, or how/where their used (we pretty much have to find out on our own), but the entire list is there. As with the modifiers, we can't change them (their function is also set in the hard coded files), we only have the option to use them or not.
__________________


The HMS Shannon vs. USS Chesapeake outside Boston Harbor June 1, 1813

USS Chesapeake Captain James Lawrence lay mortally wounded...
Quote:
.."tell the men to fire faster, fight 'till she sinks,..boys don't give up the ship!"
CapnScurvy is offline   Reply With Quote
Old 08-22-16, 11:20 AM   #3
lexloma
Watch
 
Join Date: Jan 2009
Location: San Diego CA
Posts: 17
Downloads: 33
Uploads: 0
Default

Quote:
Originally Posted by CapnScurvy View Post
As far as I know, those "modifying" commands are in the hard coded areas of the game.....we don't have access to them. We don't really know how many there are either (could be a few more), we only know of their existence by seeing them used in the OrdersBar.cfg.
Many thanks, CapnScurvy; I was afraid of that. Appreciate your reply!
__________________
Silent Hunter 4 v1.5, TMO v2.5
lexloma 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 11:32 PM.


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