Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ Lua ➜ Version 1 of the Lua interface for SMAUG FUSS 1.8 released

Version 1 of the Lua interface for SMAUG FUSS 1.8 released

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Tue 17 Jul 2007 11:11 PM (UTC)
Message
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 );

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Orik   USA  (182 posts)  Bio
Date Reply #1 on Wed 18 Jul 2007 01:29 AM (UTC)

Amended on Wed 18 Jul 2007 01:46 AM (UTC) by Orik

Message
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 :)
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


14,359 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.