
- #DETERMINE SIZE OF STRUCTURE WORLD EDITOR WARCRAFT 3 PATCH#
- #DETERMINE SIZE OF STRUCTURE WORLD EDITOR WARCRAFT 3 CODE#
Only one of these two file is used for pathing. It means that each tileset is divided in 16 parts (4*4).ġ.14 war3mapPath.tga The Image Path File and/or "war3map.wpm" The Path Map File Size of the file = 16*map_width*map_heightĮach byte set the shadow status of 1/16 of a tileset. Int: w3e format version h = version 11Ĭhar: main tileset I may explain a lot about this file later.ġ.13 The war3map.shd file : The Shadow Map File Each map size would be so for an example, 257x257 instead of 256x256. The map is divided into squares, which contains tiles, and which has 4 corners. It contains all the data about the tilesets of the map. Then, when the game has started, Warcraft III looks for the function called "main" and executes it.ġ.12 The war3map.w3e file : The Environment
#DETERMINE SIZE OF STRUCTURE WORLD EDITOR WARCRAFT 3 CODE#
When you select a map in when creating a game Warcraft III will first look up the "config" function and execute its code to set up the player slots. When you play a map, the jass script is loaded and executed. The language used is called JASS2 and has been developed by Blizzard. Sometimes it's renamed to Scripts\war3map.j by map protectors to keep you away from it. It's a text file and you can open it with notepad. w3x files takes an extra 260 bytes in the header. They both takes a 512 bytes header format, but for some authentification. w3x files are Warcraft III Scenario Maps, which are like MPQ Files. Trigger Strings : 12 bytes (Note Trigger Strings handles Strings, so the total is Trigger Strings + Strings) Strings : (String Length + 1) bytes (Because of the finishing char) And when there are letters, they will be considered as 0, or if an example of " 5aa", as 5. If the following number after " TRIGSTR_" is negative, it will be considered as the first one, called " TRIGSTR_000". w3x map, but not with the exception of WTS files, which is used for Trigger Strings files itself. Instead of writing the TRIGSTR_ thing, Warcraft III get a look in the string table, and displays the correct trigger string. Trigger Strings are ever keep in the virtual memory when you play a map, which is loaded at the map initalization, as a name of " TRIGSTR_***". In Trigger Strings, if it starts with " TRIGSTR_", with a sensitive case, it is a Trigger String. They are hexadecimal values (0123456789ABCDEF), using 2 digits each, BB = Blue, GG = Green, RR = Red. An example is " |c00BBGGRR|r", in which you replace by the percentage value " BB", " GG", " RR", by the percentage value you want. Strings are just like arrays of chars finished with a null char (From C++ : " \0").īut, Blizzard uses a special coloring code to change the color of the text shown, these starts with " |c00", and finishes with " |r", most of the times. A byte may handle two or more differant data. Water Level (In the terrain) takes 4 bytes every cell, it handles 2 bytes for a total of 16 flags, and the 2 lasts for the closest number to the Water Level.Īn integer or a flag may share themselves some bytes. Each Flag can contain only the value 0 (False) or 1 (True). In those 4 bytes, there are 32 bit, which can contains 32 flags. (46656 possibilities, they are like normal Integers)īoolean, or "Flags", take 4 bytes. The last number is the closest number to 7654.32 They take 4 bytes and are in Little Endian Order.Įxample : 7654.32 ~ h ~ 7654.319824 They take 2 bytes and are in Little Endian Order. Integers are 4 bytes in Little Endian Order Warcraft III Data Format has 8 differants format type. MPQ Files are files that contains files with their own directory inside the MPQ, without creating a directory in the main structure (C:\, D:\.). There are 4 differants tags names in the list at Chapter 1.0. DemoCampaign.w3n (A demo campaign if you have TFT, located with the path Warcraft 3 Path + " \Campaigns\" (2)Circumvention.w3x (An example of TFT map, located at " \Maps\FrozenThrone\" if you have TFT) (4)Lost Temple.w3m (An example of RoC map, this is from your Warcraft 3 Path + \Maps\, and you will find a lot of other RoC maps)
#DETERMINE SIZE OF STRUCTURE WORLD EDITOR WARCRAFT 3 PATCH#
war3patch.mpq (This is the Patch Environment) war3xlocal.mpq (This is the Local Files Environment if you have TFT) war3x.mpq (This is the TFT Environment) war3.mpq (This is the RoC Environment used by Warcraft III) Most of computers have Warcraft III Installed on the path " C:\Program Files\Warcraft III\", which contains some files.
