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

Bug: Disabled Loadingscreen leads to round not starting #1622

Open
ZenBre4ker opened this issue Sep 22, 2024 · 1 comment
Open

Bug: Disabled Loadingscreen leads to round not starting #1622

ZenBre4ker opened this issue Sep 22, 2024 · 1 comment
Assignees
Labels
type/bug Something isn't working
Milestone

Comments

@ZenBre4ker
Copy link
Contributor

Your version of TTT2 (mandatory)

  • "v0.14.0b - Github Version"

Describe the bug (mandatory)

[ttt2] addons/ttt2/lua/ttt2/libraries/loadingscreen.lua:73: attempt to perform arithmetic on field 'timeBegin' (a nil value)

  1. End - addons/ttt2/lua/ttt2/libraries/loadingscreen.lua:73
  2. Prepare - addons/ttt2/lua/ttt2/libraries/gameloop.lua:119
    3. unknown - addons/ttt2/gamemodes/terrortown/gamemode/server/sv_main.lua:863

To reproduce

Steps to reproduce the behaviour:

  1. Disable Loadingscreen
  2. Restart server
  3. Log in
  4. Spawn Bots
  5. Get Error

Expected behaviour

No error

Context (please provide as much as you can)

Apparently the variable loadingscreen.timeBegin is not available, missing initializer? Not sure if there would be any sideeffects by just making a convar check in loadingscreen.end as well or just initializing it. But the code in .end should not be run, if the loading screen was never shown. Otherwise if the screen was shown, that should be called to reset some variables, even if the convar was changed at some point.

@ZenBre4ker ZenBre4ker added the type/bug Something isn't working label Sep 22, 2024
@TimGoll
Copy link
Member

TimGoll commented Sep 22, 2024

In the last few months I probably saw 1000 loading screens, how does something like this never happen when testing?

@TimGoll TimGoll added this to the v0.14.1b milestone Sep 22, 2024
@TimGoll TimGoll self-assigned this Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants