Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
590955e1
Commit
590955e1
authored
Jul 30, 2007
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation of file format
parent
e35fcc17
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
90 additions
and
0 deletions
+90
-0
doc/file/format.txt
doc/file/format.txt
+32
-0
doc/file/index.txt
doc/file/index.txt
+38
-0
doc/file/package.txt
doc/file/package.txt
+20
-0
No files found.
doc/file/format.txt
0 → 100644
View file @
590955e1
Heirarchical files
The actual MSE data is stored in heirarchical data files, these are usually files with no extension.
For example <tt>set</tt> or <tt>locale</tt>.
These are just ordinary text files, but they use an UTF-8 encoding, that means you need to use an editor that supports UTF-8.
Most modern editors support UTF-8, Notepad does on Windows XP.
--Syntax--
The files use a heirarchical structure and are made up of keys and values.
A value can be either a simple text string:
>game: magic
Or a block containing more keys and values:
>card:
> name: My Card
> type: Creature
Indentation is used to find out what belongs to what block. Indentation must be exactly one <tt>TAB</tt> per level, spaces are not allowed.
When the value is longer then a single line it can be written indented on the following lines:
>text:
> T: Draw a card
> WW: Gain 1 life
--Example--
For example, a [[type:set]] might look like this:
>game: magic
>style: new
>card:
> name: My Card
> type: Creature
>card:
> name: Another card
doc/file/index.txt
View file @
590955e1
Data files
MSE uses several different types of [[file:format|data files]], usually organized into [[file:package]]s.
--File types--
The following types are stored in [[file:package]]s in the:
* [[type:game]]
* [[type:stylesheet]]
* [[type:symbol font]]
* [[type:export template]]
* [[type:locale]]
The following types are stored in [[file:package]]s that can be located anywhere:
* [[type:set]]
* [[type:installer]]
The following types are stored diractly in [[file:format|heirarchical files]], they can be located anywhere:
* [[type:symbol]]
--Data directories--
The data files that come with Magic Set Editor are stored in [[file:package]]s in the ''data directory'',
these are usually subdirectories of that directory.
There are two data directories, a ''global'' one with data files installed with the program,
and a ''local'' data directory for the current logged in user.
The latter is used for installing packages if the user doesn't have administrator priviliges.
The location of the global data directory is
! On windows <<<
| Location <tt><i>%MSE_DIR%</i>\data</tt>
| Usually <tt>C:\Program Files\Magic Set Editor 2\data</tt>
! On linux/unix <<<
| Location ???
The location of the local data directory is
! On windows <<<
| Location <tt><i>%USER_APPLICATION_DATA%</i>\Magic Set Editor\data</tt>
| Usually <tt>C:\Documents and Settings\<i>%USERNAME%</i>\Application Data\Magic Set Editor\data</tt>
doc/file/package.txt
0 → 100644
View file @
590955e1
Packages
Most files used by Magic Set Editor are stored in ''packages''.
A package is either a zip file or simply a directory.
A package has an extension to indicate its type, for example @"*.mse-set"@ is a [[type:set]] file and @"*.mse-symbol-font"@ is a [[type:symbol font]].
To open a zipped package using a program like winzip you may need to rename it to @"something.zip"@
--Contents--
A package always contains a [[file:format|heirarchical data file]] with the same name as the package type and no extension.
For example @"my-set.mse-set"@ contains a file called @"set"@.
A package can also contain other files like images.
--Examples--
The [[file:index|data directory]] contains packages in the form of directories.
Each of the subdirectories is a package.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment