Forgot your password?

typodupeerror

Comment: Re:The important bit (Score 5, Informative) 233

by TheSunborn (#43299577) Attached to: Everything About Java 8

Let me try to explain it:

Java (The language and vm) does in general allow code to do anything. Mess up the system, call native methods and so on. In this it is no different from other languages such as c++ and php, which is why no one are running c++ og php directly in a browser*.

But sun wanted to be able to run Java code in the browser, so they made an security manager, which in principle allow you to specify exactly what parts of the java standard library a program should have access to. So you can restrict file access, to specific sub directories. Control thread and process control, class loading and so on.

So each call to a potential dangerous method first goes to the system manager to ask for permission, and if permission is granted the rest of the method is executed. And here is part of the problem: Default for all methods is access granted if there is no call to the security manager.

So for every method in the Java library, they had to determine if it could me misused, and it it could be misused, they had to insert call to the security manager to verify that the user have access to use this method in this way based on the arguments to the method.

And just one method which don't verify its argument as good as it should is enough to grant access.

The problem is made far worse by the combination of the java class loader which loads classes dynamicly, and the java reflection api which allows dynamic class loading and method calling. Verifying that code can't use the reflection and class loader to bypass the security system is really difficult, as proved by the many security problems.

So when people say the problem is in the java browser plugin, they are not exactly right. The problems are in the java security manager, but I think the browser plugin is the only component which uses the security manager. Our server code for example don't need a security manager to control exactly what our code have access to, because the code is written by guys we trust, and the rest of the security is handled by the system.

*Or at least should not. Active X is Microsofts version of the "Try to run untrusted general purpose code in the browser project". And its security record is as bad as javas.

Comment: Re:Game is part server-side, not 'always on DRM' (Score 1) 511

by TheSunborn (#43110659) Attached to: In Wake of Poor Reviews, Amazon Yanks <em>SimCity</em> Download

Don't prove much. Remember: All the citys in the region(Normally 3 or 5, but can be up to 16) will in most cases be controlled by the same player. No need for internet to emulate that.

Yes the game does have an online global component, but its effect is currently very limited, and the game would work just as fine without it. Its only effect is that the import/export prices changes, based on the import/export of all cityes on your server. You could just use a random function to change the prices of resources, and the game would run fine without any internet.

Comment: Re:I wish I had pirated it lol (Score 2) 511

by TheSunborn (#43110543) Attached to: In Wake of Poor Reviews, Amazon Yanks <em>SimCity</em> Download

The "Facebook like" referer to the fact that you get free items(Firetruck, police cars and so on) which you can't use in your own city, but which you can give to an other city and earn a bonus that way. Like all the facebook games, where you give resources to your facebook frinds.

Comment: Re:Game is part server-side, not 'always on DRM' (Score 1) 511

by TheSunborn (#43110105) Attached to: In Wake of Poor Reviews, Amazon Yanks <em>SimCity</em> Download

The city you play with is NOT partly calculated server. And I know this because the city building itself works fine even when the ea server is crashed and no data is passed between the server and client. Only save, and change city/region stops working.

Comment: Re:I wish I had pirated it lol (Score 3, Interesting) 511

by TheSunborn (#43110087) Attached to: In Wake of Poor Reviews, Amazon Yanks <em>SimCity</em> Download

All you really need to implement to pirate the game, is a service which can load/save the game. And then you can just return fixed values for the global marked place. Then you have a perfectly working pirated game.

I don't know how complicated the load/save thing is, but If we are luckey, save just serialize the data and send it to the server, and load just get the same serialized stream back. If they do it that way, making a pirate save function should be rather simple. They did it for settlers 7.

Comment: Re:"Always on" is "Mostly Unusable For Several Wee (Score 4, Informative) 511

by TheSunborn (#43110057) Attached to: In Wake of Poor Reviews, Amazon Yanks <em>SimCity</em> Download

The servers are handling a part of the game which is not that important. That is: The global marked placed. And while it is an interesting feature it is in no way vital to the system.

And I know this because I bought the game, and managed to play half an hour with absolut no internet connection and it worked fine. But then I wanted to change region, and I have been unable to play since. But once you get a game started you can normally play until you want to change to a new city. (Or the game crashes, or you look the wrong way).

 

Comment: Re:Not an EA fan but (Score 1) 569

by TheSunborn (#43094225) Attached to: SimCity 5: How Not To Design a Single Player Game

Where did they ever give that answer? All the beta testers have reported that if you pull your your internet cable, the simulation will continue to run fo at least a couple of minutes on the local machine. So I don't think the servers are running any simulation other then the global "Take import/export from all cityes, and calculate a global marked price for resources" part.

Comment: Re:So, Oracle managed to mess this one up as well. (Score 1) 165

Sorry, but I will keep using java server side. I just hope I don't end up with that "Ask toolbar" on our server :}

And the fact that the Java Security Manager is as safe as an open door, does not really matter because 99% of all server side java code, is running without the security manager. (Or at least without relaying on the Security manager to provide security).

 

If I want your opinion, I'll ask you to fill out the necessary form.

Working...