Created
May 21, 2014 14:43
-
-
Save kevinburke/456fe478b1822580a449 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
rct "github.com/kevinburke/rct-rides" | |
) | |
func main() { | |
f, err := os.Open(os.Getenv("HOME") + "/code/OpenRCT2/openrct2.exe") | |
if err != nil { | |
panic(err) | |
} | |
defer f.Close() | |
var WIDTH = 0x12 | |
b := make([]byte, 100*WIDTH) | |
// all 4 bytes here have significance on their own, somehow | |
addr := 0x0057E3A8 | |
f.ReadAt(b, int64(addr)) // direction change stored in 2nd bit. | |
for i := 0; i < len(rct.RIDENAMES); i++ { | |
fmt.Printf("%2x ", i) | |
fmt.Printf("%40s ", rct.RIDENAMES[i]) | |
fmt.Printf("%d\n", b[i*WIDTH]) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 Spiral Roller coaster 41 | |
1 Stand Up Coaster 40 | |
2 Suspended Swinging 40 | |
3 Inverted 40 | |
4 Steel Mini Coaster 40 | |
5 Mini Railroad 60 | |
6 Monorail 65 | |
7 Mini Suspended Coaster 40 | |
8 Bumper Boats 50 | |
9 Wooden Wild Mine/Mouse 40 | |
a Steeplechase/Motorbike/Soap Box Derby 40 | |
b Car Ride 70 | |
c Launched Freefall 50 | |
d Bobsleigh Coaster 40 | |
e Observation Tower 50 | |
f Looping Roller Coaster 40 | |
10 Dinghy Slide 40 | |
11 Mine Train Coaster 40 | |
12 Chairlift 60 | |
13 Corkscrew Roller Coaster 40 | |
14 Maze 50 | |
15 Spiral Slide 50 | |
16 Go Karts 50 | |
17 Log Flume 80 | |
18 River Rapids 82 | |
19 Bumper Cars 50 | |
1a Pirate Ship 50 | |
1b Swinging Inverter Ship 50 | |
1c Food Stall 50 | |
1d (none) 50 | |
1e Drink Stall 50 | |
1f (none) 50 | |
20 Shop (all types) 50 | |
21 Merry Go Round 50 | |
22 Balloon Stall (maybe) 50 | |
23 Information Kiosk 50 | |
24 Bathroom 50 | |
25 Ferris Wheel 50 | |
26 Motion Simulator 50 | |
27 3D Cinema 50 | |
28 Gravitron 50 | |
29 Space Rings 50 | |
2a Reverse Freefall Coaster 80 | |
2b Elevator 50 | |
2c Vertical Drop Roller Coaster 44 | |
2d ATM 40 | |
2e Twist 50 | |
2f Haunted House 50 | |
30 First Aid 45 | |
31 Circus Show 50 | |
32 Ghost Train 80 | |
33 Twister Roller Coaster 43 | |
34 Wooden Roller Coaster 40 | |
35 Side-Friction Roller Coaster 39 | |
36 Wild Mouse 40 | |
37 Multi Dimension Coaster 75 | |
38 (none) 75 | |
39 Flying Roller Coaster 49 | |
3a (none) 49 | |
3b Virginia Reel 39 | |
3c Splash Boats 70 | |
3d Mini Helicopters 70 | |
3e Lay-down Roller Coaster 49 | |
3f Suspended Monorail 70 | |
40 (none) 49 | |
41 Reverser Roller Coaster 39 | |
42 Heartline Twister Roller Coaster 47 | |
43 Mini Golf 30 | |
44 Giga Coaster 10 | |
45 Roto-Drop 50 | |
46 Flying Saucers 90 | |
47 Crooked House 30 | |
48 Monorail Cycles 47 | |
49 Compact Inverted Coaster 40 | |
4a Water Coaster 60 | |
4b Air Powered Vertical Coaster 90 | |
4c Inverted Hairpin Coaster 40 | |
4d Magic Carpet 50 | |
4e Submarine Ride 50 | |
4f River Rafts 50 | |
50 (none) 50 | |
51 Enterprise 50 | |
52 (none) 50 | |
53 (none) 50 | |
54 (none) 50 | |
55 (none) 40 | |
56 Inverted Impulse Coaster 180 | |
57 Mini Roller Coaster 35 | |
58 Mine Ride 50 | |
59 LIM Launched Roller Coaster 42 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment