PDA

View Full Version : Zone Instantly closes with DR-2 on LAN


shocker1322
05-12-2004, 06:57 PM
First off, I had everything working when I was at school. I had DR-2 working from the source code with Perl. When I came home and set up on our LAN, the server no longer works. Mini login and World will run, but when I run boot5zones.bat, it opens 5 windows then closes them instantly. The zones for some reason do not stay on. The only differance I can think of is this we are using a hub here instead of a router at school. Would that make any difference? Here are the output from various windows.

Minilogin:LoginServer.ini read.
MiniLoginAccounts.ini read.
Server mode: Standalone
Login server listening on port:5999

World:[Status] CURRENT_WORLD_VERSION:EQEMu 0.5.7-DR2
[Status] Loading variables..
[Status] Loading zones..
[Status] Loading items..
[Status] EMuShareMem loaded
[Status] Loading items from database: count=28731, max id=69304
[Status] ./LoginServer.ini read.
[Status] Loading guild ranks..
[Status] Loading ./addon.ini..
[Status] Loading EQ time of day..
[Status] Reboot zone modes ON
[Status] Deleted 0 stale player corpses from database
[Status] Deleted 0 stale player backups from database
Abort/retry/cancel?
TCP listening on: 192.168.0.226:9000
World server listening on: 192.168.0.226:9000
Connected to LoginServer: 192.168.0.226:5999
254031 New TCP connection: 192.168.0.226:2479
New zoneserver: #1 192.168.0.226:2479
Zoneserver SetConnectInfo: 192.168.0.226:2479: 192.168.0.226:7999

I can run zone.exe from console and this is it's output:
D:\EQEmu>zone 7999 192.168.0.226 7999 192.168.0.226
[Status] CURRENT_ZONE_VERSION: EQEMu 0.5.7-DR2
[Status] Loading Variables
[Status] Loading zone names
[Status] Loading items
[Status] EMuShareMem loaded
[Status] Loading npcs
[Status] Loading NPCTypes from database...
[Status] Loading npc faction lists
[Status] Loading NPC Faction Lists from database...
[Status] Loading loot tables
[Status] Loading Loot tables from database...
[Status] Loading doors
[Status] Loading Doors from database...
[Status] FileLoadSPDat() Loading spells from ./spells_us.txt
[Status] FileLoadSPDat() spells loaded: 5061
[Status] Loading guilds
[Status] Loading factions
[Status] Loading corpse timers
[Status] Loading what ever is left
[Status] Loading commands
[Status] 162 commands loaded
[Status] Loading embedded perl
[Status] Loading perlemb plugins.
[Error] Zone bootup FAILED!
Connected to worldserver: 192.168.0.226:9000


db.ini:[Database]
host=localhost
user=shocker
password=eq
database=eq
compression=off

loginserver.ini:[LoginServer]
loginserver=192.168.0.226
loginport=5999
worldname=shocker happy fun
worldaddress=192.168.0.226
locked=false

[WorldServer]
Defaultstatus=0
Unavailzone=

[LoginConfig]
ServerMode=Standalone
ServerPort=5999
UplinkAddress=
UplinkPort=
UplinkAccount=
UplinkPassword=

Boot5zones.bat:start zone.exe . 7999 192.168.0.226 7995 127.0.0.1
start zone.exe . 7999 192.168.0.226 7996 127.0.0.1
start zone.exe . 7999 192.168.0.226 7997 127.0.0.1
start zone.exe . 7999 192.168.0.226 7998 127.0.0.1
start zone.exe . 7999 192.168.0.226 7999 127.0.0.1
exit
cls

Here I have tried many different things. localhost, 127.0.0.1, and IP. all in various configurations. None ever varied the resuilt. I would remind you that everthing was working prior to the LAN. So my db and exe's are fine. Something just is not taking zone.


Ipconfig:Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . . . . . . : 192.168.0.226
Subnet Mask . . . . . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . . . . : 192.168.0.1

The hub is a Linksys 5 port model number EFAH05W. The internet is distributed through a server computer, not sure if that matters. The path of traffic is Modem -> Server -> Hub -> LAN. If anyone needs any other info, just ask. Thanks!

Charmy
05-12-2004, 07:48 PM
ok let see here...


[Error] Zone bootup FAILED!


This is due to the fact you didn't define a zone when starting zone.exe

D:\EQEmu>zone 7999 192.168.0.226 7999 192.168.0.226


the proper syntax for loading zone.exe is
from command prompt:

D:\eqemu>zone $zonesn$ externalIP <port> internalIP


if your running this on a lan, and the sql database is on the same machine as the zone.exe and world.exe i find it works alot better to replace every internalip with localhost, and externals to your computers ip address on the lan. When loading zone.exe you ahve to define a zone to load, only if you want a constant zone up and running would you put the zones short name where $zonesn$ goes in the syntax, however unless you have a reason to keep a zone up constantly, i.e. want to keep spawn timers running, or have quest mobs that pop at certain times etc... the best thing to do is just set zone.exe to autoload/unload zones as they are needed. in order to do this you define your $zonesn$ as simply "." (without quotes) so to manually start a zone.exe you would type.


D:\eqemu>zone . 192.168.0.226 7995 localhost


remember each zone.exe needs its own port.

Loginserver.ini


[LoginServer]
loginserver=192.168.0.226
loginport=5999
worldname=shocker happy fun
worldaddress=192.168.0.226
locked=false

[WorldServer]
Defaultstatus=0
Unavailzone=

[LoginConfig]
ServerMode=Standalone
ServerPort=5999
UplinkAddress=
UplinkPort=
UplinkAccount=
UplinkPassword=


Rec. Change


[LoginServer]
loginserver=localhost
loginport=5999
worldname=shocker happy fun
worldaddress=192.168.0.226
locked=false

[WorldServer]
Defaultstatus=0
Unavailzone=

[LoginConfig]
ServerMode=Standalone
ServerPort=5999
UplinkAddress=
UplinkPort=
UplinkAccount=
UplinkPassword=

[ChatChannelServer]
ChatChannelServer=localhost

Also noticed you were missing ChatChannelServer, this can give errors when loading as well although i didn't see it in your output, it can cause errors in the future.

Boot5Zones.bat

start zone.exe . 7999 192.168.0.226 7995 127.0.0.1
start zone.exe . 7999 192.168.0.226 7996 127.0.0.1
start zone.exe . 7999 192.168.0.226 7997 127.0.0.1
start zone.exe . 7999 192.168.0.226 7998 127.0.0.1
start zone.exe . 7999 192.168.0.226 7999 127.0.0.1
exit
cls

tell you right now your syntax is causing your zone.exe to crash you need to change these to:

Boot5zones.bat

start zone.exe . 192.168.0.226 7995 localhost
start zone.exe . 192.168.0.226 7996 localhost
start zone.exe . 192.168.0.226 7997 localhost
start zone.exe . 192.168.0.226 7998 localhost
start zone.exe . 192.168.0.226 7999 localhost
exit
cls


notice i took out the 7999 that was put before your externalIP, it was causing the crashes, with these fixes your server should run on your LAN just fine. so try this, if it doesn't work post what other output your getting and i will see if i can help =)

Hope this helps.

shocker1322
05-12-2004, 08:22 PM
That helped a ton. First why was there 7999 in my boot5zones.bat? The only thing I ever changed in there was my IP, so someone had it in there for a reason. The zones now load. So thanks for fixing that. I now have a much worse error. When I try to log into my server, world.exe crashes with an application error.

The instruction at 0x0042f875 referenced at memory 0x0000000c cannot be read

I just started getting this error before I came home when I tried to join the game from the PC running the sever. I could connect to it with another computer and world would not crash, so I suspect the problem is on my PC. The error never changes, it is always at 0x0042f875. Also when I debug world this is the line that crashes.

0042F875 cmp byte ptr [eax+0Ch],dl


I believe this is sound related. I have reinstalled my sound drivers as well as chose no sound for EQ. Still the problem persists. Could something else be wrong? Again thanks a lot Charmy, can you figure this one out? ;)

Soundcard: Game Theater XP
also crashes when running onboard sound, mobo Asus P4C800-E.

Charmy
05-12-2004, 08:49 PM
Np, not sure why you had the line of 7999 in there, as for the error, i was looking through the source and i couldn't find anything close to that string that would help fix that problem, i suggest waiting on this one for a more experienced programer, i am sure somone will know what this means, sadly my programming skills are ok at best, so for a fix on this i suggest waiting until tommorow, or even posting it in the bugs section maybe somone can help you out better there. i am sorry i can't help you on this one, i just don't understand what would cause this output. Good luck with it, and if i find anything on it i will post it here. And on a final note, what release are you using? the source i was looking through was the 5-08-04 release of 5.7.0.

If your eq addiction is really that bad, i think you said you can connect from another computer on the lan, i guess you could always play from there for now!

Sorry i couldn't fix this one =(

Ravenloft
05-13-2004, 05:15 AM
One time I installed Age of the Empires on my pc when I didn't have a sound card, and it corrupted my hard drive <3

You can probably find a cheap good sound card here (http://www.pricewatch.com). I'd recommend something like this one (http://www.store.yahoo.com/pclink/creatsounbla1.html) (should be $22 shipped), make sure to mention to them that you found it on pricewatch for a discount on it. (If you like Sound Blaster Live! 5.1 :P - That's what I have.)

mikenune
05-13-2004, 07:35 AM
When you run the Debugger, what file does it say the error is in?

P.S.
I assume you're running MS Visual Studio .NET 2003 and have compiled the EXEs yourself.

shocker1322
05-13-2004, 01:29 PM
I was running VS 6.0. I got a newer version of the sourcecode and recompiled and the problem went away. The code I has was about 3 weeks old, so I suppose something changed sinced then. Thanks for all who helped me solve this.