![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 |
Commodore
![]() Join Date: Dec 2009
Location: My House
Posts: 608
Downloads: 161
Uploads: 0
|
![]()
I keep telling people that say "that's impossible to mod", "you could script it"
But: HOW DO I SCRIPT??? PLEASE HELP! ![]() ![]() ![]() |
![]() |
![]() |
![]() |
#2 |
The Old Man
![]() Join Date: Mar 2010
Location: U.S.A.-East Coast
Posts: 1,587
Downloads: 86
Uploads: 4
|
![]()
Heck yeah, I could use a lot more information on how to script.
Is there a good thread on it, or a video, etc. anywhere we should look into?
__________________
![]() He sank 198,650 tons....who you ask?....Erich Topp, that's who! |
![]() |
![]() |
![]() |
#3 |
Silent Hunter
![]() Join Date: Aug 2006
Posts: 3,528
Downloads: 118
Uploads: 0
|
![]() |
![]() |
![]() |
![]() |
#4 |
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
|
![]()
I keep asking myself that everyday. Best advice I can give is to look at the stock scripts and other peoples scripts. Pick a feature out of them you'ld like to replicate and trace that function through the script - copying the relevant parts into say notepad.
Then change all the item valuse to match your items you want to control. Its difficult but possible - you can expect a lot of hair pulling due to countless script errors. But stick with it and sonner or later you'll get it to work. Have a look at my scripts in my UI - there not great scripts but they do there job in a more simplier method (Not as efficent) but they should be easier to read and see what there doing. This is because I've only figured out the basics so it takes me 50 lines of repetive stuff that 3 lines of more complex code to do. ![]() |
![]() |
![]() |
![]() |
#5 | |
Commodore
![]() Join Date: Dec 2009
Location: My House
Posts: 608
Downloads: 161
Uploads: 0
|
![]() Quote:
|
|
![]() |
![]() |
![]() |
#6 |
The Old Man
![]() Join Date: Mar 2010
Location: U.S.A.-East Coast
Posts: 1,587
Downloads: 86
Uploads: 4
|
![]()
Thanks for the advice/resources guys. I can do real simple scripting, especially if I look at other's work, but the second it gets complicated at all, I get totally confused. Funny thing is, I have really only been doing mod work for about a week and a half.
![]()
__________________
![]() He sank 198,650 tons....who you ask?....Erich Topp, that's who! |
![]() |
![]() |
![]() |
#7 |
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
|
![]()
Thats the same level for me too.
![]() |
![]() |
![]() |
![]() |
#9 | |
Black Magic
![]() |
![]() Quote:
Python is much easier than C++ and C# that's for sure but it's also less powerful. Python and IronPython are great languages though for extending (scripting) a game like the devs have done with SH5. |
|
![]() |
![]() |
![]() |
#10 |
Commodore
![]() Join Date: Dec 2009
Location: My House
Posts: 608
Downloads: 161
Uploads: 0
|
![]()
What I really want to know are the commands that are useful for modding
|
![]() |
![]() |
![]() |
|
|