Skip to content

The good Pizza Tower decompilation by the most honest person you know

License

Notifications You must be signed in to change notification settings

femloy/OpenTower

Repository files navigation

Warning

This game sucks. My buddy agrees -- majority wins.
Try Undertale or Deltarune instead. They're GameMaker games. Here's a pretty good UndertaleDecomp.
I haven't seen a good Deltarune one yet but I'm working on one. Very, very, very slowly.

Anyway, unfortunately, everything on the Internet is permanent, so I kinda have to keep this available.

Attribution

OpenTower is licensed under CC BY 4.0.
Credit my GitHub profile.

Requirements

This repository doesn't include any of the datafiles or sprites.

The Script

  1. Make sure Pizza Tower is up to date. No mods. If you have .po files around then you probably have a mod installed.

  2. Open the data.win file in the game's installation folder with UndertaleModTool.

  3. Open the "Scripts" tab at the top of the UndertaleModTool window and select "Run other script..."

  1. Go to OpenTower's folder and select one of the two PTdecompiler.csx files. Whichever one works for you.

  1. It will ask you to select a folder; select the OpenTower folder. Should have all of these folders inside of it.

  1. It takes a while to dump every frame of every sprite. Don't panic.
  2. After it's done, open PizzaTower_GM2.yyp in the specified version of GameMaker. That's about it.
  3. To fix Steam SDK errors, open Extensions > Steamworks and change the SDK location setting to wherever you put it.

If you don't remove Steamworks before making a build, it'll just run the game on Steam instead, unmodified. I recommend removing the extension entirely for standalone mods. Look through all Steam related code and comment out any use of the steam_ functions. You could also get ballsy and try to make your own fake Steam implementation.

Upgrading GameMaker

If you want to move to a future GameMaker version you'll need to make some changes.

  1. Upgrade or remove the Steamworks extension.
  2. New GameMaker versions re-order and move assets around, making the code run in a different order. This breaks everything. The way I fix it is I make a persistent object that manually runs each broken object's step events in the intended order. Sounds terrible and tedious but if you really hate old GameMaker then you must.
  3. The specific version of GameMaker used to build the game originally had a bug that you now have to replicate. Whenever text is drawn to the screen, offset it by the font's sprite origin. You can replace every draw_text with your own.
  4. Rename the string_split script and function to something else, since that became an actual GameMaker built-in.
  5. If your mod is going to be a patch rather than standalone keep in mind that the .exe would have to be included now as well.
  6. Probably more. I forgot. If you got this far you can figure out the rest anyway.

Issues

Empty GameMaker

Delete the %programdata%/GameMakerStudio2 folder while GameMaker is closed. Then reopen it.
It happens when you use a newer GameMaker version. It breaks this older one.

ImageMagick error when opening .csx

You have the wrong UndertaleModTool version. Try this stable version and/or try the "old" version of the script.

Please update this

Well,

About

The good Pizza Tower decompilation by the most honest person you know

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •