How to mod PB2 swf files

How to mod PB2 swf files

Postby MLG COOL DOMINIK » 3 April 2020, 22:13

So you have a PB2 swf file, right? And you are tired of playing the same boring old campaign, right?
Well here is how to mod pb2.

1. First off, you will need JPEXs Decompiler:
https://github.com/jindrapetrik/jpexs-decompiler

2. You will need the PB2 swf file, you can simply get it by downloading it at the play page.

Now you have the things needed, time for the fun part!

1. Open the swf file in the decompiler

2. You have many folders: Shapes, Fonts, Scripts and a lot more.
We will be focusing on Shapes and Scripts

This spoiler talks about the Shapes folder.
Spoiler: Show More
SHAPES Folder
This folder has all the images used for pb2, character body parts, guns, explosions and much more!
To replace something, just right click and press "Replace", then you select the image and it will be replaced!

Except, it looks bad, thats because you might be using png or jpeg.
You will most likely need a clean image file.


This spoiler talks about the Scripts folder.
Spoiler: Show More
SCRIPTS Folder
This folder holds all the scripts for the game to run, and yes you can edit it.
You can use this to edit things like character names, gun stats and how they work, and even change levels!
Heck, if you really want to, you can even make a whole new character or something

Editing in PPCode (the code at the right) is a better idea than editing it directly, as it could break.
User avatar
MLG COOL DOMINIK
Civil Security Heavy [300]
 
Posts: 348
Joined: 25 June 2016, 21:39

Re: How to mod PB2 swf files

Postby eru_ » 4 April 2020, 06:55

Nice to see players are posting modding tutorials.

But this seems to be not completed.
User avatar
eru_
Civil Security Heavy [300]
 
Posts: 316
Joined: 18 April 2017, 18:57
Location: Safaqis/Tunisia


Return to Custom Skins & Mods

Who is online

Users browsing this forum: No registered users