Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sunken Temple appears on lists as "undefined" #227

Closed
wodim opened this issue Sep 22, 2020 · 9 comments · May be fixed by TrinityCore/aowow#41
Closed

Sunken Temple appears on lists as "undefined" #227

wodim opened this issue Sep 22, 2020 · 9 comments · May be fixed by TrinityCore/aowow#41
Labels
Bug i broke something

Comments

@wodim
Copy link
Contributor

wodim commented Sep 22, 2020

https://tcubuntu.northeurope.cloudapp.azure.com/aowow/?zone=1417

image

Also on items:

https://tcubuntu.northeurope.cloudapp.azure.com/aowow/?item=10454

@Sarjuuk Sarjuuk added the Bug i broke something label Oct 2, 2020
@Sarjuuk
Copy link
Owner

Sarjuuk commented Oct 2, 2020

probably still using the open world area id for sunken temple.

@wodim
Copy link
Contributor Author

wodim commented Dec 23, 2020

There are other zones that are undefined. Champion's Hall: https://tcubuntu.northeurope.cloudapp.azure.com/aowow/?zone=2918

@wodim
Copy link
Contributor Author

wodim commented Dec 23, 2020

The Great Sea: https://tcubuntu.northeurope.cloudapp.azure.com/aowow/?zone=207 (even though this looks more like Deadmines. I'm not sure what's up with that)

@jackpoz
Copy link
Contributor

jackpoz commented Dec 28, 2020

I re-run Calculate.Creature.Zone.Area.Data and aowow sql, undefined seems to have disappeared in all the links mentioned above

@Sarjuuk Sarjuuk closed this as completed Dec 29, 2020
@jackpoz
Copy link
Contributor

jackpoz commented Dec 30, 2020

now that I re-run the aowow sql setup, this issue appeared again (and should be re-opened)

@jackpoz
Copy link
Contributor

jackpoz commented Dec 30, 2020

@Sarjuuk if I check https://tcubuntu.northeurope.cloudapp.azure.com/aowow/?zone=1417 I see the zone is Sunken Temple and has id 1417.
If I click on the first mob https://tcubuntu.northeurope.cloudapp.azure.com/aowow/?npc=5722 and check in world.creature is has zoneId and areaId 1477 (notice it's 1477, not 1417).

1477: 'Sunken Temple',
shows 1477 for Sunken Temple , while
[1417, "Sunken Temple"],
shows 1417.
SELECT * FROM creature WHERE zoneid = 1417 OR areaId = 1417; gives 0 results.

Is there a typo in the static js files ?

https://tcubuntu.northeurope.cloudapp.azure.com/aowow/?zone=2918 zone 2918 is missing from

var g_zones = {
, is it supposed to be in that array ?

@Sarjuuk
Copy link
Owner

Sarjuuk commented Dec 31, 2020

MariaDB [sarjuuk_aowow]> select * from dbc_areatable where id in (1477, 1417);
+------+-------+-----------+-------+---------------+-----------+----------------+---------------------------+-------------------------+----------------------------+-----------+--------------------------+-------------------+------------------+
| id   | mapId | areaTable | flags | soundAmbience | zoneMusic | zoneIntroMusic| name_loc0                 | name_loc2               | name_loc3   | name_loc4 | name_loc6                | name_loc8         | factionGroupMask |
+------+-------+-----------+-------+---------------+-----------+----------------+---------------------------+-------------------------+----------------------------+-----------+--------------------------+-------------------+------------------+
| 1417 |   109 |         0 |     0 |             0 |         0 |              0| Sunken Temple             | Temple englouti         | Versunkener Tempel   | ?????     | Templo Sumergido         | ?????????? ????   |                0 |
| 1477 |   109 |         0 |     0 |            33 |         3 |              0| The Temple of Atal'Hakkar | Le temple d'Atal'Hakkar | Der Tempel von Atal'Hakkar | ??????    | El Templo de Atal'Hakkar | ???? ????'??????? |                0 |
+------+-------+-----------+-------+---------------+-----------+----------------+---------------------------+-------------------------+----------------------------+-----------+--------------------------+-------------------+------------------+
2 rows in set (0.025 sec)```
its a zone on the same instance map and it has me weirded out since day one.

@jackpoz
Copy link
Contributor

jackpoz commented Dec 31, 2020

well

$WH.ae(a, $WH.ct(g_zones[zoneId]));
is the one returning "undefined", maybe better to keep the zone id if the name is not found in the js.

in addition to that it might be good to refresh the list of zones as there are quite a few missing

what about something like

SELECT CONCAT(LPAD(id, 4, " "), ": '", REPLACE(name_loc0, '\'', '\\\''), "',") FROM aowow.aowow_zones;

to get the zones from the db into the js ? is there a reason to exclude some zones ?

@jackpoz
Copy link
Contributor

jackpoz commented Dec 31, 2020

I opened a PR at TrinityCore#41 (maybe I should I opened it on this repo but I noticed too late).

I applied it on tcubuntu, you can see the result by clearing your browser cache and visiting these urls:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug i broke something
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants