PDA

View Full Version : Newbie LAN Creation Guide...


Ragnarok
05-28-2003, 05:22 AM
Hello,

the eqemu Team helped me to set up my LAN so i will help to support you with a Newbie Guide to setup a LAN Connection for 200 clients. To the smart and celver guys here, im a Newbie and i know you surly have easier ways to do it. But i explain it how i did it. Im sure its easy to understand for other new people here in this great project. So please avoid beeing a smartass.

Prepartion:

Operation System: Windows XP Professional
( Old Version no Service Pack no Updates )

Make sure you patched Everquest LIVE on the latest. Then download EQEMU Patcher and install it INTO the EQ directory. Do not install it somewhere else. Then start pacthing again with EQEMU Patcher.

Backup your Everquest before you patch with EQEMU Patcher.
ALWAYS use the backup for fooling arround with eqemu.

Download EQ Windows ( eqw.zip. )

Put your screen colors in display options to 16 BIT max.
Everqest will not run with 32BIT colors under EQW.

Prepare your computer Network IP's. The IP's are teh key to get this correctly to run. Give the HOST, your machine the static IP 192.168.0.1.

Give the other computer the IP 192.168.0.2 etc. etc

You can create up to 200 Accounts.

Install the fully patched EQ Version ( also patched with EQEMU patcher ) on all machines.

Starting:

1. Download mySQL: mysql-3.23.56-win.zip

Do not use the latest mySQL Version like Version 4. It makes problems at least for me.

- Install it. Usually drive c. Do it in this folder because its easier to help you if you still have problems.

- Run it and choose a Login and Username for your database storage. Don't forget it.

2. Download the latest EQEMU like: EQEMu-0.4.3-Win32.zip

- Extract it to a folder of your choice.

In any case you need a Databank to start EQEMU. The Databank is most important and contains all Informations like accounts, zones, spawns etc.

EQEMU always comes with a clear databank called db.sql.
Clear means no Data on it just the table structure where you can update another database later t fill the clear one.

Some people working on db's for the Emulator, i do as well but it takes some time. So you have to choose what databank you want to take.

Many people take Drawdes database, wich you can find on the World Create board.

3. Download FQAdmin Version: 4.6 it is our powerful tool to edit everything in the database.

4. Open C:\mysql\bin\mysql.exe

First you create your everquest databank wich helds every single data. Do it by typing:

create database eq;

Now the database is created. Next command is to select wich mysql databnk you want to use for updates now. So use the following command to choose the database of Everquest:

use eq;

Now you have to fill in all data to make your world lively. Files wich can contain world informations can be called txt or sql you cna extract both kind of objects. First step is extract the db.sql that came with eqemu. Do it by:

source db.sql

Now you have a clear database and a clear world without anything at all. So you have to find a good database now. If you take Drawdes, and i advise you do., then you just have to take the latest version and do the same command with his database.sql:

source drawdesdatabasename.sql;

If you do this make sure you read Drawdes Posting. You also should source Database Files like items.sql and doors.sql. Those came froma different designer and you have to source this as well to have doors and more Items. If you do not download a items.sql you cannot summon any Items.

World is filled now. Now the difficult thing, where many people have problems with. Creating a LAN Account. Lets say we want to create an Account called: Test with the Password: 123 on the Host machine wich has the IP: 192.168.0.1

Now type:

INSERT INTO account SET name='Test', password='123', status=200;

GRANT ALL PRIVILEGES ON *.* TO 'Test'@192.168.0.1 IDENTIFIED BY '123' WITH GRANT OPTION;


As you can see you have to insert your username and password in different lines. Also your Ip is important.

Now you created a GM Account. The 200 means Status of account. You are serverop with 200 and if you insert 0 on the next account he will have no Admin commands, just a normal player.

So if you want to create a secon Account for the second PC with the IP 192.168.0.2 use the same commands:

INSERT INTO account SET name='Test2', password='123456', status=0;

