SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   Silent Hunter 5 (https://www.subsim.com/radioroom/forumdisplay.php?f=244)
-   -   I give up. SH5 uninstalled (https://www.subsim.com/radioroom/showthread.php?t=164614)

Méo 03-12-10 10:57 PM

Quote:

Originally Posted by Drifter (Post 1312203)
AI U-boat submerged times, depths, speeds, attack tactics, etc can also be adjusted. :woot:

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 :oops:, but I got interest :arrgh!:)

Thanks!

Drifter 03-12-10 11:00 PM

Quote:

Originally Posted by Méo (Post 1312214)
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 :oops:, but I got interest :arrgh!:)

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.

Méo 03-12-10 11:06 PM

Quote:

Originally Posted by Drifter (Post 1312220)
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...:-?

Drifter 03-12-10 11:11 PM

Quote:

Originally Posted by Méo (Post 1312228)
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. :sunny:

Méo 03-12-10 11:22 PM

Quote:

Originally Posted by Drifter (Post 1312232)
Much simpler than hex editing. :sunny:

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! :salute:

Drifter 03-12-10 11:27 PM

Quote:

Originally Posted by Méo (Post 1312246)
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! :salute:

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.

Méo 03-12-10 11:32 PM

Quote:

Originally Posted by Drifter (Post 1312255)
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. ;)

jazman 03-12-10 11:34 PM

Meo and Drifter chatting so nicely. It brought a little tear to my eye. :sunny:

Drifter 03-12-10 11:36 PM

Quote:

Originally Posted by Méo (Post 1312259)
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 03-12-10 11:36 PM

Quote:

Originally Posted by jazman (Post 1312266)
Meo and Drifter chatting so nicely. It brought a little tear to my eye. :sunny:

The world must be ending. :rotfl2:

Méo 03-12-10 11:36 PM

Quote:

Originally Posted by jazman (Post 1312266)
Meo and Drifter chatting so nicely. It brought a little tear to my eye. :sunny:

:haha::yeah:

Quote:

Originally Posted by Drifter (Post 1312267)
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!

Drifter 03-12-10 11:43 PM

Quote:

Originally Posted by Méo (Post 1312269)
:haha::yeah:



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! :sunny:

Méo 03-12-10 11:48 PM

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! :up:

Drifter 03-12-10 11:52 PM

Quote:

Originally Posted by Méo (Post 1312282)
At least they say that:



I've saved your links.

Great! :up:

We still don't know all the script command functions available in SH5. Maybe a list will be released someday?

pythos 03-12-10 11:52 PM

Yet another person that should watch how fast the hatch swings as he leaves.


All times are GMT -5. The time now is 02:43 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.