Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-09-2015, 04:58 PM
pythag
Sarnak
 
Join Date: Jan 2012
Posts: 56
Default Mercenary failed to spawn

Hii
After some time I have managed to get a single pc private/server up and running, trying to get everything working that is possible - bots took some time but all there now.
However Mercs are down after intense searching via here and google.
I am using "peqbeta_2014-09-25-02-01"
I have turned them on
Resourced the code from here http://www.eqemulator.org/forums/sho...meele_texture1
Corrected the d_meele issue to d_melee
I have the hire window and can turn costs on and off
imported the dbstr_us.txt from a live account to correct the "Unknown DB String 6120105-2" errors

Yet all that still get "Mercenary failed to spawn!"

Any advice of what I am missing!

Last edited by pythag; 01-09-2015 at 04:59 PM.. Reason: edited bad spelling
Reply With Quote
  #2  
Old 01-09-2015, 06:09 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Have you tried compiling the latest source code updates? Previously, mercs were loaded from a view instead of from the merc related tables. The view could run into certain issues, so I recently changed it to no longer rely on the view at all.

All you should need to do in order to enable mercs is this:

1. Set the AllowMercs rule to true.
2. Create a Merc Merchant NPC that is class 71.
3. Add the NPC ID of the Merc Merchant to the merc_merchant_entries table. (an example is merc_merchant_entry_id = 1, merc_merchant_template_id = 1, and merchant_id = 123456, where 123456 is the NPC ID of the Merc Merchant)
4. Restart your server.

That should be it. If that is not working, then there may be something else wrong with your merc tables (such as a missing update). If you ran the mercs.sql file, then you overwrote some of the updates since that file was created and your queries will fail. Make sure you also applied all merc related sql from after that change as well (which I think are the ones in the git/required folder). The only one I know of for sure offhand is the specialabilities field updates for mercs.

You should be able to watch your server console logs when you try to right click on the Merc Merchant to see if you are getting any SQL errors. If you get errors, post them and it should be easy to figure out what is missing.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #3  
Old 01-10-2015, 08:12 AM
pythag
Sarnak
 
Join Date: Jan 2012
Posts: 56
Default Fixed

Thanks for the info Trevius.
Your fix did instruct me to how to simply add a Merc to the server future.
This post http://www.eqemulator.org/forums/showthread.php?t=37951 by Cassieze is also super informative in explaining how to edit things.
I did ensure the *required* sql were ran just in case.

However still failed to spawn, the solution was by Sorvani as below, simply had to run the sql statements (once editing the d_meele)
Merc SPecial Abilities: http://pastebin.com/6gpx9RGM
Fix the View: http://pastebin.com/dXfrkFmd
Update Liaisons: http://pastebin.com/s7i5vWLk

I am running peqbeta_2014-09-25-02-01 not sure if the 2014-10-11-02 version is running as the wiki suggests not to use it

Thank you
Reply With Quote
  #4  
Old 01-12-2015, 10:09 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Ya, you are running older source code. People on the new code will probably have an easier time because they don't need to mess with that merc view anymore. They just need to do what I listed.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #5  
Old 01-13-2015, 03:07 PM
pythag
Sarnak
 
Join Date: Jan 2012
Posts: 56
Default Curious

Quote:
older source code
Ok probably missing the obvious here but the wiki states
Quote:
WARNING! The Oct 11 2014 PEQ database peqbeta_2014-10-11-02:01.tar.gz is broken. Use the peqbeta_2014-09-25-02-01.tar.gz one instead!
So I did as instructed - then ran all the .sql from the required section which were after the 25_9_2014, so unclear how my code is older - unless there is more code out there.

I am happy with the install but asking so I can learn!
Reply With Quote
  #6  
Old 01-14-2015, 11:14 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

I am referring to the source code here:
https://github.com/EQEmu/Server

Not the database version you are on from PEQ. If you are running the latest source code on the older snapshot of the PEQ DB, it should have updated everything automatically for you when you started the server (as long as you chose the options to update the required in the startup script that gets ran when you start the world process).

Have you updated your source code from Github and compiled the latest version yet?
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #7  
Old 01-14-2015, 08:21 PM
pythag
Sarnak
 
Join Date: Jan 2012
Posts: 56
Default

Mmmm looks like some more reading, did a "git pull" on the source folder and got a bunch of updates - so need to go rerun a few things, thank you
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 01:23 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3