Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what does mean: Warn: Entity delays (func_timer|#230) has wait.variance >= wait.time ? #2520

Open
ghost opened this issue Mar 19, 2023 · 8 comments
Labels
A-Gamelogic T-Question for questions on how things works on on how to proceed on an issue

Comments

@ghost
Copy link

ghost commented Mar 19, 2023

Loading tremship gives this warning. I have searched a bit but could not guess what this warning is about exactly. @cu-kai any idea?

@ghost ghost added A-Gamelogic T-Question for questions on how things works on on how to proceed on an issue labels Mar 19, 2023
@cu-kai
Copy link
Contributor

cu-kai commented Mar 20, 2023

This could be a map bug, I see a func_timer without a wait period.

"classname" "func_timer"
"origin" "2296 -1144 64"
"targetname" "delays"
"target" "delay1"

@ghost
Copy link
Author

ghost commented Mar 20, 2023

but what is this variance thing?

@cu-kai
Copy link
Contributor

cu-kai commented Mar 20, 2023

According to the code, it is the wait time - FRAMETIME.

see:

if ( self->config.wait.variance >= self->config.wait.time && self->config.wait.variance > 0)
{
self->config.wait.variance = self->config.wait.time - FRAMETIME;
if( g_debugEntities.Get() > -1)
{
Log::Warn( "Entity %s has wait.variance >= wait.time", etos( self ) );
}
}
}

@ghost
Copy link
Author

ghost commented Mar 20, 2023

Oh! So, the problem would be delays that are too fast for the game to handle! It's probably intended to be something like "immediate" but then why would one use a delay anyway?
Maybe some trem mods had very low values for FRAMETIME?

@cu-kai
Copy link
Contributor

cu-kai commented Mar 20, 2023

Good question. We never had such cvars on Tremulous so this error never existed.

@ghost
Copy link
Author

ghost commented Mar 20, 2023

It is not a cvar, it's a define, i think

@cu-kai
Copy link
Contributor

cu-kai commented Mar 20, 2023

Sorry, specifically I was referring to g_debugEntities.

@ghost
Copy link
Author

ghost commented Mar 31, 2023

Apparently, entities with "random" or "wait" can have 2 values, 1st being a time, and 2nd the "variance".
Now, I can not see such situation in the bsp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Gamelogic T-Question for questions on how things works on on how to proceed on an issue
Projects
None yet
Development

No branches or pull requests

1 participant