Tried to read from address zero - CRT curve shader

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
ichxg0
Posts: 26
Joined: Mon Nov 18, 2024 3:08 pm

Tried to read from address zero - CRT curve shader

Post by ichxg0 »

Hello all, I am trying to cut/copy/paste the crt-shader code from Torrid Gristle's Retro Shader mod, as the retro shader class clashes with another retro shader I use; I thought I could just lift everything in the code related to this particular crt-curve.fp, or really, remove everything that was NOT for the crt-shader. I've done this successfully with some other mods, but for some reason this one is crashing Zdoom when I try to start a level. It says:

Code: Select all

E1M1 - Hangar
FREEN
UM execution aborted: tried to read from address zero. In function parameter
"self"
Called from CVar.GetInt [Nativel Called from CrtHandler.UiTick at
CRT Shader wad :zscript.zc, line 8
Here is what's in the mod:
Spoiler:
That is everything left in the mod, except for the shader itself.
I know this might not be possible, but does anything look off to anyone else? Something basic every mod needs or something else I overlooked or don't know? I'd really like to add this shader to my "stack" and I do not think it should be too hard.

Return to “Assets (and other stuff)”