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 > Silent Hunter 5
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 03-12-10, 10:57 PM   #31
Méo
Ace of the Deep
 
Join Date: Aug 2009
Location: Quebec City
Posts: 1,153
Downloads: 258
Uploads: 0
Default

Quote:
Originally Posted by Drifter View Post
AI U-boat submerged times, depths, speeds, attack tactics, etc can also be adjusted.

That is why it pains me so much to see other parts of SH5 so broken. There is much potential here!
I got another question, if you don't mind.

How do you see it, is it in: data/Scripts/AI ?

And how do you open the files ? (I know I'm really ignorant when it comes to modding , but I got interest )

Thanks!
Méo is offline   Reply With Quote
Old 03-12-10, 11:00 PM   #32
Drifter
Frogman
 
Join Date: Mar 2010
Posts: 308
Downloads: 75
Uploads: 0
Default

Quote:
Originally Posted by Méo View Post
I got another question if you don't mind.

How do you see it, is it in: data/Scripts/AI ?

And how do you open the files ? (I know I'm really ignorant when it comes to modding , but I got interest )

Thanks!
Yes, that folder I think (SH5 not installed right now). Now left click on the AI script file of your choice and choose 'select program from the list'. Scroll down and choose notepad. Check the 'always use selected program' button. Click 'ok'. Should be visible now for editing.

Some of the AI files are hard-coded and cannot be viewed correctly. I really don't remember the file extension names, though.

Last edited by Drifter; 03-12-10 at 11:10 PM.
Drifter is offline   Reply With Quote
Old 03-12-10, 11:06 PM   #33
Méo
Ace of the Deep
 
Join Date: Aug 2009
Location: Quebec City
Posts: 1,153
Downloads: 258
Uploads: 0
Default

Quote:
Originally Posted by Drifter View Post
Yes, that folder I think (SH5 not installed right now). Now right click on the AI script file of your choice and choose 'open with'. Check the 'always open with' button and choose notepad. Should be visible now for editing.

Some of the AI files are hard-coded and cannot be viewed correctly. I really don't remember the file extension names, though.
Ok, thanks!

I didn't think it was so simple with the notepad, however, modding those files doesn't look that easy...
Méo is offline   Reply With Quote
Old 03-12-10, 11:11 PM   #34
Drifter
Frogman
 
Join Date: Mar 2010
Posts: 308
Downloads: 75
Uploads: 0
Default

Quote:
Originally Posted by Méo View Post
Ok, thanks!

I didn't think it was so simple with the notepad, however, modding those files doesn't look that easy...
Much simpler than hex editing.
Drifter is offline   Reply With Quote
Old 03-12-10, 11:22 PM   #35
Méo
Ace of the Deep
 
Join Date: Aug 2009
Location: Quebec City
Posts: 1,153
Downloads: 258
Uploads: 0
Default

Quote:
Originally Posted by Drifter View Post
Much simpler than hex editing.
I didn't know what was hex editing, so I checked on google, yes, it seems to be quite complex.

But, I'm really curious to know how to modify those files in SH5.

Don't feel forced to reply, you did enough, I'll check on my own.

Thanks!
Méo is offline   Reply With Quote
Old 03-12-10, 11:27 PM   #36
Drifter
Frogman
 
Join Date: Mar 2010
Posts: 308
Downloads: 75
Uploads: 0
Default

Quote:
Originally Posted by Méo View Post
I didn't know what was hex editing, so I checked on google, yes, it seems to be quite complex.

But, I'm really curious to know how to modify those files in SH5.

Don't feel forced to reply, you did enough, I'll check on my own.

Thanks!
I hope we are talking about the same files. I don't have the game installed right now, so I can't check the exact AI file location. The moddable AI files should already be in notepad form with readable text. If the files you are opening in notepad look like jibberish, they are hard-coded, and the wrong files.
Drifter is offline   Reply With Quote
Old 03-12-10, 11:32 PM   #37
Méo
Ace of the Deep
 
Join Date: Aug 2009
Location: Quebec City
Posts: 1,153
Downloads: 258
Uploads: 0
Default

Quote:
Originally Posted by Drifter View Post
I hope we are talking about the same files. I don't have the game installed right now, so I can't check the exact AI file location. The moddable AI files should already be in notepad form with readable text. If the files you are opening in notepad look like jibberish, they are hard-coded, and the wrong files.
It looks like this:

----

strategy SubStrategies(Sub)
{
strategies
{
Attack,
Navigate
}
}

# Attacks an enemy contact
strategy Attack(Sub)
{
precond
{
Sub:CanFire()
}
strategies
{
ShipAttack,
SubmarineAttack
}
}

strategy ShipAttack(Sub)
{
precond
{
!Sub:ContactIs(SUBMARINE)
}
strategies
{
TorpedoAttack,
CannonAttack
}
}

----

It's much longer but I didn't want to take too much space here.
Méo is offline   Reply With Quote
Old 03-12-10, 11:34 PM   #38
jazman
Commander
 
Join Date: Jul 2007
Location: Crush Depth
Posts: 449
Downloads: 50
Uploads: 0
Default

Meo and Drifter chatting so nicely. It brought a little tear to my eye.
__________________
"The true soldier fights not because he hates what is in front of him, but because he loves what is behind him."
-- Chesterton
jazman is offline   Reply With Quote
Old 03-12-10, 11:36 PM   #39
Drifter
Frogman
 
Join Date: Mar 2010
Posts: 308
Downloads: 75
Uploads: 0
Default

Quote:
Originally Posted by Méo View Post
It looks like this:

----

It's much longer but I didn't want to take too much place here.
Yeah, that's it. Python scripting language. Take the time to learn scripting by looking at examples of other scripts. It's really not as hard as it looks. It will be worth the effort.
Drifter is offline   Reply With Quote
Old 03-12-10, 11:36 PM   #40
Drifter
Frogman
 
Join Date: Mar 2010
Posts: 308
Downloads: 75
Uploads: 0
Default

Quote:
Originally Posted by jazman View Post
Meo and Drifter chatting so nicely. It brought a little tear to my eye.
The world must be ending.
Drifter is offline   Reply With Quote
Old 03-12-10, 11:36 PM   #41
Méo
Ace of the Deep
 
Join Date: Aug 2009
Location: Quebec City
Posts: 1,153
Downloads: 258
Uploads: 0
Default

Quote:
Originally Posted by jazman View Post
Meo and Drifter chatting so nicely. It brought a little tear to my eye.


Quote:
Originally Posted by Drifter View Post
Yeah, that's it. Python scripting language. Take the time to learn scripting by looking at examples of other scripts. It's really not as hard as it looks. It will be worth the effort.
Yes, I will, thanks again!
Méo is offline   Reply With Quote
Old 03-12-10, 11:43 PM   #42
Drifter
Frogman
 
Join Date: Mar 2010
Posts: 308
Downloads: 75
Uploads: 0
Default

Quote:
Originally Posted by Méo View Post




Yes, I will, thanks again!
To get you started, try here:

http://www.sthurlow.com/python/

http://docs.python.org/tutorial/

http://coolnamehere.com/geekery/python/pythontut.html

http://wiki.python.org/moin/BeginnersGuide

Please note that many of the functions in these tutorial examples will not be available in SH5. Again, look at other script examples in SH5 to see what can and cannot be done. Good luck!
Drifter is offline   Reply With Quote
Old 03-12-10, 11:48 PM   #43
Méo
Ace of the Deep
 
Join Date: Aug 2009
Location: Quebec City
Posts: 1,153
Downloads: 258
Uploads: 0
Default

At least they say that:

Quote:
If you have never programmed before in your life, then do I have the perfect programming language for you. It's called Python
I've saved your links.

Great!
Méo is offline   Reply With Quote
Old 03-12-10, 11:52 PM   #44
Drifter
Frogman
 
Join Date: Mar 2010
Posts: 308
Downloads: 75
Uploads: 0
Default

Quote:
Originally Posted by Méo View Post
At least they say that:



I've saved your links.

Great!
We still don't know all the script command functions available in SH5. Maybe a list will be released someday?
Drifter is offline   Reply With Quote
Old 03-12-10, 11:52 PM   #45
pythos
Grey Wolf
 
Join Date: May 2005
Location: Somewhere over there
Posts: 834
Downloads: 46
Uploads: 0
Default

Yet another person that should watch how fast the hatch swings as he leaves.
pythos 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 04:15 PM.


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.