Anyone successfully put Lua into afkmud? I've been trying and have been very unsuccessful.
Are there plans for it? Anyone ambitious to do it? lol
Are there plans for it? Anyone ambitious to do it? lol
This forum is a read-only archive of the Gammon Software forum (2000–2026). No new posts can be made. Search the archive.
Posted by Orik on Sat 01 Mar 2008 07:35 PM — 10 posts, 39,490 views.
/*
Lua includes :)
NJG
*/
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
Building AFKMud....
make -s afkmud
Compiling o/imc.o....
In file included from imc.cpp:62:
mud.h:58:19: lua.h: No such file or directory
mud.h:59:22: lualib.h: No such file or directory
mud.h:60:23: lauxlib.h: No such file or directory
In file included from mud.h:810,
from imc.cpp:62:
character.h:585: error: `CHAR_DATA' was not declared in this scope
character.h:585: error: `ch' was not declared in this scope
character.h:585: error: variable or field `open_lua' declared void
character.h:586: error: `CHAR_DATA' was not declared in this scope
character.h:586: error: `ch' was not declared in this scope
character.h:586: error: variable or field `close_lua' declared void
character.h:589: error: `CHAR_DATA' was not declared in this scope
character.h:589: error: `ch' was not declared in this scope
character.h:589: error: syntax error before `char'
character.h:592: error: `CHAR_DATA' was not declared in this scope
character.h:592: error: `ch' was not declared in this scope
character.h:592: error: syntax error before `char'
character.h:594: error: `CHAR_DATA' was not declared in this scope
character.h:594: error: `ch' was not declared in this scope
character.h:595: error: syntax error before `char'
character.h:599: error: `CHAR_DATA' was not declared in this scope
character.h:599: error: `ch' was not declared in this scope
character.h:600: error: syntax error before `char'
make[1]: *** [o/imc.o] Error 1
make: *** [all] Error 2
Building AFKMud....
make -s afkmud
Compiling o/imc.o....
In file included from mud.h:58,
from imc.cpp:62:
lua.h:16:21: luaconf.h: No such file or directory
In file included from mud.h:58,
from imc.cpp:62:
lua.h:99: error: syntax error before `;' token
lua.h:103: error: syntax error before `;' token
lua.h:110: error: syntax error before `*' token
lua.h:111: error: syntax error before `void'
lua.h:112: error: syntax error before `*' token
lua.h:114: error: syntax error before `(' token
lua.h:120: error: syntax error before `int'
lua.h:121: error: syntax error before `void'
lua.h:122: error: syntax error before `void'
lua.h:123: error: syntax error before `void'
lua.h:124: error: syntax error before `void'
lua.h:125: error: syntax error before `void'
lua.h:126: error: syntax error before `int'
lua.h:128: error: syntax error before `void'
lua.h:135: error: syntax error before `int'
lua.h:136: error: syntax error before `int'
/* type of numbers in Lua */
typedef LUA_NUMBER lua_Number;
make &> make.txt