<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.popre.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rousfv</id>
	<title>Populous Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.popre.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rousfv"/>
	<link rel="alternate" type="text/html" href="https://wiki.popre.net/Special:Contributions/Rousfv"/>
	<updated>2026-05-25T16:44:32Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.popre.net/index.php?title=Dat_Format&amp;diff=6155</id>
		<title>Dat Format</title>
		<link rel="alternate" type="text/html" href="https://wiki.popre.net/index.php?title=Dat_Format&amp;diff=6155"/>
		<updated>2016-11-26T14:19:16Z</updated>

		<summary type="html">&lt;p&gt;Rousfv: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Dat files are stored in the levels directory and contain the land structure and all the initial objects. These are kept in two blocks of data.&lt;br /&gt;
&lt;br /&gt;
==0x0 - 0x7FFF: Land Heights==&lt;br /&gt;
&lt;br /&gt;
The land data starts at 0x0. Each point of land is a signed word (two bytes) one after the other. 0 is the lowest point which is water. 1024 is considered to be the highest as [[brave]]s lower the land to build anything higher than that. 900 is easier for players to see when their resolution is 640 x 480.&lt;br /&gt;
&lt;br /&gt;
Max (walkable) land height is 1408.&lt;br /&gt;
&lt;br /&gt;
==0x8000 - 0xBFFF: Land Blocks==&lt;br /&gt;
Unused, data is ignored&lt;br /&gt;
&lt;br /&gt;
==0xC000 - 0xFFFF: Land Orients==&lt;br /&gt;
Unused, data is ignored&lt;br /&gt;
&lt;br /&gt;
==0x10000 - 0x13FFF: Land No-access Squares==&lt;br /&gt;
One byte for each land block, non-zero value sets land block to no-access.&lt;br /&gt;
&lt;br /&gt;
==0x14000 - 0x1403F: Player Save Info==&lt;br /&gt;
For saved games, the positions of all four players.  Consists of four blocks of 16 bytes with the first two SWords being the coordinates.&lt;br /&gt;
&lt;br /&gt;
==0x14040 - 0x14042: Sunlight Info==&lt;br /&gt;
First two bytes are unused/ignored, third is a UByte for sunlight inclination.&lt;br /&gt;
&lt;br /&gt;
==0x14043 - 0x2EDF2 Objects==&lt;br /&gt;
&lt;br /&gt;
Each object is 55 bytes containing the object&#039;s information. Most of the block is not used. The next object starts after the first object and so on. The maximum number of objects is 2000.&lt;br /&gt;
&lt;br /&gt;
For more information visit [[Object Data]]&lt;br /&gt;
&lt;br /&gt;
==0x2EDF3 - 0x2EE88: End Padding ==&lt;br /&gt;
Unused, data is ignored&lt;/div&gt;</summary>
		<author><name>Rousfv</name></author>
	</entry>
	<entry>
		<id>https://wiki.popre.net/index.php?title=Object_Data&amp;diff=6140</id>
		<title>Object Data</title>
		<link rel="alternate" type="text/html" href="https://wiki.popre.net/index.php?title=Object_Data&amp;diff=6140"/>
		<updated>2016-08-10T13:49:39Z</updated>

		<summary type="html">&lt;p&gt;Rousfv: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When editing the object data in dat files each object has a Type and Model. All numbers are stored in big-endian format.&lt;br /&gt;
&lt;br /&gt;
All Objects Start with:&lt;br /&gt;
 UByte 01 : Model &lt;br /&gt;
 UByte 02 : Type&lt;br /&gt;
 SByte 03 : Owner (Tribe)&lt;br /&gt;
 SWord 04 : Position-X&lt;br /&gt;
 SWord 06 : Position-Y&lt;br /&gt;
