Minimap Question
#1
Posté 11 juillet 2012 - 02:18
Just a asthetic question on minimaps. I get how to generate them from the toolset automatically, but how does the Singe Player game have those nice looking almost drawn minimaps? Is that an option in the export somewhere on the toolset? Or is that all photoshop or some other graphical editor? Thanks in advance.
~Lucrane
#2
Posté 11 juillet 2012 - 06:33
#3
Posté 11 juillet 2012 - 11:02
Thanks again.
~Lucrane
#4
Posté 12 juillet 2012 - 01:25
http://social.biowar...hp/Map_tutorial
I have followed the tutorial completely and run into some problems in game.
1) Do world maps have to be a certain size have certain dimensions if so, what are these numbers? I can use the single player maps just fine any custom maps do not show in game though, but show on the toolset.
2) When I launch the map successfully from a door transition, I can see all my pins, the ones that are grayed out and the ones that are active. The ones that are active when I click them don't do anything.
Any help with this appreciated.
~Lucrane
#5
Posté 12 juillet 2012 - 01:33
After adding these scripts:
////////////////////////////////////////////////////////////////////////
// Sent by: The engine
// When: the player clicks on a destination in the world map
////////////////////////////////////////////////////////////////////////
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)
{
//store target area's tag to a local module variable
SetLocalString(GetModule(), "WM_STORED_AREA", sTarget);
//store target waypoint tag
SetLocalString(GetModule(), "WM_STORED_WP", sWPOverride);
//initiate the map's travelling animation. The engine will
//send EVENT_TYPE_WORLDMAP_PRETRANSITION once it's started.
WorldMapStartTravelling();
}
}
////////////////////////////////////////////////////////////////////////
// Sent by: The engine
// When: the world map has begun its "travelling" animation
////////////////////////////////////////////////////////////////////////
case EVENT_TYPE_WORLDMAP_PRETRANSITION:
{
//retrieve the target area tag we stored in EVENT_TYPE_BEGIN_TRAVEL
string sArea = GetLocalString(GetModule(), "WM_STORED_AREA");
//retrieve the target waypoint tag
string sWP = GetLocalString(GetModule(), "WM_STORED_WP");
//execute the area transition to that target.
UT_DoAreaTransition(sArea, sWP);
break;
}
to my module core, the pins work, but they transport the player to some unknown location within the appropriate area. Looking into it.
#6
Posté 12 juillet 2012 - 02:07
This leads me to believe that I am missing a script somewhere to call the 2da functions of my waypoints as specified in the first tutorial. I don't think I missed anything there. I have all the scripts so I am not sure exactly how to get those way points in there without overriding them
#7
Posté 14 juillet 2012 - 09:56
#8
Posté 15 juillet 2012 - 11:26
Lucrane wrote...
1) Do world maps have to be a certain size have certain dimensions if so, what are these numbers? I can use the single player maps just fine any custom maps do not show in game though, but show on the toolset.
yeah, that's a "feature" of the so beloved toolset. you need language specific copies of the worldmap file with the extension of myworldmap_en-us.tga, if you're english speaker.
excerpt from the wiki
NOTE: The 'MAP' column specifies the filename you need for the map to
appear in the toolset. For the map to appear in game, you must include
language specific copies (they don't need to be translated, of course,
but the files need to exist). You need to have a copy of your map with
each of the below suffixes. For example, if you put 'mymap' in the MAP
column, you'd have mymap.tga to get it to appear in the toolset and
mymap_en-us.tga to get it to appear in the English game client.
_cs-cz
_de-de
_en-us
_es-es
_fr-fr
_hu-hu
_it-it
_pl-pl
_ru-r
Lucrane wrote...
2) When I launch the map successfully from a door transition, I can see all my pins, the ones that are grayed out and the ones that are active. The ones that are active when I click them don't do anything.
there's propably something wrong with your scripting. try to follow the tutorial, it covers the different events of pins pretty nicely.





Retour en haut







