Game Development Community

New level template?

by Sinani201 · in Marble Blast · 07/13/2009 (6:03 pm) · 1 replies

I am sorry if this has already been asked, but when I make a new mission (in the level editor) it says that a template file (newmission.mis) is missing. Am I supposed to download or create a mission template file? How can I do this?

Any help would be greatly appreciated.

About the author

Recent Threads


#1
07/14/2009 (3:57 am)
A template doesn't exist at all, but Marble Blast Platinum changes the mission template filename and actually comes with one (although I should, in the next patch, have a few basic platforms [perhaps a level...] and some powerups, moving platforms etc).

Anyway, since you're a gold user the template will not help you much, but here's the current basic template provided for MBP users:

Note that the sky's materialList MUST BE CHANGED to MBG's sky .dml file and path because it's MBP specific. The song is also nice to change, but not needed.

It's a minimalist template, I am aware :p

// name = level name as it appears in the game
// desc = description as it appears in the game
// goldTime = Gold Time or Platinum Time im miliseconds. example: 1000 is 1 second, 60 is 1 minute, 80 is 1:20 mins.
// level = level number, from 1 to infinity (and beyond!)
// UltimateTime = Specific for MBP. MUST BE LOWER THAN THE GOLD TIME. So if gold is 1000 then UT must be 999 or less!
// NOTE FOR UT/GOLD/PLATINUM - A "0" DISABLES THEM AND THUS ONE OF THESE WON'T BE CREATED.
// startHelpText = Text visible when starting a level
// type = leave it on custom
// artist = put your name or nickname to be known!
//--- OBJECT WRITE BEGIN ---
new SimGroup(MissionGroup) {

   new ScriptObject(MissionInfo) {
         name = "Mission Template";
         desc = "Create your mission! Open the mission file with notepad/other program like word and stuff to edit!";
         goldTime = "0";
         level = "1";
         UltimateTime = "0";
         startHelpText = "You are inside your mission!";
         type = "Custom";
         artist = "You";
   };
   new MissionArea(MissionArea) {
      area = "-360 -648 720 1296";
      flightCeiling = "300";
      flightCeilingRange = "20";
         locked = "true";
   };
   new Sky(Sky) {
      position = "336 136 0";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      cloudHeightPer[0] = "0";
      cloudHeightPer[1] = "0";
      cloudHeightPer[2] = "0";
      cloudSpeed1 = "0.0001";
      cloudSpeed2 = "0.0002";
      cloudSpeed3 = "0.0003";
      visibleDistance = "500";
      useSkyTextures = "1";
      renderBottomTexture = "1";
      SkySolidColor = "0.600000 0.600000 0.600000 1.000000";
      fogDistance = "300";
      fogColor = "0.600000 0.600000 0.600000 1.000000";
      fogVolume1 = "-1 7.45949e-031 1.3684e-038";
      fogVolume2 = "-1 1.07208e-014 8.756e-014";
      fogVolume3 = "-1 5.1012e-010 2.05098e-008";
      materialList = "~/data/skies/Intermediate/Intermediate_Sky.dml";
      windVelocity = "1 0 0";
      windEffectPrecipitation = "0";
      noRenderBans = "1";
      fogVolumeColor1 = "128.000000 128.000000 128.000000 0.000000";
      fogVolumeColor2 = "128.000000 128.000000 128.000000 0.000004";
      fogVolumeColor3 = "128.000000 128.000000 128.000000 14435505.000000";
   };
   new Sun() {
      direction = "0.638261 0.459006 -0.61801";
      color = "1.400000 1.200000 0.400000 1.000000";
      ambient = "0.300000 0.300000 0.400000 1.000000";
   };
   new StaticShape(StartPoint) {
      position = "14 -6 0";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "StartPad";
   };
   new StaticShape(EndPoint) {
      position = "14 24 0";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "EndPad";
   };
   new Trigger(Bounds) {
      position = "-100 100 -100";
      rotation = "1 0 0 0";
      scale = "200 200 200";
      dataBlock = "InBoundsTrigger";
      polyhedron = "0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 0.0000000 1.0000000";
   };
   new StaticShape() {
      position = "15.5 24.5 6";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "SignFinish";
   };
   new AudioProfile(MusicProfile) {
      fileName = "~/data/sound/Metropolis.ogg";
      description = "AudioMusic";
      preload = "0";
   };
};
//--- OBJECT WRITE END ---