Difference between revisions of "Scenario Editing"

From Maia Wiki
Jump to navigation Jump to search
(Created page with "= Maia Scenario XML Reference = Unofficial documentation of the scenario XML format in Maia (Machine Studios), based on the scenario files shipped with the game. Work in prog...")
 
 
Line 4: Line 4:
  
 
== Scenario structure ==
 
== Scenario structure ==
−
 
+
<pre>
−
<syntaxhighlight lang="xml">
+
<syntax highlight lang="xml">
 
<?xml version="1.0" ?>
 
<?xml version="1.0" ?>
 
<scenario>
 
<scenario>
Line 15: Line 15:
 
</scenario>
 
</scenario>
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
</pre>
  
 
=== Title ===
 
=== Title ===

Latest revision as of 11:19, 3 December 2026

Maia Scenario XML Reference

Unofficial documentation of the scenario XML format in Maia (Machine Studios), based on the scenario files shipped with the game. Work in progress.

Scenario structure

<syntax highlight lang="xml">
<?xml version="1.0" ?>
<scenario>
    <title><en>Scenario name</en></title>
    <world seed="1572" climate="megathermal" size="150" baseName="Base name" colonists="3" type="Standalone" />
    <brief><en>Short description.</en></brief>
    <info><en></en></info>
    <event id="..." ...>...</event>
</scenario>
</syntaxhighlight>

Title

The title of the scenario.

World

Attribute Type Notes
seed integer Map seed.
climate megathermal, mesothermal, polar Only climates seen in shipped scenarios; others likely exist.
size integer Map size.
baseName string Name shown for the base.
colonists integer Starting colonist count.
type Standalone, Campaign Scenario category.
dayNightKeyframeSet polarNight, volcano, polarTwilight
lockCapsules boolean Locks capsules
tectonics Integer

Requires

Won't be active before the scenario has passed

<requires>
    <en>Chapter Three: Consolidation</en>
</requires>

Research

<research bias="energy">
    <lock id="33"/>
</research>

I assume this makes sure you don't research these lock id's. What are the possibilities?

Base

<base>
    <room type="11"/>
</base>

Chooses what rooms are in the base? What are those room types?

Room types

Id Type
1 Generic casing but not really
2 Generic Casing
3 Living Area
4 Storage Area
5 Workshop
6 Research Lab
7 Hydroponics
8 Livestock Containment
9 Medical
10 Radiation Containment
11 Command & Control
12+ Generic casing but not really. Deleting these makes the game crash.

Events

Field type Description
id String Chosen identifier string. Referenced by other events' triggers/failureTrigger attributes. Not interpreted by the engine itself.
time Integer In-game time (seconds) after scenario start when the event fires. Optional; events without time fire only when triggered.

Optional fields (all types)

Field Type Description
delay Decimal Extra delay (seconds) before the event fires, stacked on time or on a trigger.
duration Integer Length of the effect in seconds; only meaningful for timed effect types (weather, earthquakes, meteors).
triggers String Fires this event when the referenced event id completes.

Event types

Type Notes
missionWin Ends the mission in victory.
missionFail Ends the mission in failure.
earthquake Starts an earthquake.
landing Triggers a landing event.
meteor Meteor shower
impact Meteor impact; Not sure what the difference is with meteor.
snow Snow weather.
ash Ash fall weather.
hurricane Hurricane weather.
flare Solar flare.
migration Triggers a fauna migration event.
colonistFall A colonist falls (accident/injury); For some reason the colonist falls at exactly X:129 and Y:881.
enableLanders Re-enables landing capsules.
disableLanders Disables landing capsules.
buildAll Builds something automatically.
fadeOut Screen fade.
endChoice Ends a choice sequence.

Tutorial types

These appear only in the tutorial and control UI highlighting/camera:

Type Notes
enableUI Re-enables the player UI.
disableUI Disables the player UI (with time).
highlightInfoModeSelection Highlights an info mode button.
highlightIMPSelection Highlights the IMP button.
highlightRoomPlacement Highlights room placement mode.
highlightObjectPlacement Highlights object placement
highlightColonistSelection Highlights colonist selection.
highlightWarningSelection Highlights the warning panel.
moveTutorialCamera Moves the camera; often chained in sequences.
createTutorialDigOrders Creates scripted dig orders.

Event details

Generic

