Duion Posted January 12, 2017 Share Posted January 12, 2017 I noticed there is a %obj.setDamageFlash(1); function called here: https://github.com/GarageGames/Torque3D/blob/development/Templates/Full/game/scripts/server/player.cs#L230But I never seen it work.For reference what it is:http://docs.garagegames.com/torque-3d/reference/classShapeBase.html#ab6ce0ad64a4e0f1a346a9b370d679792So it is a sourcecode function that calls the flash.cs postFX to play a damage flash on the screen, but it does not work.I could find a very old thread on garagegames speaking of the same problem:http://www.garagegames.com/community/forums/viewthread/59064So is there really a broken function in the templates for like 10 years now?Does someone has an idea how to make it work, or should we replace it? Quote Link to comment Share on other sites More sharing options...
J0linar Posted January 12, 2017 Share Posted January 12, 2017 from what i remember this was used for displaying a postFX Damage screen,i think that just the PostFx itself isnt there or working...Check Legends the Game .. its based on some t3d/tgea versionhttp://www.legendsthegame.net/and the damage flash is in there but i think it is their own shader (might be wrong here)anyways the DamageFlash should work you just need to supply a postFx. Quote Link to comment Share on other sites More sharing options...
Duion Posted January 12, 2017 Author Share Posted January 12, 2017 I know that it is used for damage flash, that is why I'm asking.And the postFX is there, it uses the flash postFX.https://github.com/GarageGames/Torque3D/blob/development/Templates/Full/game/core/scripts/client/postFx/flash.cs Quote Link to comment Share on other sites More sharing options...
J0linar Posted January 12, 2017 Share Posted January 12, 2017 well you can compare the legends one with t3d one, from what i remember the legends postfx shader was opengl only, it might verry well be the case that noone bothered to update it and that its just broken in t3d Quote Link to comment Share on other sites More sharing options...
Duion Posted January 12, 2017 Author Share Posted January 12, 2017 Can't install, that stupid installer always fails. Quote Link to comment Share on other sites More sharing options...
J0linar Posted January 12, 2017 Share Posted January 12, 2017 just tried it myself now :/ they must have gone mia totally buti found a working link from a at least trusted sitehttp://www.gamershell.com/download_14860.shtml forget this one!!! it seems to be for a older version and best part is that i got a virus warning from the file :roll: Anyways here http://www.legendsthegame.net/files/legends_windows_0.4.2.2.exe this is the full installer for the latest and last version of it Quote Link to comment Share on other sites More sharing options...
Duion Posted January 12, 2017 Author Share Posted January 12, 2017 Forget it, I got it working now.You have to add "FlashFx.enable();" somewhere. The postFx was not enabled.Alternatively just set it to enabled here:https://github.com/GarageGames/Torque3D/blob/development/Templates/Full/game/core/scripts/client/postFx/flash.cs#L40So it will always be on.I wonder how much performance it costs, since the flashFx will always be on, you see it in console wiht trace(1) as well as the gammaPostFx. Quote Link to comment Share on other sites More sharing options...
Duion Posted January 12, 2017 Author Share Posted January 12, 2017 Using a GuiFadeinBitmapCtrl will probably do the same job with just using an Image in the GUI that fades.After trying it I found that there is an issue, the fading GUI image only fades to solid color, there is an alpha value in the fade color picker, but it seems to get ignored. If that could get solved it will probably be a better solution, since it is less complicated then having another postFx running all the time. Quote Link to comment Share on other sites More sharing options...
Duion Posted January 12, 2017 Author Share Posted January 12, 2017 Found another thing:https://github.com/GarageGames/Torque3D/blob/development/Templates/Full/game/scripts/client/serverConnection.cs#L80-L93It is an engine callback that enables and disables the Flash PostFX it seems:https://github.com/GarageGames/Torque3D/blob/development/Engine/source/T3D/gameBase/gameConnection.cpp#L170-L174 Quote Link to comment Share on other sites More sharing options...
Duion Posted January 12, 2017 Author Share Posted January 12, 2017 Seems like that part makes the flash work:https://github.com/GarageGames/Torque3D/blob/development/Templates/Full/game/scripts/client/serverConnection.cs#L80-L93I did not have that in my project and it does not exist in the Empty template, so it worked all along, if you use the Full template. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.