Death Star reinforcement bug [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Indytotof
Chief Warrant Officer
Chief Warrant Officer
Posts: 348
Joined: Fri Jun 06, 2014 6:58 am
Projects :: SWBF2 Sides Overhaul Mod
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set
Location: Senlis, France

Death Star reinforcement bug [Solved]

Post 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.
Last edited by Indytotof on Sun Jun 29, 2014 8:21 am, edited 1 time in total.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Death Star reinforcement bug

Post 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)
Indytotof
Chief Warrant Officer
Chief Warrant Officer
Posts: 348
Joined: Fri Jun 06, 2014 6:58 am
Projects :: SWBF2 Sides Overhaul Mod
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set
Location: Senlis, France

Re: Death Star reinforcement bug [Solved]

Post 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 !
Post Reply