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 06-24-10, 08:47 PM   #1
Tempest555
Electrician's Mate
 
Join Date: Nov 2008
Posts: 137
Downloads: 166
Uploads: 0
Default [REQ] tweak to expand mission play area

Timetraveler posted what I put in italics below on editing a file so you can leave a map-can someone point me to the proper xml file file to do this? I suspect it's a file xml tweak or PY file in the various tutorial/missions in GameData\MISSIONS but not sure. TIA

12. Though the map size seems to be fixed at about 24km square, a simple tweak allows units to leave the map without killing the mission, expanding the play area (although you are no longer on the radar screen when you leave the map). This at least makes an almost unlimited first person playable area.
-timetraveler




Tempest555 is offline   Reply With Quote
Old 06-25-10, 07:56 AM   #2
timetraveller
Beach Leaf
 
Join Date: Dec 2004
Location: Atlantic Shipping Lanes
Posts: 287
Downloads: 1
Uploads: 0
Default

Hi Tempest555,

The tweak allows you to leave the map without the game killing the mission. However, when you leave the map you won't be able to track yourself on the radar map because that is fixed at the 24km range.

Open SCRIPTS\interactive\focus.py in a text editor.

Comment out the following statement (by inserting a # character):

#interactive.preventLeavingMap()

Then resave the file.

The code section is shown below.

def setDefaultWorldObjectCriterion(criterion):
'''Устанавливает критерий, используемый функцией focusNextWorldObject
при её вызове без параметров. В том числе при переключении по кнопке ~'''
global __defaultWorldObjectCriterion
__defaultWorldObjectCriterion = criterion
hud.setObjectsCanGrabFocus(getObjectsCanGrabFocus( ))
#interactive.preventLeavingMap()

__nextPreds = [lambda ind: ind+1, lambda ind: ind-1]

'=====================================

timetraveller
timetraveller is offline   Reply With Quote
Old 06-26-10, 03:10 AM   #3
Tempest555
Electrician's Mate
 
Join Date: Nov 2008
Posts: 137
Downloads: 166
Uploads: 0
Many Thanks-I would never have found that!
Thank God for Notepad++.
Tempest555 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 09:01 AM.


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.