1988 · Electronic Arts

Wasteland

This minisite was contributed by air. It’s currently claimed by air who is editing it to reach a Gold tier standard.

Wasteland hides its full credits on a poster in Needles, keeps a rifle that rolls 200 dice where a player can never reach it, and throws doubles one time in five.

01 · Credits

Secret: the credits are a poster on a wall in Needles

The title screen names one person, Alan Pavlish, who wrote the program. The full credits are inside the game, as a film poster on a wall in downtown Needles, and five of the people they name turn up elsewhere in the game: on a gravestone, a wanted poster, a sign, a plaque, and a wall of chalked names.


    

Screens from the game, in order, with the party put in each map next to the square. The button carries the key that is pressed next: K walks south, I north, and RETURN goes on with a message. Under the screens is the message as the map's text block holds it ($514F, $4300), decoded by the port in Five bits a letter, on Pictures and text.

WhoCredited forWhereWhat the square says
Ken St. Andredesign, mapsMap 1, Quartz: a grave at column 27, row 24The gravestone is inscribed: Ken St. Andre, 4/28/47--4/28/87.
Nishan HossepianmapsMap 13, Sleeper Base, level 2: six wallsA sign on the wall here reads: "Wanted for crimes against computer software, Nishan Hossepian, $5000 Dead or Alive."
Bill DuganmapsMap 33, Needles downtown: column 7, row 27A sign just inside the entrance says "Bill Dugan, Representative, Temple of Blood."
Bill Dugan, Chris ChristensenmapsMap 34, Needles police station: a wall at column 24, row 13Chalked on the wall: Dugan, B -- Rad overdose / Christensen, C -- Anthrax / Gonif, T -- Cirrhosis
Stance NixonmapsMap 38, the Mushroom Cloud temple in Las Vegas: a wall at column 1, row 12This is a poster of a man in T-shirt and shorts typing at a computer. The plaque under the picture reads STANCE THE GREAT MAP MAKER.

Every message of the 52 text blocks, 4,920 in all, decoded and searched for the names on the poster. The squares come from the maps' records: each of these messages is shown by the squares named, in the map as it loads. Each map opens on the Maps tab.

The poster is one square of wall, at column 20, row 25 of map 33. Walking into it shows a message and turns the square into the next of four, so each bump shows the next poster: The Radheads! coming soon, the credits, Humongous and the Mutants! next week, and Mario, Luigi and the Fireballs! next month, then the first again.

The PC version hides its credits the same way. Kip told the Wasteland Ranger HQ-Grid's Underground (16 February 2002) to walk into a wall in south Needles up to 4 times as there are 4 cycling messages.

The credits give 26 credits to 20 people, under programming, design, maps, graphics, general help, and playtest and development, and end "Rated PG-13. Coming soon to a theatre near you." Apart from the title's own lines, which name Electronic Arts, Interplay Productions, and Alan Pavlish, no other text in the game credits anyone.

The poster lists Ken St. Andre under design, beside Michael A. Stackpole, and again under maps. The two dates on his gravestone are forty years apart to the day.

02 · The Red Ryder

Secret: the Red Ryder rifle rolls 200 dice, and the game never hands it out

Item 20 in the item table is the Red Ryder, a rifle that takes 7.62mm clips and rolls 200 dice for every hit. The Meson cannon, the gun with the next most, rolls 19. None of the shops, loot bags or characters in the C64 version holds a Red Ryder, so a player can fire one only by editing the game.

The record is in every copy of the item table ($31A8): a price of 12,345, the Rifle skill, the 7.62mm clip, and a clip of 63 rounds, the most a slot's count can hold. With fair dice, 200 of them come to between 600 and 800 in all but one hit in 30,000. The shot widget on Dice and combat lists it, so it can be fired there.

The way in is closed at every door. Its stock is 0 in all four item tables on the disks, so the shops never offer it ($CC5D-$CC95). None of the loot bags in the 42 maps names it or its class, 4, from which a bag would draw a random rifle ($919C-$921A). None of the characters a party can meet carries one, and none of the maps' own code calls the routines that put an item in a member's slots.

On the PC, players found one. M. Zier's notes on the HQ-Grid's Underground describe a bug in the IBM version's loot bags that hands out items freely, and The best two others are Red Ryders, which are 7.62 rifles with 63 shots, and a range from 600-800 damage, numbers the C64's record matches exactly. Black Raven answered there (16 January 1997) that the bug was the IBM version's alone: it looks like us 64/Apple II users are out of luck. I really wanted those Red Ryders too!

