Dynaverse.net
Taldrenites => Dynaverse II Experiences => Topic started by: Dizzy on December 30, 2004, 06:37:17 pm
-
Only for the Base and Planet assault missions, what terrain is called for? Does the script generate a map based on the map terrain or is it permanently set to empty space for every mission?
-
Check here: http://klingon.stasis.ca/sources_and_utils/EvilDave/EDMissionSourceCode.zip
If those sources are not current with the missions you are looking at then try opening the .scrs in a hex editor, you should be able to get a pretty good idea of the terrain its looking for.
-
Well, it looks like the missions from those sources will respond to various terrian:
From Met_NWBaseAssault:
in missionmaps.h:
int32 TotalMaps = 15;
const char* MapTypes[] = { "Met_NWBaseLP Map",
"Met_NWBaseDefsat Map",
"Met_NWBaseBS Map",
"Met_NWBaseBATS Map",
"Met_NWBaseSB Map",
"Met_NWBaseNebLP Map",
"Met_NWBaseNebDefsat Map",
"Met_NWBaseNebBS Map",
"Met_NWBaseNebBATS Map",
"Met_NWBaseNebSB Map",
"Met_NWBaseAstLP Map",
"Met_NWBaseAstDefsat Map",
"Met_NWBaseAstBS Map",
"Met_NWBaseAstBATS Map",
"Met_NWBaseAstSB Map",
};
and in Met_NWBaseAssault.cpp:
tMapTerrain tMet_NWBaseAssault::mAssignMapTerrainTypes(int32 Map)
{
switch ( Map )
{
case 0: // space, listening post
return tMapTerrain (kTerrainSpace|kTerrainBlackholes, kPlanetNone, kBaseListeningPost);
break;
case 1: // space, defense satellite
return tMapTerrain (kTerrainSpace|kTerrainBlackholes, kPlanetNone, kBaseWeaponsPlatform);
break;
case 2: // space, base station
return tMapTerrain (kTerrainSpace|kTerrainBlackholes, kPlanetNone, kBaseBaseStation);
break;
case 3: // space, battle station
return tMapTerrain (kTerrainSpace|kTerrainBlackholes, kPlanetNone, kBaseBattleStation);
break;
case 4: // space, starbase
return tMapTerrain (kTerrainSpace|kTerrainBlackholes, kPlanetNone, kBaseStarbase);
break;
case 5: // space, listening post
return tMapTerrain (kTerrainNebula, kPlanetNone, kBaseListeningPost);
break;
case 6: // space, defense satellite
return tMapTerrain (kTerrainNebula, kPlanetNone, kBaseWeaponsPlatform);
break;
case 7: // space, base station
return tMapTerrain (kTerrainNebula, kPlanetNone, kBaseBaseStation);
break;
case 8: // space, battle station
return tMapTerrain (kTerrainNebula, kPlanetNone, kBaseBattleStation);
break;
case 9: // space, starbase
return tMapTerrain (kTerrainNebula, kPlanetNone, kBaseStarbase);
break;
case 10: // space, listening post
return tMapTerrain (kTerrainAsteroids, kPlanetNone, kBaseListeningPost);
break;
case 11: // space, defense satellite
return tMapTerrain (kTerrainAsteroids, kPlanetNone, kBaseWeaponsPlatform);
break;
case 12: // space, base station
return tMapTerrain (kTerrainAsteroids, kPlanetNone, kBaseBaseStation);
break;
case 13: // space, battle station
return tMapTerrain (kTerrainAsteroids, kPlanetNone, kBaseBattleStation);
break;
case 14: // space, starbase
return tMapTerrain (kTerrainAsteroids, kPlanetNone, kBaseStarbase);
break;
default:
break;
}
return tMapTerrain();
}
Other planet and base missions look similar. Looks like they will generate a mission map that depends on the terrain of the map hex.
A planet in a nebula hex should not be capturable anyway.
It might be easiest just to test it, as it is possible that the game code (that we do no have), will eliminate nebulas from planetary assault missions... I have just never tested it...
-
I know on at least one server there were Planet Assault missions drawn in Nebulas.
-
Hex 7,3 on the SFB-OP server is a neutral nebula hex with a planet (asteroid base 3) and a starbase... there's a place to test it out?
-
I downloaded the scripts from the link, Bonk. Met_NWBaseAssault has maps for nebula terrain, and the maps do include nebulas, so you will get a nebula when taking this mission on a base in a nebula hex.
-
Thanks, guys. That sux.
-
If you don't have a corresponding map for a given terrain type on the dyna map then the mission will not load, and after about a minute players will start Alt-F4ing out of them. This situation is one of those most script end-users think is a player network connectivity issue but it's acually a scripting issue. So, you need to have these maps or else short-circuit them with something else that works. ;)
NW's 15 maps is a good base to start from. EEK uses the same map base.