Below is a link to SMAUG Fuss 1.8 with the Lua interface added (1.6 Mb):
http://www.gammon.com.au/files/smaug/smaug18fuss_lua_v1.tgz
Md5sum is e9ede766fd24e3ff251ecdf4c4c3bb54.
This is the equivalent code to smaug17fuss_lua_v4.tgz with a bugfix added to the function get_mob_name_and_room as described in http://www.gammon.com.au/forum/?id=8031.
As I expected, it was easy enough to adapt the code for FUSS 1.8. The only minor problems were that, since nanny (in comm.c) has obviously been reworked somewhat, the automatic patch did not apply the Lua calls to the right place.
Once the various hooks in the C code are in the right place, further enhancements to the Lua side should work equally well for either version.
I had to change news.c very slightly because I got an error on using %x in the stamp_time function, so I changed it to:
http://www.gammon.com.au/files/smaug/smaug18fuss_lua_v1.tgz
Md5sum is e9ede766fd24e3ff251ecdf4c4c3bb54.
This is the equivalent code to smaug17fuss_lua_v4.tgz with a bugfix added to the function get_mob_name_and_room as described in http://www.gammon.com.au/forum/?id=8031.
As I expected, it was easy enough to adapt the code for FUSS 1.8. The only minor problems were that, since nanny (in comm.c) has obviously been reworked somewhat, the automatic patch did not apply the Lua calls to the right place.
Once the various hooks in the C code are in the right place, further enhancements to the Lua side should work equally well for either version.
I had to change news.c very slightly because I got an error on using %x in the stamp_time function, so I changed it to:
strftime( buf, sizeof( buf ), "%Y/%m/%d", time );