The name is Highpool's too. Two of its messages tell of a child who lies dead near his Red Ryder hat, and of Red Ryder himself, who raises his Red Ryder Range Model Air Rifle (with compass in the stock) and fires! (map 10, messages 27 and 31). His is an air rifle; the item table's takes 7.62mm clips.

03 · Faran Brygo's computer

Secret: the computer in Faran Brygo's hideout is running Wasteland 2

A table in Faran Brygo's hideout in Las Vegas holds a computer: You see an Apple //e on the table. The screen says Wasteland 2. You shiver with anticipation. A game called Wasteland 2 came out in 2014, 26 years later.

The table is a blocking square at column 1, row 18 of map 39, and walking into it shows the message without changing anything ($3D32). Two squares along, at column 3, another table holds a note: You are about 40% through the game. ($3D34).

The fans' notes are about the machine. Posts from Snake Squeezins in September 2002, gathered on the HQ-Grid's Underground, point out that the computer is an Apple //e in the Commodore version as in the Apple's, and an IBM AT on the PC. J. Compton called the Commodore's totally wrong, and L. Mazzei put it down to the C64 version being based on the Apple // version.

04 · A wall that talks

Secret: the walls under the Temple of Blood spell a sentence, one word a bump

The chamber under the Temple of Blood is a sea of blood ringed by 120 squares of mossy wall. Walk into one of them again and again, and it says a sentence a word at a time.

Every square of the ring starts as blocking square 3, which shows Moss covered walls rise into the darkness above. and becomes blocking square 4 when it is bumped ($3D8B). Squares 4 to 10 each show a word and hand over to the next ($3D8E-$3DA2, $918F). So eight bumps on one square read the moss, then You've, got, your, balls, to, the, wall., and leave it as blocking square 0, which shows the moss and changes no more. Each of the 120 squares keeps its own place in the sentence. The credits poster in Needles works the same way, but goes round again where the wall stops.

Ranger Wrank found it, and told the HQ-Grid's Underground (17 February 1999) to swim out to the wall and run into it a couple of times, the game will give you a message. The ring is the edge of map 28 on the Maps tab.

05 · Disk side 3

Secret: side 3 carries an older version of the title program

The second disk's first side has a boot sector of its own, named "A JERKVISION PRODUCTION", and an earlier build of the program that shows the title. The older build shows a different picture, has none of the title's sounds, and cannot run from its own disk.

Side 1's title: the planet and the WASTELAND logo, the story text, and Start, Utils and Written by Alan Pavlish on the bar.
Side 1's start-up, as the game boots.
Side 3's start-up: a planet in blue and grey with no logo, stripes at the right of the picture, and Computer defense initiative activated.
Side 3's start-up, run over side 1's engine with side 3 in the drive.
Side 1Side 3
Wheretrack 4, logical sector 16, 16 pages loaded to $7E00
Where $7E00 jumps$7F2A$7E06
Bytes that differ2,766 of 4,096
Copyright lineCopyright 1986-88 Interplay Productions.Copyright 1986,87 Interplay Productions.
Title soundsthe siren, the whistles and the explosionsthree calls to RTS stubs ($7E03-$7E05); the game writes no SID register
Boot sector's nameWASTELANDA JERKVISION PRODUCTION

Side 3's program, put in place of side 1's at the moment the boot hands over to it, with side 3 in the drive. It unpacks its picture from side 3's track 3 and stops at "Computer defense initiative activated." Side 3's addresses are its own, at the load address side 1's start-up shares, and have no Source page.

Booted on its own, side 3 does not get as far. Its boot file loads track 34, logical sector 10 of side 3 to $0200-$30FF, where side 1 keeps the engine and side 3 keeps other bytes. The first raster interrupt after the hand-over jumps through the engine's table at $04F9 into them, and the processor halts on a JAM instruction at $2931.

06 · Damage

Bug: an unlucky Ranger's throwing knife can kill anything

A shot's damage is the weapon's dice plus the attacker's luck bonus, and below an LK of 9 the bonus is negative. When it takes the sum below 0, the number wraps round to 65,535, and whatever was hit dies. One weapon can get there: a Throwing knife, thrown by a Ranger with an LK of 3 or 4, when both of its dice show 1.

The fight in map 1's graveyard: Hell Razor attacks and hits 1 Shambler Ghoul for 65532 points of damage spinning it into a dance of death. Thrasher misses.
Hell Razor with an LK of 3 and a Throwing knife, against the Shambler Ghouls in map 1's graveyard. The knife's roll, 10, was changed to 2, a 1 and a 1, as the dice handed it back (at $A7E7). The sum came out as 65,535, and the ghoul's armour took 3 off it.
  1. $A7DE20 F4 A7JSR weapon_damage_roll
  2. $A7E18D EC A7STA damage_roll_lo_op
  3. $A7E48E F0 A7STX damage_roll_hi_op
  4. $A7E720 B8 A7JSR luck_bonus
  5. $A7EA18CLC
  6. $A7EB69 00ADC #$00
  7. $A7ED48PHA
  8. $A7EE8ATXA
  9. $A7EF69 00ADC #$00
  10. $A7F1AATAX
  11. $A7F268PLA
  12. $A7F360RTS

