Gravity Circuit

Gravity Circuit

View Stats:
windowbv Jul 14, 2023 @ 6:21am
Can't use Reshad to this game???
Error

Cannot compile pixel shader code:
Line 11: error: ambiguous overloaded function reference "min(int, int)"
Line 12: error: ambiguous overloaded function reference "min(int, int)"
Line 13: error: ambiguous overloaded function reference "min(int, int)"
Line 14: error: ambiguous overloaded function reference "min(int, int)"
Line 15: error: ambiguous overloaded function reference "min(int, int)"


Traceback

[love "callbacks.lua"]:228: in function 'handler'
[C]: in function 'newShader'
lua/gfx/ShaderSystem.lua:45: in function 'ok'
fileFunctions.lua:230: in function 'checkAsyncLoadQueue'
fileFunctions.lua:365: in function 'check'
main.lua:526: in function 'update'
lua/libs/tick/tick.lua:109: in function <lua/libs/tick/tick.lua:36>
[C]: in function 'xpcall'
[C]: in function 'xpcall'

please fix this Bug!!!
< >
Showing 1-13 of 13 comments
DomAnt  [developer] Jul 14, 2023 @ 6:25am 
This sounds like an incompatibility issue with Reshade and the shader language the game uses. As such, I don't think I can give much support in this regard.
windowbv Jul 15, 2023 @ 4:01am 
Originally posted by DomAnt:
This sounds like an incompatibility issue with Reshade and the shader language the game uses. As such, I don't think I can give much support in this regard.

Thank you for reply,please making some filter for this game,like Bilinear,Bicubic&more~!~
Malkil Jul 16, 2023 @ 5:53am 
Yes, please! When/if this game gets a scanline filter I'll definitely buy it.
Rafeku Jan 18, 2024 @ 10:23am 
Try using a program called ShaderGlass[github.com], and overlay it over the game window.
Last edited by Rafeku; Jan 18, 2024 @ 1:19pm
Rafeku Jan 18, 2024 @ 1:18pm 
Originally posted by DomAnt:
This sounds like an incompatibility issue with Reshade and the shader language the game uses. As such, I don't think I can give much support in this regard.
Also went into the ReShade forum to see if someone could look into it, and "crosire" pushed it being a game problem and not related to reshade. Now what do we do?

Forum post in question: https://reshade.me/forum/troubleshooting/9135-error-with-gravity-circuit-ogl#46290
DomAnt  [developer] Jan 18, 2024 @ 3:26pm 
Originally posted by Rafeku:
Originally posted by DomAnt:
This sounds like an incompatibility issue with Reshade and the shader language the game uses. As such, I don't think I can give much support in this regard.
Also went into the ReShade forum to see if someone could look into it, and "crosire" pushed it being a game problem and not related to reshade. Now what do we do?
I mean, that is exactly what I said: an incompatibility issue between Reshade and the shaders Gravity Circuit seems to be using. So from Reshade maintainers' perspective, it's a game issue, while from my perspective it's an issue with trying to use an application that is incompatible with the game.

Because this is an issue with an external application that I am not familiar with, nor do I understand why the error occurs, this is not something I am looking to provide support for.
Last edited by DomAnt; Jan 18, 2024 @ 3:42pm
solamon77 Dec 12, 2024 @ 4:41pm 
Too bad reshade doesn't work. This game would have looked great with the CRT-Royale shader.
DUO Dec 30, 2024 @ 3:58pm 
Originally posted by DomAnt:
Because this is an issue with an external application that I am not familiar with, nor do I understand why the error occurs, this is not something I am looking to provide support for.

First of all: THANK YOU SO MUCH for making this game. I can't stress enough how much I love it.

That said, I would really love to see some kind of shader in the game that replicates stuff like NTSC/PAL signals via RGB/Composite/RF. I was hoping to use ReShade for that exact purpose.
Last edited by DUO; Dec 30, 2024 @ 9:01pm
DomAnt  [developer] Dec 30, 2024 @ 7:21pm 
2
Well, since I had some time I took a gander at this particular problem. Seems like ReShade uses a different compiler for shaders, which has trouble determining how to handle the min/max functions used in a couple of shaders.

So, as a test, I rewrote those min/max functions in the two relevant shaders and put them up here:
https://domesticatedantgames.com/solutions/heatHazeShaderWithPaletteDeluxe.lua
https://domesticatedantgames.com/solutions/paletteSwapperDeluxe.lua
(above is our work-in-progress website, sorry it looks a little barren!)

Download and save those to files onto your machine, and then locate the game's save folder:
%appdata%\Roaming\Gravity Circuit
OR
C:\Users\[youruser]\AppData\Roaming\Gravity Circuit

In this folder, you'll need to create a "lua" folder, and then inside it "gfx" folder, and inside that "shaders". The final folder structure will look like:
%appdata%\Roaming\Gravity Circuit\lua\gfx\shaders

Place the .lua files you downloaded inside the "shaders" folder. The game will load these .lua files instead of the ones bundled inside the executable, acting as sort of a patch.

After all that, try launching the game with ReShade enabled. Appears to work on my machine, but I'd prefer to have someone else try this before I make any new PC builds for the game.
Last edited by DomAnt; Dec 30, 2024 @ 7:34pm
DUO Jan 2 @ 11:31pm 
Originally posted by DomAnt:
Well, since I had some time I took a gander at this particular problem. Seems like ReShade uses a different compiler for shaders, which has trouble determining how to handle the min/max functions used in a couple of shaders.

So, as a test, I rewrote those min/max functions in the two relevant shaders and put them up here:
https://domesticatedantgames.com/solutions/heatHazeShaderWithPaletteDeluxe.lua
https://domesticatedantgames.com/solutions/paletteSwapperDeluxe.lua
(above is our work-in-progress website, sorry it looks a little barren!)

Download and save those to files onto your machine, and then locate the game's save folder:
%appdata%\Roaming\Gravity Circuit
OR
C:\Users\[youruser]\AppData\Roaming\Gravity Circuit

In this folder, you'll need to create a "lua" folder, and then inside it "gfx" folder, and inside that "shaders". The final folder structure will look like:
%appdata%\Roaming\Gravity Circuit\lua\gfx\shaders

Place the .lua files you downloaded inside the "shaders" folder. The game will load these .lua files instead of the ones bundled inside the executable, acting as sort of a patch.

After all that, try launching the game with ReShade enabled. Appears to work on my machine, but I'd prefer to have someone else try this before I make any new PC builds for the game.

It works! I'll finally be able to play this game the way I always wanted.
Thank you so much for taking the trouble to look into this. :PatchCircuit:
Ooku Mar 5 @ 12:16am 
Originally posted by DUO:
Originally posted by DomAnt:
Well, since I had some time I took a gander at this particular problem. Seems like ReShade uses a different compiler for shaders, which has trouble determining how to handle the min/max functions used in a couple of shaders.

So, as a test, I rewrote those min/max functions in the two relevant shaders and put them up here:
https://domesticatedantgames.com/solutions/heatHazeShaderWithPaletteDeluxe.lua
https://domesticatedantgames.com/solutions/paletteSwapperDeluxe.lua
(above is our work-in-progress website, sorry it looks a little barren!)

Download and save those to files onto your machine, and then locate the game's save folder:
%appdata%\Roaming\Gravity Circuit
OR
C:\Users\[youruser]\AppData\Roaming\Gravity Circuit

In this folder, you'll need to create a "lua" folder, and then inside it "gfx" folder, and inside that "shaders". The final folder structure will look like:
%appdata%\Roaming\Gravity Circuit\lua\gfx\shaders

Place the .lua files you downloaded inside the "shaders" folder. The game will load these .lua files instead of the ones bundled inside the executable, acting as sort of a patch.

After all that, try launching the game with ReShade enabled. Appears to work on my machine, but I'd prefer to have someone else try this before I make any new PC builds for the game.

It works! I'll finally be able to play this game the way I always wanted.
Thank you so much for taking the trouble to look into this. :PatchCircuit:
Can you share your reshade settings for this game?
DUO Mar 10 @ 2:32pm 
Originally posted by Ooku:
Can you share your reshade settings for this game?

That would be the ReShade.ini file, right? If so, here is mine:

