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

Reply
 
Thread Tools Display Modes
Old 02-08-11, 10:17 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

@ Trevally: figured out how to change text color in a sentence

Currently I've defined the following:
{{b}} and {{/b}} - used to make bold text
{{green}} and {{/green}} - used to make green text
{{blue}} and {{/blue}} - used to make blue text
{{red}} and {{/red}} - used to make red text
{{yellow}} and {{/yellow}} - used to make yellow text

you surround the text you want displayed with any of the above commands to make it appear that way. i.e:

DisplayText|This is normal text. {{b}}This is bold text. {{/b}}{{green}}This is green text. {{/green}}{{blue}}This is blue text. {{/blue}}{{red}}This is red text.
{{/red}}{{yellow}}This is yellow text.{{/yellow}}|0|0|0|0|<waittime>


Any other colors I need to define? I'm thinking about removing blue as it's hard to see.

Will be available in next version of the mod

EDIT:

I removed blue.

Last edited by TheDarkWraith; 02-08-11 at 10:40 PM.
TheDarkWraith is offline   Reply With Quote
Old 02-08-11, 10:39 PM   #2
Akula4745
Convicted Ship Killer
 
Join Date: Mar 2009
Location: Just out of sight... plotting your course and speed
Posts: 846
Downloads: 374
Uploads: 1
Default

TDW - I must be the only one using them because no one else has ever mentioned it near as I can tell... but the rudder angle indicator (American version) is upside down (inverted). I swapped the German rudder angle indicator onto my American dials to fix my own... but you might want to change it in your files.

American dials:




German dials:


Thanks for all you do, TDW!
__________________
Akula4745



"If you sit by the river long enough... the body of your enemy will float by -- SunTzu"
Akula4745 is offline   Reply With Quote
Old 02-08-11, 10:42 PM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Akula4745 View Post
TDW - I must be the only one using them because no one else has ever mentioned it near as I can tell... but the rudder angle indicator (American version) is upside down (inverted). I swapped the German rudder angle indicator onto my American dials to fix my own... but you might want to change it in your files.

American dials:
can you send me the revised files and I'll update the mod
TheDarkWraith is offline   Reply With Quote
Old 02-12-11, 01:45 AM   #4
Akula4745
Convicted Ship Killer
 
Join Date: Mar 2009
Location: Just out of sight... plotting your course and speed
Posts: 846
Downloads: 374
Uploads: 1
Default

Quote:
Originally Posted by TheDarkWraith View Post
can you send me the revised files and I'll update the mod
Will do, TDW... its as good as on its way.
__________________
Akula4745



"If you sit by the river long enough... the body of your enemy will float by -- SunTzu"
Akula4745 is offline   Reply With Quote
Old 02-12-11, 02:35 AM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

this may not prove interesting to about 99% of you but I did find a way to manipulate menu items in C# Basically anything that you have access to in the Script Editor can be accessible in C#, C++, Visual Basic, etc. All you have to do is add a reference to the ScriptManagerWrappers.dll file to your project

Once you've done that you can pass ANY of those items to your application and perform work on them

This is great because now one can hide all their code in a .dll file so no one with prying eyes can look it over to see how you did something Code protection, it's a great thing
TheDarkWraith is offline   Reply With Quote
Old 02-12-11, 03:44 AM   #6
panosrxo
Planesman
 
Join Date: Jan 2010
Location: Greece
Posts: 188
Downloads: 115
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
this may not prove interesting to about 99% of you but I did find a way to manipulate menu items in C# Basically anything that you have access to in the Script Editor can be accessible in C#, C++, Visual Basic, etc. All you have to do is add a reference to the ScriptManagerWrappers.dll file to your project

Once you've done that you can pass ANY of those items to your application and perform work on them

This is great because now one can hide all their code in a .dll file so no one with prying eyes can look it over to see how you did something Code protection, it's a great thing
Plus it is going to be faster right?

Would it be possible to convert the whole game? Eliminate python? (Thats just a theoretical question)
panosrxo is offline   Reply With Quote
Old 02-12-11, 07:46 AM   #7
Stormfly
Serial Port Protector
 
Stormfly's Avatar
 
Join Date: Sep 2002
Posts: 1,424
Downloads: 370
Uploads: 0
Default

Quote:
Originally Posted by panosrxo View Post
Plus it is going to be faster right?

Would it be possible to convert the whole game? Eliminate python? (Thats just a theoretical question)
nice would also be accessing the sub engine / physics using external code like A2A Simulation did with their new ACCUSIM Spitfire for FSX
__________________
Stormy......

Stormfly is offline   Reply With Quote
Old 02-12-11, 12:27 PM   #8
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by panosrxo View Post
Plus it is going to be faster right?

Would it be possible to convert the whole game? Eliminate python? (Thats just a theoretical question)
well I'm going to convert as much of the code I wrote as possible into .dlls so that 1) game loads faster and 2) no one can copy it

Finally my ideas will be safe and I won't have to worry about others 'stealing' it This last point is especially important with the new finds I made!

Successfully subscribed to game events in C# code now Wow, this is whole new world opening up.....
TheDarkWraith is offline   Reply With Quote
Reply

Tags
dbrn, favorite, new ui

Thread Tools
Display Modes

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:49 AM.


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