Lepton and I just completed another succesful round of tests. (Thanks dude!
)
The alliances/tensions approach I am using now seems to work fine and the code is more efficient, and will also allow for the possibilty of adding different DV shifts for 2vs1, 3vs2 etc... (with some effort). I'm happy with this for now. It will take some additional testing to be sure it is working consistently with various combinatons of empires and cartels at different tensions... Mandatories are back on but the PvP DV shift of three is still active on The Forge for additional testing.
Battle result logs below:
Allied races Coop:
19:20:03 Info: MC (3101:Bonk) hosted battle at hex(27,30) Processing...
19:20:03 Info: MC (3101:Bonk) hosted battle at hex(27,30) Updating character and AI teams
19:20:03 Info: MC (3101:Bonk) hosted battle at hex(27,30) =========== TEAMS ===========
19:20:03 Info: MC (3101:Bonk) hosted battle at hex(27,30) Team Slot: 0 ID: 3101
19:20:03 Info: MC (3101:Bonk) hosted battle at hex(27,30) Team Slot: 1 ID: 1429898
19:20:03 Info: MC (3101:Bonk) hosted battle at hex(27,30) Team Slot: 2 ID: 1429804
19:20:03 Info: MC (3101:Bonk) hosted battle at hex(27,30) Is a PvP battle result = 0
19:20:03 Info: Hex Race Battle. Player:Bonk, is a human=1, and race=7, had a result=1, the current high score is=0
19:20:03 Info: Hex Race Battle. Player:Brecht, is a human=1, and race=0, had a result=0, the current high score is=1
19:20:03 Info: Hex Race Battle. Player:J.S.Solo, is a human=0, and race=16, had a result=0, the current high score is=1
19:20:03 Info: Hex Race Battle. fHexRace= 0, and hexEmpire=0, and hexCartel=23
19:20:03 Info: NOT-Neutral Hex Race Battle. Player:Bonk, Race:=7Had Result:= 1
19:20:03 Info: NOT-Neutral Hex Race Battle. Player:Bonk, has been pegged as a hex defender.
19:20:03 Info: NOT-Neutral Hex Race Battle. Player:Bonk, is the HIGHEST hex defender.
19:20:03 Info: NOT-Neutral Hex Race Battle. Player:Brecht, Race:=0Had Result:= 0
19:20:03 Info: NOT-Neutral Hex Race Battle. Player:Brecht, has been pegged as a hex defender.
19:20:03 Info: NOT-Neutral Hex Race Battle. Player:J.S.Solo, Race:=16Had Result:= 0
19:20:03 Info: NOT-Neutral Hex Race Battle. Player:J.S.Solo, has been pegged as a hex attacker.
19:20:03 Info: NOT-Neutral Hex Race Battle. Player:J.S.Solo, is the HIGHEST hex Attacker.
19:20:03 Info: NOT-Neutral Hex Race Battle. Hex defenders win.
19:20:03 Info: Update Hex. fHighestDefenderRace:= 7, fHighestAttackerRace:= 16
19:20:03 Info: Update Hex. fHexRace:= 0
19:20:03 Info: Update Hex. defenderlayer:= 0
19:20:03 Info: Update Hex. attackerLayer:= -1
19:20:03 Info: Update Hex. winnerLayer:= 0
19:20:03 Info: Update Hex. An NPC is attacking an orion or empire hex. Default to the defender's layer.
19:20:03 Info: Update Hex. victoryPointModifier:=1
19:20:03 Info: Update Hex. attackerRaceSameHexRace:= 0, delta:= 4
19:20:03 Info: Update Hex. Attacker Lost
19:20:03 Info: Update Hex. Done with switch on delta. victoryPointModifier:=1
19:20:03 Info: Update Hex. turnoverVPsForAHex:=0
19:20:03 Info: Update Hex. Not an AI Solo Battle so setting current victory points
19:20:05 Info: MC (1429804:Brecht) reports battle at hex(27,30) Processing...
19:20:05 Info: MC (1429804:Brecht) reports battle at hex(27,30) Updating character
Same race Coop:
19:07:47 Info: MC (102183:Wexert) hosted battle at hex(35,20) Processing...
19:07:47 Info: MC (102183:Wexert) hosted battle at hex(35,20) Updating character and AI teams
19:07:47 Info: MC (102183:Wexert) hosted battle at hex(35,20) =========== TEAMS ===========
19:07:47 Info: MC (102183:Wexert) hosted battle at hex(35,20) Team Slot: 0 ID: 102183
19:07:47 Info: MC (102183:Wexert) hosted battle at hex(35,20) Team Slot: 1 ID: 1429732
19:07:47 Info: MC (102183:Wexert) hosted battle at hex(35,20) Team Slot: 2 ID: 545020
19:07:47 Info: MC (102183:Wexert) hosted battle at hex(35,20) Is a PvP battle result = 0
19:07:47 Info: Hex Race Battle. Player:Wexert, is a human=1, and race=1, had a result=1, the current high score is=0
19:07:47 Info: Hex Race Battle. Player:Lepton, is a human=1, and race=1, had a result=0.8, the current high score is=1
19:07:47 Info: Hex Race Battle. Player:H.B.Sslith, is a human=0, and race=5, had a result=0, the current high score is=1
19:07:47 Info: Hex Race Battle. fHexRace= 23, and hexEmpire=23, and hexCartel=23
19:07:47 Info: Neutral Hex Race Battle. Player:Wexert, Race:=1 Had Result:= 1
19:07:47 Info: Neutral Hex Race Battle. Hightest Race Is now: Wexert Which had result:= 1
19:07:47 Info: Neutral Hex Race Battle. Player:Lepton, Race:=1 Had Result:= 0.8
19:07:47 Info: Neutral Hex Race Battle. Player:H.B.Sslith, Race:=5 Had Result:= 0
19:07:47 Info: Update Hex. fHighestDefenderRace:= 23, fHighestAttackerRace:= 1
19:07:47 Info: Update Hex. fHexRace:= 23
19:07:47 Info: Update Hex. defenderlayer:= -1
19:07:47 Info: Update Hex. attackerLayer:= 0
19:07:47 Info: Update Hex. winnerLayer:= 0
19:07:47 Info: Update Hex. Someone is attacking a NPC hex or a NEUTRAL hex. Default to the attacker's layer.
19:07:47 Info: Update Hex. victoryPointModifier:=1
19:07:47 Info: Update Hex. attackerRaceSameHexRace:= 0, delta:= 1
19:07:47 Info: Update Hex. Attacked
19:07:48 Info: Update Hex. Done with switch on delta. victoryPointModifier:=-1
19:07:48 Info: Update Hex. turnoverVPsForAHex:=0
19:07:48 Info: Update Hex. Not an AI Solo Battle so setting current victory points
19:07:49 Info: MC (545020:Lepton) reports battle at hex(35,20) Processing...
19:07:49 Info: MC (545020:Lepton) reports battle at hex(35,20) Updating character
Enemy races PvP:
19:00:28 Info: MC (3101:Bonk) hosted battle at hex(36,20) Processing...
19:00:28 Info: MC (3101:Bonk) hosted battle at hex(36,20) Updating character and AI teams
19:00:28 Info: MC (3101:Bonk) hosted battle at hex(36,20) =========== TEAMS ===========
19:00:28 Info: MC (3101:Bonk) hosted battle at hex(36,20) Team Slot: 0 ID: 3101
19:00:28 Info: MC (3101:Bonk) hosted battle at hex(36,20) Team Slot: 1 ID: 545020
19:00:28 Info: MC (3101:Bonk) hosted battle at hex(36,20) Team Slot: 2 ID: 1428928
19:00:28 Info: MC (3101:Bonk) hosted battle at hex(36,20) Is a PvP battle result = 1
19:00:28 Info: Hex Race Battle. Player:Bonk, is a human=1, and race=7, had a result=0, the current high score is=0
19:00:28 Info: Hex Race Battle. Player:Lepton, is a human=1, and race=1, had a result=1, the current high score is=0
19:00:28 Info: Hex Race Battle. Player:D.G.MitcoMaper, is a human=0, and race=14, had a result=0, the current high score is=1
19:00:28 Info: Hex Race Battle. fHexRace= 23, and hexEmpire=23, and hexCartel=23
19:00:28 Info: Neutral Hex Race Battle. Player:Bonk, Race:=7 Had Result:= 0
19:00:28 Info: Neutral Hex Race Battle. Player:Lepton, Race:=1 Had Result:= 1
19:00:28 Info: Neutral Hex Race Battle. Hightest Race Is now: Lepton Which had result:= 1
19:00:28 Info: Neutral Hex Race Battle. Player:D.G.MitcoMaper, Race:=14 Had Result:= 0
19:00:28 Info: Update Hex. fHighestDefenderRace:= 23, fHighestAttackerRace:= 1
19:00:28 Info: Update Hex. fHexRace:= 23
19:00:28 Info: Update Hex. defenderlayer:= -1
19:00:28 Info: Update Hex. attackerLayer:= 0
19:00:28 Info: Update Hex. winnerLayer:= 0
19:00:28 Info: Update Hex. Someone is attacking a NPC hex or a NEUTRAL hex. Default to the attacker's layer.
19:00:28 Info: Update Hex. victoryPointModifier:=3
19:00:28 Info: Update Hex. attackerRaceSameHexRace:= 0, delta:= 1
19:00:28 Info: Update Hex. Attacked
19:00:28 Info: Update Hex. Done with switch on delta. victoryPointModifier:=-3
19:00:28 Info: Update Hex. turnoverVPsForAHex:=0
19:00:28 Info: Update Hex. Not an AI Solo Battle so setting current victory points
19:00:31 Info: MC (545020:Lepton) reports battle at hex(36,20) Processing...
19:00:31 Info: MC (545020:Lepton) reports battle at hex(36,20) Updating character
Solo vs AI battle:
18:55:14 Info: MC (3101:Bonk) hosted battle at hex(35,15) Processing...
18:55:14 Info: MC (3101:Bonk) hosted battle at hex(35,15) Updating character and AI teams
18:55:14 Info: MC (3101:Bonk) hosted battle at hex(35,15) =========== TEAMS ===========
18:55:14 Info: MC (3101:Bonk) hosted battle at hex(35,15) Team Slot: 0 ID: 3101
18:55:14 Info: MC (3101:Bonk) hosted battle at hex(35,15) Team Slot: 1 ID: 1429482
18:55:14 Info: MC (3101:Bonk) hosted battle at hex(35,15) Is a PvP battle result = 0
18:55:14 Info: Hex Race Battle. Player:Bonk, is a human=1, and race=7, had a result=1, the current high score is=0
18:55:14 Info: Hex Race Battle. Player:M.F.Zeruus, is a human=0, and race=6, had a result=0, the current high score is=1
18:55:14 Info: Hex Race Battle. fHexRace= 23, and hexEmpire=23, and hexCartel=23
18:55:14 Info: Neutral Hex Race Battle. Player:Bonk, Race:=7 Had Result:= 1
18:55:14 Info: Neutral Hex Race Battle. Hightest Race Is now: Bonk Which had result:= 1
18:55:14 Info: Neutral Hex Race Battle. Player:M.F.Zeruus, Race:=6 Had Result:= 0
18:55:14 Info: Update Hex. fHighestDefenderRace:= 23, fHighestAttackerRace:= 7
18:55:14 Info: Update Hex. fHexRace:= 23
18:55:14 Info: Update Hex. defenderlayer:= -1
18:55:14 Info: Update Hex. attackerLayer:= 0
18:55:14 Info: Update Hex. winnerLayer:= 0
18:55:14 Info: Update Hex. Someone is attacking a NPC hex or a NEUTRAL hex. Default to the attacker's layer.
18:55:14 Info: Update Hex. victoryPointModifier:=1
18:55:14 Info: Update Hex. attackerRaceSameHexRace:= 0, delta:= 1
18:55:14 Info: Update Hex. Attacked
18:55:14 Info: Update Hex. Done with switch on delta. victoryPointModifier:=-1
18:55:14 Info: Update Hex. turnoverVPsForAHex:=0
18:55:14 Info: Update Hex. Not an AI Solo Battle so setting current victory points
Looks good... Going to do a db clean on The Forge before I bring it back up.
Webmap logs of the above battles attached.