Aller au contenu

Photo

World Map - Area and Waypoint Transition


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
Obadiah

Obadiah
  • Members
  • 5 732 messages
I created a map waypoint GDA. However, by default the area transitions using the map do not seem to the use the waypoints listed in the GDA. I had to specify the waypoint over-ride in the map pins.

Anyone else having this problem, or have their map work as intended?

Here is my module core code (think I got it from the tutorial or the demo module)
        case EVENT_TYPE_BEGIN_TRAVEL:
        {
            string sSource = GetEventString(ev, 0); //area tag source location
            string sTarget = GetEventString(ev, 1); // area tag target location
            string sWPOverride = GetEventString(ev, 2); // waypoint tag override

            if (sSource != sTarget)
            {
                SetLocalString(GetModule(), "WM_STORED_AREA", sTarget);
                SetLocalString(GetModule(), "WM_STORED_WP", sWPOverride);
                WorldMapStartTravelling();
            }
        }

        case EVENT_TYPE_WORLDMAP_PRETRANSITION:
        {
            string sArea = GetLocalString(GetModule(), "WM_STORED_AREA");
            string sWP = GetLocalString(GetModule(), "WM_STORED_WP");
            UT_DoAreaTransition(sArea, sWP);
            break;
        }

Modifié par Obadiah, 16 avril 2011 - 05:59 .


#2
Lucrane

Lucrane
  • Members
  • 163 messages
Having this exact same issue I think. I don't think this has been ever answered...

#3
Obadiah

Obadiah
  • Members
  • 5 732 messages
I just stuck with the pin over-rides, and in some cases, hardcoded the area and waypoint names.

#4
Lucrane

Lucrane
  • Members
  • 163 messages
yeah same pin overrides appear to be the way for me to go, and I don't have issue with that. One of the map pins for one of my areas remains loading though not sure why, and I'm trying to figure out how you have two maps, like how you are in a city have that map and then the world map available.

#5
Lucrane

Lucrane
  • Members
  • 163 messages
Ok got both issues working not entirely sure how. Just doubled back and kept re-processing stuff. Now my only thing on the back-burner is getting a properly working package 2da and all that stuff set up around it.