mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
Through the eventsystem can be quite complex and errormessages should be quite meaningful for finding mistakes in sql I decided to create another table in database This table will just contain the map,event1,event2 and a human readable description of every event the primary key is over map,event1,event2 this table will be outer joined with bg_creatures,bg_gameobject so every inner-join part will just match those events and create no error but every outer join part will mean there was something wrong (either a spawn which has no existant event, or an event where no spawn is inside) also this table is very useful for db-developers, to see which events exist without looking into code and understanding the logic behind the code also please note: those error-checks don't (and can't) report every mistake.. for example if you have an arathibasin node - and add just one creature in this event - this system won't look, if you've spawned all needed gameobjects and so on.. an idea would be to add to this table how much gameobjects and creatures have to be there at minimum - but i doubt that this will be much helpful also i won't stop battlegrounds from loading if not all events do exist (just cause i see no need in it) |
||
|---|---|---|
| .. | ||
| tools | ||
| updates | ||
| characters.sql | ||
| create_mysql.sql | ||
| drop_mysql.sql | ||
| Makefile.am | ||
| mangos.sql | ||
| mangos_spell_check.sql | ||
| realmd.sql | ||