EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Database/World Building (https://www.eqemulator.org/forums/forumdisplay.php?f=596)
-   -   complete eqlive-like faction v1.0! (https://www.eqemulator.org/forums/showthread.php?t=13038)

govtcheeze 04-11-2004 04:35 PM

complete eqlive-like faction v1.0!
 
VERSION:
1.0

BACK UP YOUR DATABASE BEFORE APPLYING THIS PATCH!
Code:

mysqldump -u(username) -p (database) > DBBackup.sql
where (username) = your mySQL username, and (database) = your eqemu database

PURPOSE:
This code will add a complete faction system to eqemu. You lose faction at 3x the rate you gain it. Tested on PEQ's database, but this script (like all that I release) should work with any eqemu server that uses the same table definitions.

Version 1.0 has a lot more accurate data than the previous 0.1 version, and the plan is that you will not have to wipe your faction tables to use any updates I release in the future. This means you can modify your faction table and source in my updates w/o losing any work :) Faction is no longer gained and lost based on a mob's level...that was a stupid idea and is fixed.

If you plan on running the PEQ released databases, all of my work will be included in those releases. IE, you do not need to apply this patch to the classic DB once released by PEQ.

KNOWN ISSUES:
1) Some KOS mobs are not...please let me know which ones need to be KOS and as much info as possible.

HOW TO INSTALL:
1) download this file and extract it to your mysql\bin directory
2) at the dos prompt, browse to the mysql\bin directory
3) type the following, assuming your database name is eq:
Code:

mysql -f eq<faction_listUpdate.sql
and wait for it to finish (should be fairly fast)
4) -- IMPORTANT --

If you are using my v0.1 update AND HAVE NOT ADDED ANY NEW FACTIONS to your database, comment out the third line with 2 minuses. This will allow your players to keep their current faction work. It should look like this:

Code:

DELETE FROM npc_faction;
DELETE FROM npc_faction_entries;
--DELETE FROM faction_values;

INSERT INTO npc_faction VALUES ('1', 'Bonecrusher', '0'); -- NO FACTION

type:
Code:

mysql -f eq<factionTablesUpdate.sql
and wait for it to finish, should be fairly fast and ignore any errors.
5) right before you leave for work/school, or go to bed, type in the following:
Code:

mysql -f eq<factionNpcUpdate.sql
and wait for it to finish. It will take many, many hours.
6) type
Code:

mysql -f eq<kos.sql
and wait for it to finish (should be very fast)
7) Enjoy your faction!

Post all questions and bugs on http://peqserver.com/forums/ in the database bugs forum.

Please, help me make this better. I need people to post any and all faction related problems in this thread. This includes mobs giving the wrong faction hits, mobs responding to the wrong faction, and MOST importantly getting the right mobs on KOS. I have not played live in forever, so I am not too familiar with who should be on what. Please include not only the problem, but the solution if you know which faction needs to be changed to, etc.

Xabob 04-11-2004 05:45 PM

OK thats it this guy deserves some god damn fucking butts i mean this is great frist a almost complete loot table then the same with fraction come on guys just a few butts

vetoeq 04-11-2004 06:11 PM

Govtcheeze is doing AMAZING work, props are indeed due.

themushygod 04-11-2004 09:27 PM

holy crap where do you keep pulling this work from

im impressed and will be adding it to my db tonight

seriously well done on all you recent work

peace


btw what can we expect next couse i cant wait :)

Jesusonsteroids 04-12-2004 11:20 AM

OMG!
 
Omg man! Great job with the faction I am VERY VERY impressed!

:shock: Oooh Oooh whats next! 8)

Thanks man :)

Gossamer 04-15-2004 06:42 AM

Excellent job! Thanks for the faction!

RangerDown 04-15-2004 09:45 AM

Just in the last couple days have I had time to source the factions in. You did a terrific job!

eq_addict_08 04-16-2004 02:44 PM

