Jump to content
  • 0

My custom CVARINFO isn't working


Question

I have no idea what is wrong here, but when I boot up I get this error lump:

image.png.46efcd4b70603537ef872f8c5c93aa9e.png

 

When the game starts, none of my CVARINFO is taking effect. I have it set to ALWAYS billboard sprites (I really do not want the paper cut out effect of true 3d so definite billboarding is vital). Can anyone tell me what's wrong? 

 

I'm using GZDOOM version 4.11.3.a and below is my CVARINFO lump:

 

user bool gl_bandither_enabled = true;
user float gl_bandither_colorlevels = 8;
user float gl_bandither_bandingstyle = 5;
user int gl_bandither_ditherstyle1 = 1;
user int gl_bandither_ditherstyle2 = 3;
user float gl_bandither_ditherblending = 0;
user float gl_bandither_dither = 0.5;
user float gl_bandither_ditheringscale = 1;
user bool cl_oldvideoshader = false;
user float retro_pixelation    = 2;     // Higher = More pixels. Can use decimals. 1=factors pixels as if expanding 320x200 to your aspect ratio, 0 = 160x200, -1 = off
user bool  retro_posterization = TRUE; // Toggle posterization
user int   retro_postcolors    = 20;    // Higher = More colors. Controls the number of levels in each channel
user float retro_postgamma     = 0.46;  // Higher = Less colors in shadows. Keep it low for more colors allocated to shadows, else they turn full grey or black

What do I need to add to this CVARINFO to make all sprites billboard? I tried adding: 

 

set gl_billboard_faces_camera "false"
set gl_billboard_mode "1"

But this causes a really bad error where the game will not even boot up, and instead give me this message: "Script error, "DeadEvil.ipk3:cvarinfo.txt" line 15:
Unknown cvar attribute 'set'"

 

Can someone please help? I just want all my sprites to billboard by default.

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0
Posted (edited)

Have you tried looking at the file and lines mentioned by the error messages? I don't know what you put in that file, but the message seems pretty clear to me.

 

There are actor flags to control billboarding; even if you can set the CVAR for the player, you shouldn't need to: https://zdoom.org/wiki/Actor_flags#FORCEYBILLBOARD

Edited by Shepardus

Share this post


Link to post
  • 0
2 hours ago, Shepardus said:

Have you tried looking at the file and lines mentioned by the error messages? I don't know what you put in that file, but the message seems pretty clear to me.

 

There are actor flags to control billboarding; even if you can set the CVAR for the player, you shouldn't need to: https://zdoom.org/wiki/Actor_flags#FORCEYBILLBOARD

Okay, well it took this long (literally ages) but I added the FORCEXYBILLBOARD flag to all actors individually that I felt needed them. This worked fine. As for the errors on bootup, I fixed that also. I'm not sure why the billboard option in my defcvars wasn't taking, but it doesn't matter now I guess. Thanks for the advice and the help. 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...