Home » MODDING HQ 1.13 » v1.13 Bug Reports » [Fix] Catched the mobiles
[Fix] Catched the mobiles[message #325103] Thu, 12 September 2013 18:49 Go to previous message
Moa is currently offline Moa

 
Messages:58
Registered:September 2013
Mobile Militita is a great feature. The map view for restricting them was a pain.
Player could not get the militia to move except he has set ALLOW_DYNAMIC_RESTRICTED_ROAMING = TRUE in ini. Furthermore some settings dont had any effect at all. Restricting was not possible, orders are ignored and the queens army was smarter. Therefore I never realy used this feature until someone in IRC mentioned the oddity.

http://i.imgur.com/ZHItuv0.png

He wasnt able to get the militia in F13 to move. Albeit he was playing 4870 the problem is the same.

Here are some picture on revision 6394:
http://www7.pic-upload.de/thumb/12.09.13/7l7yhd6wxqt7.jpg
(ALLOW_MILITIA_MOVEMENT_THROUGH_EXPLORED_SECTORS = FALSE anything else true)
Militia is sitting around the town and dont move. They are waiting for the queens army, I have to agree. The opponent is moving allways to a town, so why move?

or this (ALLOW_DYNAMIC_RESTRICTED_ROAMING = FALSE anything else true):
http://www7.pic-upload.de/thumb/12.09.13/khxrjrep4b3.jpg
Here you couldnt even manually adjust the green sectors. Militia is moving, but not in the green area but instead along the the dynamic area which I have turned off!!

Turning both on is not better:
http://www7.pic-upload.de/thumb/12.09.13/sacf97pa3rm5.jpg
Here one is able to manually restrict, unfortunatly not everywhere. Militia will not move to the green area, but it seems like we have done something and it looks like they will do eventuelly something. They no want to move nowhere!


Now something positive about the current implementation:
Militia is following the mercs - this is great for attacking.
The reinforcement in battles and to town garisions works as well. They are not attacking the SAM site even when it is green - thats how it is supposed to work. Source code for the mobile militia is commented very well beeing the typical Headrock.
So there was just the problem to change that behavier a bit to make it more 'userfriendly'.

Probably there are still some oddities but I think its presentable.
The mobiles are moving correctly in the green area, stop at yellow and dont cross the red areas. Gray sectors are not manually restrictable and militia will not enter.
[color:#330000]What you will see are pictures taken using a debugger to speed up things, please ignore the positions of the militia.
It works!! I promise Wink
Also I have 'unvisited' A10 Omerta using the debugger to better demonstrate the settings
[/color]





http://www7.pic-upload.de/12.09.13/51rjipcy8aec.jpg
visit sectors
Catched the mobiles!

This corrects some issues with the awesome mobile militia feature by Headrock.

Each setting in ini now has the effect that the user expects,
he now sees the correct restrictions on the map,
and is able to adjust manually as neccessary

http://www7.pic-upload.de/12.09.13/p7ypmwvrsf6.jpg
- RESTRICT_ROAMING=TRUE

http://www7.pic-upload.de/12.09.13/68jnoozo7sm.jpg
- and RESTRICT_ROAMING=FALSE
activates the manual adjustable restrictions based on exploration and/or conquest.
Any of the following settings can be mixed as you like

http://www7.pic-upload.de/12.09.13/bsgjrzsgmp.jpg
- ALLOW_MILITIA_MOVEMENT_THROUGH_EXPLORED_SECTORS=TRUE
Exploration based: any liberated sector is potentially accessible for mobile militia.
You need to load the map and defeat all enemies. Walking through on strategic view is unsufficient!

http://www7.pic-upload.de/12.09.13/2s87nvc3jyaj.jpg
- ALLOW_DYNAMIC_RESTRICTED_ROAMING=TRUE
Conquest based: Liberating a town will increase the accessible sector count.
See Data-1.13/TableData/Map/DynamicRestrictions.XML

http://www7.pic-upload.de/thumb/12.09.13/wi8zorq3wnwu.jpg
- ALLOW_MILITIA_MOVEMENT_THROUGH_MINOR_CITIES=TRUE

yea its realy minor, its such a small city that the picture dont need to be big. You wouldnt see it if the picture were larger. (click on it to enlarge)
Mobile militia can move thru cities where militia training is not allowed(e.g. Tixa, San Mona, Omerta,...)
In earlier versions those cities where allready included in DynamicRestrictions.XML which rendered this setting allmost useless.

http://www7.pic-upload.de/12.09.13/cgur1tqvcs9.jpg
- Everything on
You can mix all of the settings as you like

NOTE:
Older savegames have still the 'gray' sector restriction set.
Those will be converted to 'red' according to the settings in Ja2_Options.INI on load.



>>>>download patch files<<<<

Report message to a moderator

Corporal
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with APs and inventory
Next Topic: training bug
Goto Forum:
  


Current Time: Sat Nov 30 00:02:11 GMT+2 2024

Total time taken to generate the page: 0.00944 seconds