I was wondering, if there any practical way to set factions up so that they are similar to the fields that tells what classes/races can use an item? I know there are many more factions ingame than classes and races, so would not be as easily implimented. But, you could have several factions associated with a mob, not just one.

NarutoLegacy 04-16-2004 02:51 PM

This is great man! Thanks alot! Again with the amazing shit!

WildcardX 04-17-2004 03:05 PM

i'm doing a little DB work on factions and I'm confused about how the tables "npc_faction" and "npc_faction_entries" relate.. what field is the "key" that ties these 2 tables together?

Also, what field is the actual faction value that determines how a mob will con to a player? is it in the "primaryfaction" field? or the "value" field?

Gossamer 04-20-2004 12:48 PM

This deserves a bump!

NarutoLegacy 04-20-2004 01:11 PM

Umm read the rules buddy....

RangerDown 04-20-2004 02:44 PM

Quote:

i'm doing a little DB work on factions and I'm confused about how the tables "npc_faction" and "npc_faction_entries" relate.. what field is the "key" that ties these 2 tables together?

Also, what field is the actual faction value that determines how a mob will con to a player? is it in the "primaryfaction" field? or the "value" field?
The tables are linked by npc_faction.id=npc_faction_entries.npc_faction_id

You're correct, the 'primaryfaction' field determines how a mob cons to a player.

The npc_faction_entries table serves two purposes: 1) a list of faction hits the player will take when killing a mob of that faction ID, and 2) determines which mobs hate each other and which mobs like each other.
If you would take a positive hit for Faction A by killing Mob B, then Faction A hates Mob B and will kill it. If you would take a negative hit for Faction A for killing Mob B, then Faction A likes Mob B and will assist it in combat.

Gossamer 04-21-2004 04:12 AM

Oops Naruto, Im on so many forums I brainfarted, sorry bout that. I know better.

GreatSageCorban 04-22-2004 12:29 AM

Does this faction database set the guards to protecting you?

Gossamer 04-22-2004 03:32 AM

Corban, no. It just puts the faction tables in to your database. You will then either have to start killing to lower/raise factions, or edit your database yourself. As far as guards helping out, I have not seen this working yet either.

RexChaos 04-22-2004 03:34 AM

Quote:

Originally Posted by Gossamer
Corban, no. It just puts the faction tables in to your database. You will then either have to start killing to lower/raise factions, or edit your database yourself. As far as guards helping out, I have not seen this working yet either.

To get the guards working you need to adjust racial modifiers for them or put them on an opposing faction to have them attack.

govtcheeze 04-24-2004 05:38 AM

File location has changed. New link is:

http://govtcheeze.eqemulator.net/download/faction.rar

- and -

http://govtcheeze.eqemulator.net/dow...action_log.rar

You can always browse to http://govtcheeze.eqemulator.net/download/ for a list of all files I have released.

mikenune 05-08-2004 04:35 AM

When I source the second file (add_factions.sql), I get the following errors:

Quote:

ERROR 1062: Duplicate entry '39-209' for key 1
ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' -27)' at line 1
ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' 9)' at line 1
ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' -36)' at line 1
ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' 12)' at line 1
Has anyone else gotten this? Is there anything I'm doing wrong or is this normal?

mikenune 05-09-2004 11:32 PM

Well, since nobody's answered, I'm going to assume those errors are normal. . .

govtcheeze 05-10-2004 01:04 AM

I didn't see this post before. The top error is normal, but the rest are not. I have never gotten the errors when sourcing, and I did not hear any reports of people getting those errors either. Since I know the SQL statements are good, I really do not know what the fix would be for you :(

mikenune 05-10-2004 01:08 AM

Yeah, I was afraid you would say that. . .

The interesting thing is that MySQL is reporting all the errors as happening on line 1. I've looked at the file and, well, the earliest line where I find any of the text reported in the errors is around line 20 or so. . . :?

I'll try re-downloading and sourcing that copy later today and see if it's still happening.

Although, if it's already included in the new TCSMyWorld release, then I probably won't need it. :roll:

