EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=598)
-   -   Lua Script Issues (https://www.eqemulator.org/forums/showthread.php?t=38040)

Mogdar 04-09-2014 10:11 PM

Lua Script Issues
 
I've just noticed that many npc's, particularly some quest npc's are not responding. In checking, it seems they are all using lua scripts.

When hailed the npc's turn toward you but do not respond with what is in the scripts.

Running #questerrors gives attempt to call method 'findi' (a nil value)

This is in west freeport on at least 3 npc's that I have tried to this point.

Lady Shae, Pandos Flintside, and peasant woman. All responded, or rather didn't respond in the same manner.

I don't know enough about lua to know if the scripts are wrong but they look correct to me from the research I have done to this point.

Any ideas of what else I can check to find the problem and correct it?

Thanks in advance for the help.

Akkadius 04-09-2014 10:14 PM

Quote:

Originally Posted by Mogdar (Post 229415)
I've just noticed that many npc's, particularly some quest npc's are not responding. In checking, it seems they are all using lua scripts.

When hailed the npc's turn toward you but do not respond with what is in the scripts.

Running #questerrors gives attempt to call method 'findi' (a nil value)

This is in west freeport on at least 3 npc's that I have tried to this point.

Lady Shae, Pandos Flintside, and peasant woman. All responded, or rather didn't respond in the same manner.

I don't know enough about lua to know if the scripts are wrong but they look correct to me from the research I have done to this point.

Any ideas of what else I can check to find the problem and correct it?

Thanks in advance for the help.

You need lua_modules from the PEQ Quests repo which goes at the root of the server folder. This contains the function 'findi' as well as other functions that are used throughout scripts.

You will also need quests/global/script_init.lua to initialize these 'modules' properly.

This will make your issues go away.

Mogdar 04-09-2014 10:39 PM

Thank you so much that took care of it. I had the script_init.lua but evidently had missed copying the lua modules into the root. I love simple fixes.

Tyen05 04-10-2014 03:55 AM

I found it extremely annoying to have perl and lua files for quests.

Has little to do with OPs question, but i spent quite a bit of time looking at missing quests in my source, referencing lua quests in peq, and then rewriting it in perl so i wouldnt have two file types as quests.

What was the point of adding lua?

lerxst2112 04-10-2014 05:28 AM

Lua is more flexible than Perl. What is the point in not using both? You can still write your quests in Perl if you like, but it seems silly to rewrite things that are already working.

Akkadius 04-10-2014 02:11 PM

Quote:

Originally Posted by lerxst2112 (Post 229422)
Lua is more flexible than Perl. What is the point in not using both? You can still write your quests in Perl if you like, but it seems silly to rewrite things that are already working.

Maybe from an integration standpoint. There are some powerful arguments for both from my perspective.


All times are GMT -4. The time now is 01:39 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.