Live data from Hacker News

SimCity UI Code + DRM

gist.github.com

11–20 of 66 posts

Re: SimCity UI Code + DRM

#11
It would be an interesting project to offline the game - but I do wonder how hardcore the calculations are that run it. Would it be realistic to run the game itself and the server-side simulation stuff (nulling input from other cities) on an ordinary desktop computer? Or would you definitely need a secondary machine?

Re: SimCity UI Code + DRM

#12

What parts of SimCity were written in Javascript? (Before you say "The UI, obvs", I'm wondering if it's a common practice to write UI code in games in javascript. I know that Gnome has a lot of JS that's tied into UI, I didn't expect the practice to make itself into game dev). And if this code is actually from SimCity, does SimCity have some type of v8 or other js engine packaged with it?

I learned that a lot of game menus are/were written in flash which was a huge shock to me, js would be as much, if not more, of one

Re: SimCity UI Code + DRM

#13

What parts of SimCity were written in Javascript? (Before you say "The UI, obvs", I'm wondering if it's a common practice to write UI code in games in javascript. I know that Gnome has a lot of JS that's tied into UI, I didn't expect the practice to make itself into game dev). And if this code is actually from SimCity, does SimCity have some type of v8 or other js engine packaged with it?

Quite some game UI's are done in Flash (check out ScaleForm by Autodesk: http://gameware.autodesk.com/scaleform) so using JavaScript seems plausible as well.

Re: SimCity UI Code + DRM

#14
post #10
post #8

Misleading title. This is obviously a formatted version of minified JS, presumably extracted from the shipping game, not a leak.

obviously? care to share for those of us who don't read JS fluently?

Wasn't obvious to me on a first skim through either, but on second viewing all simple variable names are single letters - exactly as one would get through minifying. See for example here and below: https://gist.github.com/anonymous/5133829#file-simcityui-js-...

Re: SimCity UI Code + DRM

#15
post #10
post #8

Misleading title. This is obviously a formatted version of minified JS, presumably extracted from the shipping game, not a leak.

obviously? care to share for those of us who don't read JS fluently?

The fact that the function parameter are (a, b, c) indicates that it was minified code.

Re: SimCity UI Code + DRM

#17

It would be an interesting project to offline the game - but I do wonder how hardcore the calculations are that run it. Would it be realistic to run the game itself and the server-side simulation stuff (nulling input from other cities) on an ordinary desktop computer? Or would you definitely need a secondary machine?

I highly doubt there's any significant calculation. If there was, EA would have to rent hundreds of thousands of EC2 instances to cover the running of the game.

Re: SimCity UI Code + DRM

#18

What parts of SimCity were written in Javascript? (Before you say "The UI, obvs", I'm wondering if it's a common practice to write UI code in games in javascript. I know that Gnome has a lot of JS that's tied into UI, I didn't expect the practice to make itself into game dev). And if this code is actually from SimCity, does SimCity have some type of v8 or other js engine packaged with it?

Quite some game UI's are done in Flash (check out ScaleForm by Autodesk: http://gameware.autodesk.com/scaleform ) so using JavaScript seems plausible as well.

Some older games had the menus fully rendered in openGL. I'm not sure which is better, but I would think our society has more domain experience making menus with flash than with openGL.

Re: SimCity UI Code + DRM

#19

What parts of SimCity were written in Javascript? (Before you say "The UI, obvs", I'm wondering if it's a common practice to write UI code in games in javascript. I know that Gnome has a lot of JS that's tied into UI, I didn't expect the practice to make itself into game dev). And if this code is actually from SimCity, does SimCity have some type of v8 or other js engine packaged with it?

I learned that a lot of game menus are/were written in flash which was a huge shock to me, js would be as much, if not more, of one

A lot of games use Flash for in-game UIs. See Scaleform.
Post reply on HN