SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Sub/Naval + Other Games > Sub/Naval & General Games Discussion
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 01-25-10, 07:59 PM   #1
Onkel Neal
Born to Run Silent
 
Onkel Neal's Avatar
 
Join Date: Jan 1997
Location: Cougar Trap, Texas
Posts: 21,283
Downloads: 534
Uploads: 224


Default Rocket ship mission

I believe this is the 4th campaign, 2nd mission, where I need to take two PT boats and two rocket PT boats, fight off 8 enemy patrols and take out the airfield on the island. After about 30 tries, I am stumped. Any suggestions? Anyway to hack the mission and get rid of about 5 of the enemy boats?
__________________
SUBSIM - 26 Years on the Web
Onkel Neal is offline   Reply With Quote
Old 01-26-10, 09:09 AM   #2
timetraveller
Beach Leaf
 
Join Date: Dec 2004
Location: Atlantic Shipping Lanes
Posts: 287
Downloads: 1
Uploads: 0
Default

HI Neal,

It's possible to set your boats to God mode. I have used this technique to get past some hard ones.

For instance.

Open the mission script in the \MISSIONS folder (the .py file for the mission).

Find where your boats are defined. It will look something like this:

GTorpedoBoat1 = NavalObject ( 'Elco',RelationType.Friend,ObjectType.TorpedoBoat )
GTorpedoBoat1.setLogicalName('PT-24')

Add the following line of code after the above:

GTorpedoBoat1.enableGodMode ( True )

You will be invincible.

TT
timetraveller is offline   Reply With Quote
Old 01-27-10, 12:01 AM   #3
Onkel Neal
Born to Run Silent
 
Onkel Neal's Avatar
 
Join Date: Jan 1997
Location: Cougar Trap, Texas
Posts: 21,283
Downloads: 534
Uploads: 224


Default

Thank you man!!

Actually, I completed the mission with one PT boat intact!


But after heading south, I ended the mission...it will not let me go on to the next mission. Why won't it let me progress to the next mission?

Has anyone completed the whole campaign?

I will try it again in God mode.... thanks
__________________
SUBSIM - 26 Years on the Web
Onkel Neal is offline   Reply With Quote
Old 01-27-10, 12:07 AM   #4
Onkel Neal
Born to Run Silent
 
Onkel Neal's Avatar
 
Join Date: Jan 1997
Location: Cougar Trap, Texas
Posts: 21,283
Downloads: 534
Uploads: 224


Default

Like this?

RTBoat1 = NavalObject ( 'Elco', RelationType.Friend, ObjectType.TorpedoBoat )
RTBoat1.setLogicalName('TK-158')
RTBoat1.enableGodMode ( True )
RTBoat2 = NavalObject ( 'G5ROCKET', RelationType.Friend, ObjectType.TorpedoBoat )
RTBoat2.setLogicalName('TK-277')
RTBoat2.enableGodMode ( True )
RTBoat3 = NavalObject ( 'G5ROCKET', RelationType.Friend, ObjectType.TorpedoBoat )
RTBoat3.setLogicalName('TK-280')
RTBoat3.enableGodMode ( True )
RTBoat4 = NavalObject ( 'Elco', RelationType.Friend, ObjectType.TorpedoBoat )
RTBoat4.setLogicalName('TK-160')
RTBoat4.enableGodMode ( True )
__________________
SUBSIM - 26 Years on the Web
Onkel Neal is offline   Reply With Quote
Old 01-27-10, 12:11 AM   #5
Onkel Neal
Born to Run Silent
 
Onkel Neal's Avatar
 
Join Date: Jan 1997
Location: Cougar Trap, Texas
Posts: 21,283
Downloads: 534
Uploads: 224


Default

Did not work.
__________________
SUBSIM - 26 Years on the Web
Onkel Neal is offline   Reply With Quote
Old 01-27-10, 05:00 AM   #6
sergbuto
Pacific Aces Dev Team
 
Join Date: Sep 2002
Location: Sweden
Posts: 1,331
Downloads: 15
Uploads: 0


Default

When I was browsing through script files a while ago, I actually came across another way of setting the God mode but I do no remember how it was now, unfortunately.

Neal,

Removing a few enemy boats from a mission file may require quite a bit of editing. The quicker way is to replace the enemy boats with weaker/slower units or strengthen your force. Say, try to replace some of your boats with cruisers, i.e. instead of

RTBoat1 = NavalObject ( 'Elco', RelationType.Friend, ObjectType.TorpedoBoat )

put

RTBoat1 = NavalObject ( 'M_GORKY', RelationType.Friend, ObjectType.TorpedoBoat )

and see if this helps.
__________________
Serg's SH4 and SH3 pages

Last edited by sergbuto; 01-27-10 at 06:58 AM.
sergbuto is offline   Reply With Quote
Old 01-27-10, 08:51 AM   #7
Onkel Neal
Born to Run Silent
 
Onkel Neal's Avatar
 
Join Date: Jan 1997
Location: Cougar Trap, Texas
Posts: 21,283
Downloads: 534
Uploads: 224


Default

Thanks!

I'm digging through the file, trying to make sense of it. I did manage to keep the planes out of the air, but I still have not been able to get more friendly PT boats in, or weaken the numerous enemy boats.

Oh well, I have played 3/4 of the campaign, that's enough for a review.
__________________
SUBSIM - 26 Years on the Web
Onkel Neal is offline   Reply With Quote
Old 01-27-10, 02:17 PM   #8
timetraveller
Beach Leaf
 
Join Date: Dec 2004
Location: Atlantic Shipping Lanes
Posts: 287
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by Neal Stevens View Post
Like this? .....
Hi Neal,

What you tried looks good.

Seems that further down in the mission godmode is reset back to false for all RT boats.

Look for the code lines:

for RTBoat in RTBoats:
RTBoat.enableGodMode ( False )
RTBoat.enableSubFocusing ()

and change False to True

I think that should do it.

TT
timetraveller is offline   Reply With Quote
Old 01-27-10, 09:15 PM   #9
Onkel Neal
Born to Run Silent
 
Onkel Neal's Avatar
 
Join Date: Jan 1997
Location: Cougar Trap, Texas
Posts: 21,283
Downloads: 534
Uploads: 224


Default

Now you tell me

I broke the file so I am reinstalling. Maybe it will save my career progress....

Thanks, TT
__________________
SUBSIM - 26 Years on the Web
Onkel Neal is offline   Reply With Quote
Old 12-14-10, 10:56 AM   #10
Leandros
Seasoned Skipper
 
Join Date: Jul 2008
Location: Stockholm
Posts: 676
Downloads: 17
Uploads: 0
Default

Quote:
Originally Posted by Neal Stevens View Post
Thanks!

I'm digging through the file, trying to make sense of it. I did manage to keep the planes out of the air, but I still have not been able to get more friendly PT boats in, or weaken the numerous enemy boats.

Oh well, I have played 3/4 of the campaign, that's enough for a review.
I have also experienced missions that does not make a conclusion (end), either I make it or not. The best help I got was a bypass download.
Leandros 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:33 AM.


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.