Orfeas Zafeiris

Results 126 comments of Orfeas Zafeiris

You can also look at to-be-closed variables that you can use to emulate the sort of RAII behavior you would expect from C++. ________________________________ From: Rochet2 ***@***.***> Sent: Sunday, July...

You should be able to bind it like you would any other function: ```cpp lua["some_function"] = some_function; ``` If the function signature is `int (lua_State*)` should get automatically bound like...

What version of lua are you running? Are you compiling it as C++? What compiler are you using? When trying to reproduce this issue using the code you provided above...

You can already do this using the lua C api and the function `luaL_tolstring` (see [here](https://www.lua.org/manual/5.4/manual.html#luaL_tolstring)). I don't believe sol has a utility function to call this, but you can...

Your C++ standard is probably set to something older than the minimum supported. Try bumping it up and see if that helps.

You should be able to do it in a way similar to this: ```cpp sol::state lua; lua.open_libraries(sol::lib::base, sol::lib::package); sol::table result = lua.script("return {width = 200,height = 15,tilewidth = 32,tileheight =...

> How did you find out / hear about sol2? I don't exactly remember. I think I was looking for an alternative to luabind, as it was causing several issues...

Tried a couple of things, but I don't think there's anything I can do about that currently since I dont track the current thread / update pass. Will keep open...

Attenuation should be linear based on distance from the source unless there's an implementation bug. I'll take a look.

The internal api for hooks is a bit complex and I don't think it can translate well to lua. Might have to build a separate system for this. What's the...