Steps I took:
Note: I followed the map tutroial on the DA Builder wiki.
1. Created a worldmaps_narondwoods.xls based off of the worldmaps.xls sheet containg 2 tabs, one for my custom world map and one for the waypoints when traveling to and from differnt areas within the map. I did use a unique identifier # for the map and I did add an entery in the 2DA_base.xls to generate my unique value for the TargetWPTableID. Also, I added the map name to the String editor and used the ID in for the NamestrRef column.
I then converted this file (worldmaps_narondwood.xls) and the 2D_base.xls file to GDA files and placed them along with my tga file in my addin's override directory. See results below:
___________________________
worldmaps_narondwoods.xls first tab "worldmaps_narondwood" (GDA file):
700 Narond Woods 1478641551 Mendarn_NarondWoods target_wps_narondwood 6900000 INVALID
___________________________
worldmaps_narondwoods.xls first tab "target_wps_narondwoods" (GDA file):
Too large to show but it is setup correctly and I don't believe this is the issue anways.
___________________________
2D_base.xls (GDA file) row entry:
6900000 World Maps worldmaps ****
___________________________
Here is my module starting script:
#include "log_h"
#include "utility_h"
#include "events_h"
#include "global_objects_h"
#include "wrappers_h"
void main()
{
// keep track of whether the event has been handled
int nEventHandled = FALSE;
event ev = GetCurrentEvent();
switch(GetEventType(ev))
{
case EVENT_TYPE_MODULE_START:
{
object oMapId = GetObjectByTag("kok_map_world_narondwoods");
WR_SetWorldMapPrimary(oMapId);
PreloadCharGen();
StartCharGen(GetHero(),0);
break;
}
case EVENT_TYPE_BEGIN_TRAVEL:
{
string sTarget = GetEventString(ev, 1); // area tag target location
string sWPOverride = GetEventString(ev, 2); // waypoint tag override
//if you want to do any special-case code or random encounter handling, insert it here
SetLocalString(GetModule(), "WM_STORED_AREA", sTarget); //store target area's tag to a local module variable
SetLocalString(GetModule(), "WM_STORED_WP", sWPOverride); //store target waypoint tag
WorldMapStartTravelling(); //initiate the map's travelling animation. The engine will send EVENT_TYPE_WORLDMAP_PRETRANSITION once it's started.
}
case EVENT_TYPE_WORLDMAP_PRETRANSITION:
{
string sArea = GetLocalString(GetModule(), "WM_STORED_AREA"); //retrieve the target area tag stored in EVENT_TYPE_BEGIN_TRAVEL
string sWP = GetLocalString(GetModule(), "WM_STORED_WP"); //retrieve the target waypoint tag
UT_DoAreaTransition(sArea, sWP); //execute the area transition to that target.
break;
}
}
// if this event wasn't handled by this script fall through to the core script
if(!nEventHandled)
{
HandleEvent(ev, RESOURCE_SCRIPT_MODULE_CORE);
}
}
__________________________________________________________
I set the area transition door variable PLC_AT_DEST_AREA_TAG = world_map ( i also tried setting it to kok_map_narondwoods) and the area's AREA_WORLD_MAP_ENABLED = 1.
In addition, I have the MAP_MAP_PARENT_RESREF string in the kok_map_world_narondwoods.map file set to wide_open_world.
I am totally at a lose as to why it doesn't work. I am actually a developer IRL and it is driving me crazy that I can't seem to figure this out. Any help would be appreciated, I already have enough grey haid as it is :-)
Thanks in advance for any advice!
Modifié par Miexelplix2009, 24 mars 2010 - 09:05 .





Retour en haut