The routine that works out a shot's damage. The two stores write the roll into the operands of the two ADC instructions, and the luck bonus comes back from $A7B8 in X and A. The code after the second ADC never looks at the carry.

LKLuck bonusA sum below 0 needs a roll of
3 or 4−32 or less: the Throwing knife's two dice both showing 1
5 or 6−21: no thrown or fired weapon rolls fewer than two dice
7 or 8−10: never
9 and up0 or morenever

The bonus is (LK − 9) / 2 rounded down below 9, 0 from 9 to 12, and (LK − 12) / 2 from 13 ($A7C3). The lowest attribute a Ranger can be rolled is 3.

A shot's damage is worked out by one routine ($A7DE). It rolls the weapon's dice ($A7F4), then adds the attacker's luck bonus with two plain additions, the low byte and then the high byte. A negative bonus is held as a 16-bit number whose high byte is $FF, so a roll smaller than the penalty comes out as a number near 65,535. The monster's armour roll takes a few points off that. The rest is more than any monster has: the most is about 40,000, for the Night Terror in Finster's mind maze (map 23), and the subtraction from the monster's hit points leaves it dead ($A6CC-$A6DF). A blow in melee adds the same bonus through the engine's own addition ($07C6), which stops at 0, so a punch can do no damage but never wraps.

Only one weapon has dice few enough. An LK of 3 or 4 takes 3 off, so the roll has to be 2: two dice showing 1. Every gun and rocket rolls three dice or more, and explosives leave the luck out, which leaves the Throwing knife's 2d6. With fair dice the knife shows a 1 and a 1 once in 36 throws, and a Throwing knife is used up when it is thrown ($A53A). None of the loot squares in the 42 maps holds one. Christina, who can join the party in downtown Needles, carries one ($40AE).

A new Ranger’s attribute roll makes the low LK easier to come by. Of the 7,776 ways its five dice can fall, 261 give an LK of 3 or 4, where the best three of five would give 6.

07 · Random numbers

Bug: the dice come up doubles one throw in five

Two fair dice match one throw in six. Wasteland's match one throw in five, and a pair of ones comes up twice as often as it should. A double means the dice are thrown again, so the bias reaches every check and every shot in the game.

– doubles

fewer than fairmore than fair

The first pair of the open throw, first die down and second across. In play, 4,096 pairs thrown with the game's own routines, each after the seed has been stirred 1 to 256 times, as waiting for a key stirs it. From random moments, 2,000,000 pairs thrown by the engine's code, each from a random raster line, cycle, timer value and seed.

The game has no table of random numbers. Each random byte is the sum of three numbers ($24E3): the raster line the video chip is drawing, the low byte of a timer that counts down once a cycle, and the last random byte plus one. A die ($24D6) keeps the byte's lowest three bits, 0 to 7, throws again at once on a 6 or a 7, and adds 1. The raster line and the timer move with the clock, so a byte made a few cycles after another depends on it. After a draw of 7, the die thrown again at once comes out 2 or 3 two times in five, where a fair die would give 2 or 3 one time in three.

Every skill or attribute check fails at once on a throw below 5 ($0C73, $0D29). That takes a first pair of 1 and 2 or 1 and 3, one throw in nine with fair dice. The game's dice do it 13.1% of the time from random moments and 12.9% in play. The checks and shots on Dice and combat give the chances both ways.

A single die is uneven too. In 5,000 dice from the Ranger Center's attribute rolls, ones came up 1,043 times, fours 727, and sixes 826, where fair dice give 833 of each.

08 · Refusals

Bug: every NPC is as obedient as the next

Each record has four bytes meant to make that character more or less willing: one for using a skill, one for an item, one for an attribute, and one for giving an item away. The check that reads them loses the byte before it is used, so the target is 15 for every NPC. Only Redhawk is different. His trade byte is 255, which is tested first, so he never gives an item away.

The NPC's check

  1. $0D67B1 66LDA (character_ptr),Y: the byte
  2. $0D69C9 FFCMP #$FF
  3. $0D6BF0 3BBEQ refuse
  4. $0D6DAATAX: X = the byte
  5. $0D6E20 95 07JSR num2_clear: LDA #$00, TAX, so X = 0
  6. $0D7120 67 08JSR target_15_plus_5x: 15 + 5 × X

A skill check

  1. $0C2F20 95 07JSR num2_clear
  2. $0C32A2 00LDX #difficulty, written at $0C2C
  3. $0C3420 67 08JSR target_15_plus_5x: 15 + 5 × X

Two places in the engine that make a target, from the Source tab. The skill check loads X after the clear; the NPC's check loads it before, and the clear empties it. The attribute check does it the skill check's way ($0D1B-$0D20). With a byte of 10 and a CHR of 20, the engine's own check computes a target of 15 on every call, where 15 + 5 × 10 is 65.

The check is $0D61. It reads the byte, refuses at once on 255, and moves the byte into X for $0867, which returns 15 + 5 × X. In between it calls $0795 to clear the target, and that routine leaves 0 in X as well as in A. So a request is refused on a throw under 5, and otherwise when the throw plus one number falls short of 15. For a Use, that number is the NPC's own byte +$31, the hirer's CHR at the moment of the hire ($8D8E). For a trade, it is the CHR of the character taking the item ($0F70). With a CHR of 10 or more only the throw under 5 is left, one request in nine with fair dice and 13.1% with the game's, and that is the same for every NPC, Redhawk's trades aside.

The bytes still move. A refusal on a throw under 5 raises the byte by one, up to 10 ($0DA2), and a request carried out lowers it one time in 20 ($0D92). A hire lowers the three Use bytes by one for every 4 points the hirer's side beat the NPC's ($A496). Only the test for 255 reads them.

The manual promises more. NPCs don't always trade something when you ask them to, it says (page 12), and they have a mind of their own and may not always want to give their items away (page 6). Per Jorner's guide says that they sometimes refuse to trade away equipment or perform an action, and that over time they become less prone to rebellion (page 49). On the C64 the bytes that would do that go up and down, and the check never reads them. The guide is right about Redhawk, who will never trade anything away while conscious (page 52): an NPC who is not conscious is not asked ($0F63).

– chance to obey

The chance is exact for fair dice, as in the checks, and the second line gives it for the game's dice. Ask runs the NPC's check, ported from the engine ($0D61, $0F63) and the game ($8D83, $A435), with the dice of the checks. The slider sets the byte, which moves only the target the code meant. The table is the NPC's four bytes as its map holds them, and as the requests change them.

09 · Creating a character

Bug: the attribute roll that loses its best dice

A new Ranger's attributes are meant to be the best three of five dice. A slip in the sort loses the best dice instead, and the roll averages barely more than three dice would.

Creating a character at the Ranger Center rolls ST, IQ, LK, SP, AGL, DEX, and CHR, then MAXCON as one more roll + 18 ($7FDD). Each roll throws five dice into five slots, the first in slot 4 and the last in slot 0 ($8382). Then an exchange loop moves larger dice up into the higher slots, and the roll adds slots 2, 3, and 4 ($83B0). Sorted properly, those would be the best three of five.

The sort goes down from slot 4 to slot 1. Each pass loads the die in its slot once ($8397) and compares it with every slot below. When a slot holds a larger die, the two change places. The pass should now go on with the larger die it has just taken in. Instead, the branch at $83AB goes back to the compare, so the pass keeps comparing the small die it loaded. A second exchange in the same pass then writes over the larger die that moved up, and the small die ends up in two slots. Thrown in the order 1, 2, 3, 4, 5, the slots end as 1, 1, 1, 1, 5, and the roll is 7 where the best three make 12.

Thrown, in order
In hand

The game's roll
The best three
What a working sort leaves
the game's rollthe best three of fivethree dice, for comparison

The ranger program's routine, ported step by step: in hand is the die the pass loaded, slot X is outlined in blue and the slot it is compared with in amber.

Over all 7,776 throws the roll averages 10.62, barely more than three plain dice at 10.5, where the best three of five would average 13.43. The roll comes out lower than the best three in 72% of throws and is never higher, so a new Ranger's seven attributes lose about 20 points between them on average. Of 32 rolls at the Ranger Center, 21 came out below the best three of their dice.

10 · Libraries

Bug: a library pays 64 skill points for a seventh level of Energy weapon

A library sells a level of a skill for skill points, at a price that doubles with each level. When the price is far above the points, the subtraction wraps round, and the Ranger walks out with more points than before and the level besides.

The price of the next level is the skill's base cost, 1, 2, or 3, doubled once for each level already learned, and 255 once that passes 255 ($CBF7). To train, a Ranger needs at least the base cost in points ($CA9C-$CAAB) and a level below the rank ($CAEE-$CAF2). The library then takes the price from the points and refuses only when the remainder has its top bit set, the sign of a negative byte ($CB03-$CB07). A price of 128 against fewer points leaves a remainder with that bit set, and is refused. A price 129 or more above the points wraps past 0 into the positive half again: a price of 192 adds 64 points, and a price of 255 adds 1.

Base costSkillsFrom level 6From level 7From level 8 on
1Every weapon skill but Energy weapon, and Climb, Swim, Perception, Acrobat, Gamble, Picklock, Silent move, Confidence, Sleight of hand, Demolitions, Forgery, Alarm disarm, and Bureaucracy64: as it should128: refused255: +1 point
2Bomb disarm, Medic, Safecrack, Cryptology, and Metallurgy128: refused255: +1 point255: +1 point
3Helicopter pilot, Electronics, Toaster repair, Doctor, Clone tech, Energy weapon, and Cyborg tech192: +64 points255: +1 point255: +1 point

The price of the next level, and what paying it does to a Ranger with fewer than 128 points. The base costs are the library's skill table ($CC6C). Below level 6 every price is 96 or less and works as it should. With 64 to 127 points a Ranger is refused the price of 192, and with 127 the price of 255, since the remainder would reach 128.

The fans found the 255 first. M. Zier's super skills, on the HQ-Grid's Underground for the C64 and DOS, describe a library that shows a 255 to increase it, where a raise will add a skill point, up to your level, the rank. S. Hunter added (24 April 1998) that skills like Energy Weapon require only level 6, the level whose price is 192. Clem the Hick, on a C64, saw characters come away with 68-71 skill points: the 64 that a price of 192 adds, on top of the 4 to 7 they brought in. It didn't always work, which fits the rank rule: a level must be below the rank before a library sells it.

11 · Radiation

Bug: armour stops radiation only where the message number is even

A radiation square burns every member of the party who is not wearing a rad suit. The code means armour to be no help against it, and on most squares armour is a help after all: the square's message number decides.

MapSquaresDamageMessageArmour
Map 0, The world map223d6The ground seems to glow here. (23)no help
Map 0, The world map145d6The ground seems to glow here. (23)no help
Map 19, Base Cochise, robot assembly184d6A wave of heat washes over you and the ground shimmers. (28)counts
Map 19, Base Cochise, robot assembly206d6Your eyes tear and a ringing fills your ears. (29)no help
Map 19, Base Cochise, robot assembly2210d6Your whole body feels ready to combust, and your skin itches mightily. (30)counts
Map 20, Base Cochise, the reactor222d6On the floor is an open container of U235. (69)no help
Map 20, Base Cochise, the reactor163d6The floor is covered with Plutonium dust. (70)counts
Map 20, Base Cochise, the reactor64d6A pile of Wastelandium glows brightly here. (71)no help
Map 26, Needles422d6none (0)counts
Map 26, Needles124d6none (0)counts
Map 31, Needles, waste pit and ammo bunker16d6A broken radioactive waste container is lying here buried in the trash. (12)counts
Map 38, Las Vegas, the Mushroom Cloud temple164d6none (0)counts

Every record of a radiation square in the 42 maps, read from the maps' listings: its message (byte 0), its dice (byte 1), and the squares that use it. The messages are decoded by the port in Five bits a letter. A message of 0 shows nothing. Each map opens on the Maps tab.

The world map at night, the party on a radiation square: The ground seems to glow here.

The handler for radiation squares ($82E0) shows the square's message, then rolls the square's dice of damage for each member in turn. A member wearing the rad suit, item 41, is passed over. Before the first member the handler sets the flag at $A0 that tells the damage routine to skip the armour roll ($82E7).

The damage is taken off through a routine shared with the squares that test the party ($9082). For CON, that routine sets the same flag again, from bit 0 of byte 0 of the square's record ($90AF-$90B4). On a square that tests the party, byte 0 holds flags, and bit 0 set means armour is no help. On a radiation square, byte 0 is the number of the message it shows. So the armour roll, one die for each point of the member's armour class ($A8BB-$A8C5), is skipped where the message number is odd, as the handler meant, and made where it is even.

Seven of the twelve records have an even number, among them the 10d6 squares of the robot assembly at Base Cochise. The world map's two records both show message 23, so armour is no help there.

With every member's armour class set to 30, a party stepping onto the world map's 5d6 square loses 22, 23, 16, and 14 CON with message 23. With the record's byte changed to 22, the armour roll is made four times and none of the Rangers loses any.

12 · A square without a record

Bug: the check square that reads the processor port

On map 11, the square at column 24, row 13 refuses every step onto it, and says "Ah! Fresh air and open spaces once again."

Show the square on map 11 →

Every step onto the square is refused by the game's own code ($AD5B), and message 53 is shown.

The square is class 2, a check, with number 2. Map 11's list of check records holds $0000 for number 2, so the game reads the record from address 0. The C64's first two addresses are the processor's port, not memory. Address 0 reads $2F, the port's direction, and the game takes it for the check's flags. Its bit 7 is clear, so the check runs as the party steps in, and its bit 6 is clear, so there is no test to pass and the step is refused ($8DEC, $8E33). Address 1 reads $35, the port's setting in play, and the game takes it for the message to show: message 53. This square is the only one of the 42 maps whose record is not in the map.

With the party at column 23, row 13, three presses of L each print message 53 and leave the party, the square, and the clock as they were, and the processor's port reads $2F $35 throughout.

13 · The ending

Secret: the ending kills every Ranger still on Base Cochise's grounds, and the others play on

When the countdown at Base Cochise runs out, the game goes through every party, wherever it is. Rangers on any of the base's five maps die in the blast. Rangers anywhere else watch it from a hilltop, and then the game carries on.

Where each Ranger is

The hilltop: a Ranger looks down on the smoking dome of Base Cochise, beside the Wasteland logo

Place the four Rangers and run out the countdown. The ending appears here.

The page splits the four Rangers into parties by place and runs the ending's own program on them ($CA00), then shows the text it prints. The pictures are the game's, and How it works animates them.

The countdown is a length of time, and it holds wherever the party goes. Arming the self-destruct at the reactor notes the game's count of time, and the main loop compares the count with that note on every pass ($82B5-$82DF). When 240 units have gone by, the game saves the map and loads the ending, whichever map the party is on.

The ending shows Base Cochise under its dome, shakes the screen, and prints four screens of text while the dome falls in. Then it reads the map number of each party in turn ($CA69-$CB16). The base is maps 16 to 20, and map 16 is the ground outside the dome. A party that has walked out of the door and is still on that map dies with the ones inside. For each Ranger the game shows a dark figure against a white flash and prints was killed in the blast. after the name.

If anyone is left, the game shows the hilltop and an excerpt from a history of the Rangers, dated 2095. The excerpt has a last sentence that a party sees only when someone died ($CB9D): But certainly most important of all were the rangers who gave their lives to destroy Base Cochise, the greatest threat that man has ever known. If nobody is left, the game prints the book's title and that sentence alone beside the dark figure, and then loads the death screen.

With a survivor, play goes on. The world map's square for Base Cochise becomes a ruin that blocks the way: The debris littered here is the fireblackened ruins of Base Cochise. ($CBBA-$CBE2). The party that the player was leading keeps the lead if it lived, and otherwise the first party that lived takes it. Every character's record is marked on the way in ($CA00-$CA1C), and the next call on the radio pays the mark out as 10 points of MAXCON and 10 points to spend ($7EBC-$7EFD).

The ending plays three ways. With every Ranger away from the base, it shows the hilltop and every Ranger lives. With three Rangers inside and one in Quartz, it names the three, then shows the hilltop with the last sentence, and the fourth Ranger walks on. With all of them inside, it ends at the Grim Reaper.

14 · Needles

Secret: the map of Needles carries Apple II code under its empty squares

Every square of a map has a number, which says which message, shop, or fight the square uses. An empty square needs no number, and the game never reads it. On the map of Needles the empty squares hold 2,200 bytes that were never cleared, and they are pieces of the Apple II version's program.

game codecode for the Apple's hardwaresomething on the square

What the step doesThe C64 gameUnder Needles
An NPC was picked, and fewer than two of the party are awake: skip the questionA9 00 C9 02 90 22A9 00 C9 02 90 22
Print “Do you want to”A9 4F 20 50 7FA9 53 20 59 61
Print “dismiss”, the name, and “forever?”A9 4D 20 50 7FA9 51 20 59 61
Wait for a key20 2F 0220 25 08
N, the key that backs out, or YC9 CE F0 11 C9 9B F0 2F C9 D9 D0 F1C9 CE F0 11 C9 9B F0 2F C9 D9 D0 F1
Fetch the member who was pickedAD 0E 9AAD EB 77
Take the member out of the party20 C6 0220 9A 08
Carry on with the next choice4C AF 9A4C 8C 78

Above: Needles, with every empty square of rows 1 to 47 that holds a leftover byte lit, drawn from the map's listing. Below: the 40 bytes from column 2 of row 1 beside the C64 game's routine at $9A65. The instructions are the same, and only the addresses and the message numbers differ.

Rows 1 to 31 hold pieces of the game itself. The piece in the table is from Disband: when an NPC is picked, the game asks Do you want to dismiss the NPC forever? The C64 game has the same routine, and the two match step for step. The copy under Needles was built for other addresses: it sat $2223 bytes lower in memory, its two messages are numbered four higher, and it calls its own routines for the keyboard and the party.

From row 32 down, the code talks to the Apple II's hardware. It waits for a key at $C000 and clears it at $C010, throws the memory switches of a 128K Apple IIe ($C008, $C009, $C083), and prints through the Apple's ROM ($FDED). On a C64 the first five of those addresses are plain memory inside Wasteland's own program, so none of this code could do its job there.

The simplest reading is that the map was drawn on an Apple II, and the tool that saved it wrote out its work area as it stood. A square with something on it got its number. An empty square kept whatever the memory held before, and for Needles that was the game itself.

The C64 programs carry smaller leftovers of the same kind. Three instructions still read $C010 ($88FF, $8A31, $82B3), which clears the last key on an Apple and does nothing useful on a C64. The last 77 bytes of the game program are code for the Apple's disk drive that the game never calls ($C5B3-$C5FF).

15 · Cut from Base Cochise

Base Cochise still holds a climb onto a comrade's shoulders that was cut from the map

The map of the base's computer level has four records that tell one small story: a party under a damaged railing, with a rope or a pair of shoulders as the ways up. The records name each other, and none of the map's squares holds any of them.

Pick a step. The game's text appears here.

The page writes each record onto a square of the map and runs the game's own code on it: an arrival ($ACC1), or a Use on the party's own square ($8BEF). The rope and the crowbar are used under the railing by a party of four, and Agility and Acrobat by a party of two. Both are thrown with the game's dice, so they go either way.

The first record tests the size of the party, and passes a party of exactly two ($3AD1): There are enough of you that one could stand on another's shoulders and reach the rail. Any other party, four Rangers included, is told All alone you have no way to get out of here! and is left under the railing ($3AB7). There the way up is a rope. Using one turns the square into an exit that sets the party down two squares to the west ($3C79), and using anything else gets That doesn't seem to work.

A party of two gets the other record ($3B1A): This feat requires good balance. Choose carefully. The record takes Agility or Acrobat, and either is a throw. A pass prints Up on your comrade's shoulders you reach the rail and help the others up. A fail prints You lose your balance and topple down to the floor. and costs the Ranger 4d6 of CON.

What dropped the party under the railing is missing. None of the map's squares or other records changes a square into one of these four.

16 · Finster's mind maze

Bug: Finster's blade storm lets a Ranger through for carrying less than $16

In Finster's mind maze the ceiling bursts into a storm of steel blades. The square gives the Ranger at the head of the party three chances to get clear, and the second chance is a look in the Ranger's pocket.

The first Ranger

Set the Ranger and step under the blades. The game's text appears here.

The party stands on one of the four squares of the blade storm, at column 25, row 11, on the game's own code ($ACC1), with the first Ranger's Agility, cash, and Acrobat written into the record. The Agility throw uses the game's dice.

The record lists three tests for the first Ranger ($3CAD): Agility at difficulty 5, cash below $16, and Acrobat at difficulty 4. The game takes them in order and stops at the first one that passes. A cash test ends the list either way: the game answers it at once and looks no further ($8E73-$8E83).

So a Ranger who misses the Agility throw is saved by carrying $15 or less, and the storm is choked off as you duck and twist your way free. With $16 or more the blades cut the Ranger for 8 CON. The Acrobat test comes after the cash test, and the game never reaches it. A Ranger with seven levels of Acrobat, an Agility of 1, and $16 is cut every time.

17 · The utilities

Secret: the utilities can print every character's sheet, from a routine left off the menu

The utilities program holds a routine that lays out a sheet for each character of the saved game and sends the sheets to a printer. None of the menu entries or instructions in the program leads to it.

Press the button. The printout appears here.

The page runs the routine for the four Rangers the game starts with, and shows the text it builds, stopped where the routine would send it to the printer. Each sheet is padded to 33 lines, and the page leaves the padding out.

The routine builds all the sheets as text in memory ($844A), then sends the text to device 4, the C64's printer ($8602). A sheet has the name and rank, the attributes, the money, the weapon and armour in use, the items in four columns, and the skills with their levels.

The sheet has two slips. A Ranger with no armour is listed with Armor Equipped: Fists. The knife prints as Kni, because an item's name holds a mark where its plural ending starts, and the routine stops at the mark ($8704).

The program also carries two messages for the printout that it never shows: Setup printer to the top of form and enter the slot # the printer card is in. Default slot = 1. and There is no card in that slot. Slots and printer cards belong to the Apple II.

18 · The countdown

The hour before the blast is 240 steps inside the base and 15 on the world map

The reactor's terminal shows 1:00.0 when the self-destruct is armed. The game counts that hour in its own units of time, and a step is worth more units on some maps than on others.

Where the party walksUnits a stepSteps in the countdownWhat the clock shows for them
The 28 indoor maps, the four inside Base Cochise among them12401 hour
Ten towns and outdoor places, the ground outside the dome among them21201 hour
Las Vegas: the Mushroom Cloud temple, and Faran Brygo's hideout4602 hours
Las Vegas: the jail and Fat Freddy's46030 minutes
The world map16151 hour

Each map's record holds the units that a step is worth and the time that a step puts on the clock (bytes $34 to $36 of the record). The countdown is 240 units ($82B5).

The count moves without a step as well. Every round of a fight adds a step's worth ($B393), and so does a View that comes round to the first party ($9BAE). A fight of ten rounds at the reactor costs ten of the 240 steps.

On three maps of Las Vegas the units and the clock disagree. A step in the temple or in Faran Brygo's hideout puts two minutes on the clock and counts as four units, where four units are a minute everywhere else. A step in the jail counts the same four units and puts half a minute on the clock. The game's health check runs on the units too, so by the clock it comes round half as often on the first two maps and twice as often on the third.

19 · Fights

A fight takes two orders that its prompt leaves out

The prompt in a fight lists seven orders: R)un U)se H)ire E)vade A)ttack W)eapon L)oad/Unjam. The game's list of keys for that prompt has nine ($B4BD).

The space bar shows the map in place of the portrait until the next key, so a player can see where the enemy stands before choosing an order ($B489). S is Attack with the list of enemy groups always shown ($B4A0). Plain Attack skips the list when only one group is in reach, and S asks even then.

20 · Cut from the Agricultural Center

The Old Man was to walk the party to Veggie Center

The Agricultural Center has an exit with a line of its own: The Old Man nods and leads you to Veggie Center, communal living quarters of the Veggies, where he smiles and leaves.

Press the button. The game's text appears here.

The page writes the exit onto a square of the map and runs the game's own code on it ($ACC1).

Run on the game's code, the exit prints the line and sets the party down at column 25, row 29 of the same map ($3D7C). None of the map's squares holds the exit, and none of the other records changes a square into it.

21 · Quartz

Quartz has a door record for 64 abandoned buildings, and 30 of them are on the map

Every abandoned building in Quartz opens onto the same map of empty rooms. The town's list of exits has a record for each door, and more records than doors.

Exits 21 to 84 all lead into the abandoned buildings. Thirty of them are on squares of the town. The other 34 are whole records that are not used by any square, each with one of the town's three lines for a door: An old abandoned shack., It looks dark in here., and This doesn't look like a safe place to enter.

Four more exits that are not used by any square lead back into Quartz itself, three of them with the line You crawl through the slimy underground. They set the party down at columns 57 to 62, and Quartz is 32 squares across. The numbers would fit a town of 64 by 64 squares, the size of Needles.

22 · Text

Unused lines left in the maps' text

Each map carries its own text, and a square names a line by its number. These lines have no square, record, or routine that names them.

MapThe line
Sleeper Base, level 2Clone processing in progress.
Sleeper Base, level 2Unfortunately you were cut by some shards of crystal.
Base Cochise, outsideChunks of concrete blown long ago from the base's armored shell block easy access to the base itself.
Base Cochise, outsideYou have found the hostile base. The territory around it seethes with metal warriors.
Base Cochise, the computerBefore you lies the blackened and burned remains of what was once a door.
Base Cochise, the computerBefore you lies the battered and beaten remains of a door.
Base Cochise, the computerThe door is open
Base Cochise, the reactorAs you tried to jam the belt you got caught by the machine and pulled on to the belt.
Agricultural Center, the Root CellarAfter descending a several hundred foot high stairway, you enter the Root Cellar.
Savage VillageSome gun-toting villagers stand before you.
Savage VillageThe chest exploded in your face. What ever was inside is history now.
Savage VillageThe door closes behind you.
Savage VillageThe whole village has been alerted. You are in trouble now!
Savage VillageYou got lucky and found an easy way out of the well.

Read from the maps' listings with the decoder of Five bits a letter. Each map opens on the Maps tab.

Some of them read as an outcome that the map never reaches. Base Cochise has a door burned open and a door beaten open, and the map shows neither. The Savage Village has an alarm that never sounds and a chest that never explodes.