govtcheeze 05-10-2004 01:40 AM

Yea it is (with some base factions added by TCS!), guess I should have mentioned that earlier :)

govtcheeze 05-10-2004 06:54 PM

Updated faction_list is available, making many of the mobs non-beta neutral:

browse to http://govtcheeze.eqemulator.net/download/ and get the newFactionList.rar file.

This includes all faction entries from MW_055_alpha2.

Extract it to mysql\bin and source it. This is how my session looked:

Code:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\theoden>cd c:\mysql\bin

C:\mysql\bin>mysql -f eq<newFactionList.sql

C:\mysql\bin>

Please report any errors or additions to this thread!

vrated 06-14-2004 02:49 PM

Quote:

Originally Posted by mikenune
When I source the second file (add_factions.sql), I get the following errors:

Quote:

ERROR 1062: Duplicate entry '39-209' for key 1
ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' -27)' at line 1
ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' 9)' at line 1
ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' -36)' at line 1
ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' 12)' at line 1
Has anyone else gotten this? Is there anything I'm doing wrong or is this normal?

I have this exact problem also. I am using MySql 4.0.18 (Linux).

phasepuma 06-16-2004 12:13 PM

I got no errors : /

stclairguy 06-16-2004 02:05 PM

Error
 
Quote:

ERROR 1064 at line 73918: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14941 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73919: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14941 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73920: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14941 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73921: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14941 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73922: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14941 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73923: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14941 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73924: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14941 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73925: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73926: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73927: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73928: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73929: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73930: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73931: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73932: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73933: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73934: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73935: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73936: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73937: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73938: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73939: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73940: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73941: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73942: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73943: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73944: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73945: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73946: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73947: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73948: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73949: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73950: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73951: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73952: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73953: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73954: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73955: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73956: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73957: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73958: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73959: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73960: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73961: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73962: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73963: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73964: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14942 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73965: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73966: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73967: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73968: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73969: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73970: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73971: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73972: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73973: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73974: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73975: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73976: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73977: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73978: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73979: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73980: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73981: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73982: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73983: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73984: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73985: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73986: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73987: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73988: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73989: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73990: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73991: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73992: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73993: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73994: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73995: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73996: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73997: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73998: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 73999: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 74000: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 74001: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 74002: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 74003: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 74004: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14943 WHERE npc_types.name li' at line 1

ERROR 1064 at line 74005: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14944 WHERE npc_types.name li' at line 1

ERROR 1064 at line 74006: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14944 WHERE npc_types.name li' at line 1

ERROR 1064 at line 74007: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14944 WHERE npc_types.name li' at line 1

ERROR 1064 at line 74008: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14944 WHERE npc_types.name li' at line 1

ERROR 1064 at line 74009: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14945 WHERE npc_types.name li' at line 1

ERROR 1064 at line 74010: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14945 WHERE npc_types.name li' at line 1

ERROR 1064 at line 74011: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14945 WHERE npc_types.name li' at line 1

ERROR 1064 at line 74012: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14945 WHERE npc_types.name li' at line 1

ERROR 1064 at line 74013: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14946 WHERE npc_types.name li' at line 1

ERROR 1064 at line 74014: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14946 WHERE npc_types.name li' at line 1

ERROR 1064 at line 74015: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14946 WHERE npc_types.name li' at line 1

ERROR 1064 at line 74016: You have an error in your SQL syntax near ' spawn2, sp
awnentry SET npc_types.npc_faction_id = 14946 WHERE npc_types.name li' at line 1


C:\mysql\bin>

I keep getting this error whenever i try and source new_faction_update.sql. Any ideas and fixes? (Btw, i also get this error with the npc_types_update.sql too)

Darkwaters 08-13-2004 11:52 PM

yeah i know what your error is about
 
I've been following the instructions from
http://www.eqemulator.net/forums/vie...2a595ede8c0d4c
hope this helps.
You need to source in the following order
source (db.sql or MW_057DR2_alpha_1.sql depending on which db you decided to use)
source newdumpeditems.sql;
RENAME TABLE items TO items_;
RENAME TABLE items_new TO items;
source itemtablechanges.sql; <----- (in the source folder of the 7/31/2004 source)
source loot_update.sql;
source npc_types_update.sql;
source factionsList.sql;
source add_factions.sql;
source npc_faction_update.sql;
source newFactionList.sql;

If you do not source itemtablechanges.sql prior to loot_update.sql and all that follows in the instructions your gonna be hosed no matter what you do.
Darkwaters
Soulfood_Takeout

govtcheeze 09-16-2004 06:48 AM

version 1.0 released...thread is stickied, but want it to become active so people realize this

cavedude 09-17-2004 03:07 AM

animal_not_KOS gets sourced in as ID 100001 That means you need set MMF_MAX_NPCFactionList_ID to 100001 or higher in NPCFactionLists.h and re-compile. Its set at 50000 by default. You might want to lower the ID before people start wondering why Zone is crying.

Ulfast 09-17-2004 03:30 AM

You have to set the MMF_MAX_NPCFactionList_ID higher then the highest id you have in the npc_faction table.

I set my MMF_MAX_NPCFactionList_ID to 101000 and it works fine by me.

cavedude 09-17-2004 04:01 AM

LOL... I jusat said that ;) I was just letting him know he may wanna lower that number. Seems kinda silly to have those 2 up in the 100k range consdiering the other factions end at 19k.

sotonin 09-17-2004 04:11 AM

they were put up there so they wouldnt ever interfere with the others that wil be added as time goes on in future updates

cavedude 09-17-2004 05:16 AM

Yes that I realize and agree with. However, my point of view is that those last 2 factions could have been 49998 and 49999. That would have prevented the need for a re-compile. Emu is probably one of the easest compiles around, however my experiences have taught me to not re-compile when you don't have to. Also, when you think that Gov has merged most of the factions in Live into that databse and they end at around 19k entries, it is unlikely that will ever even get close to 100k, or even 50k for that matter. I know this is a stupid little point but I just like to keep things simple.

Anyway I just played around for a bit with the new factions and I have to say you impressed me once again. Our databases are beginning to look more and more like Live everyday and your faction and loot tables are a big reason for that.

govtcheeze 09-17-2004 06:38 AM

That is a good point about the faction and recompiling...

For anyone who hasn't sourced this yet, change any instance of 100000 to 49999 in kos.sql and 100001 to 49998 (simple search and replace will work).

I will update the sql and upload a new rar file :)

If you have sourced this in and want to change it, simply do the above and source it in, and be sure to:

Code:

delete from npc_faction where id = 100000 or id = 100001

sotonin 09-20-2004 02:12 AM

I think this update is a bit off. I got it to work without modifying source. You only have to change about 10 entries. Thats how many have 10 or more faction hits. They were all except 1 related to orcs as well. Which makes me think the faction update is a bit wonky. NO orc on live has 10 faction hits. what i am thinking is it perhaps merged the crushbone and deathfist factions together onto every orc.. may be wrong though, not sure exactly. Anyways i deleted the bottom faction hit off each of those 10 factions and it doesnt complain )

govtcheeze 09-20-2004 12:56 PM

Damnit I forgot to fix that before releasing this. Yes, eqmaps did not differenciate between gbay and commons orcs, so they have all factions. I will post a sql fix for it.

Elkay 10-17-2004 08:27 AM

Can't get to the downloads for the faction updates. Just a heads up and hoping it's temporary because I haven't downloaded them yet.

govtcheeze 10-17-2004 09:11 AM

Its back up, but if you are using the PEQ DB you do NOT need to use these files...they are already included.

Elkay 10-17-2004 11:03 AM

Ah cool thanks. I was using a non-PEQ db but I've had so many problems with it that I'm starting over with a fresh PEQ db and importing what I've done into that.


All times are GMT -4. The time now is 09:59 PM.

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