PDA

View Full Version : Stuck trying to make server help!


rlie_0
02-07-2013, 04:56 AM
Ok so the guide im using is

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

I am using Windows7 OS. Currently Im on step 9 just after getting everything installed (software wise).
"9. Open up the MS Visual C++ 2008 Program that you installed.

Click on "File" and scroll down to "Open" and from that menu "Project/Solution"
The browser will pop up and you will navigate to C: drive to the source folder.
Inside the source folder is trunk folder. Inside that one is EQEmuServer folder.
Click on that folder and inside, one of the files Server.sln (NOT Server71).
Click on Server.sln and click open.(this file will have a number "9" on it)"

After i go to the source folder > trunk > EQEmuServer > the file "Server.sln" appears to not be there is there anything I can do to get that file to appear? Ive gone so far to just turned away with a missing file would really suck. I have attempted to delete and reload everything and that file seems to still not show up... Please help.

lerxst2112
02-07-2013, 05:55 AM
http://www.eqemulator.org/forums/showthread.php?t=36281

rlie_0
02-07-2013, 03:38 PM
Anyone willing to step by step with me to figure out why im stalling out? I know its alot to ask. Just hope someone has some time to help me get rolling, getting started is the hard part not knowing if I have the right software is always questioned with how many different guides are out there and what they sugguest I get if anyone could take a look see would be greatly helpful!

Disorder
02-07-2013, 05:39 PM
What do you mean by stalling out? :)

rlie_0
02-07-2013, 05:50 PM
It seems by the guide, I have ran out of step and still dont have a server up and running, kinda want to know of any current working guides or pick the mind of someone who can get a server up and going is all...Just finished the Cmake I have 13 configs rows here to look at with a number of things on them, Ive pressed confure, then generate. After this part the guide really dosent go into getting a server up and going or anything else, Ive only used the source files, and not the build folder as of yet to do anything.

Disorder
02-07-2013, 06:26 PM
Open up C++ and open the eqemu file created by cmake. Build a solution as directed in step 9, and continue on :)

rlie_0
02-08-2013, 07:08 PM
So after Cmake, and opening up VS 2012(As I tried 08 and the doc said I needed to use a newer VS to do this) I was able to open EMUserver doc and build it / clean it, I got this at the end of it

========== Clean: 14 succeeded, 0 failed, 1 skipped ==========

Good rate but well over the number I should have had (guide stated 5 lol) Did I build it wrong? Im moving down the guide and gonna see how well it goes.

Just after finishing the build the outcome is

========== Build: 12 succeeded, 2 failed, 0 up-to-date, 1 skipped ==========

