8000 gametype variable is not refreshing correctly on map load · Issue #118 · SnowyMouse/chimera · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gametype variable is not refreshing correctly on map load #118

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

Open
EffakT opened this issue Jun 14, 2024 · 1 comment
Open

gametype variable is not refreshing correctly on map load #118

EffakT opened this issue Jun 14, 2024 · 1 comment

Comments

@EffakT
Copy link
EffakT commented Jun 14, 2024

I think this may just be a timing issue.

Basically, I wrote a quick and dirty lua script

function onMapLoad()
    console_out(gametype);
    console_out(server_type);
    console_out(map);
end
onMapLoad();

set_callback("map load", "onMapLoad")

I then joined a race server, and checked the console.
The server_type, and map values are correct, however the gametype value is "nil".
I then leave a game, and the mapload callback fires again, and my gametype is now "race".

I though maybe it might just be that map load is triggering too early, though when I moved from map load to tick, it was still showing nil, so this likely means that either the signature is incorrect, or it is being fetched before the value changes.

Apologies I'm not experienced in C++, so I may not be too much help with debugging or digging into what the issue may be.

@MangoFizz
Copy link
Collaborator

I think I know where the problem is, I'll check it later. Thanks for reporting this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0