Difference between revisions of "Pikmin 2 area generator file"
UnclePaul894 (talk | contribs) |
UnclePaul894 (talk | contribs) |
||
Line 38: | Line 38: | ||
==Header== | ==Header== | ||
− | Each file starts with a line titled <code># generatorMgr <Generator(Default)></code>. Under this is, <code>{v0.1}</code>, which | + | Each file starts with a line titled <code># generatorMgr <Generator(Default)></code>. Under this is, <code>{v0.1}</code>, which denotes the format of the file. At the top of the file, under <code>{v0.1}</code>, <code>startPos</code>, and <code>startDir</code> is a number (the number after the hashtag does NOT matter, as does anything else after a hashtag). This number must be the same as the number of entities listed in the file, or else the game will crash. |
− | |||
− | |||
− | At the top of the file, under <code>{v0.1}</code>, <code>startPos</code>, and <code>startDir</code> is a number (the number after the hashtag does NOT matter, as does anything else after a hashtag). This number must be the same as the number of entities listed in the file, or else the game will crash. | ||
==Entity== | ==Entity== |
Revision as of 21:14, 2 June 2019
Editor's note: This page is under construction.
An area's generator files can be found in /user/Abe/map/*
. Amongst these, the loop
and nonloop
folders, as well as the defaultgen.txt
, initgen.txt
, and plantsgen.txt
contain data for what objects to spawn in the area, and how.
The loop
and nonloop
folders have intriguing file-naming formats. They likely mean something, and it's likely related to the days. Possibilities:
<starting day>-<ending day>.txt
<starting day>-<number of days>.txt
Example
# generatorMgr <Generator(Default)> {v0.1} # version 0.000000 0.000000 0.000000 # startPos 0.000000 # startDir 34 # 34 generators # 宇宙船 { {v0.1} # version 0 # reserved 0 # 復活日数 137 70 146 136 145 68 0 205 205 205 205 205 205 205 205 205 205 205 205 205 205 205 205 205 205 205 205 205 205 205 205 205 # <宇宙船> -331.454987 80.000000 1228.323975 # pos 0.000000 0.000000 0.000000 # offset {item} {0002} # onyn { {onyn} # item id 0.000000 -171.524994 0.000000 # rotation {0001} # item local version 4 # onyon index 1 # after boot? true==1 } # gen base { {_eof} } }
Header
Each file starts with a line titled # generatorMgr <Generator(Default)>
. Under this is, {v0.1}
, which denotes the format of the file. At the top of the file, under {v0.1}
, startPos
, and startDir
is a number (the number after the hashtag does NOT matter, as does anything else after a hashtag). This number must be the same as the number of entities listed in the file, or else the game will crash.
Entity
Underneath that in the brackets is the actual entity; in this case, the Hocotate Ship. The numbers before # pos
are the entity's x, y, and z coordinates. To find a point's coordinates in a level use 3DS Max or Super Mario Sunshine (SMS) Bin Editor.