Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Support > Archive::Tutorials/Howto's > Tutorials--Outdated Use the Wiki > Tutorials::Discussion

Tutorials::Discussion Discuss Tutorials here. Do NOT POST tutorials here, they belong on the wiki.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-13-2004, 10:08 PM
Muuss
Dragon
 
Join Date: May 2003
Posts: 539
Default ADVANCED HOWTO:: Increase # of loadable items, factions

In order to use this tutorial, you must understand how to compile code. This tutorial is not necessary to use servers or to host a server. If compiling code is a foreign concept to you, it will not be possible to follow the instructions within.

Please refer to those tutorials :
How to install Eqemu under Linux : http://www.eqemulator.net/forums/viewtopic.php?t=18975
How to compile with free trial of VS.NET (windows) : http://www.eqemulator.net/forums/viewtopic.php?t=14719
How to host on a windows server : http://www.eqemulator.net/forums/viewtopic.php?t=17531


At server boot time, if you get some errors saying that you have too many factions, items, or npctypes in your database, you ll have to modify your source code then recompile it. Tutorials forum contain topics on how to compile eqemu. The guide you used, whatever it is describes how to connect to mysql, and how to run a query. Please refer to them before trying to follow that guide.

Please remember to always backup the files you modify, that's the best and easiest way to make a step back when everything starts to be broken.

The value you need to change before recompiling is a number set as a constant in the .h files (c++ include files). You will find that value by running a short mysql query into your database. Below are the files that can be modified and the queries to be ran for each modification. You can edit the .h files with any text editor, as long as it saves the file in ascii mode (don't use MS Word!). Notepad under Windows, or vi under Linux are perfect. If you have Visual Studio, it ll be even easier due to syntax highlightning.


Too many npctypes, edit
EMUShareMem/NPCTypes.h :
and change the value of
#define MMF_MAX_NPCTYPE_ID 400000
to find the number of npc_types in your database, run the following query :
select MAX(id) FROM npc_types;

Too many items, edit
common/Items.h
and change the value of
#define MMF_EQMAX_ITEMS 85000
to find the number of items in your database, run the following query :
select max(id) from items;

To many factions, edit
EMUShareMem/NPCFactionList.h
and change the value of
#define MMF_MAX_NPCFactionList_ID 50000
to find the number of factions in your database, run the following query :
select max(id) from npc_faction;


Another file contains constants that you could have to or modify : zone/features.h. Most of them are commented enough to be explicit. Be carefull tho, changing some constants could create unwanted effects, or even some bugs.

Don't change the values of (unless you really know what you're doing) :
#define MAX_GROUP_MEMBERS 6
#define TRAP_NPC_TYPE 1586
__________________
Muuss - [PEQGC] Dobl, the ogre that counts for 2 !
http://www.vilvert.fr/page.php?id=10
Reply With Quote
  #2  
Old 12-25-2004, 12:06 PM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Why isnt this higher by default, my pondering mind wonders.
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Reply With Quote
  #3  
Old 12-27-2004, 08:02 PM
Muuss
Dragon
 
Join Date: May 2003
Posts: 539
Default

Things are so odd sometimes.
__________________
Muuss - [PEQGC] Dobl, the ogre that counts for 2 !
http://www.vilvert.fr/page.php?id=10
Reply With Quote
  #4  
Old 07-18-2005, 03:23 AM
sdabbs65
Dragon
 
Join Date: Dec 2003
Location: Earth
Posts: 818
Default level 65 70

Quote:
Originally Posted by Muuss
Things are so odd sometimes.
Very Odd .
__________________
hosting Eqemu/Runuo/wow Emulators.

www.cheaterz.info

Last edited by sdabbs65; 07-18-2005 at 12:25 PM..
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 09:25 AM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3