[GENERAL] EffectSearchPaths=.\reshade-shaders\Shaders\** IntermediateCachePath=C:\Users\Duo\AppData\Local\Temp\ReShade NoDebugInfo=1 NoEffectCache=0 NoReloadOnInit=0 PerformanceMode=1 PreprocessorDefinitions=RESHADE_DEPTH_LINEARIZATION_FAR_PLANE=1000.0,RESHADE_DEPTH_INPUT_IS_UPSIDE_DOWN=0,RESHADE_DEPTH_INPUT_IS_REVERSED=1,RESHADE_DEPTH_INPUT_IS_LOGARITHMIC=0 PresetPath=.\ReShadePreset.ini PresetShortcutKeys= PresetShortcutPaths= PresetTransitionDuration=1000 SkipLoadingDisabledEffects=0 StartupPresetPath= TextureSearchPaths=.\reshade-shaders\Textures\** [INPUT] ForceShortcutModifiers=1 GamepadNavigation=0 InputProcessing=2 KeyEffects=0,0,0,0 KeyFPS=0,0,0,0 KeyFrametime=0,0,0,0 KeyNextPreset=0,0,0,0 KeyOverlay=36,0,0,0 KeyPerformanceMode=0,0,0,0 KeyPreviousPreset=0,0,0,0 KeyReload=0,0,0,0 KeyScreenshot=44,0,0,0 [OVERLAY] AutoSavePreset=1 ClockFormat=0 Docking=[Docking][Data],DockSpace ID=0x3D9908E7 Pos=8,,8 Size=1904,,1064 Split=X, DockNode ID=0x00000001 Parent=0x3D9908E7 SizeRef=671,,1080 Selected=0x5825E570, DockNode ID=0x00000002 Parent=0x3D9908E7 SizeRef=1247,,1080 CentralNode=1 FPSPosition=1 Language= ShowClock=0 ShowForceLoadEffectsButton=1 ShowFPS=2 ShowFrameTime=0 ShowPresetName=0 ShowPresetTransitionMessage=1 ShowScreenshotMessage=1 TutorialProgress=4 VariableListHeight=360.000000 VariableListUseTabs=0 Window=[Window][###home],Pos=8,,8,Size=671,,1064,Collapsed=0,DockId=0x00000001,,0,[Window][###addons],Pos=8,,8,Size=671,,1064,Collapsed=0,DockId=0x00000001,,1,[Window][###settings],Pos=8,,8,Size=671,,1064,Collapsed=0,DockId=0x00000001,,2,[Window][###statistics],Pos=8,,8,Size=671,,1064,Collapsed=0,DockId=0x00000001,,3,[Window][###log],Pos=8,,8,Size=671,,1064,Collapsed=0,DockId=0x00000001,,4,[Window][###about],Pos=8,,8,Size=671,,1064,Collapsed=0,DockId=0x00000001,,5,[Window][###editor],Collapsed=0,DockId=0x00000002,[Window][Viewport],Size=1920,,1080,Collapsed=0,[Window][Debug##Default],Pos=60,,60,Size=400,,400,Collapsed=0 [SCREENSHOT] ClearAlpha=1 FileFormat=1 FileNaming=%AppName% %Date% %Time% JPEGQuality=90 PostSaveCommand= PostSaveCommandArguments="%TargetPath%" PostSaveCommandHideWindow=0 PostSaveCommandWorkingDirectory=.\ SaveBeforeShot=0 SaveOverlayShot=0 SavePath=.\ SavePresetFile=0 SoundPath= [STYLE] Alpha=1.000000 ChildRounding=0.000000 ColFPSText=1.000000,1.000000,0.784314,1.000000 EditorFont= EditorFontSize=13 EditorStyleIndex=0 Font= FontSize=13 FPSScale=1.000000 FrameRounding=0.000000 GrabRounding=0.000000 HdrOverlayBrightness=203.000000 HdrOverlayOverwriteColorSpaceTo=0 LatinFont= PopupRounding=0.000000 ScrollbarRounding=0.000000 StyleIndex=2 TabRounding=4.000000 WindowRounding=0.000000
Last edited by DUO; Mar 10 @ 2:34pm
Malkil Mar 15 @ 8:50pm 
Originally posted by DomAnt:
Well, since I had some time I took a gander at this particular problem. Seems like ReShade uses a different compiler for shaders, which has trouble determining how to handle the min/max functions used in a couple of shaders.

So, as a test, I rewrote those min/max functions in the two relevant shaders and put them up here:
https://domesticatedantgames.com/solutions/heatHazeShaderWithPaletteDeluxe.lua
https://domesticatedantgames.com/solutions/paletteSwapperDeluxe.lua
(above is our work-in-progress website, sorry it looks a little barren!)

Download and save those to files onto your machine, and then locate the game's save folder:
%appdata%\Roaming\Gravity Circuit
OR
C:\Users\[youruser]\AppData\Roaming\Gravity Circuit

In this folder, you'll need to create a "lua" folder, and then inside it "gfx" folder, and inside that "shaders". The final folder structure will look like:
%appdata%\Roaming\Gravity Circuit\lua\gfx\shaders

Place the .lua files you downloaded inside the "shaders" folder. The game will load these .lua files instead of the ones bundled inside the executable, acting as sort of a patch.

After all that, try launching the game with ReShade enabled. Appears to work on my machine, but I'd prefer to have someone else try this before I make any new PC builds for the game.

Wow, seriously based dev. Really appreciate this! :steamthumbsup:
< >
Showing 1-13 of 13 comments
Per page: 1530 50