When Bradshaw said offline SimCity required "significant engineering", she was right - Maxis | PCGamesN

When Bradshaw said offline SimCity required "significant engineering", she was right - Maxis

SimCity offline has been a distant hope for the best part of a year.

In the 10 months since SimCity’s release, a formula has been developed for effective protest against its always-online requirement. First, complainants point to the mod released shortly after the game itself that had the game working offline in truncated form. Then, they point to former Maxis VP Lucy Bradshaw’s assertion that an offline mode wouldn’t be possible “without a significant amount of engineering work”. Somewhere between those two points, they find evidence of malevolent intent.

The thing is, says Maxis lead engineer Simon Fox, “she’s right”. It’s taken a dedicated team six and a half months of rewriting “core parts of the game” to make single player SimCity make sense.

Fox and his team began work on an offline mode for SimCity in August - “as soon as practical after launch”. In an elucidative blog post, he explains that the game was originally designed so that “every action had an effect on other cities in your region”. As a consequence, its entire architecture was built around communication between the player’s PC and EA’s servers.

“So yes, while someone was able to remove the ‘time check’ shortly after launch, they were unable to perform key actions like communicating with other cities that they had created locally, or with the rest of their region(s), or even saving the current state of their cities,” said Fox. 

“I wish it were as simple as flipping a switch and telling the game to communicate with a dummy client rather than our server, but it’s more than that. Entire calculations had to be rewritten in order to make the game function correctly.”

SimCity’s total reliance on its servers to keep its cogs going meant that Fox and team had to rewrite “the entire system”, translating the simulation from Java to C++. They’ve had to write code from scratch to produce region data locally.

“The algorithms governing trading between cities needed to be retuned in order to make the behavior between cities more responsive for this type of play,” explained Fox. “This in itself required major optimizations in order to run the simulation locally. 

“We have an obligation to make the game fun and functional on all specs of machines. We wouldn’t want someone who was enjoying the Multiplayer game to find the Single Player game crippled due to poor optimization.”

Most parts of the game that once pinged the servers for help now do the same client-side. But some elements needed to be stripped out entirely - including code for trading, social features, leaderboards, achievements and the global market. 

“All without crippling the Multiplayer game,” notes Fox.

But now the work is done. Maxis are in the final stages of testing, and will push out the single player mode in SimCity’s upcoming update 10. Whisper it - but have they corrected a critical mistake too late?

Thanks, Kotaku.

Sign in to Commentlogin to comment
Htorne Avatar
1 Year ago

I might be going back to the game giving it a try.

Shriven Avatar
1 Year ago

I may purchase it.... potentially.

rci Avatar
1 Year ago

Of course it took "engineering", but not because it's hard to make simulated cities work on a PC... it is ONLY, and I mean ONLY, because developers wrote code that made the assumption (because they were told so), that the game would absolutely be on-line. This doesn't change things in any serious technological way... but it's just that the code breaks and it has to be patched in such a way as to....

... still work right in on-line mode as well... so when you make LOCAL changes, those changes don't:

#1 - blow up the on-line play

#2 - allow for people to "cheat" with modified local data.

When it was controlled, strictly, by EA servers... they had the comfort of knowing that modified user data was nearly impossible... it's not the wild west.

Opening up off-line, whilst still allowing on-line, suddenly makes the west wild and very much untamed again...

But it has nothing to do with any difficulties in city building code.