How To Edit Dangerous Piggies Ranges & Get A Bigger Constructing Grid (Enhancing The Supply Code)

Please observe that this submit is over a yr outdated and will include outdated data.

Be aware: This information at the moment solely works with model 1.6.0 and earlier.

First, here’s a screenshot displaying what you may accomplish with these edits. That is the degree (on Android) with a bigger constructing grid and almost limitless gadgets:


Click on to see the video

Disclaimer

Following this information may result in breaking your sport and dropping your progress. Proceed at your personal danger. I cannot present pre-modded information; you will need to edit your personal information by following this information.

Necessities

Here’s what you will have to get began:
 – A very good text-editor with UTF-8 assist like

To edit the Home windows model:
 – The PC model of the sport put in (that is it!)

To edit the Android model:
 – The APK for the sport, which you may get at an internet APK mirror
 – A primary file browser
 – An archiver like

Fundamental Data

Dangerous Piggies is made with the Unity sport engine and makes use of quite a few information to regulate the sport. These information normally have the extension , however not at all times.

You possibly can edit property information immediately utilizing a great textual content editor. There are tons of various information and most include what appears to be like like an enormous pile of gibberish characters. Hidden amongst this gibberish are little blocks of code which are human-readable, and which include variables that have an effect on the gameplay.

File Measurement
Whereas enhancing information, they have to at all times find yourself the identical file measurement that they had been initially. That is to go a file measurement validity test that the sport performs. All the time make a backup of the file earlier than enhancing and make an observation of its in bytes. For instance, for those who change “count = 5” to “count = 150”, you have added two characters, rising the file measurement by two bytes, and so should take away two characters elsewhere to offset this. Addition and removing of characters have to be finished inside the identical mum or dad .

Whitespace
The information are strictly-typed and whitespace issues. You have to protect tabs, newlines, and whitespace or you could run into errors. These information additionally use rn (carriage return & line feed) for each line break, which is the Home windows customary. That is two characters per line break. It might appear counter-intuitive {that a} line break is 2 characters and never one. Learn extra about that

Stage Enhancing
This information will present you edit the degree (seen within the screenshot above), which is known as internally by the sport. View the on the backside of this submit to seek out out the inner names for every of the opposite sandbox ranges. You should use what you study on this information to edit any of the opposite ranges within the sport.

Base Zero Numbering
Every part makes use of base-zero numbering. So in case you have an array containing 3 parts, the weather shall be numbered 0, 1, and a couple of. Be taught extra about base-zero

Belongings File

The file you might want to edit is in a unique location on every platform.

PC/Home windows
The file that you simply wish to edit is known as sources.property and resides within the information folder of your Dangerous Piggies PC set up.

Bad Piggies Resources.Assets

Open it in your textual content editor. Remember that it could run gradual; it has over 300,000 traces of code. This huge file comprises quite a few ranges. To get to the degree, seek for the primary prevalence of “Level_Sandbox_06_data”.

Android
Open up the APK with 7-Zip. You may see this:

Bad Piggies APK 7-Zip

Go into the folder, then , then . In there are lots of of information, some with out extensions. The file that comprises the degree is known as 746ee37fafe29a34ba3f2032ea011e0a (no extension). Extract simply that file out and open it in your textual content editor.

Enhancing The Belongings File

Now that you’ve got the proper file in your platform, it is time to make the revisions. Scroll down till you’re looking at information that appears like this (beginning with ):

Bad Piggies Resources.Assets Notepad++

Step 1: Zooming Out
The very first thing we have to do is modify the default zoom degree when constructing. In the event you do not do that, you will not have the ability to see the entire construct grid as soon as we enhance it.

Go down about 33 traces and you will find Array m_controlPoints. This controls the factors that the digital camera pans and zooms to whenever you first begin a degree. It comprises 8 parts (Aspect 0 by Aspect 7). The ultimate component (7) can be the place of the digital camera throughout constructing. Its default zoom degree is “Float zoom = 5.5”. Change that to “Float zoom = 6.0”. This may permit for extra seen space for a bigger construct grid. It’ll seem like this whenever you’re finished:

Bad Piggies Resources.Assets Notepad++

Be aware: Since we solely modified “5.5” to “6.0”, we did not change the whole variety of characters or file measurement of the file.

Step 2: Bigger Construct Grid
To extend the construct grid measurement, we have to modify the Array m_constructionGridRows. Go down about 47 traces from the zoom change you probably did above and you will find it.

The Array m_constructionGridRows comprises a number of Components. Every Aspect corresponds to a row within the constructing grid. Its measurement (what number of Components it could include) is specified by . By default it’s set to . Which means there might be as much as 7 rows within the constructing grid.

See also  Best NAS For Plex in 2021 – Top 12 Reviews & Buyers Guide

Now the curious factor concerning the degree is that it solely lists (the final component) and not one of the ones earlier than it (0 by 5):

Bad Piggies Resources.Assets Grid 1

If a component will not be listed it defaults to 10 containers within the row. So meaning Components 0 by 5 (not listed) default to 10. That is 6 rows of 10 containers every, which is right (you may verify this by taking part in the degree). The ultimate seventh component that’s listed has its set to , which implies nothing in that row.

We wish to add further constructing rows in addition to make every row include extra containers, so we’ve got to manually add within the lacking Components. This will get a little bit difficult however is not too laborious. Change the ArraySize to eight (for 8 rows) after which copy and paste the seven instances till you find yourself with this:

Bad Piggies Resources.Assets Grid 2

Ensure you retain the identical tab, area, and line breaks used within the file.

Now edit every of them to place them in sequence and alter the attribute to 8191 (not 0). Why 8191? I am going to clarify in a second. Here’s what you need to find yourself with:

Bad Piggies Resources.Assets Grid 3

You now have 8 constructing rows, every with the worth 8191, which implies every row could have 13 construct containers. The explanation 8191 means 13 is as a result of the sport makes use of the formulation on the worth (n) to find out the variety of containers within the row. In the event you simply needed 10 containers per row (the default max), you’ll use 1023. Please have a look at this chart to get an thought why:

0 = 2^0 - 1
    1 = 2^1 - 1
    3 = 2^2 - 1
    7 = 2^3 - 1
   15 = 2^4 - 1
   31 = 2^5 - 1
   63 = 2^6 - 1
  127 = 2^7 - 1
  255 = 2^8 - 1
  511 = 2^9 - 1
 1023 = 2^10 - 1
 2047 = 2^11 - 1
 4095 = 2^12 - 1
 8191 = 2^13 - 1
16383 = 2^14 - 1
32767 = 2^15 - 1
65535 = 2^16 - 1

It could be complicated, however simply know that 8191 means you will get 13 containers per construct row. You possibly can change it to one thing else, however simply keep it up for now till you totally perceive it.

Step 3: Limitless Construct Gadgets
Now that you’ve got the construct grid finished, you wish to enhance the variety of gadgets obtainable to construct with. That is finished immediately beneath in Array m_partTypeCounts. You may see 43 Components, every with an worth. Improve all of those counts to one thing like 50 (or greater in order for you). It’ll seem like this:

Bad Piggies Resources.Assets Grid 4

Step 4: Fixing The File Measurement
So now that we have added a bunch of characters to the file, we have to take away an equal variety of characters to convey the file measurement again to the unique. This may largely be guess and test. Most of the variables on this are optionally available and might be deleted to scale back bytes. For instance, these traces might be deleted solely:

Float m_previewZoomOut = 8
Float m_previewMoveTime = 4
Float m_previewWaitTime = 1
Integer m_DessertsCount = 40
Boolean m_SuperBluePrintsAllowed = False

You may as well delete these traces additional down:

Integer m_tutorialBookPage = 65
ObjectReference m_tutorialBookPagePrefab = 4

