UEF rambo sACU are broken.

Moderator: keyser

UEF rambo sACU are broken.

Postby BRNKoINSANITY » 11 May 2014, 19:26

If you use the preset UEF sACU you can't select all sACU and build as a group... They lay down one tick worth of building and then cancel themselves. I tried this with aeon and sera coms, and didn't have the problem. To get the all to build with each other you have to build with one and assist with the others.
BRNKoINSANITY
Evaluator
 
Posts: 951
Joined: 09 Oct 2012, 01:14
Has liked: 43 times
Been liked: 207 times
FAF User Name: BRNKoINSANITY

Re: UEF rambo sACU are broken.

Postby Tokyto » 11 May 2014, 19:37

This problem is with every faction SACUs, if u select 2+ SACUs and tell them to build something (without walking), they just dont do it
User avatar
Tokyto
Evaluator
 
Posts: 540
Joined: 29 May 2013, 16:39
Has liked: 452 times
Been liked: 302 times
FAF User Name: Tokyto_

Re: UEF rambo sACU are broken.

Postby IceDreamer » 11 May 2014, 20:23

So far I have been unable to fix this bug, I can't even work out why it's happening. Some people thought it was to do with multiple energy drains but it happens with default SCUs sometimes too, which is odd. For the time being to get around the problem, select the group, have them all assist one, then give that one the orders.
IceDreamer
Supreme Commander
 
Posts: 2607
Joined: 27 Dec 2011, 07:01
Has liked: 138 times
Been liked: 488 times

Re: UEF rambo sACU are broken.

Postby pip » 11 May 2014, 20:49

This bug occurs for every engineer unit that has a separate energy drain from the energy drain when building. That's why sparkies got free radar jamming, so that they are not affected by this bug anymore. In case of SACU, the bug will occur when they have a shield, or a stealth / cloack upgrade or any other upgrade that drains energy.
pip
Supreme Commander
 
Posts: 1826
Joined: 04 Oct 2011, 15:33
Has liked: 191 times
Been liked: 86 times
FAF User Name: pip

Re: UEF rambo sACU are broken.

Postby IceDreamer » 11 May 2014, 21:10

But why does it only happen when you have multiple selected? One at a time this never happens.
IceDreamer
Supreme Commander
 
Posts: 2607
Joined: 27 Dec 2011, 07:01
Has liked: 138 times
Been liked: 488 times

Re: UEF rambo sACU are broken.

Postby BRNKoINSANITY » 11 May 2014, 22:06

That makes more sense..... I tried it with normal sACU and with a couple other presets and didn't have the problem so I assumed it was only UEF rambo, but any unit with power drain would make sense.
BRNKoINSANITY
Evaluator
 
Posts: 951
Joined: 09 Oct 2012, 01:14
Has liked: 43 times
Been liked: 207 times
FAF User Name: BRNKoINSANITY

Re: UEF rambo sACU are broken.

Postby IceDreamer » 12 May 2014, 04:07

Still doesn't explain why it only happens when multiple are selected.
IceDreamer
Supreme Commander
 
Posts: 2607
Joined: 27 Dec 2011, 07:01
Has liked: 138 times
Been liked: 488 times

Re: UEF rambo sACU are broken.

Postby Crotalus » 12 May 2014, 09:25

Seems to have to do with rebuild fraction check.

For some reason fraction of a new structure isn't 0 when you're building with 2+ e-draining engineers.

A simple fix is to check if it's >0.01 instead of > 0 in lua/sim/Unit.lua, function CheckFractionComplete,

Code: Select all
CheckFractionComplete = function(self, unitBeingBuilt, threadCount)
        -- rebuild bonus check 1 [159]
        -- This code checks if the unit is allowed to be accelerate-built. If not the unit is destroyed (for lack
        -- of a SetFractionComplete() function). Added by brute51
        local fraction = unitBeingBuilt:GetFractionComplete()
        if fraction > (self.InitialFractionComplete or 0.01) then
            unitBeingBuilt:OnRebuildBonusIsIllegal()
        end
        self.InitialFractionComplete = nil
    end,
Crotalus
Priest
 
Posts: 319
Joined: 27 Jan 2013, 20:37
Has liked: 2 times
Been liked: 102 times
FAF User Name: Crotalus

Re: UEF rambo sACU are broken.

Postby IceDreamer » 12 May 2014, 10:36

Where is that located, and is it tested working?
IceDreamer
Supreme Commander
 
Posts: 2607
Joined: 27 Dec 2011, 07:01
Has liked: 138 times
Been liked: 488 times

Re: UEF rambo sACU are broken.

Postby Crotalus » 12 May 2014, 15:29

Yeah, I've tested it and it's working as far as this bug at least. You have to update lua/sim/Unit.lua with the change above (0 -> 0.01)

Maybe there's a better solution with preventing fraction > 0 when multiple e-drawing engineers start a building something but haven't found where that would be handled.
Crotalus
Priest
 
Posts: 319
Joined: 27 Jan 2013, 20:37
Has liked: 2 times
Been liked: 102 times
FAF User Name: Crotalus


Return to FAF Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest