User:Ga-show/LSD Info/Units

From Osamu Sato Wiki
< User:Ga-show‎ | LSD Info
Revision as of 16:30, 1 February 2023 by Ga-show (talk | contribs)
Jump to navigation Jump to search

3d space in the game is made of units. If the player were to take a step forward while looking perfectly straight, they would move 512 units forward in the X-Axis.

The geometry of a field (the walls and floors) is split into an invisible grid of tiles, squares of 256 units long.

Finally, as far as coordinates are concerned, the tiles are within chunks of 256 tiles (65536 units) long. Walking into a new chunk from position 65536 will seamlessly keep your movement going through position 0 of the new chunk.

The player's internal X, Y, and Z coordinates represent how they are located within their current chunk, not the entire field.

Experiments

Prerequisites:

  • Bizhawk (for viewing the player's coordinates)
    • X-Coordinate is stored at 091E74' as a 4-byte unsigned integer
    • Y-Coordinate is stored at 091E78' as a 4-byte unsigned integer
    • Z-Coordinate is stored at 091E7C' as a 4-byte unsigned integer

Experiments

  1. What happens when the player is forced to stand at 65,537 units within a chunk?
  2. On fields with falling enabled such as The Natural World, there is a certain Y-value that once reached or surpassed will cause the falling animation to occur when the player moves. Can you use trial and error to find it?
  3. Editing the player's position can lead to interesting views and discoveries you wouldn't be able to find otherwise. What happens when editing your position to clip through the "WC" door in Bright Moon Apartment?

Experiment answers

Experiment 1  
Attempting to warp to 65537 units will crash the game, as the player is still technically within the first chunk while outside the bounds of it.
Experiment 2  
The player will fall at Y ≥ 1546 or Y ≤ -1546. Both positive and negative 1546 are correct answers.
Experiment 3  
Surprisingly, beyond this flat texture is an unfinished room! The walls are missing, enabling you to look through the interior of the apartment. The floor shows the design this area would have were there walls, being a square with a little flab of rectangle hanging off the top-left.