<< Back to Programming Forum   Search

Posts 1 - 5 of 5   
More oddness with Conn. Commanders & Late Airlifts: 2020-03-31 00:34:44

M. Poireau 
Level 57
Report
I wrote a bit about a game I'm playing here:

https://www.warzone.com/Forum/405239-two-possible-bugs-modded-multiattack-game

I can't reply to that thread anymore, so I'm starting a new one.

Another strange thing is happening:

It appears that Airlifts to a teammate fail (the order simply doesn't process - the next turn, you still have the Airlift card).

Any ideas on this? It's very odd.
More oddness with Conn. Commanders & Late Airlifts: 2020-03-31 00:59:13


TBest 
Level 60
Report
Can you, using only late airlifts, do an airlift to a teammate?

			
function Server_AdvanceTurn_End(game,addNewOrder)
	if(executed == false) then
		executed = true;
		for _,order in pairs(SkippedAirlifts)do
			if(order.PlayerID == game.ServerGame.LatestTurnStanding.Territories[order.FromTerritoryID].OwnerPlayerID)then
				if(game.ServerGame.LatestTurnStanding.Territories[order.FromTerritoryID].OwnerPlayerID == game.ServerGame.LatestTurnStanding.Territories[order.ToTerritoryID].OwnerPlayerID)then
					addNewOrder(order);
				end
			end
		end
	end
end


Looks like no, in the code.
Guess the mod was never tested/intended for team-games. It's a relatively easy fix/change.

Edited 3/31/2020 01:02:44
More oddness with Conn. Commanders & Late Airlifts: 2020-03-31 04:40:20

M. Poireau 
Level 57
Report
Ah! An omission in the code. This would be a welcome fix!
More oddness with Conn. Commanders & Late Airlifts: 2020-04-01 06:55:40


dabo1
Level 57
Report
Will look into a fix for it(on my to do), but can't promise it anytime soon due to a lack of testing abilities without membership and me being busy with other non warzone related projects
More oddness with Conn. Commanders & Late Airlifts: 2020-04-01 14:59:13


TBest 
Level 60
Report
game.Game.Players[playerID].Team
is what you are looking for. If there are no teams/FFA the .Team is -1.
Posts 1 - 5 of 5