&lt;br /&gt;
The X and Y coordinates are even numbers from 0-254.  This differs from the land coordinates which are 0-127.  To convert to the land coordinates, divide by 2 and add 0.5 to get the object in the center of the square.&lt;br /&gt;
&lt;br /&gt;
See [[Dat Format]] for more information.&lt;br /&gt;
&lt;br /&gt;
==Types==&lt;br /&gt;
&lt;br /&gt;
*01 - Followers&lt;br /&gt;
*02 - Buildings&lt;br /&gt;
*03 - Creature&lt;br /&gt;
*04 - Vehicle&lt;br /&gt;
*05 - Scenery&lt;br /&gt;
*06 - General&lt;br /&gt;
*07 - Effect&lt;br /&gt;
*08 - Shot&lt;br /&gt;
*09 - Shape&lt;br /&gt;
*10 - Internal&lt;br /&gt;
*11 - Spell&lt;br /&gt;
&lt;br /&gt;
==Models==&lt;br /&gt;
===01 Followers===&lt;br /&gt;
&lt;br /&gt;
*01 - [[Wildmen|Wildman]]&lt;br /&gt;
*02 - [[Brave]]&lt;br /&gt;
*03 - [[Warrior]]&lt;br /&gt;
*04 - [[Preacher]]&lt;br /&gt;
*05 - [[Spy]]&lt;br /&gt;
*06 - [[Firewarrior]]&lt;br /&gt;
*07 - [[Shaman]]&lt;br /&gt;
*08 - [[Angel of Death]]&lt;br /&gt;
&lt;br /&gt;
===02 Buildings===&lt;br /&gt;
&lt;br /&gt;
*01 - [[Small Hut]]&lt;br /&gt;
*02 - [[Medium Hut]]&lt;br /&gt;
*03 - [[Large Hut]]&lt;br /&gt;
*04 - [[Guard Tower]]&lt;br /&gt;
*05 - [[Temple]]&lt;br /&gt;
*06 - [[Spy Training Hut]]&lt;br /&gt;
*07 - [[Warrior Training Hut]]&lt;br /&gt;
*08 - [[Firewarrior Training Hut]]&lt;br /&gt;
*09 - Reconversion (unused)&lt;br /&gt;
*10 - Wall Piece (unused)&lt;br /&gt;
*11 - Gate (unused)&lt;br /&gt;
*12 - Curr OE Slot (unused)&lt;br /&gt;
*13 - [[Boat Hut]]&lt;br /&gt;
*14 - Boat Hut 2&lt;br /&gt;
*15 - [[Balloon Hut]]&lt;br /&gt;
*16 - Balloon Hut 2&lt;br /&gt;
*17 - [[Guard Post]]&lt;br /&gt;
*18 - [[Vault of Knowledge]]&lt;br /&gt;
*19 - [[Prison]]&lt;br /&gt;
&lt;br /&gt;
===03 Creature===&lt;br /&gt;
 All will show as Eagle.  Singleplayer only.&lt;br /&gt;
*01 - Bear&lt;br /&gt;
*02 - Buffalo&lt;br /&gt;
*03 - Wolf&lt;br /&gt;
*04 - Eagle&lt;br /&gt;
*05 - Rabbit&lt;br /&gt;
*06 - Beaver&lt;br /&gt;
*07 - Fish&lt;br /&gt;
&lt;br /&gt;
===04 Vehicle===&lt;br /&gt;
&lt;br /&gt;
*01 - [[Boat]]&lt;br /&gt;
*02 - Boat 2 &lt;br /&gt;
*03 - [[Balloon]]&lt;br /&gt;
*04 - Balloon 2&lt;br /&gt;
&lt;br /&gt;
===05 Scenery===&lt;br /&gt;
&lt;br /&gt;
*01 - Tree 1&lt;br /&gt;
*02 - Tree 2&lt;br /&gt;
*03 - Tree 3&lt;br /&gt;
*04 - Tree 4&lt;br /&gt;
*05 - Tree 5&lt;br /&gt;
*06 - Tree 6&lt;br /&gt;
*07 - Plant 1&lt;br /&gt;
*08 - Plant 2&lt;br /&gt;
*09 - [[Stone Head]]&lt;br /&gt;
*10 - Fire&lt;br /&gt;
*11 - [[Wood|Wood Pile]]&lt;br /&gt;
*12 - [[Reincarnation Site|Reincarnation Site Pillar]]&lt;br /&gt;
*13 - Rock&lt;br /&gt;
*14 - Portal&lt;br /&gt;
*15 - Island&lt;br /&gt;
*16 - Bridge&lt;br /&gt;
*17 - Dormant Tree&lt;br /&gt;
*18 - Top Level Scenery&lt;br /&gt;
*19 - Sub Level Scenery&lt;br /&gt;
&lt;br /&gt;
===06 General===&lt;br /&gt;
&lt;br /&gt;
*01 - Light&lt;br /&gt;
*02 - Discovery&lt;br /&gt;
*03 - Debug Static&lt;br /&gt;
*04 - Debug Flying&lt;br /&gt;
*05 - Debug Flag&lt;br /&gt;
*06 - Trigger&lt;br /&gt;
*07 - Vehicle Construction&lt;br /&gt;
*08 - Mapwho Thing&lt;br /&gt;
*09 - Building Add On&lt;br /&gt;
*10 - Discovery Marker&lt;br /&gt;
&lt;br /&gt;
===07 Effect===&lt;br /&gt;
&lt;br /&gt;
*01 - Simple Blast&lt;br /&gt;
*02 - Sprite Circles&lt;br /&gt;
*03 - Smoke&lt;br /&gt;
*04 - Lightning Elem&lt;br /&gt;
*05 - Burn Cell Obstacles&lt;br /&gt;
*06 - Flatten Land&lt;br /&gt;
*07 - Move Rs Pillar&lt;br /&gt;
*08 - Prepare Rs Land&lt;br /&gt;
*09 - Sphere Explode&lt;br /&gt;
*10 - Fireball&lt;br /&gt;
*11 - Firecloud&lt;br /&gt;
*12 - [[Ghost Army]]&lt;br /&gt;
*13 - [[Invisibility]]&lt;br /&gt;
*14 - Explode Bldg Partial&lt;br /&gt;
*15 - [[Volcano]]&lt;br /&gt;
*16 - [[Hypnotize|Hypnotism]]&lt;br /&gt;
*17 - Lightning Bolt&lt;br /&gt;
*18 - [[Swamp]]&lt;br /&gt;
*19 - [[Angel of Death]]&lt;br /&gt;
*20 - [[Tornado]]&lt;br /&gt;
*21 - [[Swarm]]&lt;br /&gt;
*22 - [[Firestorm]]&lt;br /&gt;
*23 - [[Erode|Erosion]]&lt;br /&gt;
*24 - [[Landbridge]] (Requires additional parameters)&lt;br /&gt;
*25 - Wrath of God&lt;br /&gt;
*26 - [[Earthquake]]&lt;br /&gt;
*27 - Fly Thingummy&lt;br /&gt;
*28 - Sphere Explode And Fire&lt;br /&gt;
*29 - Big Fire&lt;br /&gt;
*30 - [[Lightning]]&lt;br /&gt;
*31 - [[Flatten]]&lt;br /&gt;
*32 - General&lt;br /&gt;
*33 - Shape Sparkle&lt;br /&gt;
*34 - Lava Flow&lt;br /&gt;
*35 - Volcano Explosions&lt;br /&gt;
*36 - Purify Land&lt;br /&gt;
*37 - Unpurify Land&lt;br /&gt;
*38 - Explosion 1&lt;br /&gt;
*39 - Explosion 2&lt;br /&gt;
*40 - Lava Square&lt;br /&gt;
*41 - Ww Element&lt;br /&gt;
*42 - Lightning Strand&lt;br /&gt;
*43 - Ww Dust&lt;br /&gt;
*44 - Raise Land&lt;br /&gt;
*45 - Lower Land&lt;br /&gt;
*46 - Hill&lt;br /&gt;
*47 - Valley&lt;br /&gt;
*48 - Place Tree&lt;br /&gt;
*49 - Rise&lt;br /&gt;
*50 - Dip&lt;br /&gt;
*51 - Rein Rock Debris&lt;br /&gt;
*52 - Clear Mapwho&lt;br /&gt;
*53 - Place Shaman&lt;br /&gt;
*54 - Place Wild&lt;br /&gt;
*55 - Bldg Smoke&lt;br /&gt;
*56 - Much Simpler Blast&lt;br /&gt;
*57 - Tumbling Branch&lt;br /&gt;
*58 - Conversion Flash&lt;br /&gt;
*59 - Hypnosis Flash&lt;br /&gt;
*60 - Sparkle&lt;br /&gt;
*61 - Small Sparkle&lt;br /&gt;
*62 - Explosion 3&lt;br /&gt;
*63 - Rock Explosion&lt;br /&gt;
*64 - Lava Gloop&lt;br /&gt;
*65 - Splash 6&lt;br /&gt;
*66 - Smoke Cloud&lt;br /&gt;
*67 - Smoke Cloud Constant&lt;br /&gt;
*68 - Fireball 2&lt;br /&gt;
*69 - Ground Shockwave&lt;br /&gt;
*70 - Orbiter&lt;br /&gt;
*71 - Big Sparkle&lt;br /&gt;
*72 - Meteor&lt;br /&gt;
*73 - [[Convert|Convert Wild]]&lt;br /&gt;
*74 - Bldg Smoke 2 Full&lt;br /&gt;
*75 - Bldg Smoke 2 Partial&lt;br /&gt;
*76 - Bldg Damaged Smoke&lt;br /&gt;
*77 - Delete Rs Pillars&lt;br /&gt;
*78 - Spell Blast&lt;br /&gt;
*79 - Firestorm Smoke&lt;br /&gt;
*80 - Player Dead&lt;br /&gt;
*81 - Reveal Fog Area&lt;br /&gt;
*82 - [[Magical Shield|Shield]]&lt;br /&gt;
*83 - Boat Hut Repair&lt;br /&gt;
*84 - Reedy Grass&lt;br /&gt;
*85 - Swamp Mist&lt;br /&gt;
*86 - [[Armageddon]]&lt;br /&gt;
*87 - [[Bloodlust (Spell)|Bloodlust]]&lt;br /&gt;
*88 - [[Teleport]]&lt;br /&gt;
*89 - Atlantis Set&lt;br /&gt;
*90 - Atlantis Invoke&lt;br /&gt;
*91 - Statue To AoD&lt;br /&gt;
*92 - Fill One Shot&lt;br /&gt;
*93 - Fire Roll Elem&lt;br /&gt;
&lt;br /&gt;
===08 Shot===&lt;br /&gt;
&lt;br /&gt;
*01 - Standard&lt;br /&gt;
*02 - Standard 2&lt;br /&gt;
*03 - Standard 3&lt;br /&gt;
*04 - Fireball&lt;br /&gt;
*05 - Lightning&lt;br /&gt;
*06 - FireWarrior&lt;br /&gt;
*07 - Volcano Fireball 1&lt;br /&gt;
*08 - Volcano Fireball 2&lt;br /&gt;
&lt;br /&gt;
===09 Shape===&lt;br /&gt;
&lt;br /&gt;
*01 - General&lt;br /&gt;
&lt;br /&gt;
===10 Internal===&lt;br /&gt;
&lt;br /&gt;
*01 - Formation&lt;br /&gt;
*02 - Beacon&lt;br /&gt;
*03 - Thing Info Display&lt;br /&gt;
*04 - Soul Convert&lt;br /&gt;
*05 - Soul Man&lt;br /&gt;
*06 - Preacher Attract&lt;br /&gt;
*07 - Object Face&lt;br /&gt;
*08 - Fight&lt;br /&gt;
*09 - Pre-Fight&lt;br /&gt;
*10 - Guard Control&lt;br /&gt;
*11 - Bridge Control&lt;br /&gt;
*12 - Soul Convert 2&lt;br /&gt;
*13 - DT Beacon&lt;br /&gt;
*14 - Player Raise&lt;br /&gt;
*15 - Player Lower&lt;br /&gt;
*16 - Guard Post Display&lt;br /&gt;
*17 - Player Smooth&lt;br /&gt;
*18 - Wood Distribute&lt;br /&gt;
*19 - Sinking Building&lt;br /&gt;
&lt;br /&gt;
===11 Spell Cast===&lt;br /&gt;
&lt;br /&gt;
*01 - Burn&lt;br /&gt;
*02 - [[Blast]]&lt;br /&gt;
*03 - [[Lightning]]&lt;br /&gt;
*04 - [[Tornado]]&lt;br /&gt;
*05 - [[Swarm]]&lt;br /&gt;
*06 - [[Invisibility]]&lt;br /&gt;
*07 - [[Hypnotise]]&lt;br /&gt;
*08 - [[Firestorm]]&lt;br /&gt;
*09 - [[Ghost Army]]&lt;br /&gt;
*10 - [[Erode]]&lt;br /&gt;
*11 - [[Swamp]]&lt;br /&gt;
*12 - [[Landbridge]]&lt;br /&gt;
*13 - [[Angel of Death]]&lt;br /&gt;
*14 - [[Earthquake]]&lt;br /&gt;
*15 - [[Flatten]]&lt;br /&gt;
*16 - [[Volcano]]&lt;br /&gt;
*17 - [[Convert]]&lt;br /&gt;
*18 - [[Armageddon]]&lt;br /&gt;
*19 - [[Magical Shield]]&lt;br /&gt;
*20 - [[Bloodlust]]&lt;br /&gt;
*21 - [[Teleport]]&lt;br /&gt;
&lt;br /&gt;
==Buildings and Worship Items==&lt;br /&gt;
&lt;br /&gt;
 SLong 08 : Angle of Building&lt;br /&gt;