GRANT ALL PRIVILEGES ON *.* TO 'Test2'@192.168.0.2 IDENTIFIED BY '123456' WITH GRANT OPTION;

This account is only loginable on the CPU with the IP 192.168.0.2 and it has no admin commands due to you set his Flag to 0 and not 200. This decision is up to you.

You can go on with as many accounts you want to create, just be sure that the IPs will match.

Never forget: You can onyl acces the created account on the Computer wich you gave the IP of the Account. You cannot enter Account IP 192.168.0.2 on your Host neither can he enter your Host account from his machine.

I think this si very important and was never really mentioned deeply here.

5. Setup EQHOST.txt in all Everquest directories on your computer sin the LAN. They always have to target to the HOST Machine.
IP 127.0.0.1 will not work not even for the Host if you want to play in a big LAN. So use 192.168.0.1.

Your EQHOST.txt should look like this:

[Registration Servers]
{
"192.168.0.1:5999"
}
[Login Servers]
{
"192.168.0.1:5999"
}

After you changed the eqhost.txt on every machine to this IP you go back into the eqemu folder and change some ini's and the
boot5zone.bat.

Rightclick on boot5zone.bat and edit it.

Chnage values to host IP:

start zone . 192.168.0.1 7995 192.168.0.1
start zone . 192.168.0.1 7996 192.168.0.1
start zone . 192.168.0.1 7997 192.168.0.1
start zone . 192.168.0.1 7998 192.168.0.1
start zone . 192.168.0.1 7999 192.168.0.1
exit
cls

Save and exit.

Open or create if you do not have a MiniLoginAccounts.ini File.

In this file you have to enter the Account informations:

example:

# Max 200 lines total (including comments and blank lines)
# Blank lines may mess up the line # reported in error messages

192.168.0.1 Test 123
192.168.0.2 Test2 123456

This is how your MiniLoginAccounts.ini should look like.

Then open LoginServer.ini and change it like that:

[LoginServer]
loginserver=192.168.0.1
loginserver2=192.168.0.1
loginport=5999
loginport2=5999
worldname=Your Server Name ( Do not us the word Server )
locked=false
account=
password=
worldaddress=192.168.0.1

Open db.ini

[Database]
host=localhost
user=Your mySQL Login
password=Your mySQL Password
database=eq
compression=off


So, that should it be. Maybe i forgot something but try out if you are new here.

I want to thank the whole eqmu team for putting work into this project also drawde for the great databases.

I just wish that poeple in in IRC #eqemu are more friendly. Not that people dont get answeres, it seems to be more attractive to fool arround on Newbies making jokes about not so clever and uber people like you all the time etc. Thats the only week point on this whole project in my eyes.

Anyway, keep up the good work.

Mauritius
05-28-2003, 07:45 PM
nice guide

a_pond_sturgeon
06-05-2003, 05:03 PM
mysql 4.x works fine....don't know why it doesn't for you....you must be doing something incorrectly....

BadAzz
06-07-2003, 09:37 PM
I have done everything like you have written in your guide.

Withe the computer where the server is installed I can connect and enter the world without any problems.

But with my other computer I can see the server but when I connect i get a 1017 error.

please help!!!

personasect
06-08-2003, 05:44 AM
Now type:

INSERT INTO account SET name='Test', password='123', status=200;

GRANT ALL PRIVILEGES ON *.* TO 'Test'@192.168.0.1 IDENTIFIED BY '123' WITH GRANT OPTION;



Do not run Grant... That gives access to your mySQL server. This may be fine if it is just for everquest, but for most it isnt. From what I can see, the way this is writen, only the insert needs to be done, as the user does not have to log into the mySQL server, the eqemu app does that. I personaly use mySQL for web based development, and can honestly tell you that that is a major security risk, and you are also leaving yourself open to having one of your players signing into the sql server and setting their level to 200

capusr5
06-19-2003, 07:25 PM
Solved many problems I encountered with my LAN setup.

Great guide Rag! :D

