Skip to content
[Request]

Idle Ants 2

This discussion is linked to Idle Ants 2. View game

7 posts

RE: Idle Ants 2

Posted Sep 16, 2018 11:17 pm


I'll be back to re-post this as a hack and to update as I go.

Step 1) Import LZString.  The game's using it, but it's apparently encapsulated, so whatever.
    Open the following URL https://raw.githubusercontent.com/pieroxy/lz-string/master/libs/lz-string.min.js
    Copy/paste the contents into your console.


Step 2) Decompress into an object  

   var obj = JSON.parse(LZString.decompressFromBase64(localStorage.getItem('save'))); 


Step 3) Manipulate Things

  for(i=0;i<obj.m.u.length;i++) {  if(obj.m.u[i].i == 'f') {     obj.m.u[i].q = 999999999999999999999999999999999999999999999999999999999999;  }   if(obj.m.u[i].i == 'c') { obj.m.u[i].q = 999999999999999999999999999999999999999999999999999999999999;  }   if(obj.m.u[i].i == 'l') {     obj.m.u[i].q = 999999999999999999999999999999999999999999999999999999999999;  }   if(obj.m.u[i].i == 's') {     obj.m.u[i].q = 999999999999999999999999999999999999999999999999999999999999;  } if(obj.m.u[i].i == 'prest') { obj.m.u[i].q = 999999999999999999999999999999999999999999999999999999999999;  }  }  



Step 4) Re-save

   localStorage.setItem('save', LZString.compressToBase64(JSON.stringify(obj)));  



Step 5) Reload

   window.onunload = function(){}; window.onbeforeunload = function(){}; window.location.reload();  



Have fun!


Everything's coming up KongHack!

"When you know nothing matters, the universe is yours" ~Rick Sanchez

RE: Idle Ants 2

Posted Sep 17, 2018 2:05 am

Chrome gives "false" after pasting in console?

Firefox gives "SyntaxError: unexpected token: identifier"

github.io iframe selected
same error if playing at github.io


After rebooting, for an unrelated reason, everything works.
Thanks!



 

atdt *67

RE: Idle Ants 2

Posted Sep 18, 2018 2:38 am

gotchu

atdt *67

RE: Idle Ants 2

Posted Dec 6, 2018 1:38 pm

I have tried this in both chrome and firefox I am playing the game at scorzy.github.io/IdleAnt2 and the first string always returns false and the send string always returns undefined.  I tried rebooting since it worked for jarly but even after reboot I am still getting the same results.

RE: Idle Ants 2

Posted Dec 14, 2018 4:38 am
slicerking2000 Posted on: 12/06/2018 8:38am

I have tried this in both chrome and firefox I am playing the game at scorzy.github.io/IdleAnt2 and the first string always returns false and the send string always returns undefined.  I tried rebooting since it worked for jarly but even after reboot I am still getting the same results.



Yeah same here. Don't know what I'm doing wrong...