Log in

View Full Version : [REQ] tweak to expand mission play area


Tempest555
06-24-10, 08:47 PM
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

:ping:

timetraveller
06-25-10, 07:56 AM
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

Tempest555
06-26-10, 03:10 AM
Many Thanks-I would never have found that!:salute:
Thank God for Notepad++.