&lt;br /&gt;
All buildings contain one number indicating the angle of the structure.&lt;br /&gt;
&lt;br /&gt;
Worship items must be neutral to work&lt;br /&gt;
&lt;br /&gt;
==Scenery==&lt;br /&gt;
&lt;br /&gt;
 SWord 11 : Angle of Scenery&lt;br /&gt;
 UByte 16 : Level Scenery Num&lt;br /&gt;
&lt;br /&gt;
The scenery types 18 - Top Level Scenery and 19 - Sub Level Scenery make use of an extra byte field for the Scenery number.  These show various rocks and pillars (Identified as &amp;quot;Special&amp;quot; in the Populous World Editor). &lt;br /&gt;
&lt;br /&gt;
The possible values for top level scenery are:&lt;br /&gt;
*39 - Double stacked pillars&lt;br /&gt;
*40 - Single tall pillar&lt;br /&gt;
*41 - Single short pillar&lt;br /&gt;
*42 - Triple tall rock cluster&lt;br /&gt;
*43 - Single tall rock&lt;br /&gt;
*44 - Double tall rock cluster&lt;br /&gt;
&lt;br /&gt;
==Effect: Landbridge==&lt;br /&gt;
&lt;br /&gt;
 SWord 8 : End point X&lt;br /&gt;
 SWord 12 : End point Y&lt;br /&gt;
