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 07-12-07, 06:28 PM   #106
tater
Navy Seal
 
Join Date: Mar 2007
Location: New Mexico, USA
Posts: 9,023
Downloads: 8
Uploads: 2
Default

Quote:
Originally Posted by mcoca
Quote:
Originally Posted by lurker_hlb3
having a problem with "cargoExt & cargoInt". When I use/change them get "error" saying that these item are read only. Was using them in contection with editing / creating merchants.
I expanded the internal names to "internalCargo" and "externalCargo". I have no idea why the error is so silly...

Quote:
is there code to "randomly" selecting "crewratings" ?
Not per se, but it's really easy to create your own:

Code:
unit.crewRating=choice((CrewRating.POOR, CrewRating.NOVICE, CrewRating.COMPETENT))
That will select a random element from that list. Add or remove elements at will. You can also edit init.py to add a function that does that as shorthand.
Can you create a list with the same entry twice?

For example:
Code:
unit.crewRating=choice((CrewRating.COMPETENT, CrewRating.COMPETENT, CrewRating.COMPETENT, CrewRating.COMPETENT, CrewRating.COMPETENT, CrewRating.COMPETENT, CrewRating.VETERAN, CrewRating.VETERAN, CrewRating.VETERAN, CrewRating.ELITE))
The idea would be that without other coding it would quickly give a 10% chance of Elite, 30% vet, 60% Competant.

tater
tater is offline   Reply With Quote
Old 01-22-09, 06:04 AM   #107
keltos01
Silent Hunter
 
Join Date: Feb 2008
Location: Milan Italy
Posts: 4,999
Downloads: 114
Uploads: 18
Default

nice work !

keltos
__________________
"Honorable Builder of Sinking Ships"

keltos01 is offline   Reply With Quote
Old 02-07-09, 11:16 PM   #108
ivank
The Old Man
 
Join Date: Apr 2008
Location: Huntington, Long Island, New York
Posts: 1,426
Downloads: 284
Uploads: 0
Default

may I still use this?
__________________
Head of The Surface Warfare Super-Mod Team

Leutnant z. S. David U. Ziegler
U-105 IXB On Patrol 1

ivank is offline   Reply With Quote
Old 02-08-09, 02:46 AM   #109
tater
Navy Seal
 
Join Date: Mar 2007
Location: New Mexico, USA
Posts: 9,023
Downloads: 8
Uploads: 2
Default

Why not? He wrote it as a tool for people. And an awesome tool it is!
tater is offline   Reply With Quote
Old 09-20-10, 05:12 AM   #110
keltos01
Silent Hunter
 
Join Date: Feb 2008
Location: Milan Italy
Posts: 4,999
Downloads: 114
Uploads: 18
Default

I'm gonna see what this thing does

keltos
__________________
"Honorable Builder of Sinking Ships"

keltos01 is offline   Reply With Quote
Old 09-20-10, 08:01 AM   #111
tater
Navy Seal
 
Join Date: Mar 2007
Location: New Mexico, USA
Posts: 9,023
Downloads: 8
Uploads: 2
Default

It does... a lot.
tater is offline   Reply With Quote
Old 09-20-10, 12:19 PM   #112
keltos01
Silent Hunter
 
Join Date: Feb 2008
Location: Milan Italy
Posts: 4,999
Downloads: 114
Uploads: 18
Default

Quote:
Originally Posted by tater View Post
It does... a lot.
can't even seem to be able to load the program !
__________________
"Honorable Builder of Sinking Ships"

keltos01 is offline   Reply With Quote
Old 09-20-10, 04:47 PM   #113
tater
Navy Seal
 
Join Date: Mar 2007
Location: New Mexico, USA
Posts: 9,023
Downloads: 8
Uploads: 2
Default

Odd. It uses scripting, so you might need to have the right frameworks set up. Check the readme.
tater 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 12:14 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.