Page 1 of 1

Death Star reinforcement bug [Solved]

Posted: Sun Jun 29, 2014 2:37 am
by Indytotof
Hello modders and mappers, here is Indytotof.

As you may know, there is a bug on the Death Star invovling the Republic and the Alliance sides. When one units of both these two sides die, it's not one point that is removed from one of the two sides, but two.

This little bug make the Death Star much more harder for the Republic and the Alliance than for the CIS and for the Empire.

I know that a fix already existed but I don't want to overwrite my mission.lvl for that matter.

All I need to know is what to add on .lua files of the Death Star (the conquest ones) to fix it myself.

Thanks a lot.

Re: Death Star reinforcement bug

Posted: Sun Jun 29, 2014 7:45 am
by THEWULFMAN
It's something to remove, not add on.

Remove these lines.

Code: Select all

    -- handle reinforcment loss and defeat condition
    OnCharacterDeathTeam(function(character, killer) AddReinforcements(1, -1) end, 1)
    OnTicketCountChange(function(team, count) if count == 0 then MissionDefeat(team) end end)

Re: Death Star reinforcement bug [Solved]

Posted: Sun Jun 29, 2014 8:20 am
by Indytotof
THEWULFMAN wrote:It's something to remove, not add on.

Remove these lines.

Code: Select all

    -- handle reinforcment loss and defeat condition
    OnCharacterDeathTeam(function(character, killer) AddReinforcements(1, -1) end, 1)
    OnTicketCountChange(function(team, count) if count == 0 then MissionDefeat(team) end end)
Done it and.... problem solved !