PDA

View Full Version : Making errors & ./zone errors & start script questio


AizikS
10-26-2004, 03:21 PM
Ok, I have a few questions that I've done some searching for but haven't found the answer for. First I think it's important to note that I haven't been using linux for a long time, so I might be missing stuff that would seem apparent to a linux guru.

I realize that 0.6.0-DR1 is unsupported still, I was just hoping someone is seeing something that my newbish eyes are missing.

Stats:
Mandrake Linux 10.0
EQEmu 0.6.0-DR1 (I believe that's correct, grabbed off CVS yesterday)
MySQL 4.0.18 with devel headers installed
perl5 with IO::Scalar installed
PEQ-classic-5.8 + fix
gcc3.3
libc 3.3

First of all I'm getting some compile warnings, they don't seem crictical but should I worry about them? Most of them are in compiling world, I won't post the whole thing here to save space, but this is the bulk of them:


../common/database.cpp: In member function `AdventureInfo Database::GetAdventureInfo(unsigned int, unsigned int, unsigned char)':
../common/database.cpp:1328: warning: suggest parentheses around assignment used as truth value
../common/database.cpp: In member function `void Database::SetAdventureInfo(unsigned int, bool, unsigned int)':
../common/database.cpp:1353: warning: unused variable `AdventureInfo rvalue'
../common/database.cpp: In member function `bool Database::StoreCharacter(unsigned int, PlayerProfile_Struct*, Inventory*)':

../common/database.cpp:2254: warning: unused variable `PlayerAA_Struct playeraa[3]'
../common/database.cpp: In member function `void Database::GetCharSelectInfo(unsigned int, CharacterSelect_Struct*)':
../common/Item.h:204: warning: inlining failed in call to `std::map<sint16, ItemInst*, std::less<sint16>, std::allocator<std::pair<const sint16, ItemInst*> > >::~map()'
../common/database.cpp:204: warning: called from here
../common/Item.h:204: warning: inlining failed in call to `std::map<sint16, ItemInst*, std::less<sint16>, std::allocator<std::pair<const sint16, ItemInst*> > >::~map()'
../common/database.cpp:204: warning: called from here
../common/database.cpp:1699: warning: inlining failed in call to `ItemInstQueue::ItemInstQueue()'
../common/database.cpp:1699: warning: called from here
../common/Item.h:204: warning: inlining failed in call to `ItemInstQueue::~ItemInstQueue()'
../common/database.cpp:204: warning: called from here
../common/Item.h: In member function `virtual Inventory::~Inventory()':
../common/Item.h:204: warning: inlining failed in call to `std::map<sint16, ItemInst*, std::less<sint16>, std::allocator<std::pair<const sint16, ItemInst*> > >::~map()'
../common/Item.h:204: warning: called from here
../common/Item.h:204: warning: inlining failed in call to `std::map<sint16, ItemInst*, std::less<sint16>, std::allocator<std::pair<const sint16, ItemInst*> > >::~map()'
../common/Item.h:204: warning: called from here
../common/Item.h:204: warning: inlining failed in call to `std::map<sint16, ItemInst*, std::less<sint16>, std::allocator<std::pair<const sint16, ItemInst*> > >::~map()'
../common/Item.h:204: warning: called from here
../common/Item.h:204: warning: inlining failed in call to `std::map<sint16, ItemInst*, std::less<sint16>, std::allocator<std::pair<const sint16, ItemInst*> > >::~map()'
../common/Item.h:204: warning: called from here
../common/Item.h:204: warning: inlining failed in call to `std::map<sint16, ItemInst*, std::less<sint16>, std::allocator<std::pair<const sint16, ItemInst*> > >::~map()'
../common/Item.h:204: warning: called from here
../common/Item.h: In member function `virtual Inventory::~Inventory()':
../common/Item.h:204: warning: inlining failed in call to `std::map<sint16, ItemInst*, std::less<sint16>, std::allocator<std::pair<const sint16, ItemInst*> > >::~map()'
../common/Item.h:204: warning: called from here
../common/Item.h:204: warning: inlining failed in call to `std::map<sint16, ItemInst*, std::less<sint16>, std::allocator<std::pair<const sint16, ItemInst*> > >::~map()'
../common/Item.h:204: warning: called from here
../common/Item.h:204: warning: inlining failed in call to `std::map<sint16, ItemInst*, std::less<sint16>, std::allocator<std::pair<const sint16, ItemInst*> > >::~map()'
../common/Item.h:204: warning: called from here
../common/Item.h:204: warning: inlining failed in call to `std::map<sint16, ItemInst*, std::less<sint16>, std::allocator<std::pair<const sint16, ItemInst*> > >::~map()'
../common/Item.h:204: warning: called from here
../common/Item.h:204: warning: inlining failed in call to `std::map<sint16, ItemInst*, std::less<sint16>, std::allocator<std::pair<const sint16, ItemInst*> > >::~map()'
../common/Item.h:204: warning: called from here


Then I get the following in compiling zone:


../common/database.cpp:1328: warning: suggest parentheses around assignment used as truth value
../common/database.cpp: In member function `void Database::SetAdventureInfo(unsigned int, bool, unsigned int)':
../common/database.cpp:1353: warning: unused variable `AdventureInfo rvalue'
../common/database.cpp: In member function `bool Database::StoreCharacter(unsigned int, PlayerProfile_Struct*, Inventory*)':
../common/database.cpp:2254: warning: unused variable `PlayerAA_Struct playeraa[3]'


If those are normal that's fine, I am just wondering if they might be causing the errors I'm getting later. When I load up world everything works fine, but when I try and load a zone this is what happens:


[Status] Starting Log: logs/eqemu_zone.log
[Status] Using database 'eq2' at localhost
[Status] CURRENT_ZONE_VERSION: EQEMu 0.6.0-DR1
[Status] Loading Variables
[Status] Loading zone names
[Status] Loading items
[Status] libEMuShareMem.so loaded
[Status] Loading npcs
[Status] Loading npc faction lists
[Status] Loading loot tables
[Status] Loading doors
[Status] Loading guilds
[Status] Loading factions
[Status] Loading AA effects
[Error] Starting Log: logs/eqemu_error_zone.log
[Error] Error in LoadAAEffects query 'SELECT aaid,rank,reuse_time,spell_id,target,nonspell_acti on,nonspell_mana,nonspell_duration,redux_aa,redux_ rate FROM aa_actions': #1146: Table 'eq2.aa_actions' doesn't exist
[Status] Loading swarm spells
[Error] Error in LoadSwarmSpells query 'SELECT spell_id,count,npc_id,duration FROM aa_swarmpets': #1146: Table 'eq2.aa_swarmpets' doesn't exist
[Status] Loading corpse timers
[Status] Loading what ever is left
[Status] Loading commands
[Debug] Starting Log: logs/eqemu_debug_zone.log
[Debug] command_init(): - Command 'help' set to access level 0.
[Debug] command_init(): - Command 'version' set to access level 50.
[Debug] command_init(): - Command 'serversidename' set to access level 200.
[Debug] command_init(): - Command 'serverinfo' set to access level 201.
[Debug] command_init(): - Command 'crashtest' set to access level 201.
[Debug] command_init(): - Command 'chat' set to access level 200.
[Debug] command_init(): - Command 'showpetspell' set to access level 250.
[Debug] command_init(): - Command 'npcloot' set to access level 80.
[Debug] command_init(): - Command 'gm' set to access level 100.
[Debug] command_init(): - Command 'zone' set to access level 10.
[Debug] command_init(): - Command 'showbuffs' set to access level 100.
[Debug] command_init(): - Command 'movechar' set to access level 100.
[Debug] command_init(): - Command 'listnpcs' set to access level 100.
[Debug] command_init(): - Command 'date' set to access level 80.
[Debug] command_init(): - Command 'invulnerable' set to access level 80.
[Debug] command_init(): - Command 'invul' set to access level 80.
[Debug] command_init(): - Command 'hideme' set to access level 80.
[Debug] command_init(): - Command 'emote' set to access level 80.
[Debug] command_init(): - Command 'npcstats' set to access level 80.
[Debug] command_init(): - Command 'zclip' set to access level 80.
[Debug] command_init(): - Command 'npccast' set to access level 80.
[Debug] command_init(): - Command 'zstats' set to access level 80.
[Debug] command_init(): - Command 'zsave' set to access level 200.
[Debug] command_init(): - Command 'permaclass' set to access level 80.
[Debug] command_init(): - Command 'permarace' set to access level 80.
[Debug] command_init(): - Command 'permagender' set to access level 80.
[Debug] command_init(): - Command 'weather' set to access level 80.
[Debug] command_init(): - Command 'zheader' set to access level 80.
[Debug] command_init(): - Command 'zsky' set to access level 80.
[Debug] command_init(): - Command 'zcolor' set to access level 80.
[Debug] command_init(): - Command 'zuwcoords' set to access level 100.
[Debug] command_init(): - Command 'zsafecoords' set to access level 100.
[Debug] command_init(): - Command 'worldshutdown' set to access level 200.
[Debug] command_init(): - Command 'sendzonespawns' set to access level 200.
[Debug] command_init(): - Command 'dbspawn2' set to access level 200.
[Debug] command_init(): - Command 'copychar' set to access level 200.
[Debug] command_init(): - Command 'shutdown' set to access level 200.
[Debug] command_init(): - Command 'delacct' set to access level 200.
[Debug] command_init(): - Command 'size' set to access level 80.
[Debug] command_init(): - Command 'mana' set to access level 10.
[Debug] command_init(): - Command 'flymode' set to access level 20.
[Debug] command_init(): - Command 'findspell' set to access level 20.
[Debug] command_init(): - Command 'spfind' set to access level 20.
[Debug] command_init(): - Command 'castspell' set to access level 20.
[Debug] command_init(): - Command 'cast' set to access level 20.
[Debug] command_init(): - Command 'setskill' set to access level 20.
[Debug] command_init(): - Command 'setskillall' set to access level 20.
[Debug] command_init(): - Command 'setallskill' set to access level 20.
[Debug] command_init(): - Command 'race' set to access level 20.
[Debug] command_init(): - Command 'gender' set to access level 10.
[Debug] command_init(): - Command 'makepet' set to access level 20.
[Debug] command_init(): - Command 'level' set to access level 10.
[Debug] command_init(): - Command 'spawn' set to access level 10.
[Debug] command_init(): - Command 'texture' set to access level 10.
[Debug] command_init(): - Command 'npctypespawn' set to access level 10.
[Debug] command_init(): - Command 'heal' set to access level 10.
[Debug] command_init(): - Command 'appearance' set to access level 150.
[Debug] command_init(): - Command 'zoneshutdown' set to access level 150.
[Debug] command_init(): - Command 'zonebootup' set to access level 150.
[Debug] command_init(): - Command 'kick' set to access level 150.
[Debug] command_init(): - Command 'attack' set to access level 150.
[Debug] command_init(): - Command 'lock' set to access level 150.
[Debug] command_init(): - Command 'unlock' set to access level 150.
[Debug] command_init(): - Command 'motd' set to access level 150.
[Debug] command_init(): - Command 'gmspeed' set to access level 100.
[Debug] command_init(): - Command 'title' set to access level 100.
[Debug] command_init(): - Command 'memspell' set to access level 100.
[Debug] command_init(): - Command 'save' set to access level 100.
[Debug] command_init(): - Command 'depop' set to access level 100.
[Debug] command_init(): - Command 'depopzone' set to access level 100.
[Debug] command_init(): - Command 'repop' set to access level 100.
[Debug] command_init(): - Command 'spawnstatus' set to access level 100.
[Debug] command_init(): - Command 'nukebuffs' set to access level 100.
[Debug] command_init(): - Command 'freeze' set to access level 100.
[Debug] command_init(): - Command 'unfreeze' set to access level 100.
[Debug] command_init(): - Command 'pvp' set to access level 100.
[Debug] command_init(): - Command 'setxp' set to access level 100.
[Debug] command_init(): - Command 'setaaxp' set to access level 100.
[Debug] command_init(): - Command 'setaapts' set to access level 100.
[Debug] command_init(): - Command 'npcspecialattk' set to access level 100.
[Debug] command_init(): - Command 'kill' set to access level 100.
[Debug] command_init(): - Command 'haste' set to access level 100.
[Debug] command_init(): - Command 'damage' set to access level 100.
[Debug] command_init(): - Command 'loc' set to access level 0.
[Debug] command_init(): - Command 'flag' set to access level 200.
[Debug] command_init(): - Command 'summonitem' set to access level 0.
[Debug] command_init(): - Command 'si' set to access level 0.
[Debug] command_init(): - Command 'itemsearch' set to access level 0.
[Debug] command_init(): - Command 'search' set to access level 0.
[Debug] command_init(): - Command 'finditem' set to access level 0.
[Debug] command_init(): - Command 'hp' set to access level 0.
[Debug] command_init(): - Command 'pf' set to access level 50.
[Debug] command_init(): - Command 'bestz' set to access level 0.
[Debug] command_init(): - Command 'ginfo' set to access level 50.
[Status] 171 commands loaded
Map header: 74949 faces, 4817 nodes, 124159 facelists
Loaded map: 224847 vertices, 74949 faces, 0 branch nodes, 0 final nodes
Map BB: (-2693.16 -> 2766.28, -2803.81 -> 2717.22, -98.53 -> 801.81)
Map ./Maps/gfaydark.map loaded.
[Status] Weather should change in 11404 seconds
Init: Loading zone lists, zone state or spawn list, player corpses, traps
[Error] Error in LoadTraps query 'SELECT id,x,y,z,effect,effectvalue,effectvalue2,skill,spa wnchance,maxzdiff,radius,chance FROM traps WHERE zone='gfaydark'': #1146: Table 'eq2.traps' doesn't exist
ERROR: Couldn't load traps.
free(): invalid pointer 0x823b4a4!
Zone->Init failed
[Error] Zone bootup FAILED!


So far I haven't been able to get a zone to boot up.

Lastly I have been using Bigpull's script that he posted here: http://www.eqemulator.net/forums/viewtopic.php?t=6489 and I wanted to see if anyone knows the part at the bottom about the dynamic zone loading:

#dynamic zones using ports given on command line
if [ foo"" != foo"$1" ] ; then
for i in "$@" ; do
./zone . $ZONE $i $WORLD 2>&1 > logs/zones &
done
fi

so if I had ports 5000 - 5005 forwarded to my pc running this, and the shell script was called emustart.sh would I start it using the command "./emustart.sh 5000-5005"

I know that I am asking a lot. If there is anything you could do to help though I'd really appriciate it.

Muuss
10-26-2004, 09:25 PM
[Error] Error in LoadTraps query 'SELECT id,x,y,z,effect,effectvalue,effectvalue2,skill,spa wnchance,maxzdiff,radius,chance FROM traps WHERE zone='gfaydark'': #1146: Table 'eq2.traps' doesn't exist
ERROR: Couldn't load traps.
free(): invalid pointer 0x823b4a4!
Zone->Init failed
[Error] Zone bootup FAILED!


The answer is here : you have several tables that don't exist in your database: traps, aa_actions, aa_swarmpets.
traps is fatal for zone.exe and makes it crash.

You gonna have to check if you really sourced all the needed fixes, this one per example : http://www.eqemulator.net/sql/wr_update.sql ...

AizikS
10-26-2004, 10:55 PM
Alright, I flushed the database then reloaded from scratch using PEQ-classic 5.8 + wr_update and I don't get that problem anymore. Zones seem to initilize well.

I still can't seem to connect due to:
Received unknown opcode: 0x0376 size:0 bytes

However there are already a few threads for that, so I'll just keep my eyes on them. Thank you very much for your help.

Muuss
10-27-2004, 12:46 AM
unknown upcodes arent necessarly enough to block the login processes. Nothing else happening or written on the consoles ?

AizikS
10-27-2004, 05:13 AM
The only errors I'm coming across right now are in ./world, all my zones seem to load fine. These are the last few lines of my ./world log:

56076 New client from ip: xxx.xxx.xxx.xxx port: 2840
Logged in: FirstLogin Account #1: AizikS
Received unknown opcode: 0x02eb size:0 bytes
Read group ID for 'Beshmite': 0
0: 31 32 37 2E 30 2E 30 2E - 31 2C 39 38 37 36 2C 74 | 127.0.0.1,9876,t
16: 65 73 74 2E 42 65 73 68 - 6D 69 74 65 2C 30 36 37 | est.Beshmite,067
32: 61 37 39 64 34 00 | a79d4.
Enter world: Beshmite: gfaydark (54)
Zoneserver SetZone: 127.0.0.1:50552 gfaydark (54) Static
Received unknown opcode: 0x0376 size:0 bytes
Client disconnected
Removing client from ip:xxx.xxx.xxx.xxx port:2840

The ports are being forwarded, I already checked that. On the client side I can log in fine and see my characters, but when I click on "enter world" the client locks up for a long time and then eventually loads back to the server select screen.

Muuss
10-27-2004, 06:31 PM
There's no error on that world console. It"s the normal output.
Try pasting the zone console perhaps ?

AizikS
10-27-2004, 10:03 PM
Ok, for some reason it wasn't dumping the error to a log file like it should have. This is the final error I get right before it dumps out.


[Debug] HandlePacket() OP_SetDataRate request : 5.000000
Segmentation fault