the bipship :: keen utilities and more :: articles    


Design & Implementation
Copyright © 2008-2010
by Alan Faubert : CK Guy

· · ·

psychonauts purchased on gog.com finally - what took me so long

 

Bipship Articles

— Vorticons TileInfo Format IN PROGRESS —

The TileInfo resource exists inside the Keen executable and thus must be changed using CKPatch. It exists at $130F8 for Keen 1, $17828 for Keen 2, and $198C8 for Keen 3 (all version 1.31, the de facto standard for Keen: Vorticons modding).

At this location in memory there are six tables of words. Each table contains one entry for each tile, and each entry occupies two bytes (one word). These six tables are: AnimFlag, BehaveFlag, TopFlag, RightFlag, BottomFlag, and LeftFlag. What the entry for a particular tile in each of these tables is described below.

AnimFlag This is 1 if the tile does not animate, 2 if it is part of a two-tile animating sequence, and 4 if it is part of a four-tile animating sequence. These are the only kinds of animation permitted in Keen: Vorticons.

BehaveFlag I'll get back to you on this one.

TopFlag 0 = Nothing, 1 = Blocking, 2 = Smooth, 3 = Ice.

RightFlag This is a 1 if the tile should be solid (ie, block entry) from the right, and 0 if Keen should be able to enter from the right.

BottomFlag This works the same way, but for entrance from the bottom of the tile.

LeftFlag Same, but for the left of the tile.

episode one has 611 tiles, episode two has 689 tiles, episode three has 715 (624?) tiles

This has been pretty much subsumed by the Modding Wiki. I don't really see a future for this section anymore.