&lt;br /&gt;
==Effect: Lightning &amp;amp; Lightning Bolt==&lt;br /&gt;
&lt;br /&gt;
The position bytes for these effect specify the point in sky. Damage occurs at and near the strike point.&lt;br /&gt;
&lt;br /&gt;
 SWord 8 : Strike point X&lt;br /&gt;
 SWord 12 : Strike point Y&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
&lt;br /&gt;
Every worship item uses a trigger. Triggers give the properties of a worship item and what happens when it is worshipped. Triggers are placed on the same position as the worship item.&lt;br /&gt;
&lt;br /&gt;
===Trigger Types===&lt;br /&gt;
&lt;br /&gt;
 00 - Proximity ([[Stone Head]] or [[Totem Pole]])&lt;br /&gt;
 01 - Timed  (Usually reoccurring automatic things)&lt;br /&gt;
 02 - Player Death&lt;br /&gt;
 03 - Shaman Proximity ([[Obelisk]])&lt;br /&gt;
 04 - Library ([[Vault of Knowledge]])&lt;br /&gt;
 05 - Shaman AOD ([[Gargoyle]])&lt;br /&gt;
&lt;br /&gt;
Trigger Data:&lt;br /&gt;
&lt;br /&gt;
 UByte 01 - 6   : Model: Trigger&lt;br /&gt;
 UByte 02 - 6   : Type: General&lt;br /&gt;
 SByte 03 - 0   : Owner&lt;br /&gt;
 SWord 04 - 0   : Position-X&lt;br /&gt;
 SWord 06 - 0   : Position-Y&lt;br /&gt;
 -&lt;br /&gt;
 UByte 08 - 0   : Trigger Type: Types listed above&lt;br /&gt;
 UByte 09 - 1   : Cell Radius &lt;br /&gt;
 UByte 10 - 1   : Random Value&lt;br /&gt;
 SByte 11 - 1   : Number of Occurrences (0 for infinite, -1 for retrigger)&lt;br /&gt;
 UWord 12 - 6   : Trigger Count: Number of followers to worship it (1 if it is an [[obelisk]] or [[gargoyle]]) or timed trigger time&lt;br /&gt;
 UWord 14 -     : 10 Thing idx&lt;br /&gt;
 ...&lt;br /&gt;
 UWord 34 - 180 : Pray Time in quarter-seconds&lt;br /&gt;
 UByte 36 - 0   : Start Inactive&lt;br /&gt;
 UByte 37 - 0   : Create Player Owned&lt;br /&gt;
 SWord 38 - 1   : Inactive Time&lt;br /&gt;