You possibly can then modify a few of the float numbers to positive tune the file measurement. For instance, you may add zeros to the top of a float (decimal) with out altering what it means.

Simply preserve working with it till you have bought the file measurement again to the unique quantity. Watch out to not delete any areas or tabs (whitespace) in entrance of variables that you simply wish to preserve.

When you’re finished, open up the sport and take a look at it out! If it offers you an error, you might have by chance deleted one thing essential, or the file measurement could also be completely different. Double-check that the dimensions is identical (not measurement on disk, however the precise measurement in bytes).

Utilizing Your Modified Model

In the event you’re on PC, you ought to be finished now and in a position to open the sport (you may truly edit the information whereas the sport is working). In the event you’re on Android you might have a number of extra steps relying in your model of Android:

Android 4.4 and Earlier
Copy the edited file again into the APK (utilizing 7-Zip). After which copy the modified APK file over to the Android and overwrite your unique Dangerous Piggies APK file. Hold a backup of the unique earlier than overwriting it and a backup of the modified APK in your PC, in case you might want to reinstall.

Android 5.0 and Later (ART runtime)
Because the new runtime in Android precompiles functions, you must set up your modified base.apk (you may’t simply overwrite the outdated one). It isn’t too difficult. After you have copied the edited file again into the APK (utilizing 7-Zip), comply with these steps:

1. Make a backup of your save information, which is the folder named in . Copy the folder to a protected location (possibly preserve a backup in your PC).

2. Uninstall Dangerous Piggies out of your system, and delete the folder utterly.

3. Now copy your modified base.apk file over to your system, utilizing your File Supervisor, someplace simple to entry like your downloads folder.

4. Set up

5. If you have not but, you will want to permit installations from unknown sources. Allow the choice at .

6. Navigate to your signed APK utilizing your File Supervisor and faucet it to put in it. As soon as finished, you’ll now have the put in Dangerous Piggies along with your modifications. Don’t use the Play retailer to replace Dangerous Piggies or it could overwrite your edits.

Sandbox Stage Quantity Cross Reference

Sandbox_01 = Discover The Skulls
Sandbox_02 = Floor Hog Day 2
Sandbox_03 = When Pigs Fly 1
Sandbox_04 = Floor Hog Day 1
Sandbox_05 = When Pigs Fly 2
Sandbox_06 = Discipline Of Goals
Sandbox_07 = Flight In The Night time 1
Sandbox_08 = Flight In The Night time 2
Sandbox_09 = Rise And Swine 1
Sandbox_10 = Rise And Swine 2

See also  12+ Best Free Logo Makers 2021 : a Cool Logo in Few Seconds

In the event you’re on Android it may be tough to seek out out which of the lots of of information comprises the sandbox degree you wish to edit. I like to recommend utilizing the Discover in Recordsdata performance of Notepad++.

