Jump to content

[Discussion] Changes to db-scripts and condition system


Recommended Posts

"(my approach sacrifices space for simplicity):"

infact the basic conditions (has-aura) will be less in your version -- which is kind of a good thing, because this might be the place where we can keep things easier between the different projects.

But you might require more "link-conditions" (with which I mean the conditions of type -1, -2)

With this system, you need to check the numbers of your conditions, and then how they are used within the "link-conditions"

Link to comment
Share on other sites

A new conversion helper for initial fill: http://paste2.org/p/1973223

Results were:

Processing database zero_db (0 vector conditions)

Inserted 32 rows for database zero_db

Processing database tbcdb (0 vector conditions)

Inserted 148 rows for database tbcdb

Processing database udb_clean (0 vector conditions)

Inserted 267 rows for database udb_clean

Processing database ytdb (0 vector conditions)

Inserted 657 rows for database ytdb

Processing database zero_db (1 vector conditions)

Inserted 0 rows for database zero_db

Processing database tbcdb (1 vector conditions)

Inserted 0 rows for database tbcdb

Processing database udb_clean (1 vector conditions)

Inserted 0 rows for database udb_clean

Processing database ytdb (1 vector conditions)

Inserted 0 rows for database ytdb

Processing database zero_db (2 vector conditions)

Inserted 2 rows for database zero_db

Processing database tbcdb (2 vector conditions)

Inserted 33 rows for database tbcdb

Processing database udb_clean (2 vector conditions)

Inserted 57 rows for database udb_clean

Processing database ytdb (2 vector conditions)

Inserted 110 rows for database ytdb

Processing database zero_db (3 vector conditions)

Inserted 0 rows for database zero_db

Processing database tbcdb (3 vector conditions)

Inserted 10 rows for database tbcdb

Processing database udb_clean (3 vector conditions)

Inserted 34 rows for database udb_clean

Processing database ytdb (3 vector conditions)

Inserted 62 rows for database ytdb

Processed database(s): [['zero_db', 0], ['tbcdb', 1], ['udb_clean', 2], ['ytdb', 2]]

Difficult to say, if a shared initial fill would make sense - there is some huge data mismatch between the different projects :(

Link to comment
Share on other sites

the problem is, that it will start to diff in the long term, so within time you won't be able to trust the other conditions datas to be equal, so need to check anyways when porting.

Also there are basic problems, like that conditions which check items or spells will throw errors on older-client databases, because the items/spells just don't exist.

And lastly between udb and ytdb there is atm a set of conditions related to fishing loot (day-time dependend), this is realized with game events, but they throw DB errors in udb because they don't exist.

Edit: Here you can see the conditions table: http://paste2.org/p/1973755

I looked roughly over it, but didn't find a clue of how to maybe improve some conditions to squash a few lines ..

Link to comment
Share on other sites

no, vladimir was telling, that currently the core doesn't use anywhere any hard-coded condition-entry.

So actually no need to force the conditions table to be under sync of mangos -- which is also in the bigger picture impossible, because conditions are highly DB stuff related. (unfortunately even custom db-stuff)

However I suggest to keep a couple of condition-entries reserved for shared use (Mangos, EventAI maybe, SD2 maybe) - even if we currently see no need for them. But this might change

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use