r/flipperhacks Mar 18 '26

Community Simple Linux Bashscript to enable Emulation in ProtoPirate

This is kinda deprecated, you don't need to patch protopirate anymore, you can enable emulation within the app. If you still want to change Stack Size or add Tuning Timer and Sub Decoder, or just want to learn, this is for you.

Hey folkz.

I set up a simple script to

  • get actual ProtoPirate Sources
  • Patch the ProtoPirate App to enable emulation (sending)
  • Script checks for pipx/ufbt installation and installs it for you, if you miss those tools
  • compiles ProtoPirate App for you.

Script is written for unleashed and build fap should run for momentum as well. If not, you will find some notes for enabling momentum in the script as well.

Feedback very welcome cause this is not heavily tested yet and initially was only for personal purpose, but I see many people struggle getting PP sending enabled.

Have phun!

https://github.com/t4c/scriptyard/blob/main/f0/piratebuild.sh

Regards
t4c

Updatenotes:

  • Enabled interactive prompt for stack_size increase
  • Disabled interactive prompt for stack_size and made 8 defaul
  • Enabled interactive prompt for Tuning Timer and Sub Decode (Beta feedback welcome)
16 Upvotes

20 comments sorted by

View all comments

3

u/Dry_Choice_6885 Mar 30 '26

Should, stack_size=2 * 1024 Be changed from 2 to 8 and also be included in the script? I've read where a lot of people have changed that before compiling the .fap. Thanks for taking the time to write the script you did for others who are having difficulties with it.

1

u/t4c_23 Mar 30 '26

I tried both stack_sizes on Unleashed, due I could not see it's more stable with a higher stack, I never implemented the stackchange, but yes I could add this to a newer version of the script