Home » PLAYER'S HQ 1.13 » JA2 Complete Mods & Sequels » Stracciatella Project (Platform Independent JA2) » [Fix] Loyalty loss in tactical screen
[Fix] Loyalty loss in tactical screen[message #314382] Sat, 19 January 2013 00:25 Go to next message
mgl is currently offline mgl

 
Messages:255
Registered:December 2007
Location: France
This single line patch should fix the loyalty loss that you suffer when moving in tactical screen between the militia-garrisoned sectors of a city.

I noticed this bug in Cambria but it probably happens in any city except Omerta, Drassen and Chitzena (where it's easier to increase loyalty)

The patch is against Tron's old subversion repository (last update: r7072, 2010-08). I don't know if there is an active repository nowadays. Probably not.


tactical_loyalty_loss_fix.diff:
Index: Build/Strategic/StrategicMap.cc
===================================================================
--- Build/Strategic/StrategicMap.cc	(revision 7072)
+++ Build/Strategic/StrategicMap.cc	(working copy)
@@ -2131,7 +2131,14 @@
 		fEnemiesInLoadedSector = TRUE;
 	}
 
-	HandleLoyaltyImplicationsOfMercRetreat( RETREAT_TACTICAL_TRAVERSAL, gWorldSectorX, gWorldSectorY, gbWorldSectorZ );
+	if (fEnemiesInLoadedSector)
+	{
+		HandleLoyaltyImplicationsOfMercRetreat( RETREAT_TACTICAL_TRAVERSAL, gWorldSectorX, gWorldSectorY, gbWorldSectorZ );
+	}
 
 	//Setup strategic traversal information
 	if( guiAdjacentTraverseTime <= 5 )



Copy the "diff" file at the root of your source code tree, run the patch by typing:
$ patch -p0 < tactical_loyalty_loss_fix.diff
(or simply add the "if" statement in 'StrategicMap.cc').

And recompile.



In the original code, you lost loyalty because the game thought you were fleeing a fight when you left the sector, abandoning your militia to the enemy. I didn't check if the bug has always been there or not.

Report message to a moderator

Master Sergeant
Re: [Fix] Loyalty loss in tactical screen[message #314525] Mon, 21 January 2013 23:51 Go to previous messageGo to next message
wanne (aka RoWa21) is currently offline wanne (aka RoWa21)

 
Messages:1961
Registered:October 2005
Location: Austria
that could also be an interesting patch for 1.13...

Report message to a moderator

Sergeant Major

Re: [Fix] Loyalty loss in tactical screen[message #316012] Wed, 06 March 2013 18:08 Go to previous message
Gennady is currently offline Gennady

 
Messages:14
Registered:March 2013
Location: Russia
Applied to JA2-Stracciatella Continued

Report message to a moderator

Private
Previous Topic: [Consistency Fix] Maria quest done
Next Topic: [Fix] Missing civilians
Goto Forum:
  


Current Time: Fri Mar 29 07:42:56 GMT+2 2024

Total time taken to generate the page: 0.00813 seconds