I didn't know if Jabantiz had SVN access so i went ahead and merged his diff file and committed.John Adams wrote:You guys are kicking ass! Thank you for getting involved. This is a very good sign
Now if I can just get you to commit your efforts to SVN, we'll be golden. No sense duplicating the effort, you both (all) have write access. Don't worry if something is wrong, or buggy. It's SVN. We can always revert
As for DB/table modifications, you can continue to post your tables for now since my DB update scripts (on the portal) seem to re-write themselves day to day and break. Not sure what's up there.
Implementing: AA/Character Traits
Moderator: Team Members
- Zcoretri
- Team Member
- Posts: 1642
- Joined: Fri Jul 27, 2007 12:55 pm
- Location: SoCal
Re: Character Traits
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Character Traits
I missed that part of the pm john had sent me, thought I just had access to the other svns, now I know.
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Character Traits
I added the ability to group traits together. The way it was trait choices were listed in order of level. Now it will sort them by group (each group will be sorted by level) so the list can be made to look like live (all stat traits grouped together, followed by all the resist traits and so on).
Required sql
The tier field needed to be added for the class training portion of the list. This should be the last change to this table I need to make.
Required sql
Code: Select all
ALTER TABLE `spell_traits`
ADD COLUMN `tier` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0' AFTER `isInate`,
ADD COLUMN `group` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0' AFTER `tier`
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Re: Character Traits
I gave you all DB Updater access too. Give the module a try (if you dare), see if we can keep the committed code in sync with the DB.
Remember, table structure changes require you to bump the MINOR_VERSION value in version.h to match the version # supplied after the DB Update commit. If you need more instruction on this, let me know. Scat, Z and I can assist.
Remember, table structure changes require you to bump the MINOR_VERSION value in version.h to match the version # supplied after the DB Update commit. If you need more instruction on this, let me know. Scat, Z and I can assist.
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Re: Character Traits
Anyone going to submit the SQL tables needed for Traits? The committed code is now throwing errors that it cannot find tables.
Not sure if the structures presented here are the correct ones, or I'd do it myself.
Not sure if the structures presented here are the correct ones, or I'd do it myself.
- Zcoretri
- Team Member
- Posts: 1642
- Joined: Fri Jul 27, 2007 12:55 pm
- Location: SoCal
Re: Character Traits
Yeah...I will do it when I get home tonight. I will also submit some data for the tables also.
John...at the moment, the spell ID's for the traits are starting at 1000000, would you like them to be something different?
John...at the moment, the spell ID's for the traits are starting at 1000000, would you like them to be something different?
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Re: Character Traits
No that should be okay, keeping them up above the other normal spell class ranges. Do Traits have race/class combos? Maybe we could group them by race_id like we do with spells. Once we get more data, we can take a look at it closer.Zcoretri wrote:John...at the moment, the spell ID's for the traits are starting at 1000000, would you like them to be something different?
Thanks, Z.
- Zcoretri
- Team Member
- Posts: 1642
- Joined: Fri Jul 27, 2007 12:55 pm
- Location: SoCal
Re: Character Traits
Could not create the new table last night, it was throwing an error.
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Character Traits
Sorry I never got around to this, have had no free time over the past week or so to work on this. I just tried to do the update but I got the following error.
As I said I am not that good with sql, I use Heidi for all my database work and that is where I got the following create statement from so I have no idea what is wrong.SQL ERROR [ mysqli ]
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 ')COLLATE='utf8_general_ci'ENGINE=InnoDBROW_FORMAT=DEFAULTAUTO_INCREMENT=0' at line 1 [1064]
Code: Select all
CREATE TABLE `spell_traits` (
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`spell_id` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`level` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`class_req` TINYINT(3) UNSIGNED NOT NULL DEFAULT '255',
`race_req` TINYINT(3) UNSIGNED NOT NULL DEFAULT '255',
`isInate` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
`tier` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`group` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
INDEX `FK_spell_traits` (`spell_id`),
CONSTRAINT `FK_spell_traits` FOREIGN KEY (`spell_id`) REFERENCES `spells` (`id`) ON UPDATE CASCADE ON DELETE CASCADE
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
ROW_FORMAT=DEFAULT
AUTO_INCREMENT=0;- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Re: Character Traits
Ok, I will see if I can identify the bug *this time*. I swear, sometimes I stripslashes, sometimes I addslashes, sometimes I do nothing, and there is always an error at one point or another.
Thanks for trying.
Thanks for trying.
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Re: Character Traits
Well there's your problem. Heidi sucksJabantiz wrote:I use Heidi
The script should be fixed. Please re-submit your query above, and add the data, and report any new errors to me here. The bug (this time) was that I am removing CONSTRAINT lines from the query before inserting them into our updates DB, and it was leaving a trailing comma.
(keep committing CONSTRAINTs, i only remove them because our db update database can't handle them. they are still pushed to the world DBs regardless).
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Character Traits
Did a copy and paste of the sql I posted above and now I get this error
SQL ERROR [ mysqli ]
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 '=DEFAULTAUTO_INCREMENT=0' at line 1 [1064]
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Re: Character Traits
Make sure the copy/paste doesn't remove necessary white spaces. I'll try it myself right now, same steps.
Edit: Worked for me without editing a byte. Not sure why it wouldn't work for you. We can leave my submit there, and just bump the version.h to 41.
Try submitting the sample data to this new table when you are ready.
Edit: Worked for me without editing a byte. Not sure why it wouldn't work for you. We can leave my submit there, and just bump the version.h to 41.
Try submitting the sample data to this new table when you are ready.
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Character Traits
My sample data was just generic stuff I entered to test with, Zcoretri probably has better more live like data then I do but I will still submit mine if you want it.
EDIT: updated version.h and comitted it to the dev svn
EDIT: updated version.h and comitted it to the dev svn
- Zcoretri
- Team Member
- Posts: 1642
- Joined: Fri Jul 27, 2007 12:55 pm
- Location: SoCal
Re: Character Traits
I got some good data...just polishing it up and will add it in...soonJabantiz wrote:My sample data was just generic stuff I entered to test with, Zcoretri probably has better more live like data then I do but I will still submit mine if you want it.
EDIT: updated version.h and comitted it to the dev svn
Who is online
Users browsing this forum: No registered users and 0 guests