Page 2 of 2
Re: EQ2 and Memory Usage Question
Posted: Tue Feb 09, 2010 10:27 am
by John Adams
Nope. You can write LUA scripts with Notepad.
Our game engine includes LUA 5.1 support for the world reading/interpreting LUA. Nothing special to install here!
Re: EQ2 and Memory Usage Question
Posted: Tue Feb 09, 2010 10:34 am
by CliveEvenstar
Well that is just a nice perk! I'll read the wiki support on lua scripts and test it out on writing some and see what I can do. If I can pull it off I'll throw a helping hand!
-- Clive
Re: EQ2 and Memory Usage Question
Posted: Tue Feb 09, 2010 1:52 pm
by Scatman
If you're going to be compiling the server yourself you'll need the MySQL and LUA libraries to compile, yes. If you're just going to be using the executable then no.
Re: EQ2 and Memory Usage Question
Posted: Tue Feb 09, 2010 8:41 pm
by CliveEvenstar
Ok so I do need to install the lua libraries. Already have the MySQL setup. I do have to issues with using the svn files I got. Let me see 1) States I don't have a log folder. 2) Says it can't find the "Damage" file and I've tried placing it in the same folder as the EQ2world.exe file and leaving where it is at. Is there a detailed structure posting somewhere that tells you "how" it should look like because maybe I just have it setup incorrectly. (Leaving it default from how the svn sets it up.)
-- Clive
Re: EQ2 and Memory Usage Question
Posted: Wed Feb 10, 2010 10:44 am
by Scatman
I'm a little confused by your post. What exactly are you trying to do? I've never even heard of the "Damage" file before? Are you trying to just compile?
Re: EQ2 and Memory Usage Question
Posted: Wed Feb 10, 2010 11:01 am
by Zcoretri
Scatman wrote:I'm a little confused by your post. What exactly are you trying to do? I've never even heard of the "Damage" file before? Are you trying to just compile?
It's one of two default lua's that come with the core DB, Sprint.lua and Damage.lua
I think the problem you have clive is that you have to add the path in to find the lua file i.e. if your spells live under the Spell folder, the lua_script column in your DB needs to be Spell\Damage.lua
Re: EQ2 and Memory Usage Question
Posted: Wed Feb 10, 2010 3:30 pm
by CliveEvenstar
@Scat - Nope, it compiles just fine, it's when running EQ2World.exe that those two issues come up. Let me take a snapshot real quick...
3 issues I'm sorry, 1 with the log folder, 2 with the lua scripts. Going to try Zcoretri's suggestion first and I'll get back to you guys if I run into that. But for the log folder. I've tried creating that folder AND that file, still causes a issue.
-- Clive
Re: EQ2 and Memory Usage Question
Posted: Wed Feb 10, 2010 4:00 pm
by John Adams
Well, the log folder is not an issue. Create the dir, solved. We do not build your local EQ2Emulator folder structures.
I will change the base DB spell data to reflect our recent changes to Spells lua loading. Most people will copy the Spells folder to their EQ2Emulator folder, so it is a sub-folder of it. That's why the data needs to be changed.
Note: These 2 scripts are not meant for any functional purpose but to show you how scripting is tied to the sample spells. So please don't report bugs about Sprint and Damage when they are nothing more than samples of configuration

Re: EQ2 and Memory Usage Question
Posted: Wed Feb 10, 2010 4:11 pm
by CliveEvenstar
@ John - Yup, when you look at them they are labeled as samples or examples of use

, My issue was trying to figure out why they weren't being found, but now that I know I don't feel like I'm causing the issue "that much" anymore!
- However, I've tried creating the log dir, still doesn't register it. Is the log folder defaulted in the code or DB anywhere that looks to a specific spot?
-- Clive
Re: EQ2 and Memory Usage Question
Posted: Wed Feb 10, 2010 4:21 pm
by John Adams
Yeah, "logs"

Re: EQ2 and Memory Usage Question
Posted: Wed Feb 10, 2010 4:48 pm
by Zcoretri
Guess it doesn't matter if the text string has forward or backward slashes for the path? But it does look like you need the .lua extension, because World could not find Spell/Damage
Re: EQ2 and Memory Usage Question
Posted: Wed Feb 10, 2010 5:32 pm
by John Adams
There is code in emu that if the .lua is not in the name, LE appends it. Clive's problem was that the default downloaded data did not have "Spells/" before "Damage".