AA's and Traits

Development forum for the EQ2Emulator Database project.

Moderator: Team Members

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

AA's and Traits

Post by Ememjr » Sat Apr 13, 2019 9:03 am

I am finally at a point where AA changes and Traits changes can be implemented

There is some DB changes that need to be made as well as some data to be updated

the changes should be firm, as they are working on my side

the data on the otherhand will be enough data to see functionality of these systems

i will post additional data to be imported or reimported as it becomes available

this first one is table spell_traits, this includes a altertable and data for wizard/half elf,
spell_traits.txt
be sure to change the DB name

i will post more in this thread soon, once these DB changes are published I will commit my code changes
You do not have the required permissions to view the files attached to this post.

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: AA's and Traits

Post by Ememjr » Sat Apr 13, 2019 9:27 am

this one is for AA, i am sending these with data because i cannot see the data is being exported in the dumps, so i will assume they are empty
You do not have the required permissions to view the files attached to this post.

Rixan
Posts: 12
Joined: Tue Jan 09, 2018 5:30 am

Re: AA's and Traits

Post by Rixan » Sat Apr 13, 2019 5:07 pm

Thank you so much for this. BTW, I think you missed spell_aa table or does that not do anything?

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: AA's and Traits

Post by Ememjr » Sat Apr 13, 2019 5:22 pm

spell_aa is not used nor needed, i think at one time they were thinking about spliting up spells, traits and AA
but i am glad they didnt, becuase everything is a spell anyway

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: AA's and Traits

Post by John Adams » Sun Apr 14, 2019 12:01 pm

These tables are all committed to patchserver, including the drop of the old `spells_aa`. Testing it out, if my server doesn't explode I will commit the version bump (minor version 37) and data.

Update:
`classification` appears to be missing from your SQL for spells_aa_nodelist.

Error:

Code: Select all

12:08:21 I AA        : Loading Alternate Advancements...
12:08:21 E DBCore    : #1054: Unknown column 'classification' in 'field list'
Query:
SELECT `nodeid`, snl.spellcrc, `name`, `description`, snl.aa_list_fk, snl.icon_id, snl.icon_backdrop, `xcoord`, `ycoord`, `pointspertier`, `maxtier`, `firstparentid`, `firstparentrequiredtier`, `classification`, `classificationpointsrequired`, `pointsspentintreetounlock`, `title` FROM spell_aa_nodelist snl
12:08:21 I AA        : Loaded 0 Alternate Advancement(s)
1
Your SQL:

Code: Select all

DROP TABLE IF EXISTS `spell_aa_nodelist`;

CREATE TABLE `spell_aa_nodelist` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `aa_list_fk` int(10) unsigned NOT NULL DEFAULT '0',
  `displayedclassification` varchar(64) NOT NULL DEFAULT '',
  `requiredclassification` varchar(64) NOT NULL DEFAULT '',
  `classificationpointsrequired` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `description` text,
  `firstparentid` int(10) unsigned NOT NULL DEFAULT '0',
  `firstparentrequiredtier` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `maxtier` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `minlevel` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `name` varchar(64) NOT NULL DEFAULT '',
  `nodeid` int(10) unsigned NOT NULL DEFAULT '0',
  `pointspertier` smallint(5) unsigned NOT NULL DEFAULT '0',
  `pointsspentgloballytounlock` smallint(5) unsigned NOT NULL DEFAULT '0',
  `pointsspentintreetounlock` smallint(5) unsigned NOT NULL DEFAULT '0',
  `spellcrc` int(10) unsigned NOT NULL DEFAULT '0',
  `title` varchar(64) NOT NULL DEFAULT '',
  `titlelevel` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `xcoord` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `ycoord` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `icon_backdrop` int(10) DEFAULT '0',
  `icon_id` int(10) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3085 DEFAULT CHARSET=latin1;

Rixan
Posts: 12
Joined: Tue Jan 09, 2018 5:30 am

Re: AA's and Traits

