[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Lua
. . -> [Subject]  How to add Lua scripting to SMAUG

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

How to add Lua scripting to SMAUG

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Pages: 1  2  3  4  5  6 

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Reply #75 on Mon 01 Oct 2007 04:25 AM (UTC)  quote  ]
Message
Is FotE done in C++ (rather than C?).

If so, that would explain the missing references. You will need to put extern "C" around your .h files. I am not at my usual PC right now, but it will look something like this:


extern "C"  {
#include "lua.h"
// other Lua includes
}


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Keberus   (31 posts)  [Biography] bio
Date Reply #76 on Mon 01 Oct 2007 09:26 AM (UTC)  quote  ]
Message
You were right on the money. Btw regular FotE isn't compiled with C++ but a while back I started using the C++ compiler instead of the C one. Thanks for the help, I looked over the code probably 30 times before posting and couldn't figure it out for the life of me. Never would have thought that the problem was with me using the C++ compiler.

Thanks Again,
KeB
[Go to top] top

Posted by 6D STAFF   (1 post)  [Biography] bio
Date Reply #77 on Wed 25 Jun 2008 11:05 AM (UTC)  quote  ]
Message
6 Dragons mud is now using Lua Code....

THANKS NICK!!!

http://6dragons.org
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Reply #78 on Thu 26 Jun 2008 01:04 AM (UTC)  quote  ]
Message
Glad you like it!

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Orik   USA  (182 posts)  [Biography] bio
Date Reply #79 on Sat 19 Jul 2008 07:17 PM (UTC)  quote  ]

Amended on Sat 19 Jul 2008 07:44 PM (UTC) by Orik

Message
ok. I've been having a problem with the undefined references as well. Here is the errors.


make -s smaug
/***/baklua/lib/liblua.a(ldebug.o)(.text+0x92f): In function `luaG_runerror':
: undefined reference to `__stack_chk_fail'
/***/baklua/lib/liblua.a(ldo.o)(.text+0x51d): In function `luaD_callhook':
: undefined reference to `__stack_chk_fail'
/***/baklua/lib/liblua.a(ldump.o)(.text+0x3f0): In function `luaU_dump':
: undefined reference to `__stack_chk_fail'
/***/baklua/lib/liblua.a(lobject.o)(.text+0x68c): In function `luaO_pushvfstring':
: undefined reference to `__stack_chk_fail'
/***/baklua/lib/liblua.a(lundump.o)(.text+0x74d): In function `luaU_undump':
: undefined reference to `__stack_chk_fail'
/***/baklua/lib/liblua.a(lvm.o)(.text+0x82a): more undefined references to `__stack_chk_fail' follow


I have lua local on my server. do I need to change something in ldo.c, ldump.c and so on? or is it something in my actual smaug src files?


******************EDIT*******************
Turns out it was a lua issue so I just reinstalled lua locally and it worked.
[Go to top] top

Posted by Wjmurdick   (13 posts)  [Biography] bio
Date Reply #80 on Wed 04 Apr 2012 04:59 PM (UTC)  quote  ]
Message
Thread rezzing here, but I wanted to ask if you had a version of SmaugFuss 1.9 with Lua already integrated?
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Reply #81 on Thu 05 Apr 2012 12:47 AM (UTC)  quote  ]
Message
I don't think so, this thread is about 5 years old and the source is probably 2 PCs back, plus I wouldn't be sure what other changes I made.

But if you download the linked files and do a bit of fiddling around it should be possible to get it working.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] 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.


33,309 views.

This is page 6, subject is 6 pages long:  [Previous page]  1  2  3  4  5  6 

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]