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

Core/Scripts: Meathook and Salramm should patrol once they spawn. #942

Closed
wants to merge 7 commits into from
Closed

Conversation

FALL1N1
Copy link
Contributor

@FALL1N1 FALL1N1 commented Jun 24, 2018

[CULLING OF STRATHOLME 5MAN DUNGEON] Currently both bosses just spawn and doesn't move at all. Instead they should spawn and start patrolling around.

Note: Waypoints are not blizzlike, i just ran around and generated some random. ss: http://prntscr.com/jyl1lo

@FALL1N1
Copy link
Contributor Author

FALL1N1 commented Jun 25, 2018

ignore this pr for now, will be fixed by friday unless someone else wants to do it

@BarbzYHOOL
Copy link
Member

Waypoints are not blizzlike, i just ran around and generated some random

better than none!

@BarbzYHOOL BarbzYHOOL added the WIP label Jul 4, 2018
@Knindzagxg
Copy link
Member

If i remember, only Meathook roam whole distance u draw, second one only like 30-40 yards of hes spawn location. Will check on retail once i can.

@FrancescoBorzi
Copy link
Member

Looking for @FALL1N1 or someone else to complete the work that has been previously started here.

@Si1ker
Copy link
Contributor

Si1ker commented Mar 4, 2020

@FrancescoBorzi Hello, this PR got my attention for a bit.

I included the changes proposed here but it didn't compile completely for me.

Besides, I noticed that there is no source about the Meathook and Salramm patrol behavior in this PR when it was created, I spent almost an hour trying to find videos on YT, comments on wowhead and wikis about this movement but I only got info about this patrolling behavior on cataclysm and the other expansions ahead but not for woltk, is there any source that can confirm this patrol behavior for those 2 bosses in woltk? Thanks.

@FrancescoBorzi
Copy link
Member

@Si1ker not that I'm aware of :(

@BarbzYHOOL
Copy link
Member

Post your errors Silker

@FALL1N1
Copy link
Contributor Author

FALL1N1 commented Mar 5, 2020

Paste me the build log and I'll fix it, sadly I cannot build it as I cannot compile on my laptop because it will melt down, got no access to my workstation.

@BarbzYHOOL
Copy link
Member

@Si1ker

@Si1ker
Copy link
Contributor

Si1ker commented Mar 6, 2020

@BarbzYHOOL Thanks for the tag 👍
@FALL1N1 After including the changes proposed, that's what I've got:

Note: For this PR, if you cannot compile, send me the changes, I'll include them and compile in behalf of you (ignore the rev-hash message)

1>------ Build started: Project: revision.h, Configuration: Release x64 ------
2>------ Skipped Build: Project: clean_cotire, Configuration: Release x64 ------
2>Project not selected to build for this solution configuration
1>--
1> Could not find a proper repository signature (hash) - you may need to pull tags with git fetch -t
1> Continuing anyway - note that the versionstring will be set to "unknown 1970-01-01 00:00:00 (Archived)"
3>------ Build started: Project: scripts, Configuration: Release x64 ------
3>boss_meathook.cpp
3>boss_salramm.cpp
3>C:\Users\Silker\Desktop\server\azerothcore-wotlk-master\src\server\scripts\Kalimdor\CavernsOfTime\CullingOfStratholme\boss_salramm.cpp(51): error C2259: 'boss_salramm::boss_salrammAI': cannot instantiate abstract class
3>C:\Users\Silker\Desktop\server\azerothcore-wotlk-master\src\server\scripts\Kalimdor\CavernsOfTime\CullingOfStratholme\boss_salramm.cpp(51): note: due to following members:
3>C:\Users\Silker\Desktop\server\azerothcore-wotlk-master\src\server\scripts\Kalimdor\CavernsOfTime\CullingOfStratholme\boss_salramm.cpp(51): note: 'void npc_escortAI::WaypointReached(uint32)': is abstract
3>C:\Users\Silker\Desktop\server\azerothcore-wotlk-master\src\server\scripts\Kalimdor\CavernsOfTime\CullingOfStratholme\boss_meathook.cpp(41): error C2259: 'boss_meathook::boss_meathookAI': cannot instantiate abstract class
3>C:\Users\Silker\Desktop\server\azerothcore-wotlk-master\src\server\game\AI\ScriptedAI\ScriptedEscortAI.h(77): note: see declaration of 'npc_escortAI::WaypointReached'
3>C:\Users\Silker\Desktop\server\azerothcore-wotlk-master\src\server\scripts\Kalimdor\CavernsOfTime\CullingOfStratholme\boss_meathook.cpp(41): note: due to following members:
3>C:\Users\Silker\Desktop\server\azerothcore-wotlk-master\src\server\scripts\Kalimdor\CavernsOfTime\CullingOfStratholme\boss_meathook.cpp(41): note: 'void npc_escortAI::WaypointReached(uint32)': is abstract
3>C:\Users\Silker\Desktop\server\azerothcore-wotlk-master\src\server\game\AI\ScriptedAI\ScriptedEscortAI.h(77): note: see declaration of 'npc_escortAI::WaypointReached'
3>Done building project "scripts.vcxproj" -- FAILED.
4>------ Skipped Build: Project: INSTALL, Configuration: Release x64 ------
4>Project not selected to build for this solution configuration
========== Build: 1 succeeded, 1 failed, 20 up-to-date, 2 skipped ==========

@FALL1N1
Copy link
Contributor Author

FALL1N1 commented Mar 6, 2020

thanks, now all we need is a volunteer to test if it works

@BarbzYHOOL
Copy link
Member

@FALL1N1 thank you!
@Si1ker we count on you (more and more :P)!

@FALL1N1
Copy link
Contributor Author

FALL1N1 commented Mar 6, 2020

build on VS19 works just fine, travis is being a bitch.. so in short:

  • it works as intended and builds fine
  • it does not pass the travis-ci build due to the code being ugly/non-standart

if anyone is interested in fixing the travis - feel free to do so

@Si1ker
Copy link
Contributor

Si1ker commented Mar 9, 2020

@BarbzYHOOL Ok n.n
@FrancescoBorzi I've checked in Warmane, both are walking the same path provided in this PR, ty
@FALL1N1 Now it is building, it compiled with no problem and both bosses follow the WPs in-game, but there's a problem with the map.

When meathook, goes from wp#1 to wp#2, in this transition he goes under map and then emerges in wp#3 to follow towards the wp#4 flying above the map.

2020-03-07 14_48_06-Window
2020-03-07 14_48_21-Window
2020-03-07 14_48_41-Window

Then all you have is a Meathook flying..

In the other hand, we have Salram under map all his way in the same point Meathook had his problem, in the transition from wp#1 to wp#2

2020-03-07 14_58_12-Window

-- I tried adding multiple WPs to have a "better" path but I think it is more related with the vmap.. : /

The problem always starts here: in the smoke at the right side, he goes under map, in the smoke at the left side he emerges and follows the other WPs (meathook flying and Salram under map), at some point for some reason they "update" his movement and goes as expected but again when they reach the [right smoke] the same problem happens.

2020-03-08 22_54_51-Window

2020-03-08 23_05_04-Window

I'll be trying with around 20 WPs to have a more efficient and complex way, after that Illl be out of ideas haha 🐱 , but again, I think is vmap/map related.

Note= I have my maps updated (as my core/hash)


It is like the problem with Kel'Thuzaad adds in Phase 1 of Naxxramas, some mobs generated in these gates go under the map:
Green = Good = Above map
Red = Bad = Under map

unknown

unknown (1)

@FALL1N1
Copy link
Contributor Author

FALL1N1 commented Mar 9, 2020

The issue is indeed from the vmaps/mmaps, we have discussed it in a previous issue at stranglethorn vale somewhere near a cliff where they went straight through the cliff instead of finding a path to the top.

@BarbzYHOOL
Copy link
Member

damned mmaps like here #2688

ok so what must we do with the PR now?

@FrancescoBorzi
Copy link
Member

General tip for testers: when finding issues while testing, please specify whether they are regressions (new issues that weren't on master) or not. In the second case, the PR could still be merged.

@BarbzYHOOL
Copy link
Member

BarbzYHOOL commented Mar 9, 2020

if the map issue is fixed in the future, what about this PR then?

@@ -103,7 +118,7 @@ class boss_salramm : public CreatureScript
}
}

Copy link
Contributor

@PkllonG PkllonG Jun 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+void WaypointReached(uint32 waypointId) { }

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix build

@@ -71,7 +87,7 @@ class boss_meathook : public CreatureScript
Talk(SAY_SLAY);
}

Copy link
Contributor

@PkllonG PkllonG Jun 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+void WaypointReached(uint32 waypointId) { }

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix build

@@ -47,14 +48,28 @@ class boss_salramm : public CreatureScript

CreatureAI* GetAI(Creature* creature) const
{
return new boss_salrammAI (creature);
return GetInstanceAI<boss_salrammAI>(creature);
Copy link
Contributor

@PkllonG PkllonG Jun 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-return GetInstanceAI<boss_salrammAI>(creature);
+return new boss_salrammAI (creature);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix build

@@ -37,14 +39,28 @@ class boss_meathook : public CreatureScript

CreatureAI* GetAI(Creature* creature) const
{
return new boss_meathookAI (creature);
return GetInstanceAI<boss_meathookAI>(creature);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-return GetInstanceAI<boss_meathookAI>(creature);
+return new boss_meathookAI (creature);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix build

@Kitzunu
Copy link
Member

Kitzunu commented Jul 17, 2020

I will close this as abandoned.
Feel free to reopen whenever someone wants to take it over :)

@Kitzunu Kitzunu closed this Jul 17, 2020
@BarbzYHOOL BarbzYHOOL added the WIP label Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants