softcoder {l Wrote}:some solution
for example megaglest uses defines for lua 5.1 vs 5.2
#if LUA_VERSION_NUM > 501
Iif(lua_rawlen(luaState, argumentIndex)!=2){
#else
Iif(luaL_getn(luaState, argumentIndex)!=2){
#endif
i see in the errors some are lua_rawlen
lua_tointegerx is a lua 5.2 new function
#if LUA_VERSION_NUM < 502
int32 global_index = LUA_GLOBALSINDEX;
#else
// Push the global table index on the stack
lua_pushglobaltable(_lstack);
// Get it
int32 global_index = lua_tonumber(_lstack, 1);
// Remove the value
lua_pop(_lstack, 1);
#endif
i see in the errors some are lua_rawlen
lua_tointegerx is a lua 5.2 new function
git reset --hard origin/master
rm CMakeCache.txt
make clean
wget http://forum.freegamedev.net/download/file.php?id=5143
git am file.php\?id\=5143
cmake . &> out.txt
make &>> out.txt
curlpaste out.txt
rm CMakeCache.txt && make clean && wget -O tmp.patch http://forum.freegamedev.net/download/file.php?id=5164 && git reset --hard origin/master && git pull && git am tmp.patch && cmake . &> out.txt && make &>> out.txt && curlpaste out.txt
cmake -DLUA_LIBRARIES=/usr/lib/liblua5.2.so -DLUA_INCLUDE_DIR=/usr/include/lua5.2/ .
Bertram {l Wrote}:
- {l Code}: {l Select All Code}
cmake -DLUA_LIBRARIES=/usr/lib/liblua5.2.so -DLUA_INCLUDE_DIR=/usr/include/lua5.2/ .
cmake -DLUA_LIBRARIES=/usr/lib/liblua.so .
qubodup {l Wrote}:
By the way: I noticed that save game 1 and 2 show up as empty but I'm able to load them, which just makes the main menu appear as if I started the game again. I do have saved_game_[12].lua in my ~/.valyriatear/ dir.
[string "/home/andy/.boswars/save/game.sav.gz"]:16925: function or expression too complex near ','
Speaking of save games, I'll go digging into that system for simplification purpose rather soon.
they restart the menu, rather than loading a game.
Users browsing this forum: No registered users and 1 guest