Post by Rixan » Sun Apr 14, 2019 12:49 pm

I worked around by renaming classification to displayedclassification and added requiredclassification in the Stitch PVP dev database.

Copying the data seemed fine afterward.

edit: also [mention]John Adams[/mention], you would need the updated structs for AA too for the database changes to work and I'm still waiting on that from EmemJR. :P

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: AA's and Traits

Post by John Adams » Sun Apr 14, 2019 12:54 pm

Ahh, right. Ok, then it is not ready for implementation.

I'll leave the tables in place, once [mention]Ememjr[/mention] commits the structs, I will attempt to test again.

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: AA's and Traits

Post by Ememjr » Sun Apr 14, 2019 1:39 pm

getting ready to commit now my changes now, there will be alot even some new stuff that hopefully does break things

commits and db updates sometime get wonky for the reason i want db updated first, but then when db gets updated the commit needs almost immediate

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: AA's and Traits

Post by John Adams » Sun Apr 14, 2019 1:53 pm

I understand. But keep in mind, the patcher won't patch a world until you tell it to (minor version) so you should be able to commit all code and tables just fine, and leave version.h where it is until you test.

The one thing I am not confident about is "data updates". I can't remember if we fixed that in the new patcher.

[mention]Ememjr[/mention] Go ahead and update your server to minor version 37, recompile and see if you get the tables and the code runs without error. I have all your table updates and data updates applied to PatchServer. If all goes well, you can commit version.h as version 37.

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: AA's and Traits

Post by Ememjr » Sun Apr 14, 2019 2:51 pm

I have committed, and should include the change to not look for classification, and look for those other 2


If i update version.h will that wipe any of my data i server still shows, version 28

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: AA's and Traits

Post by Ememjr » Sun Apr 14, 2019 2:55 pm

also it would be very nice if we could somehow get access to all the version updates , aside from the server trying to patch
something like where we can go into the quest changelog and see all the data changes have a changelog we can view prior to installing updates automatically,
nothing worse than a table getting drop and readded with data and it overs the local data

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: AA's and Traits

Post by John Adams » Sun Apr 14, 2019 3:02 pm

There is no way to "cherry pick" updates. The best way to avoid losing your work is to keep a backup before updating from patcher. I usually had a Dev DB I work(ed) on, but tested only on my Test DB. If changes worked, I updated Dev DB before continuing work on next phase.

(btw, when I say "no way" I mean no way >today<. Anyone is welcome to create a better process)

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: AA's and Traits

Post by Ememjr » Sun Apr 14, 2019 3:13 pm

dont really want to cherry pick them just want to be able to review them either before or after they are installed so we know what has changed

everyonce in a while i get to see eq2-updates.sql but it seems to disappear often

tyrbo
Team Member
Posts: 271
Joined: Thu Feb 18, 2016 12:33 pm

Re: AA's and Traits

Post by tyrbo » Sun Apr 14, 2019 3:44 pm

Ememjr wrote: Sun Apr 14, 2019 3:13 pm dont really want to cherry pick them just want to be able to review them either before or after they are installed so we know what has changed

everyonce in a while i get to see eq2-updates.sql but it seems to disappear often
You should be able to jump in the code and modify it to pull down the update file and keep it around if you want.
I've had to do that a few times before to safely merge in changes when I was still keeping up to date with those.

User avatar
Cynnar
Project Leader
Posts: 738
Joined: Sat Sep 27, 2014 1:22 am
EQ2Emu Server: Eq2emulator
Characters: Vlash
Veinlash
Taragak
Cynnar

Re: AA's and Traits

Post by Cynnar » Mon Apr 15, 2019 8:07 am

Also you can log it. Can't remember off the top of my head which one it is that turns it on, but it can be logged which gives you the SQL queries I believe.
[ 01000011 01111001 01101110 01101110 01100001 01110010 ]

Follow on:
Twitter Facebook

Contact me:
PM Discord chat email

Hardware: the parts of a computer that can be kicked

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests