EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   Issue initializing world (https://www.eqemulator.org/forums/showthread.php?t=33068)

Xakkis 02-16-2011 04:50 AM

Issue initializing world
 
Hello all. I've spent several of hours trying to properly configure my server setup. Pretty sure I'm almost there, after countless reinstalls/uninstalls and getting rid of that 10061 error. Now what's bothering me is that when I execute my batch file, one of my consoles begins to load files and then freezes (Windows reports that it has stopped working and eventually leaves me no choice but to close the program.

Here is my log of that console:

Code:

---------------------------------------------
[02.16. - 02:46:18] Starting Log: logs/eqemu_debug_world_4960.log
[02.16. - 02:46:18] [WORLD__INIT] Loading server configuration..
[02.16. - 02:46:18] [WORLD__INIT] Log settings loaded from log.ini
[02.16. - 02:46:18] [WORLD__INIT] CURRENT_WORLD_VERSION:EQEmulator 0.8.0
[02.16. - 02:46:18] [WORLD__INIT] Added loginserver eqemulator.net:5998
[02.16. - 02:46:18] [WORLD__INIT] Connecting to MySQL...
[02.16. - 02:46:18] [WORLD__INIT] HTTP world service disabled.
[02.16. - 02:46:18] [WORLD__INIT] Loading variables..
[02.16. - 02:46:18] [WORLD__INIT] Loading zones..
[02.16. - 02:46:18] [WORLD__INIT] Clearing groups..
[02.16. - 02:46:18] [WORLD__INIT] Clearing raids..
[02.16. - 02:46:18] [WORLD__INIT] Loading items..
[02.16. - 02:46:21] [WORLD__INIT] Loading guilds..
[02.16. - 02:46:21] [WORLD__INIT] Loaded default rule set 'default'
[02.16. - 02:46:21] [WORLD__INIT] Clearing temporary merchant lists..
[02.16. - 02:46:21] [WORLD__INIT] Loading EQ time of day..
[02.16. - 02:46:21] [WORLD__INIT_ERR] Unable to load eqtime.cfg
[02.16. - 02:46:21] [WORLD__INIT] Loading launcher list..
[02.16. - 02:46:21] [WORLD__INIT] Reboot zone modes ON
[02.16. - 02:46:21] [WORLD__INIT] Deleted 0 stale player corpses from database
[02.16. - 02:46:21] [WORLD__INIT] Deleted 0 stale player backups from database
[02.16. - 02:46:21] [WORLD__INIT] Loading adventures...
[02.16. - 02:46:21] [WORLD__INIT] Purging expired instances
[02.16. - 02:46:21] [WORLD__INIT] Zone (TCP) listener started.



^^after this it freezes. I used Huppy's guide to setting up my server, and followed it to a T.

I appreciate the help in advance.

EDIT: Just to clarify, I am using SoD client, trying to use the Bots Release. Please let me know if you would like to see the contents of any file(s).

Secrets 02-16-2011 09:04 AM

Can you post your eqemu_config.xml file? (without the db password of course.)

It sounds like something is wrong with the tcp port config for world, indicating an issue on port 9000. Make sure nothing is running on port 9000.

Xakkis 02-16-2011 07:53 PM

So I used netstat to find out if port 9000 was in use and lo and behold, another program was using it. It's one I don't use often so I just exited it and it freed up the port.
Thank you Secrets.

This next question could be sort of trivial but I've looked at plenty of threads and it becomes difficult to find a simple answer that matches up to my specific desire.

I want to make the server private, as my whole basis for creating one is to learn how to develop. Can anyone either:

a) Point me to a thread that tells me how to
-Make my server private (and describes the necessary changes to config files therein)
-Setup the login server or application accordingly (EQEmulogin? Minilogin?)

or

b) Just describe to me the changes I need to make, as I'm sure they are few in number at this point.

