Skip to content

fourst4r/pr2modded

Repository files navigation

pr2modded

Platform Racing 2, with mods.

Authoring mods

PR2's decompiled source code is provided as reference for mods in clientsrc/.

Class/fields accessibility is modified for greater freedom. protected -> public and private -> internal (to retain a meagering sense of privacy)

Building ModLoader

Requires dependencies:

  • Adobe Animate 2021 (other versions untested) TODO: replace this dep with something better
  • FFDec.exe (latest version)
  • Haxe v4.0.0+

Steps to build:

  1. Run Get-PR2.ps1 (Animate must be closed)
  2. Run haxe loader.hxml

Now you will find loader.swf and loader.exe in the bin/ directory.

Debugging ModLoader

Go to Flash Global Security Settings panel and add the repository folder as a trusted location.

Now you can get stack traces with errors, just run loader.swf directly with a Flash debug projector.

Note: You need Flash installed on your PC to access the security settings panel, install it here (or here) then use a Flash-enabled browser like Basilisk or Pale Moon to visit the website.

TODO: Automate this process by writing to trustedPaths at %AppData%\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys\settings.sol.

About

Platform Racing 2, with mods.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published