Version 1 of the Lua interface for SMAUG FUSS 1.8 released

Posted by Nick Gammon on Tue 17 Jul 2007 11:11 PM — 2 posts, 15,013 views.

Australia Forum Administrator #0
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:


strftime( buf, sizeof( buf ), "%Y/%m/%d", time );
USA #1
Confirmed to compile cleanly in Cygwin as well.

You will need to download lua 5.1 from their site and put lua51.dll in your src file. Find this line in Makefile:


L_FLAGS = $(PROF) $(SOLARIS_LINK) -lz $(NEED_DL) -llua -lm


change -llua to lua51.dll

Check out the other posts in the forum if you still have trouble.

Awesome job Nick. This is a good day in SmaugFUSS history :)

To quote an old 80's song,
Quote:

"The future's so bright, I gotta wear shades."


With you, David, Samson, and Fussproject.org, this codebase is going to be leaps and bounds above the rest.

***EDIT***
As if it wasn't already :)