Kilgore's Mapper Guide: FOMAP File Structure: Difference between revisions

From FOnline: Reloaded Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
| name = Kilgore's Mapper Guide
| name = Kilgore's Mapper Guide
| image = AWikiEditor.gif
| image = AWikiEditor.gif
| description = A guide to using the mapper, a developer tool used to make encounter maps that can be added to the game, if they are good enough. Assembled by Reloaded's lead developer himself on the game's main forum, and copied here with minor edits.  
| description = A guide to using the mapper, a developer tool used to make encounter maps that can be added to the game, if they are good enough. Assembled by Reloaded's lead developer himself on the game's main forum, and copied here with minor edits.
| season = 2
| status = Being translated...
| status = Being translated...
| complete = 60%
| complete = 60%
| authors = [[User:Kilgore|Kilgore]]
| authors = [[User:Kilgore|Kilgore]]
| chapter = FOMAP File Structure
| chapter = FOMAP File Structure
| chapters = [[Kilgore's Mapper Guide: README|README]]<br>[[Kilgore's Mapper Guide: Basic Commands|Basic Commands]]<br>[[Kilgore's Mapper Guide: Interface|Interface]]<br>[[Kilgore's Mapper Guide: FOMAP File Structure|FOMAP File Structure]]
| chapters = [[Kilgore's Mapper Guide|Title Page]]<br>[[Kilgore's Mapper Guide: README|README]]<br>[[Kilgore's Mapper Guide: Basic Commands|Basic Commands]]<br>[[Kilgore's Mapper Guide: Interface|Interface]]<br>[[Kilgore's Mapper Guide: FOMAP File Structure|FOMAP File Structure]]<br>[[Kilgore's Mapper Guide: Common Mistakes|Common Mistakes]]
| notes = Need to add images
}}
}}


Line 31: Line 33:
DayColor3 - lighting color for the fourth time specified in "DayTime"<br>
DayColor3 - lighting color for the fourth time specified in "DayTime"<br>


:''Header Section Example''
:''Header Section Example:''
::<code class="bbc_code">[Header]
::[Header]
::Version 4
::Version 4
::MaxHexX 400
::MaxHexX 400
Line 45: Line 47:
::DayColor1 128 128 128
::DayColor1 128 128 128
::DayColor2 103 95 86
::DayColor2 103 95 86
::DayColor3 51 40 29</code>
::DayColor3 51 40 29


=Tiles=
=Tiles=
Line 51: Line 53:
:Syntax:
:Syntax:
::Tile type (tile/roof), X position, Y position, Tile path
::Tile type (tile/roof), X position, Y position, Tile path
:''Tiles Section Example''
:''Tiles Section Example:''
::<code class="bbc_code">[Tiles]
::[Tiles]
::Tile 104 96 art\tiles\stlflr01.frm
::Tile 104 96 art\tiles\stlflr01.frm
::Roof 104 96 art\tiles\stop005.frm</code>
::Roof 104 96 art\tiles\stop005.frm


=Objects=
=Objects=
Line 64: Line 66:


Some objects have additional lines with properties.<br>
Some objects have additional lines with properties.<br>
:''Objects Section Example''
:''Objects Section Example:''
::<code class="bbc_code">[objects]
::[Objects]
::MapObjType 2
::MapObjType 2
::ProtoId 3853
::ProtoId 3853
::MapX 65
::MapX 65
::Maps 94</code>
::Maps 94


==Other Chapters==
==Other Chapters==
Line 76: Line 78:
* [[Kilgore's Mapper Guide: Basic Commands|Basic Commands]]
* [[Kilgore's Mapper Guide: Basic Commands|Basic Commands]]
* [[Kilgore's Mapper Guide: Interface|Interface]]
* [[Kilgore's Mapper Guide: Interface|Interface]]
* [[Kilgore's Mapper Guide: Common Mistakes|Common Mistakes]]


[[Category:Guides]]
[[Category:Guides]]

Latest revision as of 05:50, 22 August 2017

Kilgore's Mapper Guide
A guide to using the mapper, a developer tool used to make encounter maps that can be added to the game, if they are good enough. Assembled by Reloaded's lead developer himself on the game's main forum, and copied here with minor edits.
Season 2
Status Being translated...
Completion 60%
Authors Kilgore
This Chapter FOMAP File Structure
More Chapters Title Page
README
Basic Commands
Interface
FOMAP File Structure
Common Mistakes
Notes Need to add images


FOnline maps are saved in .FOMAP format. This is a text format, so you can open and edit them with Notepad. In theory, you could create whole maps from scratch using a regular notepad, without running a mapper, but in practice only a real madman would do that. Nevertheless, making some edits in Notepad might be necessary.

Each fomap file consists of three sections: Headers, Tiles, and Objects.

Headers

[Header] - map header:
Version
MaxHexX - map width (hexes)
MaxHexY - map length (hexes)
WorkHexX - map width (actually used part)
WorkHexY - map length (actually used part)
ScriptModule - specifies the name of the script in which contains map initialization function
ScriptFunc - the name of the function executed when initializing the map
NoLogOut - if it equals 1, characters do not disappear after logging off (they are in (off) mode), and if it equals 0, characters disappear normally after the time defined in scripts / config.fos.
Time - time of day for the map. If equal to -1, map lighting will change over game time. If not, then the lighting will be permanent (useful for underground maps)
DayTime - specifies times for which map lighting are defined below (separated by a space)
DayColor0 - lighting color for the first time specified in "DayTime"
DayColor1 - lighting color for the second time specified in "DayTime"
DayColor2 - lighting color for the third time specified in "DayTime"
DayColor3 - lighting color for the fourth time specified in "DayTime"

Header Section Example:
[Header]
Version 4
MaxHexX 400
MaxHexY 400
WorkHexX 126
WorkHexY 127
ScriptModule fo2077_map_losthills
ScriptFunc _MapInit
NoLogOut 0
Time -1
DayTime 300 600 1140 1380
DayColor0 18 18 53
DayColor1 128 128 128
DayColor2 103 95 86
DayColor3 51 40 29

Tiles

In this section, each single line defines the individual tiles on the map.

Syntax:
Tile type (tile/roof), X position, Y position, Tile path
Tiles Section Example:
[Tiles]
Tile 104 96 art\tiles\stlflr01.frm
Roof 104 96 art\tiles\stop005.frm

Objects

This section contains all map objects. By default, each object is defined by four lines:

  • MapObjType - object type
  • ProtoId - pid of the object
  • MapX - X coordinate
  • MapY - Y coordinate

Some objects have additional lines with properties.

Objects Section Example:
[Objects]
MapObjType 2
ProtoId 3853
MapX 65
Maps 94

Other Chapters