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 03-30-10, 10:37 AM   #241
Thresher
Sparky
 
Join Date: Apr 2006
Location: New Mexico, USA
Posts: 151
Downloads: 20
Uploads: 0
Default

I emailed UBI about getting a list of globals and to what extent we can play with the .py legally ..... and a few other things.

Cross your fingers.
Thresher is offline   Reply With Quote
Old 03-30-10, 03:00 PM   #242
Thresher
Sparky
 
Join Date: Apr 2006
Location: New Mexico, USA
Posts: 151
Downloads: 20
Uploads: 0
Default

Quote:
Originally Posted by Thresher View Post
I emailed UBI about getting a list of globals and to what extent we can play with the .py legally ..... and a few other things.

Cross your fingers.
I asked:

Is their a list of global variables that are accessible by scripts?

For instance, we want to determine if a depth clicked on the gauge is greater than or less than current depth, so that we can perform different crew actions via scripts.

Reply:


Response (Jason) - 03/30/2010 03:28 PM
Unfortunately, Ubi Soft Technical Support can not provide information for editing the game in any way. Please refer to your LICENSE AGREEMENT for more information.


Thresher is offline   Reply With Quote
Old 03-30-10, 03:02 PM   #243
kylania
Silent Hunter
 
Join Date: Aug 2006
Posts: 3,528
Downloads: 118
Uploads: 0
Default

Quote:
Originally Posted by Thresher View Post
I emailed UBI about getting a list of globals and to what extent we can play with the .py legally ..... and a few other things.

Cross your fingers.
Quote:
There's a button called ViewGlobals to let you see the variables that the script is working with and see the exposed properties for those variables.
* The script manager has some useful features like text-auto-complete, jump-to-function-definition, find-text and go-to-line-number.
* Also, there's a tab called Class Definitions to see all the classes exported to the python scripts containing the inheritance tree, description, nested types, properties, methods and events.
http://www.subsim.com/radioroom/showthread.php?t=162702
__________________

kylania is offline   Reply With Quote
Old 03-30-10, 03:12 PM   #244
schuhart
Watch
 
Join Date: Apr 2005
Location: Denmark
Posts: 30
Downloads: 104
Uploads: 0
Default

Fantastic mod
Hoping for more addons in the near future.


Schuhart
schuhart is offline   Reply With Quote
Old 03-30-10, 03:18 PM   #245
urfisch
Sea Lord
 
Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,969
Downloads: 42
Uploads: 0
Default

Quote:
Originally Posted by Thresher View Post
I emailed UBI about getting a list of globals and to what extent we can play with the .py legally ..... and a few other things.

Cross your fingers.
ask one of the devs via pm here...you might get an answer...



marean_m or elanaiba
__________________


urfisch is offline   Reply With Quote
Old 03-30-10, 03:36 PM   #246
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Thresher View Post
I asked:

Is their a list of global variables that are accessible by scripts?

For instance, we want to determine if a depth clicked on the gauge is greater than or less than current depth, so that we can perform different crew actions via scripts.
GUIDialsWrapper provides functions just for this. A good example of this code being used is in my UIs mod.
TheDarkWraith is offline   Reply With Quote
Old 03-31-10, 04:38 PM   #247
kapitan_zur_see
Commodore
 
Join Date: Mar 2005
Location: France
Posts: 614
Downloads: 60
Uploads: 0
Default

fantastic work, as always with you Heretic
__________________

kapitan_zur_see is offline   Reply With Quote
Old 04-02-10, 05:58 AM   #248
ACSoft
Soundman
 
Join Date: Mar 2005
Location: Switzerland
Posts: 149
Downloads: 57
Uploads: 0
Default

Quote:
Originally Posted by Heretic View Post
Clicking the depth gauge triggers the set_depth command. I can script it to do anything I want. The trouble is I don't know which direction the depth change is so I just have some hydroplane orders. Even if the boat is on the surface, I can't assume that a depth change is a dive since you could be clicking on 0 depth or something.
Of course, if you cannot detect that the command is given when in "surfaced" state and that the command order a depth greater or equal to periscope deepth, better to left all this as it is now.

Sad, I thought this might be possible to do in the script, by reading some variables.


Quote:
Originally Posted by Heretic View Post
As far as getting the crew down before it goes under. The only way I 've thought of is to move the crash_dive command down futher in the sequence, delaying the dive. Dunno if that's an appropriate thing for this mod to be doing tho.
Thanks for the info. I will make some tests.

ACS
ACSoft is offline   Reply With Quote
Old 04-05-10, 01:26 PM   #249
EgoApocalypse
Lieutenant
 
Join Date: Jun 2008
Location: The system might fail you. But dont fail youself...................
Posts: 252
Downloads: 36
Uploads: 0
Default

Great.................now its starting to feel like it should.
__________________




EgoApocalypse is offline   Reply With Quote
Old 04-05-10, 08:49 PM   #250
vonTorpitz
Seaman
 
Join Date: Apr 2010
Location: an island in the Pacific
Posts: 42
Downloads: 23
Uploads: 0
Thanks Heretic. I was having a hard time adapting to the new officer interaction feature and you're making it easier with fine work like this. Your crew are infinitely cooler and more authentic looking than the vanilla guys.
__________________
God damn them all. I was told, we'd cruise the seas for American gold. We'd fire no guns, shed no tears. Now I'm a broken man on a Halifax pier.
The last of Barrett's privateers.

vonTorpitz is offline   Reply With Quote
Old 04-05-10, 09:33 PM   #251
Sgtmonkeynads
Ships Secretary
 
Sgtmonkeynads's Avatar
 
Join Date: Apr 2009
Location: MilesCity Montana
Posts: 583
Downloads: 614
Uploads: 0
Default

No joke their better.
I imagine I shot my old crew for insubordination.
__________________
Just help someone.....it makes a difference
Sgtmonkeynads is offline   Reply With Quote
Old 04-06-10, 07:09 AM   #252
redcoat22
Sailor man
 
Join Date: Apr 2008
Posts: 48
Downloads: 8
Uploads: 0
Default

I keep hoping for a 'break out' release of this MOD
redcoat22 is offline   Reply With Quote
Old 04-06-10, 09:17 AM   #253
Heretic
Commodore
 
Join Date: Mar 2005
Location: Nebraska
Posts: 617
Downloads: 240
Uploads: 2


Default

Quote:
Originally Posted by redcoat22 View Post
I keep hoping for a 'break out' release of this MOD
What do you mean by a 'break out' release?
Heretic is offline   Reply With Quote
Old 04-06-10, 12:33 PM   #254
redcoat22
Sailor man
 
Join Date: Apr 2008
Posts: 48
Downloads: 8
Uploads: 0
Default

I keep hoping to visit here a see "Release 2.0" Full crew movements around sub, crash diving, eating dinner, playing games

Just wishful thinking

Great work man
redcoat22 is offline   Reply With Quote
Old 04-06-10, 12:43 PM   #255
Ragtag
Seasoned Skipper
 
Join Date: Jan 2002
Location: Oslo, Norway
Posts: 654
Downloads: 163
Uploads: 0
Default

When will we get an update with the crashdive fix?
__________________
Intel I7-7800x CPU.
16Gb G.skill DDR4 3600MHz.
Asrock Taichi X299 mb
Palit RTX 2080Ti.
Fortron 1000W PSU.
BenQ XR3501R LCD.
Ragtag is offline   Reply With Quote
Reply

Tags
favorite


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 12:47 AM.


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.