Difference between revisions of "Landgen usage (Worms 2)"
From Worms Knowledge Base
(Created page with "Landgen (short for Land Generator) is the command line program that generates land files for Worms 2. It's located at "'''%Worms_2_Install_Dir%\Binaries\Landgen.exe'''". Landgen ...") |
m |
||
Line 4: | Line 4: | ||
Landgen is used to create: | Landgen is used to create: | ||
* Thumbnails for Terrain Editor | * Thumbnails for Terrain Editor | ||
− | + | : ''Command Line:'' '''Landgen.exe /thumbnail ''path\name_of_generated_thumbnail'' ''random_big_number'' ''random_short_number'' ''random_short_number''''' | |
− | + | : ''Example'' : '''Landgen.exe /thumbnail levels\thumbs.dat 444831613 24 54''' | |
* Previews - 1:1 terrain data file that is used in manual terrain editing. | * Previews - 1:1 terrain data file that is used in manual terrain editing. | ||
− | + | : ''Command Line:'' '''Landgen.exe /preview ''path\name_of_generated_preview'' ''random_big_number'' ''random_short_number'' ''random_short_number''''' | |
− | + | : ''Example'' : '''Landgen.exe /preview levels\preview.dat -1891240261 95 29''' | |
* Land that is used for game and land preview in Terrain Editor | * Land that is used for game and land preview in Terrain Editor | ||
− | + | : ''Command Line:'' '''Landgen.exe /generate ''path\name_of_generated_land'' ''path_to_level_sprites_dir'' ''path_to_water_sprites_dir'' ''random_big_number'' ''random_medium_number'' ''water_level'' ''random_short_number'' ''random_short_number''''' | |
− | + | : ''Example'' : '''Landgen.exe /generate data\land.dat .\data\level\FARM .\data\water\Blue 1765502980 24323 50 4 40''' | |
; random_big_number : random number up to 11 digits or even more, used for land randomization, can be negative | ; random_big_number : random number up to 11 digits or even more, used for land randomization, can be negative | ||
; random_short_number : random number 1-2 digits, used for land randomization | ; random_short_number : random number 1-2 digits, used for land randomization | ||
; random_medium_number : random number up to 5 digits or more, used for level sprites randomization | ; random_medium_number : random number up to 5 digits or more, used for level sprites randomization | ||
− | Random numbers are generator seeds, which means same numbers generate same terrain. Still researching how this numbers change affects generated terrain | + | Random numbers are generator seeds, which means same numbers generate same terrain. Still researching how this numbers change affects generated terrain. |
; water_level : height in pixels of initial water level, by default = 50 | ; water_level : height in pixels of initial water level, by default = 50 | ||
Revision as of 21:40, 13 November 2014
Landgen (short for Land Generator) is the command line program that generates land files for Worms 2. It's located at "%Worms_2_Install_Dir%\Binaries\Landgen.exe". Landgen is executed by frontend, which sets "Default Dir" for Landgen to "Worms 2 Install Dir". This means the paths passed to Landgen by frontend are relative to "Install Dir", not "Binaries\".
Landgen is used to create:
- Thumbnails for Terrain Editor
- Command Line: Landgen.exe /thumbnail path\name_of_generated_thumbnail random_big_number random_short_number random_short_number
- Example : Landgen.exe /thumbnail levels\thumbs.dat 444831613 24 54
- Previews - 1:1 terrain data file that is used in manual terrain editing.
- Command Line: Landgen.exe /preview path\name_of_generated_preview random_big_number random_short_number random_short_number
- Example : Landgen.exe /preview levels\preview.dat -1891240261 95 29
- Land that is used for game and land preview in Terrain Editor
- Command Line: Landgen.exe /generate path\name_of_generated_land path_to_level_sprites_dir path_to_water_sprites_dir random_big_number random_medium_number water_level random_short_number random_short_number
- Example : Landgen.exe /generate data\land.dat .\data\level\FARM .\data\water\Blue 1765502980 24323 50 4 40
- random_big_number
- random number up to 11 digits or even more, used for land randomization, can be negative
- random_short_number
- random number 1-2 digits, used for land randomization
- random_medium_number
- random number up to 5 digits or more, used for level sprites randomization
Random numbers are generator seeds, which means same numbers generate same terrain. Still researching how this numbers change affects generated terrain.
- water_level
- height in pixels of initial water level, by default = 50
There can be more. Research continues.