BP-Innovation / Bad-Piggies-Original

A Unity Project which reverse-engineers from Bad Piggies APK and can be built on Windows/Android platforms.
MIT License
62 stars 4 forks source link

Unlocking Field of Dreams #3

Open LogoFun13-YT opened 2 years ago

LogoFun13-YT commented 2 years ago

How do I unlock the Field of Dreams sandbox within this game for free?

NameLord commented 1 year ago

It seems that people are blind am i right?

tohyney commented 1 year ago

It seems that people are blind am i right?

wat do u mean? u know how to unlock FoD???

ant-7802 commented 1 year ago

probably a value to change in the code

frogc0d3 commented 1 month ago

The game repo does not provide instructions on how to enable the Field Of Dreams and other cheats, but it's possible. By looking into the Unity project, I discovered that the game has cheats built into it. However, in order to enable them, you have to modify the assets. Specifically, you have to modify the gameconfig asset located in resources.assets and set "EnableCheats" to true.

This can be done by following these steps:

  1. Get UABE from https://github.com/SeriousCache/UABE.
  2. Open AssetBundleExtractor.exe.
  3. Go to File > Open {Your_Bad_Piggies_Folder}/Bad Piggies_data/resources.assets.
  4. Click on resources.assets within the Files and Components manager.
  5. Go to View > Search by name and search for "gameconfig".
  6. Click Plugins > Export to .txt.
  7. Open the txt file, set "EnableCheats" to true, and save it.
  8. Click Plugins > Import from .txt.
  9. Select the modified txt file.
  10. Go to File > Apply and Save All and save the resources.assets-mod file.
  11. Rename the resources.assets-mod file to resources.assets and replace the original resources.assets with the modified one.
  12. Launch Bad Piggies, and you should see an "Open Cheats" button near the upper left corner.

To enable the Field of Dreams:

  1. Click "Open Cheats".
  2. Click "Unlock Field of Dreams".
  3. Click "Back to Main Menu".
  4. Field of Dreams should now be unlocked.

I think the best way to go about this is, of course, to modify and recompile the project, but I have no idea how to do so since I've never used Unity and only have basic knowledge about it.