digitalphoenix
06-29-2003, 05:39 PM
Well heres what Ive got. I get the good old 1017 error. im trying to run this all on one computer.

LoginServer
[LoginServer]
loginserver=192.168.0.99
loginserver2=192.168.0.99
loginport=5999
loginport2=5999
worldname=My EQ
worldaddress=192.168.0.99
locked=false
account=
password=

[WorldServer]
Defaultstatus=
Unavailzone=

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

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

boot5zones.bat(192.168.0.99 is my IP)
@echo off

if NOT exist spells_en.txt goto NOSPELL

start zone . 192.168.0.99 7995 192.168.0.99
start zone . 192.168.0.99 7996 192.168.0.99
start zone . 192.168.0.99 7997 192.168.0.99
start zone . 192.168.0.99 7998 192.168.0.99
start zone . 192.168.0.99 7999 192.168.0.99
exit
cls

:NOSPELL
echo You did not copy the spells_en.txt from your everquest directory to this one. Please do so or zones will crash on startup.
PAUSE

REM:---------------END------------------------

now the programs

world.exe

Using database 'eq' at localhost
[Status] CURRENT_WORLD_VERSION:EQEMu 0.4.4
[Error] CURRENT_WORLD_VERSION:EQEMu 0.4.4
Loading Variables, zone names & items...
EMuShareMem.dll loaded.
Loading items from database...
...done.
LoginServer.ini read.
Loading guild ranks...done.
Loading EQ time of day..."./eqtime.cfg" is NOT a vaild EQTime file. File versi
is 0; EQTime version is 1000 - failed.
Deleted 0 stale player corpses from database.
Deleted -1 stale player backups from database.
Warning: Pants may change during online play.
TCP listening on: 192.168.0.99:9000
World server listening on: 192.168.0.99:9000
Connected to LoginServer: 192.168.0.99:5999
3495 New TCP connection: 192.168.0.99:1901
New zoneserver: #1 192.168.0.99:1901
3505 New TCP connection: 192.168.0.99:1902
3505 New TCP connection: 192.168.0.99:1903
3515 New TCP connection: 192.168.0.99:1904
New zoneserver: #2 192.168.0.99:1903
New zoneserver: #3 192.168.0.99:1902
New zoneserver: #4 192.168.0.99:1904
Zoneserver SetConnectInfo: 192.168.0.99:1901: 192.168.0.99:7999
3545 New TCP connection: 192.168.0.99:1905
New zoneserver: #5 192.168.0.99:1905
Zoneserver SetConnectInfo: 192.168.0.99:1902: 192.168.0.99:7996
Zoneserver SetConnectInfo: 192.168.0.99:1903: 192.168.0.99:7995
Zoneserver SetConnectInfo: 192.168.0.99:1904: 192.168.0.99:7997
Zoneserver SetConnectInfo: 192.168.0.99:1905: 192.168.0.99:7998
114425 New client from ip: 192.168.0.99 port: 1918
Unknown opcode: 0x6a12 size:131
0: 78 5E 4B C9 4C CF 2C 49 - CC 29 C8 C8 2F CD 2B 2D | x^K.L.,I.)../.+-
16: 4E 4D 61 28 4A CD C9 4F - 4C 61 20 16 68 02 15 7E | NMa(J..OLa .h..~
32: F9 2B CC 10 C2 10 C6 C0 - F0 E6 6F BD 14 13 03 43 | .+........o....C
48: C0 4F 61 86 05 0A AA 0C - 0C 40 1A 04 B2 45 BF 96 | .Oa......@...E..
64: 3B 33 30 1C 98 25 F8 B5 - 7C 3E 10 23 8B F5 FC 16 | ;30..%..|>.#....
80: 66 F8 F1 4B 98 A1 02 68 - 06 EB 84 EF E5 2B AE 7E | f..K...h.....+.~
96: 03 CB 2B 00 71 E5 92 E7 - E5 20 1A A4 FF B6 F8 73 | ..+.q.... .....s
112: B0 19 7F 80 EA 40 E0 CB - 5F 88 0B 8F 03 31 00 62 | .....@.._....1.b
128: 09 32 BC | .2.
Unknown opcode: 0x6a12 size:131
0: 78 5E 4B C9 4C CF 2C 49 - CC 29 C8 C8 2F CD 2B 2D | x^K.L.,I.)../.+-
16: 4E 4D 61 28 4A CD C9 4F - 4C 61 20 16 68 02 15 7E | NMa(J..OLa .h..~
32: F9 2B CC 10 C2 10 C6 C0 - F0 E6 6F BD 14 13 03 43 | .+........o....C
48: C0 4F 61 86 05 0A AA 0C - 0C 40 1A 04 B2 45 BF 96 | .Oa......@...E..
64: 3B 33 30 1C 98 25 F8 B5 - 7C 3E 10 23 8B F5 FC 16 | ;30..%..|>.#....
80: 66 F8 F1 4B 98 A1 02 68 - 06 EB 84 EF E5 2B AE 7E | f..K...h.....+.~
96: 03 CB 2B 00 71 E5 92 E7 - E5 20 1A A4 FF B6 F8 73 | ..+.q.... .....s
112: B0 19 7F 80 EA 40 E0 CB - 5F 88 0B 8F 03 31 00 62 | .....@.._....1.b
128: 09 32 BC | .2.
Client disconnected
Removing client from ip:192.168.0.99 port:1918
142735 New client from ip: 192.168.0.99 port: 1924
Unknown opcode: 0x6a12 size:131
0: 78 5E 4B C9 4C CF 2C 49 - CC 29 C8 C8 2F CD 2B 2D | x^K.L.,I.)../.+-
16: 4E 4D 61 28 4A CD C9 4F - 4C 61 20 16 68 02 15 7E | NMa(J..OLa .h..~
32: F9 2B CC 10 C2 10 C6 C0 - F0 E6 6F BD 14 13 03 43 | .+........o....C
48: C0 4F 61 86 05 0A AA 0C - 0C 40 1A 04 B2 45 BF 96 | .Oa......@...E..
64: 3B 33 30 1C 98 25 F8 B5 - 7C 3E 10 23 8B F5 FC 16 | ;30..%..|>.#....
80: 66 F8 F1 4B 98 A1 02 68 - 06 EB 84 EF E5 2B AE 7E | f..K...h.....+.~
96: 03 CB 2B 00 71 E5 92 E7 - E5 20 1A A4 FF B6 F8 73 | ..+.q.... .....s
112: B0 19 7F 80 EA 40 E0 CB - 5F 88 0B 8F 03 31 00 62 | .....@.._....1.b
128: 09 32 BC | .2.
Client disconnected
Removing client from ip:192.168.0.99 port:1924
192.168.0.99:5999: TCPConnection::RecvData(): Error: 10053
Error: LoginServer::Connect: 'TCPConnection::Connect(): connect() failed. Erro
10061'

heres one of my bootzones
Using database 'eq' at localhost
[Status] CURRENT_ZONE_VERSION: EQEMu 0.4.4
[Error] CURRENT_ZONE_VERSION: EQEMu 0.4.4
[Status] Loading Variables
[Status] Loading zone names
[Status] Loading items
EMuShareMem.dll loaded.
[Status] Loading npcs
Loading NPCTypes from database...
[Status] Loading npc faction lists
Loading NPC Faction Lists from database...
[Status] Loading loot tables
Loading Loot tables from database...
[Status] Loading doors
Loading Doors from database...
[Status] Loading guilds
[Status] Loading factions
[Status] Loading corpse timers
[Status] Loading what ever is left
[Status] Entering sleep mode
Connected to worldserver: 192.168.0.99:9000

anything else yall need?

Shawn319
06-29-2003, 10:09 PM
THIS FORUM IS NOT FOR SUPPORT. POST IT IN THE RIGHT PLACE