Skip to content
[Request]

Idle Ants

This discussion is linked to Idle Ants. View game

14 posts

RE: Idle Ants

Posted Oct 28, 2017 4:25 am

bump. Hack improved

RE: Idle Ants

Posted Oct 28, 2017 6:47 am

When I do this following happens
LZString is not defined

RE: Idle Ants

Posted Oct 28, 2017 11:51 pm

Maybe it`s asking too much but can you make a video walktrough or maybe a link to some pictures?

Thanks in advance

RE: Idle Ants

Posted Oct 29, 2017 1:36 am

i got this (only pasting the first part cause there is a lot of it) but i don't really understand how the important values are stored so i'm not sure how to edit it usefully 

{
  "list": [
    {
      "q": "11077554.011244004986",
      "u": true,
      "id": "food",
      "atw": true,
      "a": [],
      "w": "0.3",
      "e": "1",
      "b": "1",
      "r": 100,
      "p": [
        [

 

RE: Idle Ants

Posted Oct 29, 2017 6:00 am

to be honest I didn't try it myself goku, it's the first time I see the decrypted save :P

I can from your string that every entry in that list is an in game resource, q is quantity, u is unlocked, and id is the way to identify it, the rest are probably costs,modifiers and prestige stuff/upgrades. Just guessing here.

James you just need to open browser console, select gameiframe execution context(shown how to do in previous post in this topic) and paste the first snippet of javascript to retrieve and decrypt your savegame. At this point it will be in your clipboard and you'll be able to paste it inside a text file. You modify what you want in the decrypted save ( you can access it directly in the browser console as tempsave or in the text file but if you choose the text file you'll have to reassign tempsave to the modified textual version like so tempsave = "replace this text with the save but keep the quotes") and then execute the second snippet. At this point your modified save is stored but the game running might override it if you quit or if enough time since last save elapsed but fear not cause I got your covered. This time in your clipboard there will be the encrypted import string that you can use to manually load the game with your modified save game through the import/export feature.

I realize now that I assumed a level of expertise from hack users and didn't go in detail enough, thank you for bringing it up

RE: Idle Ants

Posted Oct 29, 2017 7:18 am

the explanation helped, got it to work, then lost interest a few minutes later, rip

RE: Idle Ants

Posted Oct 29, 2017 9:49 am

okay i got the first part working and i figured out the second part but the loading of the edited save back in didn't seem to work 

RE: Idle Ants

Posted Oct 29, 2017 11:17 am

when you are done modifying the save you paste

 var importString = LZString.compressToBase64(JSON.stringify(tempSave)); localStorage.setItem('save',importString),copy(importString);

 after you press enter the savestring to paste in the game import/export screen will be in your clipboard. You literally have to select the import box in game, paste to it and click the import button. The changes will go live. 

RE: Idle Ants

Posted Nov 3, 2017 12:39 am

i'm thinking this is missing a command to take the clipboard information and put it into 'tempsave' 

RE: Idle Ants

Posted Nov 3, 2017 5:55 am

too bad the console api doesn't have anything like that lol. That's all I can do leveraging the console api, I've had in mind to turn this snippet into a full fledged script that manages visual elements for ease of use but there doesn't seem to be much interest and I haven't really felt like it.
(PS in hindsight it would have been better not to mess with clipboard and force people to modify the save in situ)
PPS if you modify the save string in your clipboard you'll then have to paste it back in tempsave 
E.G.
tempSave = [replace with modified save in your clipboard]


PPPS 

  • how would you edit a value in a large array in chrome console?
  • zenwaichi▸you expand the object tree structure if the array has more than 100 elements they are going to be grouped in more manageable chunks (like 100 elements long slices of an array)
  • zenwaichi▸and you basically double click the value you want to change