Detail Used with
<email><en>…</en></email> Puts an email icon on the screen with the text in en
<narration soundPath="" textSound="True"><en>…</en></narration> Shows the text immediately on screen

Objectives

Fields
Field Type Description
type String Objective behaviour; see below.
item Integer Item/room/research id: see below.
amount Integer Quantity required.
timeLimit Integer Seconds allowed before failureTrigger fires.
triggers String Event id to fire on completion.
triggersAdditional String A second event id to fire on completion.
failureTrigger String Event id (usually missionFail) to fire on timeout.
requirePreviousObjective Boolean Must complete after the previous objective.
requiresPrevious Boolean What's the difference with requirePreviousObjective
hidden Boolean Objective not shown to the player?
positionX, positionZ Integer Constrains where the item must be built.

Objective types

Mechanical / campaign types:

Type Description
buildItem Build an item.
buildRoom Build a room.
placeItem Place an item. What's the difference with buildItem?
placeRoom Place a room. What's the difference with buildRoom?
moveItem Move an item.
haveFood Reach amount of stored food.
haveStoredEnergy Reach amount of stored energy.
haveResearch Reach amount of completed research.
haveResearchPerk Research the perk with id item.
haveDataEcological Collect amount MB of ecological data.
waitTimer Wait timeLimit seconds.
sampleMeteor Sample amount meteor debris.
annoyPlayer Nudge the player (used before missionWin events).

Tutorial-only types:

Type Description
cameraMove Move the camera.
middleButtonRotate Middle-button camera rotation.
mouseScroll Mouse wheel zoom.
selectInfoMode Open info mode.
selectIMP Open the IMP.
selectRoomMode Open room build mode.
selectItemMode Open item build mode.
selectManifest Open the manifest.
selectColonist Select a colonist.
selectWarning Select a warning.
cycleItem Cycle between buildable items.
placeDigOrder Place amount dig orders.
annoyUser Attention-getter that nudges the player until they act; usually paired with a triggers pointing at a highlight/enableUI event, plus requirePreviousObjective.

Object Id's

Object/Creature ID
Turret 0
Flag 1
Work Light 2
Blue Glowsticks 3
Red Glowsticks 4
TBA* 5
Desk 6
Chair 7
Couch 8
Computer Terminal 9
Tape Storage Drive 10
Necropsy Table 11
Fossil inspection stand 12
TBA* 13
Atmosphere Generator 14
Bed 15
Workshop Drill 16
Workshop Table 17
Nanoscale 3D Printer 18
Meat Trolley 19
Intravenous drip 20
Scanner 21
TBA* 22
Material Hopper 23
Fusion Reactor 24
Fission Reactor 25
Toilet 26
Shower 27
High Tech Table 28
Solar Still 29
TBA* 30
Wind Turbine 31
Geothermal Generator 32
Portable Solar Array 33
Solar Array 34
Supercapacitor 35
Weather Station 36
Seismic Station 37
Bulkhead Door 38
Door 39
Microwave Communication Tower 40
Native Flora Sample Containers 41
FlyWheel Energy Storage System 42
Suit Refill Point 43
TBA* 44
Microwave Smelter 45
Shaped Mining Charge 46
Bounding Mine 47
TBA* 48
TBA* 49
Avian Feeder 50
Utility Robot 51
TBA* 52
TBA* 53
TBA* 54
Airlock 55
TBA* 56
Hydroponic Fruit Tree 57
Potato Hydroponic Planter 58
Kale Hydroponic Planter 59
Broccoli Hydroponic Planter 60
Carrot Hydroponic Planter 61
Wall Screen 62
Space Heater 63
Circuit Breakers 64
TBA* 65
Uplighter (Wide) 66
Uplighter (Tight) 67
Floor Lamp 68
Air Vent System 69
Body bag 100
Chicken 101
Dog 102
Multi Purpose Crew Vehicle 103
IMP Robot 104
Water Barrel 105
Fossil 106
Colonists 107
Yukka 108
Grass 109
Baytree 110
Minerals 111
TBA* 112
Meteorite 113
Building Materials 114
Ration Pack 115
Cat 116
Megacephalalgia 117
Voxnocturnus 118
Unknown 119
Debris 120
Debris Small 121
Araucaria 122
Cycad 123
TBA* 124
Plascrete Construction 125
Maxobjects 126

Retrieved from "http://maiawiki.com/index.php?title=Console&oldid=1221"