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
Open
@EffakT

Description

@EffakT

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0