Shield effects missing - shield.lua

This is for troubleshooting of problems with the FAF client and Forged Alliance game.

Moderator: PhilipJFry

Shield effects missing - shield.lua

Postby bamboofats » 25 May 2015, 07:39

I noticed missing shield effects in my installation of FAF 3640, as compared to the original FA or vanilla SUPCOM.
The shield emitting particle effects and shield structure rotations were missing. (tested with 3 different computers)
This affects all shield generators and mobile shield units as well.

Refer to the attached pictures!

I traced this to 2 lines of code inside the shield.lua file.
The original unmodded supcom had these entries

-- INSIDE OnState = State {
self.Owner:OnShieldEnabled()

-- INSIDE OffState = State {
self.Owner:OnShieldDisabled()


While the FAF shield.lua had the self.Owner:OnShieldEnabled() lines removed.
I tried adding those 2 lines back and the effects were restored.

Is there a particular reason these were removed? I believe it was somewhere around FAF3636

Current effects using FAF latest version
FAF 3640.jpg
Current effects using FAF latest version
FAF 3640.jpg (566.78 KiB) Viewed 1080 times


Original effects
Vanilla FA.jpg
Original effects
Vanilla FA.jpg (597.93 KiB) Viewed 1080 times
bamboofats
Crusader
 
Posts: 32
Joined: 10 May 2015, 14:38
Has liked: 0 time
Been liked: 7 times
FAF User Name: bamboofats

Re: Shield effects missing - shield.lua

Postby Sheeo » 25 May 2015, 09:54

This is a regression. Good spot! Github issue created here. Expecting us to get this into 3641, which is scheduled to be released soon.
Support FAF on patreon: https://www.patreon.com/faf?ty=h

Peek at our continued development on github: https://github.com/FAForever
Sheeo
Councillor - Administrative
 
Posts: 1038
Joined: 17 Dec 2013, 18:57
Has liked: 109 times
Been liked: 233 times
FAF User Name: Sheeo

Re: Shield effects missing - shield.lua

Postby IceDreamer » 25 May 2015, 12:43

Also, eternal thanks for such a brilliant bug report! This is how it should be done :)

Come help us all out with the code any time ;)
IceDreamer
Supreme Commander
 
Posts: 2607
Joined: 27 Dec 2011, 07:01
Has liked: 138 times
Been liked: 488 times

Re: Shield effects missing - shield.lua

Postby bamboofats » 25 May 2015, 14:06

Not a problem!

Just to clarify what i meant about the shield rotations that I noticed (aside from the particle effects).

*Original effects*
Shield toggled on:
Static Cybran/Aeon/UEF (T2/T3 etc) - shield structure rotates
Static Seraphim T2 T3 - spiky blob hovers
Aeon/UEF mobile shields - opens up it's shield device or whatever it is

Shield toggled off:
All static shields become stationary
Aeon/UEF mobile shields - stores the shield device

Toggling between on and off makes the structure accelerate to rotation speed or slow to a stop.
seraphim mobile shield and UEF shield boat dont seem to have any special animations to begin with, but they have the particle effects which are also missing in 3640

*FAF3640 effects*
Regardless of whether the user has toggled shields on or off
cybran/UEF - continues rotation
Aeon/Seraphim - does not rotate/blob lies on the floor
Mobile shields - stuck in the closed state


I didnt notice anything wrong with personal shield units though.
bamboofats
Crusader
 
Posts: 32
Joined: 10 May 2015, 14:38
Has liked: 0 time
Been liked: 7 times
FAF User Name: bamboofats


Return to Tech Support

Who is online

Users browsing this forum: No registered users and 1 guest