:( Not what I was hoping for :( lol.

rlie_0
02-08-2013, 08:10 PM
Ok I finished Steps 1 to 8 on this guide:

http://www.eqemulator.org/forums/showthread.php?t=32980

No problems there was rather simple to get upto that point, once there I followed this guid for Cmake updated part of this:

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

Worked like a charm, becoming easier to get the steps down once all the software is located downloaded, and installed. Once after that I go back to the frist link on this post to attempt step 9.

The browser will pop up and you will navigate to C: drive to the source folder.
Inside the source folder is trunk folder. Inside that one is EQEmuServer folder.
Click on that folder and inside, one of the files Server.sln (NOT Server71).
Click on Server.sln and click open.(this file will have a number "9" on it)

This part of step nine has me left in the dark. I look for that file, "Server.sln" and I cant find it in that folder nor in the "build" (which came from the CMake program's configure and generate) the only doc that shows up (in the EMUServer folder or Build Folder) is a file named "EQEmu". Any sugguestions on where I went wrong or need to look?

c0ncrete
02-08-2013, 08:19 PM
it's called EQEmu.sln, and it's in the folder you designated as your build directory in CMake.

rlie_0
02-08-2013, 08:24 PM
Ok, I can open that one, but in VS 2012, I use VS 2008 it tells me in a warning box it can not be opened as VS 2008 is to old? to open and do this, would this still work with VS 2012?

c0ncrete
02-08-2013, 08:54 PM
oh, for the love of.... use the version of VS you built for in CMake

the latest compile guide clearly states you should use 2010 or above

http://www.eqemulator.org/forums/showthread.php?t=35722

rlie_0
02-08-2013, 09:03 PM
Correct, was just read off the guide, Thanks for the sugguestions moving forward and progressing now, just playing that waitting game it takes for the computer to compile atm. Sorry for being frusterating and confusing at points really new to this but thanks a million for helping! Im really thankful for that :)

lerxst2112
02-08-2013, 09:42 PM
I use 2008 with CMake and it works fine. But yeah, you need to tell CMake to generate files for the version you're using.

rlie_0
02-08-2013, 10:16 PM
K its making more sense now that im getting deeper into it. I have both 08 and 12 on my computer, 08 isnt running it...I get into 12 and Im getting 2 fails and 7 passes other 2 are at zero. Im still over the 5 the guide im reading is saying I should have going to get myself 2010 and redo Cmake under 10 and use VS 10 to see if it changes my outcome.

lerxst2112
02-08-2013, 10:35 PM
If you generated a solution for 2012 then yes, 2008 won't open it. No shock there.

If you actually posted the errors we could probably tell you how to fix them, but if you want to keep flailing around hoping it'll fix itself, carry on.

rlie_0
02-08-2013, 11:29 PM
Ok, something just corrected itself or I managed to get it down right, so it cleaned with 9 out of 9 and built 9 out of 9.

Now im on step 10 copying files over.

Im looking for

Chatserver.exe

That file appears to be missing. The other 4

eqlaunch.exe, World.exe, Zone.exe and EMuShareMem.dll

Were all there. Has anyone else ran into that issue before?

c0ncrete
02-08-2013, 11:32 PM
yes, it doesn't exist. it's UCS.exe now.

rlie_0
02-09-2013, 12:01 AM
And for the patch ones, unable to find

patch_Anniversary.conf,
patch_HoT.

we not support those 2 anymore? the rest of them were there.

Uleat
02-09-2013, 12:04 AM
yes, those were deprecated as well.


look in your peq folder and there should be an eqtime.cfg file too.

it's not required to run, but it will eliminate an error that you will get without it.

rlie_0
02-09-2013, 12:11 AM
There any other hidden files that will make this less painful anyone can sugguest I copy over into the server folder?

rlie_0
02-09-2013, 12:43 AM
So im working on the .sql part of this, the guide told me to start at 1711 and work my way up the highest numbers, covering each required and opational ones are not as needed but I can if id like. Upon attempting my frist one it fails, saying this.

[Err] 1146 - Table 'peq.account' doesn't exist
[Err] ALTER TABLE `account` ADD `time_creation` INT UNSIGNED DEFAULT '0' NOT NULL AFTER `suspendeduntil`;
[Err] 1146 - Table 'peq.account' doesn't exist
[Err] UPDATE `account` SET `time_creation` = UNIX_TIMESTAMP() WHERE `time_creation` = 0;
[Msg] Finished - Unsuccessfully
--------------------------------------------------

From what I can see, Im missing file folders or something any sugguestions to fix this, and do I repeat each step for each .sql scource Ill input?

lerxst2112
02-09-2013, 01:09 AM
You source updates newer than the initial database you installed. So, if you started with 2294 then you want the updates from 2295 and up.

But, if peq.account doesn't exist then you did something wrong in the initial sourcing, like you missed load_player.sql or did it incorrectly.

rlie_0
02-09-2013, 03:02 AM
When I go back to the CMD, get logged into that the errors im getting are

ERROR: 1062(23000): Duplicate entry `1 - This one came after i entered

source peqdb_rev2294.sql


When i enter

source load_player.sql

I end up with a lot of rows looking like this

Quary OK, 0 rows affected (0.00 sec)

with this in the middle of it all

Quary OK, 21 rows affected (0.00 sec)
Records: 21 Duplicates: 0 Warning: 0

and then I end up back at

mysql>

Was there a step I missed?

lerxst2112
02-09-2013, 04:15 AM
Open your database in Navicat or whatever tool you use and look for both a database named peq and a table named account.

Sourcing over what you already did will give you a lot of errors and duplicates. In order to start fresh you'd need to delete the database or empty it and then source again.

Noport
02-09-2013, 04:24 AM
mysql -u root -p
Create Database peq; this will make sure you created a directory for your peq database. if you have a peq directory you may skip this step.
use peq (Hit enter and you will see a short note saying "Database changed")
then type
source load_player.sql

rlie_0
02-09-2013, 12:08 PM
The step im having trouble with is making the database...I go into the cmd window and it says I have made the databases...no clue where they are at tho. when I head into Navicat, and open Localhost_3306 then go down to peq, the Tables, Views, Functions, Events, Query tabs within it are clear of anything inside them. This correct or there something im missing?

When i go into the cmd window i do this;

cd/peqdb
mysql u-root -p
Enter password: XXXXXXXXXXXX
Create database peq; (I get an error states its already there)
Use peq

source peq_rev2294.sql (wait awhile)

Then finally enter

source load_player.sql

then close the window and look in Navicat. Once I get into there I look under local connection, open it, look at the peq database, nothing inside it...

Derision
02-10-2013, 02:34 PM
I don't use Navicat, but from a command prompt you can verify if your database is there by doing this:

C:\Users\Steve>mysql -u root -p
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.61-community MySQL Community Server (GPL)

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| peq |
| test |
+--------------------+
4 rows in set (0.00 sec)

mysql> use peq;
Database changed
mysql> show tables;
+---------------------------------+
| Tables_in_peq |
+---------------------------------+
| aa_actions |
| aa_effects |
| aa_required_level_cost |
| activities |
| adventure_template |
| adventure_template_entry |
| adventure_template_entry_flavor |
| altadv_vars |
| alternate_currency |
| blocked_spells |
| books |
| char_create_combinations |
| char_create_point_allocations |
| class_skill |
| damageshieldtypes |
| doors |
| faction_list |
| fear_hints |
| fishing |
| forage |
| goallists |
| graveyard |
| grid |
| grid_entries |
| ground_spawns |
| horses |
| items |
| ldon_trap_entries |
| ldon_trap_templates |
| lootdrop |
| lootdrop_entries |
| loottable |
| loottable_entries |
| merchantlist |
| npc_faction |
| npc_faction_entries |
| npc_spells |
| npc_spells_entries |
| npc_types |
| npc_types_metadata |
| npc_types_tint |
| object |
| pets |
| proximities |
| races |
| saylink |
| skill_caps |
| spawn2 |
| spawn_condition_values |
| spawn_conditions |
| spawn_events |
| spawnentry |
| spawngroup |
| spell_globals |
| spells_new |
| start_zones |
| starting_items |
| tasks |
| tasksets |
| titles |
| tradeskill_recipe |
| tradeskill_recipe_entries |
| traps |
| tribute_levels |
| tributes |
| veteran_reward_templates |
| zone |
| zone_points |
| zone_server |
| zone_state_dump |
| zoneserver_auth |
+---------------------------------+
71 rows in set (0.01 sec)

mysql> select short_name, zoneidnumber from zone limit 10;
+------------+--------------+
| short_name | zoneidnumber |
+------------+--------------+
| abysmal | 279 |
| acrylia | 154 |
| airplane | 71 |
| akanon | 55 |
| akheva | 179 |
| anguish | 317 |
| apprentice | 999 |
| arcstone | 369 |
| arena | 77 |
| arena2 | 180 |
+------------+--------------+
10 rows in set (0.00 sec)

mysql>

That is just verifying the peq database exists, it has tables inside it, and the last SELECT command just displays some data from the zone table.

You can verify if there is data in the other tables by running similar commands on them, e.g.

select * from npc_types LIMIT 10;
select * from spawn2 LIMIT 10;


If you really want to redo your database, go into mysql via a command prompt and do:

drop database peq;
create database peq;
use peq;


and then source peq_rev2294.sql, load_player.sql, load_bots.sql (if you want bots), then all the .sql files in utils/sql/svn between 2295 and 2497:

source 2299_required_inspectmessage_fields.sql
source 2300_optional_loot_changes.sql
source 2340_required_maxbuffslotspet.sql
source 2361_required_qs_rule_values.sql
source 2370_required_aa_updates.sql
source 2376_required_aa_updates.sql
source 2380_optional_merc_data.sql
source 2380_optional_merc_merchant_npctypes_update.sql
source 2380_optional_merc_rules.sql
source 2383_required_group_ismerc.sql
source 2428_optional_levelbasedexpmods.sql
source 2448_optional_stun_proc_aggro_rule.sql
source 2471_required_aa_updates.sql
source 2482_required_start_zones.sql


There is no need to actually re-install the MySQL application to wipe your database and start again.