My world/zones load fine, I have properly configured my db. I am using the SoD client. I am using the Bots release (which probably doesn't matter to you).

My aim to is to be able to setup this private server (as right now my login and everything is configured to connect to eqemulator.net:5999) and then login and test out changes that I might make to my code.

Thank you.

lerxst2112 02-16-2011 08:06 PM

I use eqemuloginserver for my private server. Just changing all the addresses in your config to point to your local IP address, or 127.0.0.1 if it's all on the same machine should work.

Xakkis 02-16-2011 10:45 PM

Well, the only issue I'm having now is that it can't connect to the login server. The address I access my router through is 192.168.2.1. It is also the IP that shows up as "Default Gateway" under ipconfig (perhaps obvious).

I have my router forwarding ports 5998, 5999, 9000, 7000-7100, and 10234 for mail/chat. I have to enter a private IP in the same line as the port to forward, and I chose 192.168.2.3.

Here are my various config files:

eqhost.txt
Code:

[LoginServer]
Host=192.168.2.1:5999


eqemu_config.xml
Code:

<?xml version="1.0">
<server>
        <world>
                <shortname>falseidols</shortname>
                <longname>Age of the False Idols</longname>

                <!-- Only specify these two if you really think you need to.  (read: You don't) -->
                <address>192.168.2.1</address>
                <!-- <localaddress>192.168.2.1</localaddress> -->

                <!-- Loginserver information.  Defaults shown -->
                <loginserver>
                        <host>192.168.2.1</host>
                        <port>5999</port>
                        <account></account>
                        <password></password>
                </loginserver>

                <!-- Server status.  Default is unlocked -->
                <!--<locked/>-->
                <!-- <unlocked/> -->

                <!-- Sets the ip/port for the tcp connections.  Both zones and console (if enabled).  Defaults are shown -->
                <tcp ip="localhost" port="9000" telnet="disable"/>

                <!-- Sets the shared key used by zone/launcher to connect to world -->
                <key>some long random string</key>
               
                <!-- Enable and set the port for the HTTP service.  Defaults are shown -->
                <http port="9080" enabled="false" mimefile="mime.types" />
        </world>

        <!-- Chatserver (channels) information.  Defaults shown -->
        <chatserver>
                <host>192.168.2.1</host>
                <port>10234</port>
        </chatserver>

        <!-- Mailserver (in-game mail) information.  Defaults shown -->
        <mailserver>
                <host>192.168.2.1</host>
                <port>10234</port>
        </mailserver>

        <zones>
                <defaultstatus>20</defaultstatus>

                <!-- Sets port range for world to use to auto configure zones -->
                <ports low="7000" high="7100"/>
        </zones>

        <!-- Database configuration, replaces db.ini.  Defaults shown -->
        <database>
                <host>localhost</host>
                <port>3306</port>
                <username>root</username>
                <password>****</password>
                <db>peq</db>
        </database>

        <!-- Launcher Configuration -->
        <launcher>
                <!-- <logprefix>logs/zone-</logprefix> -->
                <!-- <logsuffix>.log</logsuffix> -->
                <!-- <exe>zone.exe or ./zone</exe> -->
                <!-- <timers restart="10000" reterminate="10000"> -->
        </launcher>

        <!-- File locations.  Defaults shown -->
        <files>
                <!-- <spells>spells_us.txt</spells> -->
                <!-- <opcodes>opcodes.conf</opcodes> -->
                <!-- <logsettings>log.ini</logsettings> -->
                <!-- <eqtime>eqtime.cfg</eqtime> -->
        </files>
        <!-- Directory locations.  Defaults shown -->
        <directories>
                <!-- <maps>Maps</maps> -->
                <!-- <quests>quests</quests> -->
                <!-- <plugins>plugins</plugins> -->
        </directories>
</server>


eqemulogin.ini
Code:

[LoginServer]
loginserver=192.168.2.1
loginport=5999
DumpPacketsIn=false
DumpPacketsOut=false
Trace=false
DatabaseServerName=localhost
DatabaseCatalogName=peqlogin
DatabaseUserName=root
DatabaseUserPassword=****
OPCodePathAndFileName=login_opcodes_sod.conf



login.ini
Code:

[database]
host = localhost
port = 3306
db = peqlogin
user = root
password = ****
subsystem = MySQL

[options]
unregistered_allowed = TRUE
reject_duplicate_servers = TRUE
trace = FALSE
world_trace = FALSE
dump_packets_in = FALSE
dump_packets_out = FALSE
listen_port = 5999
local_network = 192.168.2.

[security]
plugin = EQEmuAuthCrypto
mode = 5

[Titanium]
port = 5998
opcodes = login_opcodes.conf

[SoD]
port = 5999
opcodes = login_opcodes_sod.conf

[schema]
account_table = tblLoginServerAccounts
world_registration_table = tblWorldServerRegistration
world_admin_registration_table = tblServerAdminRegistration
world_server_type_table = tblServerListType

I feel like I am probably using the wrong IP, but am unsure. Again, my aim is to create a LAN or private server for me to play with on my own. I already ran the sql queries to generate myself an account in the loginserver DB (obviously my loginserver DB is called peqlogin) and to register my server on the list.

Basically, it tries to connect to one of the several IPs I've tried to enter for the login server (localhost, 192.168.2.1, 192.168.2.3 tried all three) and gives me a 10061 error. Meanwhile all the zones load up and are fine. This seems to be my last barrier.

I've tried looking around at Huppy's guide and others, but feel like I am missing something.

Thank you.

lerxst2112 02-16-2011 10:55 PM

Are you running the client on the same machine as the server? If so, change all the IP addresses to 127.0.0.1, including your eqhost.txt file for the login server address.

If not, go to a command prompt on the server and type ipconfig. That is the address you should use in the eqhost.txt file on the client, and the address you should use for all of the addresses in your config file.

Xakkis 02-16-2011 11:00 PM

Yes, I am running both on the same machine. I changed all the IP addresses wherein previously I had used some variation of 192.168.2.x to 127.0.0.1.

It gave me the same error. Not sure...

Thanks for the reply by the way.

Xakkis 02-16-2011 11:05 PM

Figured I'd add this log to help perhaps:

Code:



---------------------------------------------
[02.16. - 21:01:55] Starting Log: logs/eqemu_debug_world_34724.log
[02.16. - 21:01:55] [WORLD__INIT] Loading server configuration..
[02.16. - 21:01:55] [WORLD__INIT] Log settings loaded from log.ini
[02.16. - 21:01:55] [WORLD__INIT] CURRENT_WORLD_VERSION:EQEmulator 0.8.0
[02.16. - 21:01:55] [WORLD__INIT] Added loginserver 127.0.0.1:5999
[02.16. - 21:01:55] [WORLD__INIT] Connecting to MySQL...
[02.16. - 21:01:55] [WORLD__INIT] HTTP world service disabled.
[02.16. - 21:01:55] [WORLD__INIT] Loading variables..
[02.16. - 21:01:55] [WORLD__INIT] Loading zones..
[02.16. - 21:01:55] [WORLD__INIT] Clearing groups..
[02.16. - 21:01:55] [WORLD__INIT] Clearing raids..
[02.16. - 21:01:55] [WORLD__INIT] Loading items..
[02.16. - 21:01:59] [WORLD__INIT] Loading guilds..
[02.16. - 21:01:59] [WORLD__INIT] Loaded default rule set 'default'
[02.16. - 21:01:59] [WORLD__INIT] Clearing temporary merchant lists..
[02.16. - 21:01:59] [WORLD__INIT] Loading EQ time of day..
[02.16. - 21:01:59] [WORLD__INIT_ERR] Unable to load eqtime.cfg
[02.16. - 21:01:59] [WORLD__INIT] Loading launcher list..
[02.16. - 21:01:59] [WORLD__INIT] Reboot zone modes ON
[02.16. - 21:01:59] [WORLD__INIT] Deleted 0 stale player corpses from database
[02.16. - 21:01:59] [WORLD__INIT] Deleted 0 stale player backups from database
[02.16. - 21:01:59] [WORLD__INIT] Loading adventures...
[02.16. - 21:01:59] [WORLD__INIT] Purging expired instances
[02.16. - 21:01:59] [WORLD__INIT] Zone (TCP) listener started.
[02.16. - 21:01:59] [WORLD__INIT] Client (UDP) listener started.
[02.16. - 21:01:59] [NET__IDENTIFY] Registered patch 6.2
[02.16. - 21:01:59] [NET__IDENTIFY] Registered patch Titanium
[02.16. - 21:01:59] [NET__IDENTIFY] Registered patch SoF
[02.16. - 21:01:59] [NET__IDENTIFY] Registered patch SoD
[02.16. - 21:01:59] [NET__IDENTIFY] Registered patch Underfoot
[02.16. - 21:01:59] [NET__IDENTIFY] Registered patch HoT
[02.16. - 21:01:59] [WORLD__LS] Connecting to login server: 127.0.0.1:5999
[02.16. - 21:02:00] [WORLD__LS_ERR] Could not connect to login server: 127.0.0.1:5999 TCPConnection::Connect(): connect() failed. Error: 10061
[02.16. - 21:02:05] [WORLD__ZONE] New TCP connection from 127.0.0.1:61550
[02.16. - 21:02:05] [WORLD__CONSOLE] New launcher from 127.0.0.1:61550
[02.16. - 21:02:05] [WORLD__LAUNCH] Adding pending launcher 1
[02.16. - 21:02:05] [WORLD__LAUNCH] Launcher Identified itself as 'zone'. Loading zone list.
[02.16. - 21:02:05] [WORLD__LAUNCH] Removing pending launcher 1. Adding zone to active list.
[02.16. - 21:02:10] [WORLD__LAUNCH] zone: dynamic_01 reported state STARTED (1 starts)


Huppy 02-16-2011 11:08 PM

Quote:

Originally Posted by Xakkis (Post 197080)
Well, the only issue I'm having now is that it can't connect to the login server. The address I access my router through is 192.168.2.1. It is also the IP that shows up as "Default Gateway" under ipconfig (perhaps obvious).

I have my router forwarding ports 5998, 5999, 9000, 7000-7100, and 10234 for mail/chat. I have to enter a private IP in the same line as the port to forward, and I chose 192.168.2.3.

This is an example of what I get when I type ipconfig (in windows):
(I have indicated the internal IP result that has to be used with my server.)

Code:

C:\>ipconfig

Windows IP Configuration


Ethernet adapter Local Area Connection:

  Connection-specific DNS Suffix  . : my.cableisp.net
  Link-local IPv6 Address . . . . . : fe80::2907:65d4:cd3a:c043%10
  IPv4 Address. . . . . . . . . . . : 192.168.1.101 <<<<<--------my server IP
  Subnet Mask . . . . . . . . . . . : 255.255.255.0
  Default Gateway . . . . . . . . . : 192.168.1.1

Tunnel adapter Local Area Connection* 6:

  Media State . . . . . . . . . . . : Media disconnected
  Connection-specific DNS Suffix  . :

Tunnel adapter Local Area Connection* 7:

  Media State . . . . . . . . . . . : Media disconnected
  Connection-specific DNS Suffix  . :

C:\>


Xakkis 02-16-2011 11:14 PM

Using my IPv4 address then, I still reach the same result.
I checked to make sure that the port wasn't being used by something else as well.

Thanks for the reply Huppy. Even if I had configured something wrongly in the setup aspect, I feel like the connection could still be made to the loginserver.

Dunno :(

Huppy 02-16-2011 11:25 PM

Quote:

Originally Posted by Xakkis (Post 197085)
Using my IPv4 address then, I still reach the same result.
I checked to make sure that the port wasn't being used by something else as well.

Thanks for the reply Huppy. Even if I had configured something wrongly in the setup aspect, I feel like the connection could still be made to the loginserver.

Dunno :(

Just curious, when the eqemuloginserver.exe window starts up, is it showing any errors ?

Xakkis 02-16-2011 11:31 PM

Hmm, a eqemuloginserver.exe window does not start up. I've been curious about that, as with the old Minilogin a console window popped up before.

The only two console windows that open are those of world.exe and eqlaunch.exe.

Xakkis 02-16-2011 11:32 PM

Figured it out. Didn't have opcodes_sod in my server folder. Wow.

Huppy 02-16-2011 11:35 PM

Quote:

Originally Posted by Xakkis (Post 197087)
Hmm, a eqemuloginserver.exe window does not start up. I've been curious about that, as with the old Minilogin a console window popped up before.

The only two console windows that open are those of world.exe and eqlaunch.exe.

Ok, then thats why your server is not connecting to the login, you need to
simply download the eqemuloginserver.rar file from here :

http://code.google.com/p/projecteqemu/downloads/list

And then unzip/unrar all the files in to your eqemu server folder.

Xakkis 02-16-2011 11:35 PM

Thanks for helping me figure it out Huppy, and for posting that updated Jan-2011 guide. Appreciate the help, mate.

Noport 02-17-2011 04:28 AM

Sever Database Settings
Peq
[Table] variables
LoginType Minilogin
--------------
[Table] account
Id # 2
Name
Charname
Sharedplat
Password
Status 250
Isaccound_id ######
revoked 0
karma 0
minilogin 192.168.2.1
hideme 0
rulesflag 0
Suspendeduntil
Time_Creation
--------------
[Table] account_ip
accid # 1
ip 192.168.2.1
count
lastused date
--------------
[Table] zone_server
Name zone
address 192.168.2.1
port 9000
player_count 0
last_alive date
rain 0
-------------
Peqlogindb
[Table] tbloginserveraccounts
LoginServerID # 1
AccountName
AccountPassword
AccountCreatedDate
AccountEmail
LastLoginDate
LastIpAddress 192.168.2.1
-------------
[Table] tblserveradminregistration
ServerAdminID # 1
AccountName
AccountPassword
FirstName who
LastName cares
Email who@cares.com
RegistrationDate
RegistrationIPAddr 192.168.2.1
--------------
[Table] tblworldserverregistration
ServerID # 1
ServerLongName Age of the False Idols
ServerDescription One Great Server
ServerShortName falseidols
ServerListTypeID # 2
ServerLastLoginDate
ServerLastIpaddr 192.168.2.1
ServerAdminId # 1
ServerTrusted 0
Notes
---------------

LoginServer.ini

# READ README.TXT
[LoginServer]
loginserver=192.168.2.1
#loginserver2=eqemulator.net
loginport=5999
#loginport2=5998
worldname=Age of the False Idols
worldaddress=192.168.2.1
locked=false
account=
password=

[WorldServer]
Defaultstatus=0
Unavailzone=

[ChatChannelServer]
worldshortname=falseidols
chataddress=192.168.2.1
chatport=10234

[LoginConfig]
ServerMode=Minilogin
ServerPort=5999

eqemu_config.xml

Your problem was you had localaddess remarked!
Replace the xxxxxxxxx and ******

<?xml version="1.0">
<server>
<world>
<shortname>falseidols</shortname>
<longname>Age of the False Idols</longname>

<!-- Only specify these two if you really think you need to. (read: You don't) -->
<address>192.168.2.1</address>
<localaddress>192.168.2.1</localaddress>

<!-- Loginserver information. Defaults shown -->
<loginserver>
<host>192.168.2.1</host>
<port>5999</port>
<account>xxxxxxx</account>
<password>xxxxxx</password>
</loginserver>

<!-- Server status. Default is unlocked -->
<!--<locked/>-->
<!-- <unlocked/> -->

<!-- Sets the ip/port for the tcp connections. Both zones and console (if enabled). Defaults are shown -->
<tcp ip="192.168.2.1" port="9000" telnet="disable"/>

<!-- Sets the shared key used by zone/launcher to connect to world -->
<key>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</key>

<!-- Enable and set the port for the HTTP service. Defaults are shown -->
<http port="9080" enabled="false" mimefile="mime.types" />
</world>

<!-- Chatserver (channels) information. Defaults shown -->
<chatserver>
<host>192.168.2.1</host>
<port>10234</port>
</chatserver>

<!-- Mailserver (in-game mail) information. Defaults shown -->
<mailserver>
<host>192.168.2.1</host>
<port>10234</port>
</mailserver>

<zones>
<defaultstatus>0</defaultstatus>

<!-- Sets port range for world to use to auto configure zones -->
<ports low="7000" high="7100"/>
</zones>

<!-- Database configuration, replaces db.ini. Defaults shown -->
<database>
<host>localhost</host>
<port>3306</port>
<username>root</username>
<password>****</password>
<db>peq</db>
</database>

<!-- Launcher Configuration -->
<launcher>
<!-- <logprefix>logs/zone-</logprefix> -->
<!-- <logsuffix>.log</logsuffix> -->
<!-- <exe>zone.exe or ./zone</exe> -->
<!-- <timers restart="10000" reterminate="10000"> -->
</launcher>

<!-- File locations. Defaults shown -->
<files>
<!-- <spells>spells_us.txt</spells> -->
<!-- <opcodes>opcodes.conf</opcodes> -->
<!-- <logsettings>log.ini</logsettings> -->
<!-- <eqtime>eqtime.cfg</eqtime> -->
</files>
<!-- Directory locations. Defaults shown -->
<directories>
<!-- <maps>Maps</maps> -->
<!-- <quests>quests</quests> -->
<!-- <plugins>plugins</plugins> -->
</directories>
</server>

edit patch_SoD.conf
replace with this for local access:

# Login opcodes
OP_SessionReady=0x0001
OP_Login=0x0002
OP_ServerListRequest=0x0004
OP_PlayEverquestRequest=0x000d
OP_PlayEverquestResponse=0x0022
OP_ChatMessage=0x0017
OP_LoginAccepted=0x0018
OP_ServerListResponse=0x0019
OP_Poll=0x0029
OP_EnterChat=0x000f
OP_PollResponse=0x0011

Servermini.bat

@echo off
Echo Starting minilogin

cd C:\eqemu
start minilogin.exe
echo
echo

cd C:\eqemu
start world.exe
echo waiting a bit for world to finish loading...
echo.
echo.
ping -n 10 192.168.2.1 > nul

echo starting zone
start eqlaunch.exe zone
exit

config.ini

[Database]
host=localhost
user=xxxxxxxx
password=xxxxxxx
database=peq
compression=off

[General]
quests=C:\EQEmu\quests\

wordwrap=1

edit eqhost.txt
[LoginServer]
Host=192.168.2.1:5999

Download Minilogin6.2 from server
http://code.google.com/p/projecteqem...niLogin6.2.zip

If your server says can't find server
change all ip to 127.0.0.1

Only If using Winxp:
Goto Network Connection Properties
You'll Be at General
Click on Advanced
Click Settings
Leave Firewall ON
Click Exceptions
Click Add Port
Click Change scope
Any Computer [Including those on the Internet]
Click Ok
Name: EqEmuloginServer
Port number: 5999 UDP
Click Ok
Click Add Port
Click Change scope
Any Computer [Including those on the Internet]
Click Ok
Name: EqEmuloginServer
Port number: 5998 UDP
Click Ok
That should now allow other computers
to connect to your system.


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

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.