If you try calling a Lua console command that uses the CONS_Printf function (displaying a message to a specific player) from the title screen, the game will freeze then crash.
This is because the game has no player to point to, since no nodes have been loaded into the game. It'd be a good idea to just use print() in cases where there are no players.
I know why it happends, though I had expected that srb2 would check the validity of the pointer before running the function, it would be easier to automatically use print() in case there are no players.
Status
Not open for further replies.
Who is viewing this thread (Total: 1, Members: 0, Guests: 1)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.