Wartbed:Files/Structure

From Dark Omen Wiki

(Difference between revisions)
Jump to: navigation, search
(Modules and campaigns)
Line 23: Line 23:
==Modules and campaigns==
==Modules and campaigns==
 +
Modules are large-scale settings. Though intended to represent game remakes (f.i. [[Wartbed:Bright Portents|Bright Portents]] and [[Wartbed:Saga|the Saga modules]] are modules implementing Dark Omen and the Myth games in WARTBED) they can of course be totally new games. Modules in turn contains campaigns which are sequences of connected battles within the setting of a module. Modules and campaigns also allow basic customisation of the WARTBED framework, for instance of user interface appearance etc.
 +
===The '''<tt>.module</tt>''' file===
===The '''<tt>.module</tt>''' file===
:''Should be moved to the Files/Formats article
:''Should be moved to the Files/Formats article
Line 28: Line 30:
<div style="margin-left:2em;border:1px solid gray; background:rgb(215,225,215);">
<div style="margin-left:2em;border:1px solid gray; background:rgb(215,225,215);">
<div style="float:right;text-align:right;padding:0.5em;background:grey;color:rgb(225,225,225);width:25%;">game name'''.module'''<br>(text file)</div>
<div style="float:right;text-align:right;padding:0.5em;background:grey;color:rgb(225,225,225);width:25%;">game name'''.module'''<br>(text file)</div>
-
<div style="padding:1em; color:rgb(0,32,0);"><tt>name = Really Cool Tactical Fantasy Epic<br>folder = RCTFE/<br>requires = another module<br>requires = yet another module<br>
+
<div style="padding:1em; color:rgb(0,32,0);"><tt>name = Really Cool Tactical Fantasy Epic<br>folder = RCTFE/<br>requires = another module<br>requires = yet another module<br>interface=filename.xml<br>
<span style="outline:1px solid black">''Rules section goes here...''</span>
<span style="outline:1px solid black">''Rules section goes here...''</span>
</tt></div>
</tt></div>
Line 39: Line 41:
<div style="margin-left:2em;border:1px solid gray; background:rgb(215,225,215);">
<div style="margin-left:2em;border:1px solid gray; background:rgb(215,225,215);">
<div style="float:right;text-align:right;padding:0.5em;background:grey;color:rgb(225,225,225);width:25%;">campaign name'''.campaign'''<br>(text file)</div>
<div style="float:right;text-align:right;padding:0.5em;background:grey;color:rgb(225,225,225);width:25%;">campaign name'''.campaign'''<br>(text file)</div>
-
<div style="padding:1em; color:rgb(0,32,0);"><tt>name = Good guys rules!<br>requires campaign = another campaign<br>requires module = still another module<br>
+
<div style="padding:1em; color:rgb(0,32,0);"><tt>name = Good guys rules!<br>requires campaign = another campaign<br>requires module = still another module<br>interface=filename.xml<br>
<span style="outline:1px solid black">''More stuff will go here...''</span>
<span style="outline:1px solid black">''More stuff will go here...''</span>
</tt></div>
</tt></div>

Revision as of 19:54, 12 April 2009

Contents

Note: This article is ahead of itself. It does not represent how WARTBED currently looks or a decision as to how it will look. It is written as a guideline and as a place to jot down ideas.

Also see WARTBED file formats article.


WARTBED main folder

Bin - Executables and libraries
Resources - All common resources
Modules - All game module description files and data folders
Example file.module - see module format below
Example module folder
Good faction.campaign - see campaign format below
Evil faction.campaign

Modules and campaigns

Modules are large-scale settings. Though intended to represent game remakes (f.i. Bright Portents and the Saga modules are modules implementing Dark Omen and the Myth games in WARTBED) they can of course be totally new games. Modules in turn contains campaigns which are sequences of connected battles within the setting of a module. Modules and campaigns also allow basic customisation of the WARTBED framework, for instance of user interface appearance etc.

The .module file

Should be moved to the Files/Formats article

The .module file defines a module that can be executed in WARTBED (and provided as a parameter to the executable). It describes the name, location and any toggles to global WARTBED rules. Modules may require (depend upon) other modules for data etc.

game name.module
(text file)
name = Really Cool Tactical Fantasy Epic
folder = RCTFE/
requires = another module
requires = yet another module
interface=filename.xml

Rules section goes here...


The .campaign file

Should be moved to the Files/Formats article

Campaigns are settings (sequences of battles) in a module. Campaigns may depend on other campaigns and modules. (It has not been decided whether campaigns may depend on campaigns in other modules).

campaign name.campaign
(text file)
name = Good guys rules!
requires campaign = another campaign
requires module = still another module
interface=filename.xml

More stuff will go here...


Dependencies

A possible alternative for the requires format could be a block like

requires
{
    module = a module.module
    campaign = evil guys.campaign
}

Alternatively to the requires module and requires campaign tags above, the dependency could be resolved by filename extension.

Personal tools
communication