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
[3.3.5] DB/Creature: Prince Valanar walking on ground level (Death's Breach) #16330
Comments
Do you have vmaps extracted and enabled? |
Oh yes, they certainly are. DBC, maps, Vmaps and Mmaps are extracted from the same game client as the one I use to play the game. I extract new DBC/maps files at least once each month. I always enable Mmaps because I know how weird NPCs behave when Mmaps are disabled. Vmaps are always enabled in my worldserver.conf file by default (TrinityCore default). I never change that Vmaps part. |
I'v seen this aswell, from what i understand is the gob is spawned after the npc and thats why the npc is inside it |
Strange, i am sure this was fixed long, long time ago. |
It might have worked before, but there are still things like this happening other places in the source too. Example: Item "Instant Statue Pedestal" not working #10599 I also thought about including the Lich King having the same issue for the quest "The Scarlet Apocalypse" like it was before in the issue [NPC] Prince Valanar and Lich King are underground #5636 , but I am uncertain if they are separate issues or not (see issue #5636 for more details). Edit: Another example of wrong "cosmetic" behaviour by NPCs in the same area: NPC Death Knight Initiate DB |
I think in the case of 129547 he should probably have a flying flag, if he is spawned up in the air. |
@LordUsagi : Good idea, although I don't have the sniff values available for Edit: this NPC SELECT * FROM `creature` WHERE `id`= 28406 AND `guid`= 129547;
|
@tkrokli I believe on retail they fly down, dismount and become targets players can duel. |
OK, then that guid needs some scripting, although I am uncertain how that works when the only difference is the GUID and not the |
The mount should be done in creature_addon and the SAI would need to be done with the guid, though I do not know if that overrides the entry SAI. |
https://trinitycore.atlassian.net/wiki/display/tc/smart_scripts#smart_scripts-entryorguid Edit: I tried to search a 36 MB V3_3_5_12213 sniff for that specific NPC in that position, but I found it too difficult to single out one or just a few exact GUIDs of the 4900+ hits for NPC entry 28406 in that file. The main trouble is that Blizzard used/uses dynamic GUIDs so they don't match the TC GUIDs. |
We should probably open a second issue, we're breaking away from the main point. |
True. I will start moving my info to a new issue as soon as I have completely rewritten my latest PR. |
@kizarr : that "fix" is hacky and unacceptable, TC will not set quests to autocomplete when the quests are functional as they are. Your |
If you get rid of the 'quest autocomplete' parts, maybe then we can talk about which parts can be looked at closer to see if there is anything useful in there. I don't know how soon I will have time to check out the spawning, but maybe I will test just the NPC spawn part to see if it contains anything useful or valid. |
Huh? What on earth has http://www.wowhead.com/npc=4727/elder-thunder-lizard got to do with this? |
hæ? |
Lol, are we reading the same thing? from Kizarr's pastebin link http://pastebin.com/v1ReguQ9 INSERT INTO `creature` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`) VALUES
(28907,4727,1,1,1,0,0,-1724.81,2862.98,78.5843,3.12499,300,5,0,1536,0,0,1),
(28907,4727,1,1,1,0,0,-1724.81,2862.98,78.5843,3.12499,300,5,0,1536,0,0,1),
SELECT * FROM `creature` WHERE `id` = 4727; (result: 40 creatures with the same entry) SELECT * FROM `creature_template` WHERE `entry` = 4727;
edit: D'oh. I failed to see your sarcasm, @lyn1337 (btw, I almost thought you were Norwegian or Danish because of the 'hæ?' in your comment.) 😆 |
@tkrokli My first name (Lyn) actually is Norwegian, but I do live in Germany and don't speak it or Fin much. (: Yep, I was only kidding. Not sure how spawning thunder lizards will help. 😄 |
OK, at least this time you got the NPC IDs right. Have to look at it later, got lots of other stuff going on. |
@kizarr Kizarr, maybe you could share some thoughts about your approach and what you're trying to do. |
TrinityCore rev. 6007f2a 2016-06-02 00:31:32 +0200 (3.3.5 branch) (Win64, Release) SELECT * FROM `creature_template` WHERE `entry` IN (28907,29110);
(columns
SELECT * FROM `creature` WHERE `id` IN (28907,29110);
current content in the
There is not much change compared to TDB 335.61, except for 2 things:
I see no reason to change the LK's hp, so only the modelid removal should be tested & explained. |
Not really… when the field I think we might as well apply this: -- remove unnecessarily set model id from Prince Valanar spawn
UPDATE `creature` SET `modelid`=0 WHERE `guid`=130344; |
You are quite correct, Prince Valanar has got the default edit: I don't know why it was set in the -- Scarlet Enclave: remove unnecessary model id from Prince Valanar in the creature table
UPDATE `creature` SET `modelid` = 0 WHERE `guid` = 130344; (although if anyone has got an explanation for why it needs to be there, I can withdraw the suggestion) |
Again, hack, this comes from retail: [9] GUID 2: Full: Type: Creature Entry: 28907 Low: 927 |
|
Checked. Tried updating the spawn with the retail Z only and along with the retail X and Y plus updated Z in the SAI – he's on the ground again. 😞 |
Good question, I would have thought that a higher Z coordinate would place him more correctly in height, but maybe there is something that I have misunderstood in the spawning process. Have you tried with a full 1.0 extra in the Z coordinate to see if anything useful happens? |
Ingame npc info: |
Yes, that is very likely. That used to be the common issue with any NPCs who sink into the ground. The extreme opposite happens when NPCs are spawned after gameobjects and drop down on it. |
@tkrokli & @Aokromes But if it was like that, sooner or later SAI would make him walk up onto it again. The values from retail posted by Aokromes don't work here. (below FloorZ) This could be caused by the podium GO being some kind of lower on retail, so if we want to use this Z, we need sniffed values for the GO as well. SET @z_ground := 153.920074; -- GroundZ
SET @z_floor := 156.12; -- FloorZ post GO repositioning
SET @valanar := 130344; -- Prince Valanar (entry: 28907) spawn
SET @podium := 66361; -- podium spawn (entry: 190919)
-- update spawn with sniffed retail values for X and Y and FloorZ value by gps command
UPDATE `creature` SET `position_x`=2316.619, `position_y`=-5742.296, `position_z`=@z_floor WHERE `guid`=@valanar;
-- update SAI movement with FloorZ value by gps command
UPDATE `smart_scripts` SET `target_z`=@z_floor WHERE `entryorguid`=2890700 and`id`=3;
UPDATE `smart_scripts` SET `target_z`=@z_floor WHERE `entryorguid`=2890700 and`id`=1;
UPDATE `smart_scripts` SET `target_z`=@z_floor WHERE `entryorguid`=2890700 and`id`=6;
UPDATE `smart_scripts` SET `target_z`=@z_floor WHERE `entryorguid`=2890700 and`id`=10;
UPDATE `smart_scripts` SET `target_z`=@z_floor WHERE `entryorguid`=2890700 and`id`=14;
-- update the podium gameobject with GroundZ value by gps command
UPDATE `gameobject` SET `position_z`=@z_ground WHERE `guid`=@podium;
-- Scarlet Enclave: remove unnecessary model id from Prince Valanar in the creature table
UPDATE `creature` SET `modelid` = 0 WHERE `guid` =@valanar; (Tested Query: Yes) This is now fully working for me. I tried teleporting somewhere else and back again plus respawning Valanar. core_version: TrinityCore rev. 2d2544f 2016-06-03 17:57:05 +0200 (3.3.5 branch) (Unix, Release) p.s. made a screenshot, but I think it's too dark. |
GO coords: [12] GUID: Full: Type: GameObject Entry: 190921 Low: 119 |
So the Z difference on retail is 2.0606 vs 2.199926 here. Tested, this doesn't work for me / us. |
The NPC is spawned at 155.981003, then SAI moves it around with MoveSplineInit::MoveTo() that calls path.CalculatePath(dest.x, dest.y, dest.z, forceDestination) that ignores spawned gameobjects.
What is still interesting is that when the height of each point in the path is updated with vmap data, it doesn't find the gameobject. This is caused by the creature being able to swim, calling GetWaterOrGroundLevel() with default phasemask 1 instead of the current creature phasemask |
@jackpoz does this also cause the gps command to display wrong FloorZ at only certain points of the go? |
Please try after 1347d7c , it seems to move around fine now to me |
@jackpoz He appears sunken again. At least for me. |
TrinityCore rev. 1347d7c 2016-06-04 15:01:39 +0200 (3.3.5 branch) (Win64, Release) Started a new character, played it from creation to quest "The Will of the Lich King" (12714). At first, it looked like there was no change, so I thought "No, this can't be right with the new changes." and I exited the game, deleted my game client Cache folder and tried again. Looks a lot better : I am tempted to say that 1347d7c has fixed the issue, but to be on the safe side, I would like to get confirmation from more users to see that this is not just a random event. 👍 |
Once in this area try gm on/off and mod phase 4 many times and you will get this http://i.imgur.com/5rJ5iAO.jpg You can also reproduce the issue by just moving away from the npc to unload the grid, than return to it's position, do it many time and you will see sometimes it's on the ground sometimes not. .gps executed on the npc as target: |
OK, I see what you mean, so my experience is more or less just an opportune coincidence. I suppose I will have to test again with my game client addons loaded as well, just to see if they affect this too for me. |
@Killyana He returns to the top of it for me. And the gps command returns incorrect FloorZ, even if he is. |
Looks like I need to delete my game client Cache folder each time to make him appear on top of the GO. edit: ... and it is just like you said, Killyana, it happens randomly when leaving the area and coming back. |
Any progress on this yet? |
TrinityCore rev. c2a36c9 2017-01-30 17:22:01 +0100 (3.3.5 branch) (Unix, Release, Static) |
Yes, the status is pretty much unchanged from when we discussed this on Jun 4, 2016. |
Cannot reproduce after e42903e |
https://youtu.be/5DMYXMDoQpI?t=31 on retail it's bugged too |
TrinityCore rev. c606ac5 2016-01-20 01:38:30 +0100 (3.3.5 branch) (Win64, Release),
TDB 335.60 + all updates up to and including
2016_01_20_01_world.sql
This is a continuation of issue #1674, Prince Valanar has still got the same issue of walking on ground level when he should be walking on top of the podium. This is the phase where you have accepted the quest "The Will of the Lich King" (http://www.wowhead.com/quest=12714/the-will-of-the-lich-king) from Highlord Darion Mograine and go to Prince Valanar down on Death's Breach to deliver it to Prince Valanar, then picking up the quest "The Crypt of Remembrance" (http://www.wowhead.com/quest=12715/the-crypt-of-remembrance).
In-game screenshot:
No game addons, straight TC 3.3.5 source with no extra code added (core rev. hash also in the image).
The text was updated successfully, but these errors were encountered: