![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
08-11-14, 02:35 PM
|
#1 | |
|
Torpedoman
![]() Join Date: Apr 2006
Location: Fuengirola, Spain
Posts: 117
Downloads: 592
Uploads: 0
|
Quote:
take a look here, dont need to ask the same on diferent threads ![]() Click here |
|
|
|
08-11-14, 03:53 PM
|
#2 | |
|
Watch
![]() Join Date: Aug 2014
Location: Dublin, Ireland
Posts: 15
Downloads: 27
Uploads: 0
|
Quote:
Hence the courteous different wording of each post, but your point is taken
__________________
" == Drinkin' an' Swimmin' With Bow Legged Wimmin' == "
|
|
|
|
08-13-14, 12:26 AM
|
#3 |
|
The Old Man
![]() |
Can we Script Minimum Days in Base?
Hi, tried to PM but you have exceeded your messages quota.
I have been away for a long time, almost 2 years. One of the first things I encountered after updating MODS was entering bunker 1 day before a mission started so upon exiting bunker, 13 days of mission time had already been wasted. I obviously edited my data\CFG\UPC.cfg changing value for MinimumDaysInBaseGE=14 to 1 so I could at least have a chance to complete the mission. This got me thinking. The value for MinimumDaysInBaseGE=XX may be a variable that could be scripted. If this is possible, We can set default to one(1) and I could script time for each piece of equipment being changed/added. i.e. SET MinimumDaysInBaseGE=%MinimumDaysInBaseGE%+XX for each piece of equipment being changed or added. The variable would be set/updated every time you hit the accept button located on bottom right of upgrades menu. Not sure how to or if we even want to handle torpedo loading because dragging torpedo doesn't use button to execute scripts. The default of one(1) day would be enough to cover torpedo loading and refueling. Maybe even have a UI Menu option to give like 1, 2, 5 or 10 days of shore leave to crew that is only available when near base or friendly port. Like when the Refit option appears. I do know that if the variable is set before entering bunker it will be saved to save game or when entering bunker but not sure about the shore leave part. And if some one makes equipment changes in bunker we may have to update Entering Bunker and or latest save game file when exiting Upgrades Menu. %UserProfile%\Documents\SH5\data\cfg\SaveGames\<La stSave>\CareerTrack.upc PatrolStartDateTime=YYYY-MM-DD HH:MM:SS The %UserProfile% is a default OS variable that is set when a User logs onto the computer. Not sure how to access this variable from game but game know where to put save files. What do you think? ![]() Regards! TheBeast Last edited by TheBeast; 08-14-14 at 05:28 PM. |
|
|
08-19-14, 07:58 PM
|
#4 | |
|
Black Magic
![]() |
Quote:
Reading of environment variables such as %UserProfile% can be done in Python |
|
|
|
08-19-14, 08:00 PM
|
#5 |
|
Ace of the deep .
|
Test version 18 , whoops . Still using 17 . Will update my mod list .
|
|
|
08-19-14, 08:05 PM
|
#6 |
|
Black Magic
![]() |
Yeah 18 is needed because I redid the hydro follow target to eliminate the lock-on errors that happened before 18. Also fixed the problem of user's dragging SOAN off the side of the screen and then having to delete the draggable files in order to get it back - now the game is smart enough to see that SOAN is off the edges of the screen (at game start) and will reset it to it's as-designed position (basically it always wants to see at least one of the tabs visible on the screen).
|
|
|
08-19-14, 08:20 PM
|
#7 |
|
Ace of the deep .
|
Check this mod out . Do you see what I did there . You have no load save in the game menu , just continue career option .
http://www.subsim.com/radioroom//dow...o=file&id=4332 |
|
|
![]() |
| Tags |
| dbrn, favorite, new ui |
| Thread Tools | |
| Display Modes | |
|
|