&lt;br /&gt;
These are all the settings a trigger has. From the 14th byte to 33 are 10 words containing the effects or discoveries linked to it. A trigger can hold up to 10 effects, the word contains the idx of the effect.&lt;br /&gt;
&lt;br /&gt;
The idx is the initial object count in the dat file. For example you might have 40 objects in the dat file and the 7th object was the effect, the idx would be 7. Then the effect occurs only when the worship object has been worshipped.&lt;br /&gt;
&lt;br /&gt;
====Timed Triggers====&lt;br /&gt;
Timed triggers use the Trigger Count attribute for the time until the trigger will activate.  Unlike the pray time for normal triggers, timed triggers use [[Game Turn]]s rather than quarter-seconds.  Timed triggers also make use of the Number of Occurrences being set to -1 meaning they need to be triggered by another trigger to activate again.  This can be used to link multiple triggers together to get more than 10 effects from a single trigger action.&lt;br /&gt;
&lt;br /&gt;
==Discoveries==&lt;br /&gt;
&lt;br /&gt;
===Availability Types===&lt;br /&gt;
&lt;br /&gt;
 0 - Not Available&lt;br /&gt;
 1 - Permanent (Needed for [[Vault of Knowledge]])&lt;br /&gt;
 2 - Level&lt;br /&gt;
 3 - Once &lt;br /&gt;
 4 - Discovery&lt;br /&gt;
&lt;br /&gt;
Triggers can be linked to almost anything from discoveries to followers. A discovery is a spell or building that is obtained.&lt;br /&gt;
&lt;br /&gt;
 UByte 01 -   2 Model: Discovery&lt;br /&gt;
 UByte 02 -   6 Type: General&lt;br /&gt;
 SByte 03 - 255 (Owned by nobody)&lt;br /&gt;
 SWord 05 -     Position-X (should be the same as worship item)&lt;br /&gt;
 SWord 07 -     Position-Y&lt;br /&gt;
 -&lt;br /&gt;
 Byte  08 -  11 Discovery Type&lt;br /&gt;
 Byte  09 -   4 Discovery Model&lt;br /&gt;
 Byte  10 -   3 Availability Type &lt;br /&gt;
 Byte  11 -   1 Trigger Type&lt;br /&gt;
 Long  12 -     Mana Amount&lt;br /&gt;
&lt;br /&gt;
[[Image:RisingHead.GIF|right|frame]]&lt;br /&gt;
Effects can also be used, see a list of effects above. If no discovery is linked to a [[Stone Head]] it will appear as a [[Totem Pole]] in the game.&lt;br /&gt;
&lt;br /&gt;
==Rising Stone Heads==&lt;br /&gt;
&lt;br /&gt;
On some levels [[Stone Head]]s can rise when another [[Stone Head]] is worshipped. This is done by making another [[Stone Head]] with a trigger etc. and then linking the Worship Object and the Trigger to the Trigger that will making it rise.&lt;br /&gt;
&lt;br /&gt;
[[Category:Worship]]&lt;br /&gt;
[[Category:World Objects]]&lt;/div&gt;</summary>
		<author><name>Rousfv</name></author>
	</entry>
</feed>