PDA

View Full Version : #define MMF_EQMAX_ITEMS error


bthomsen0312
12-25-2009, 02:13 PM
received this error
also my highest item ID is 300100
Error: EMuShareMem: pDLLLoadItems: iMaxItemID > MMF_EQMAX_ITEMS
You need to increase the define in Items.h.


was directed to change items.h, did that and it looks as follows
#include "../common/types.h"
#include "../common/eq_packet_structs.h"
#include "../common/EMuShareMem.h"

// MMF_EQMAX_ITEMS: Make sure this is bigger than the highest item ID#
#define MMF_EQMAX_ITEMS 400000
// MMF_MEMMAX_ITEMS: Maxium number of items to load into memory. Make sure this is bigger
// than the total number of items in the server's database!
//#define MMF_MEMMAX_ITEMS 40000

struct MMFItems_Struct {
uint32 MaxItemID;
uint32 NextFreeIndex;
uint32 ItemCount;
uint32 ItemIndex[MMF_EQMAX_ITEMS+1];
Item_Struct Items[0];
};

//#define MMF_MAX_ITEMS_MEMSIZE sizeof(MMFItems_Struct) + 512




can someone tell me whats going wrong here? when i tried to source it in i got a error
Failed to open file 'C:\eqemu server files\trunk\EQEmuServer\EMuShareMem', error
: 13

clues my dear watson?




also i launched zone again just to be sure that it didn't work and it didn't

Derision
12-25-2009, 03:37 PM
Items.h (and any file with a .h or .cpp) extension are C++ source files, not SQL commands.

To have the change to Items.h take effect, you need to re-compile the server using a compiler such as Visual C++ 2008, if you are using Windows.

There is a guide on how to compile the source code:

http://www.eqemulator.net/wiki/wikka.php?wakka=VS2008

But it would be easier for you to keep all your Item IDs below 120,000, then you won't have to recompile.