This can be a prolonged and technical submit about enhancing the Dangerous Piggies utility code with a view to edit ranges, enlarge the constructing grid, and make different tweaks to the gameplay. This covers the Home windows and Android variations solely, however the course of shall be related for Mac and iOS if you may get entry to the sport utility information.First, here’s a screenshot displaying what you may accomplish with these edits. That is thelevel (on Android) with a bigger constructing grid and almost limitless gadgets:Following this information may result in breaking your sport and dropping your progress. Proceed at your personal danger. I cannot present pre-modded information; you will need to edit your personal information by following this information.Here’s what you will have to get began:- A very good text-editor with UTF-8 assist like Notepad++ To edit theversion:- The PC model of the sport put in (that is it!)To edit theversion:- The APK for the sport, which you may get at an internet APK mirror- A primary file browser- An archiver like 7-Zip to open the APK fileBad Piggies is made with the Unity sport engine and makes use of numerousfiles to regulate the sport. These information normally have the extension, however not at all times.You possibly can edit property information immediately utilizing a great textual content editor. There are tons of differentfiles and most include what appears to be like like an enormous pile of gibberish characters. Hidden amongst this gibberish are little blocks of code which are human-readable, and which include variables that have an effect on the gameplay.Whereas editingfiles, they have to at all times find yourself the identical file measurement that they had been initially. That is to go a file measurement validity test that the sport performs. All the time make a backup of thefile earlier than enhancing and make an observation of itsin bytes. For instance, for those who change “count = 5” to “count = 150”, you have added two characters, rising the file measurement by two bytes, and so should take away two characters elsewhere to offset this. Addition and removing of characters have to be finished inside the identical parentThefiles are strictly-typed and whitespace issues. You have to protect tabs, newlines, and whitespace or you could run into errors. These information additionally use rn (carriage return & line feed) for each line break, which is the Home windows customary. That is two characters per line break. It might appear counter-intuitive {that a} line break is 2 characters and never one. Learn extra about that right here This information will present you edit thelevel (seen within the screenshot above), which is calledinternally by the sport. View theat the underside of this submit to seek out out the inner names for every of the opposite sandbox ranges. You should use what you study on this information to edit any of the opposite ranges within the sport.Every part makes use of base-zero numbering. So in case you have an array containing 3 parts, the weather shall be numbered 0, 1, and a couple of. Be taught extra about base-zero right here Thefile you might want to edit is in a unique location on every platform.Thefile that you simply wish to edit is calledand resides within the information folder of your Dangerous Piggies PC set up.Open it in your textual content editor. Remember that it could run gradual; it has over 300,000 traces of code. This largefile comprises quite a few ranges. To get to thelevel, seek for the primary prevalence of “Level_Sandbox_06_data”.Open up the APK with 7-Zip. You may see this:Go into thefolder, then, then. In there are lots of of information, some with out extensions. The file that comprises thelevel is known as(no extension). Extract simply that file out and open it in your textual content editor.Now that you’ve got the correctfile in your platform, it is time to make the revisions. Scroll down till you’re looking at information that appears like this (beginning with):The very first thing we have to do is modify the default zoom degree when constructing. In the event you do not do that, you will not have the ability to see the entire construct grid as soon as we enhance it.Go down about 33 traces and you will find. This controls the factors that the digital camera pans and zooms to whenever you first begin a degree. It comprises 8 parts (Aspect 0 by Aspect 7). The ultimate component (7) can be the place of the digital camera throughout constructing. Its default zoom degree is “Float zoom = 5.5”. Change that to “Float zoom = 6.0”. This may permit for extra seen space for a bigger construct grid. It’ll seem like this whenever you’re finished:Be aware: Since we solely modified “5.5” to “6.0”, we did not change the whole variety of characters or file measurement of thefile.To extend the construct grid measurement, we have to modify the. Go down about 47 traces from the zoom change you probably did above and you will find it.The Array m_constructionGridRows comprises a number of Components. Every Aspect corresponds to a row within the constructing grid. Its measurement (what number of Components it could include) is specified by. By default it’s set to. Which means there might be as much as 7 rows within the constructing grid.Now the curious factor about thelevel is that it solely lists(the final component) and not one of the ones earlier than it (0 by 5):If a component will not be listed it defaults to 10 containers within the row. So meaning Components 0 by 5 (not listed) default to 10. That is 6 rows of 10 containers every, which is right (you may verify this by taking part in thelevel). The ultimate seventh component that’s listed has itsset to, which implies nothing in that row.We wish to add further constructing rows in addition to make every row include extra containers, so we’ve got to manually add within the lacking Components. This will get a little bit difficult however is not too laborious. Change the ArraySize to eight (for 8 rows) after which copy and paste theseven instances till you find yourself with this:Ensure you retain the identical tab, area, and line breaks used within the file.Now edit every of them to place them in sequence and alter theattribute to 8191 (not 0). Why 8191? I am going to clarify in a second. Here’s what you need to find yourself with:You now have 8 constructing rows, every with the worth 8191, which implies every row could have 13 construct containers. The explanation 8191 means 13 is as a result of the sport makes use of the formulaon the worth (n) to find out the variety of containers within the row. In the event you simply needed 10 containers per row (the default max), you’ll use 1023. Please have a look at this chart to get an thought why:It could be complicated, however simply know that 8191 means you will get 13 containers per construct row. You possibly can change it to one thing else, however simply keep it up for now till you totally perceive it.Now that you’ve got the construct grid finished, you wish to enhance the variety of gadgets obtainable to construct with. That is finished immediately beneath in. You may see 43 Components, every with anvalue. Improve all of those counts to one thing like 50 (or greater in order for you). It’ll seem like this:So now that we have added a bunch of characters to thefile, we have to take away an equal variety of characters to convey the file measurement again to the unique. This may largely be guess and test. Most of the variables in thisare optionally available and might be deleted to scale back bytes. For instance, these traces might be deleted solely:You may as well delete these traces additional down:You possibly can then modify a few of the float numbers to positive tune the file measurement. For instance, you may add zeros to the top of a float (decimal) with out altering what it means.Simply preserve working with it till you have bought the file measurement again to the unique quantity. Watch out to not delete any areas or tabs (whitespace) in entrance of variables that you simply wish to preserve.When you’re finished, open up the sport and take a look at it out! If it offers you an error, you might have by chance deleted one thing essential, or the file measurement could also be completely different. Double-check that the dimensions is identical (not measurement on disk, however the precise measurement in bytes).In the event you’re on PC, you ought to be finished now and in a position to open the sport (you may truly edit thefiles whereas the sport is working). In the event you’re on Android you might have a number of extra steps relying in your model of Android:Copy the editedfile again into the APK (utilizing 7-Zip). After which copy the modified APK file over to the Android and overwrite your unique Dangerous Piggies APK file. Hold a backup of the unique earlier than overwriting it and a backup of the modified APK in your PC, in case you might want to reinstall.Because the new runtime in Android precompiles functions, you must set up your modified base.apk (you may’t simply overwrite the outdated one). It isn’t too difficult. After you have copied the editedfile again into the APK (utilizing 7-Zip), comply with these steps:1. Make a backup of your save information, which is the folder namedin. Copy thefolder to a protected location (possibly preserve a backup in your PC).2. Uninstall Dangerous Piggies out of your system, and delete the foldercompletely.3. Now copy your modified base.apk file over to your system, utilizing your File Supervisor, someplace simple to entry like your downloads folder.4. Set up Zip Signer from the Google Play Retailer and open it. Hit the “Choose In/Out…” button and navigate to the bottom.apk. Then hit “Sign The File”. The app will take a number of moments after which generate a brand new APK that’s signed.5. If you have not but, you will want to permit installations from unknown sources. Allow the choice at6. Navigate to your signed APK utilizing your File Supervisor and faucet it to put in it. As soon as finished, you’ll now have the put in Dangerous Piggies along with your modifications. Don’t use the Play retailer to replace Dangerous Piggies or it could overwrite your edits.Sandbox_01 = Discover The SkullsSandbox_02 = Floor Hog Day 2Sandbox_03 = When Pigs Fly 1Sandbox_04 = Floor Hog Day 1Sandbox_05 = When Pigs Fly 2Sandbox_06 = Discipline Of DreamsSandbox_07 = Flight In The Night time 1Sandbox_08 = Flight In The Night time 2Sandbox_09 = Rise And Swine 1Sandbox_10 = Rise And Swine 2If you are on Android it may be tough to seek out out which of the lots of of information comprises the sandbox degree you wish to edit. I like to recommend utilizing the Discover in Recordsdata performance of Notepad++.

See also  100 Beautiful GMOD FREE NO DOWNLOAD UNBLOCKED Games - Play Free Online Games 2021

Leave a Reply

Your email address will not be published.