Live data from Hacker News

Show HN: Untrusted, a JavaScript adventure game you play by modifying its source

alex.nisnevich.com

221–230 of 246 posts

Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source

#221
post #119

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!!!

Level 10 can be solved by code injection :)

https://gist.github.com/anonymous/d65048c34bd6874478a1

Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source

#223
post #150

Earlier 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…

I approached it like this:

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

#225
post #42

Very 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.

Ooh, shift, nice. Didn't know about that. That should come in handy.

Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source

#226
post #98

Hey 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. :-/…

We've also been discussing it over on reddit: http://www.reddit.com/r/webdev/comments/22gxx1/untrusted_a_j...

Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source

#227

Earlier 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.

Well you can play it that way too, if you want. Try overriding some of the internal functions using creative methods. :)

Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source

#229
post #148
post #81

I 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 :-)

woot. got 21 too finally :)
Post reply on HN