EQ2 and Memory Usage Question

General support forum. If you require assistance and your problem doesnt fall in any of the other categories, this is the forum for you!

Moderator: Team Members

Forum rules
READ THE FORUM STICKY THREADS BEFORE ASKING FOR HELP!
Most information can be found there, and if not, the posts will help you determine the information required to get assistance from the development team.
Incomplete Help Requests will be locked or deleted.
User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: EQ2 and Memory Usage Question

Post by John Adams » Tue Feb 09, 2010 10:27 am

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!

CliveEvenstar
Posts: 47
Joined: Thu Feb 04, 2010 12:09 pm

Re: EQ2 and Memory Usage Question

Post by CliveEvenstar » Tue Feb 09, 2010 10:34 am

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

User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

Re: EQ2 and Memory Usage Question

Post by Scatman » Tue Feb 09, 2010 1:52 pm

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.

CliveEvenstar
Posts: 47
Joined: Thu Feb 04, 2010 12:09 pm

Re: EQ2 and Memory Usage Question

Post by CliveEvenstar » Tue Feb 09, 2010 8:41 pm

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

User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

Re: EQ2 and Memory Usage Question

Post by Scatman » Wed Feb 10, 2010 10:44 am

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?

User avatar
Zcoretri
Team Member
Posts: 1642
Joined: Fri Jul 27, 2007 12:55 pm
Location: SoCal

Re: EQ2 and Memory Usage Question

Post by Zcoretri » Wed Feb 10, 2010 11:01 am

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

CliveEvenstar
Posts: 47
Joined: Thu Feb 04, 2010 12:09 pm

Re: EQ2 and Memory Usage Question

Post by CliveEvenstar » Wed Feb 10, 2010 3:30 pm

@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...

Image


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

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: EQ2 and Memory Usage Question

Post by John Adams » Wed Feb 10, 2010 4:00 pm

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 ;)

CliveEvenstar
Posts: 47
Joined: Thu Feb 04, 2010 12:09 pm

Re: EQ2 and Memory Usage Question

Post by CliveEvenstar » Wed Feb 10, 2010 4:11 pm

@ John - Yup, when you look at them they are labeled as samples or examples of use :P, 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

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: EQ2 and Memory Usage Question

Post by John Adams » Wed Feb 10, 2010 4:21 pm

Yeah, "logs" :lol:

User avatar
Zcoretri
Team Member
Posts: 1642
Joined: Fri Jul 27, 2007 12:55 pm
Location: SoCal

Re: EQ2 and Memory Usage Question

Post by Zcoretri » Wed Feb 10, 2010 4:48 pm

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

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: EQ2 and Memory Usage Question

Post by John Adams » Wed Feb 10, 2010 5:32 pm

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".

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests