Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local end_frames = pcsx.framecount() + 830000;
- local outfile = assert(io.open("worldmap_walking_rng.txt", "w"));
- local start_escapes = memory.readword(0x0009D2A2);
- while pcsx.framecount() < end_frames do
- while memory.readword(0x00F5BF4) ~= 709 do
- joypad.set(1, { ["up"] = 1, ["right"] = 1 });
- pcsx.frameadvance();
- joypad.set(1, { ["up"] = 0, ["right"] = 0 });
- pcsx.frameadvance();
- joypad.set(1, { ["down"] = 1, ["left"] = 1 });
- pcsx.frameadvance();
- joypad.set(1, { ["down"] = 0, ["left"] = 0 });
- pcsx.frameadvance();
- end
- escaped = start_escapes
- while escaped == start_escapes do
- escaped = memory.readword(0x009D2A2);
- -- Run! Start testing at frame 200
- joypad.set(1, { ["l1"] = true, ["r1"] = true });
- pcsx.frameadvance();
- end
- joypad.set(1, { ["l1"] = false, ["r1"] = false });
- end
- outfile:write("Start Escapes: ", start_escapes, "\n");
- outfile:write("End Escapes: ", memory.readword(0x0009D2A2), "\n");
- outfile:write("Total escapes: ", memory.readword(0x0009D2A2) - start_escapes, "\n");
- assert(outfile:close());
- gui.text(0, 50, "Done.");
- pcsx.pause();
Advertisement
Add Comment
Please, Sign In to add comment