In level 10 ambush I set function (me) {} for the red and yellow drones and function (me) { var r = 'right:'+me.canMove('right'); var l = 'left: '+me.canMove('left') alert(r+'; '+l); } for the green drones. But I always get 'right:true; left: true'. WTFFFFFF? :-( Please please fix that, please!!!
Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
221–230 of 246 posts
Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#222Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#223Earlier quoted context omitted.
This level was driving me crazy (mostly because of the character limit). The solution that I found is kind of silly: it turns out the removeItem function is dumber than you probably think it is.
A good solution would be to remove an invalid item, and the function should silently try to remove the invalid item, but still allow passage. For some reason, even when you have the green key, but try to remove an invalid item, it still doesn't let you through, despite apparently returning false (passable). Additionally it doesn't support injection there, so while "player.removeItem('greenKey'); player.additem('green…
player.removeItem('greenKey'); return 0;} if(1==1){('');
Full link: https://gist.github.com/anonymous/c78b439d8f2369e03f68
Basically, this let's you delete the green item once. After that, it makes sure that return true is never reached (because of the 1==1), so next passages through green are allowed. Kinda liked the sneaky (''); myself :P
Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#224Any tips on level 15? Once the player is killed what could I possibly do?
Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#225Very fun. I found a bug that lets me skip levels 8-11 by using this code in the phone callback on level 7: if ( ! ( player.cc && player.cc.length ) ) { player.cc = ['#f00', '#ff0', '#0f0']; } player.setColor(player.cc.shift()); It says it's loading the next level, but the code and gamefield remain stuck on level 7 until you push it to level 12.
Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#226Hey guys, one of the developers here. Thank you all so much for all of your feedback! I never thought this game would become so popular. It seems that our server is more or less overloaded right now, so AJAX requests for new levels are sometimes failing. This appears to be the cause of the bugs that some of you have experienced where levels load incorrectly or are overwritten by previous levels. Sorry about that. :-/…
Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#227Earlier quoted context omitted.
Why were you disappointed?
Well, the title says you play the game by modifying the game's source. Turns out you don't modify the game's source, you modify specific snippets of code that are provided on the page. Last weekend I hacked around in the source of various online games, I anticipated this to be a similar experience but was disappointed to find that we weren't supposed to actually change the game's source.
Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#228That was great, Here's making the boss kill itself https://gist.github.com/anonymous/2d45242a73f72847417b
Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#229I didn't get the last 3 DOM-based ones. I just randomly hit my arrow keys and until I completed the levels. Otherwise a very cool game!
Oh, only level 19 is DOM-based - level 20 and 21 are different. You may have been unable to load correctly them due to the stress on the server, but you should check them out at some point :-)
Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#230Stuck at level 13 :(