Galaxy Shape Variables
Posted: Thu May 21, 2009 12:17 pm
As introduced in the Dynamic Key Variables topic, subroutine 4AF020 sets some values depending on galaxy size and shape. These dynamic values control the layout of the galaxy.
Spocks-cuddly-tribble already identified the minimum empire distance value.
Some variables are write-only, and this strongly implies that they don't have any influence. But who knows...
Size indications can be absolute or relative. So numbers do not always equal "numbers of squares".
asm address: 5CB304
applies to: -
effect: write-only
default value(s): 0.05 (small ring, small spiral, medium spiral), 0.1 (large ring, large spiral), 0.2 (medium ring), 0.25 (medium elliptic), 0.9 (small elliptic)
asm address: 5CB308
applies to: -
effect: write-only
default value(s): 0x298 (small), 0x26E (medium), 0x2A4 (large)
asm address: 5CB30C
applies to: -
effect: write-only
default value(s): 0x1C4 (small), 0x288 (medium), 0x2BE (large)
asm address: 5CB310
applies to: all
effect: minimum desired horizontal or vertical (either one will suffice) distance between major empire starting positions (in squares)
default value(s): 3 (small elliptic, small spiral), 4 (small irregular, small ring, medium), 6 (large)
asm address: 5CB314
applies to: all
effect: long edge of map (in squares)
default value(s): 13 (small), 16 (medium), 25 (large)
asm address: 5CB318
applies to: -
effect: write-only
default value(s): 38 (small), 0 (medium), -54 (large)
asm address: 5CB31C
applies to: -
effect: write-only
default value(s): 160 (small), -26 (medium), -64 (large)
asm address: 5CB320
applies to: elliptic and spiral galaxies
effect: major axis of the galaxy (elliptic galaxies) resp. the central ellipse (spiral galaxies)
default value(s): 28 (small elliptic), 33 (medium elliptic), 68 (large elliptic), 13 (small spiral, medium spiral), 14 (large spiral)
asm address: 5CB324
applies to: ring galaxies
effect: size of the central area
default value(s): 9 (small), 12 (medium), 15 (large)
asm address: 5CB328
applies to: spiral galaxies
effect: width of a spiral arm
default value(s): 5 (small), 6 (medium), 7 (large)
asm address: 5CB32C
applies to: elliptic and spiral galaxies
effect: minor axis of the galaxy (elliptic galaxies) resp. the central ellipse (spiral galaxies)
default value(s): 20 (small elliptic), 25 (medium elliptic), 60 (large elliptic), 10 (small spiral, medium spiral), 14 (large spiral)
asm address: 5CB330
applies to: all
effect: long edge of map (in squares)
default value(s): 13 (small), 16 (medium), 25 (large)
asm address: 5CB334
applies to: irregular galaxies
effect: another galactic density factor
default value(s): 0.6 (small), 0.75 (medium, large)
asm address: 5CB338
applies to: ring galaxies
effect: width of the ring (in squares; ALWAYS needs to be smaller than half of the short edge of the map)
default value(s): 4 (small), 5 (medium), 6 (large)
asm address: 5CB33C
applies to: all
effect: 5x the length of the short edge of the map (in squares)
default value(s): 50 (small), 60 (medium), 90 (large)
asm address: 5CB340
applies to: all
effect: short edge of map (in squares)
default value(s): 10 (small), 12 (medium), 18 (large)
asm address: 5CB344
applies to: all
effect: 5x the length of the long edge of the map (in squares)
default value(s): 65 (small), 80 (medium), 125 (large)
Spocks-cuddly-tribble already identified the minimum empire distance value.
Some variables are write-only, and this strongly implies that they don't have any influence. But who knows...
Size indications can be absolute or relative. So numbers do not always equal "numbers of squares".
asm address: 5CB304
applies to: -
effect: write-only
default value(s): 0.05 (small ring, small spiral, medium spiral), 0.1 (large ring, large spiral), 0.2 (medium ring), 0.25 (medium elliptic), 0.9 (small elliptic)
asm address: 5CB308
applies to: -
effect: write-only
default value(s): 0x298 (small), 0x26E (medium), 0x2A4 (large)
asm address: 5CB30C
applies to: -
effect: write-only
default value(s): 0x1C4 (small), 0x288 (medium), 0x2BE (large)
asm address: 5CB310
applies to: all
effect: minimum desired horizontal or vertical (either one will suffice) distance between major empire starting positions (in squares)
default value(s): 3 (small elliptic, small spiral), 4 (small irregular, small ring, medium), 6 (large)
asm address: 5CB314
applies to: all
effect: long edge of map (in squares)
default value(s): 13 (small), 16 (medium), 25 (large)
asm address: 5CB318
applies to: -
effect: write-only
default value(s): 38 (small), 0 (medium), -54 (large)
asm address: 5CB31C
applies to: -
effect: write-only
default value(s): 160 (small), -26 (medium), -64 (large)
asm address: 5CB320
applies to: elliptic and spiral galaxies
effect: major axis of the galaxy (elliptic galaxies) resp. the central ellipse (spiral galaxies)
default value(s): 28 (small elliptic), 33 (medium elliptic), 68 (large elliptic), 13 (small spiral, medium spiral), 14 (large spiral)
asm address: 5CB324
applies to: ring galaxies
effect: size of the central area
default value(s): 9 (small), 12 (medium), 15 (large)
asm address: 5CB328
applies to: spiral galaxies
effect: width of a spiral arm
default value(s): 5 (small), 6 (medium), 7 (large)
asm address: 5CB32C
applies to: elliptic and spiral galaxies
effect: minor axis of the galaxy (elliptic galaxies) resp. the central ellipse (spiral galaxies)
default value(s): 20 (small elliptic), 25 (medium elliptic), 60 (large elliptic), 10 (small spiral, medium spiral), 14 (large spiral)
asm address: 5CB330
applies to: all
effect: long edge of map (in squares)
default value(s): 13 (small), 16 (medium), 25 (large)
asm address: 5CB334
applies to: irregular galaxies
effect: another galactic density factor
default value(s): 0.6 (small), 0.75 (medium, large)
asm address: 5CB338
applies to: ring galaxies
effect: width of the ring (in squares; ALWAYS needs to be smaller than half of the short edge of the map)
default value(s): 4 (small), 5 (medium), 6 (large)
asm address: 5CB33C
applies to: all
effect: 5x the length of the short edge of the map (in squares)
default value(s): 50 (small), 60 (medium), 90 (large)
asm address: 5CB340
applies to: all
effect: short edge of map (in squares)
default value(s): 10 (small), 12 (medium), 18 (large)
asm address: 5CB344
applies to: all
effect: 5x the length of the long edge of the map (in squares)
default value(s): 65 (small), 80 (medium), 125 (large)