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

Legion intro #247

Open
atidot3 opened this issue Jan 10, 2025 · 1 comment
Open

Legion intro #247

atidot3 opened this issue Jan 10, 2025 · 1 comment

Comments

@atidot3
Copy link

atidot3 commented Jan 10, 2025

Description:

Legion introduction quest is not functionnal.

Tested with human after doing the first quest at stormwind you talk to the captain then have a cinematic and get teleported to the water with a LFG scenario that never procs.

Expected behaviour:

Have the scenario ready + teleported at the end of the cinematics.

Steps to reproduce the problem:

as explained

LC rev. hash/commit:
1298ba9

Operating system:

win

@atidot3
Copy link
Author

atidot3 commented Jan 31, 2025

After several debugging it seems the transport for ids:
TRANSPORT_ALLIANCE = 251513
TRANSPORT_HORDE = 254124

Are not spawn correctly on the instance:
InitializeTransport()
MapID 1460 InstanceID 1
transportGameObject alliance 251513 nullptr
transportGameObject horde 254124 nullptr
Transport* transport = player->GetMap()->GetTransport(transportGuid) IS NULLPTR

`void InitializeTransport(Player* player)
{
TC_LOG_ERROR("scripts", "InitializeTransport()");
TC_LOG_ERROR("scripts", "MapID %u InstanceID %u", player->GetMapId(), player->GetInstanceId());

        auto transportGameObjectA = GetGameObjectByEntry(TRANSPORT_ALLIANCE);
        if (!transportGameObjectA)
        {
            GameObject* go = player->SummonGameObject(TRANSPORT_ALLIANCE, 2.39286f, 1.69455f, 5.20573f, 3.15592f, 0, 0, 0, 0, 0);
            if (go)
            {
                go->SetPhaseMask(1, true); // Activation de la phase pour rendre l'objet visible
                transportGameObjectA = go;
            }
            else
                TC_LOG_ERROR("scripts", "transportGameObject alliance %u nullptr", TRANSPORT_ALLIANCE);
        }

        auto transportGameObjectH = GetGameObjectByEntry(TRANSPORT_HORDE);
        if (!transportGameObjectH)
        {
            GameObject* go = player->SummonGameObject(TRANSPORT_HORDE, -11.262f, -7.55103f, 11.557f, 4.48529f, 0, 0, 0, 0, 0);
            if (go)
            {
                go->SetPhaseMask(1, true); // Activation de la phase pour rendre l'objet visible
                transportGameObjectH = go;
            }
            else
                TC_LOG_ERROR("scripts", "transportGameObject horde %u nullptr", TRANSPORT_HORDE);
        }

}`

I've noticed this issue when trying to understand why at this line it was nullptr
https://github.com/The-Legion-Preservation-Project/LegionCore-7.3.5/blob/main/src/server/scripts/Scenario/BrokenIslands/instance_broken_islands.cpp#L99

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

No branches or pull requests

1 participant