12 ms·
OpenSC2K – An Open Source Remake of SimCity 2000
- willsr 9y agoHmm - cool project. Don't want to be a buzzkill, but copyright? Should probably remove the assets to avoid a takedown.
- viraptor 9y ago> Includes assets and graphics extracted from the original SimCity 2000 Special Edition CD. These assets are NOT covered by the GNU General Public License used by this project and are copyright EA / Maxis. I'm including these assets in the hope that because the game has been made freely available at various points in time by EA, and because it's 24 years old as of publishing this project that no action will be taken. Long story short, please don't sue me! Long term, I plan to add functionality to extract assets from the original game files within this project.
- deleted 9y ago[deleted]
- LeoPanthera 9y agoAs an alternative, perhaps an artist could create new free assets for use with the engine, which is what happened with OpenTTD.
- ChrisSD 9y agoThat looks like thin ice. Basically they're hoping to remain too small for EA to bother with. IIRC, the usual workaround for asset licensing is to make an automated extractor for people who have the original game. This buys you time while you work on drop-in replacements.
- SXX 9y agoCertainly bad practice. If developers want automation it's better to suggested to download assets (or even do it automatically) from Web Archive. They're exempt from DMCA and it's trustworthy source. https://archive.org/details/SimCity2000_Special_Edition_Maxis-EA_Eng https://archive.org/details/SimCity2000_Special_Edition_Maxi...
- book_mentioned 9y agoI actually got 7/9th's of the way through doing this for the FMOD dependency of http://www.bay12games.com/ww1medic http://www.bay12games.com/ww1medic. Specifically: http://web.archive.org/web/20070806010730/http://www.fmod.org/files/fmodapi375win.zip http://web.archive.org/web/20070806010730/http://www.fmod.or...
- ascagnel_ 9y agoFrankly, I'm somewhat amazed that this is on archive.org. They may have a DMCA exception, but it's a bad look considering the game is still actively being sold on GoG and under copyright.
- SXX 9y agoI wouldn't argue about this exact file since it's might be a bit more recent, but that game is about 25 years old. Do you seriously think keeping it on archive.org is bad? It's very likely to not work on modern systems anyway (dosbox will work of course) and version from GOG likely wouldn't be installable on let's say DOS or Windows 95. And there is plenty of people who might want to run old games on some ancient PC for personal fun or for museum-like purposes. Another option for open source projects it's to just use demo version which is 100% legit way to get assets. Though it's not always possible because some demo versions don't contain whole assets that fully-featured engine would depend on.
- RandomInteger4 9y agoI immediately cloned it for this reason just in case. Wanted to make sure I didn't miss the opportunity to play this game again in case they did a take down. Still have the old games, but I haven't had the willpower to learn how to use Wine.
- louhike 9y agoSim City 2000 is on GOG, where it is playable on modern computers. They also sell Sim City 3000 and 4, without DRMs.
- Momquist 9y ago> Still have the old games, but I haven't had the willpower to learn how to use Wine. Maybe check PlayOnLinux? It provides a front-end to Wine and automatizes game installations via custom scripts. Basically, you select your game in a list, it installs it, then puts a launcher on your desktop. https://www.playonlinux.com/en/ https://www.playonlinux.com/en/
- cuckcuckspruce 9y agoMost SimCity 2000 discs come with the DOS version, the Windows 3.11 version, and the Windows 95 version. The DOS version runs just fine under DOSBox if you don't want to get into Wine too deeply.
- rage8885 9y agoThis is something I'm actively working on - I wanted to get an initial release out there but didn't expect this much attention so quickly! Hoping to have something out there to parse out the original game assets within a day or two.
- tgtweak 9y agoInteresting approach, looks like a map renderer for the moment. There's a cool dosbox emulated version here, payable in the browser: https://www.myabandonware.com/game/simcity-2000-1nf/play-1nf https://www.myabandonware.com/game/simcity-2000-1nf/play-1nf
- cpach 9y agoIt’s also available at the Internet Archive: https://archive.org/details/msdos_SimCity_Classic_1994 https://archive.org/details/msdos_SimCity_Classic_1994
- timdiggerm 9y agoNo, that's the original SimCity, the predecessor to SimCity 2000.
- Elzahir 9y agoOk, here's the correct link: https://archive.org/details/msdos_SimCity_2000_-_CD_Collection_1994 https://archive.org/details/msdos_SimCity_2000_-_CD_Collecti...
- subcosmos 9y agoIm trying to work on a startup right now ... and you just nerd sniped me for the next 6 months! Thanks! (Seriously, this is amazingly awesome work. Thank you for the nostalgia. I think that I learned basic EVERYTHING by playing that game in my youth)
- LeoPanthera 9y agoAside: I think this is the first game, or at least proto-game, I've ever seen written in Electron.
- chungy 9y agoIt's pretty trivial to run the original in DOSBox or Wine too... an open source remake has some appeal but when it requires many gigabytes more of memory to run when the original can do with 1MB, it's really a bit of a showstopper.
- jagger27 9y agoIt's a bummer—I don't know about showstopper, though. The usual first goal for remakes like these is to get around the limitations from DOS and whatnot. Things like resolution and map size are easy targets and improve gameplay a bunch. Perhaps some tools and ideas from this project will spark interest in a native OSS remake.
- willvarfar 9y agoSo its just Javascript? Why run it on Electron? Does it not work in a normal browser?
- petepete 9y agoEarly versions of CityBound[0] were written in Electron until the author had a re-think and restarted the project C++, then a few months later, again in Rust. [0] http://cityboundsim.com/devblog http://cityboundsim.com/devblog
- samwestdev 9y agoHow does SimCity2000 render the terrain? I know it's 2d isometric but any good article on the actual data structure/algorithm?
- peg_leg 9y agoIt reticulates splines
- TapamN 9y agoI'm also actually working on an unreleased to-be-open-source SimCity 2000 clone in C++ (which I am planning to call 21st Century Micropolis, after the existing, official open-source SimCity Classic release called Micropolis), so I've looked into how SC2K renders the screen. I'll describe it for drawing the whole map, since it's simpler, but you'd want to modify it to draw only the visible parts in an actual game. Directions are relative to the screen, not the grid. 10 Clear the screen and set a pointer to the top corner of the map 20 If the pointed tile belongs to terrain or the leftmost tile of a building, draw it on top of what we already have on screen. (Note that for tiles that belong to a building, but aren't the leftmost tile, we do nothing) (1x1 buildings always count as a leftmost tile) 30 If we are at the last row, exit 40 If we are at the end of the row, go to the leftmost tile of the row below, and jump to 20 50 Otherwise step one tile to the right, and jump to 20 That's it. One wrinkle in getting the exact same output as the original has to do with the magic eraser tool, which basically hacks the map and forcibly resets a tile to it's blank state, even if it's supposed to belong to a building. If the leftmost tile of a 2x2, 3x3, or 4x4 building has been magically erased, the entire building disappears. If you magic erase a tile below the leftmost tile, or to the right of it, you will draw ground tiles over the building. Erasing tiles above the leftmost tile's waterline has no visible effect. Magically erased tiles can also have things built onto them. This algorithm gets these cases correct.
- samwestdev 9y agoThanks! How do you handle different terrain heights?
- 9y ago
- willvarfar 9y agoIts very questionable to include the assets. The bottom of the readme says: > Includes assets and graphics extracted from the original SimCity 2000 Special Edition CD. These assets are NOT covered by the GNU General Public License used by this project and are copyright EA / Maxis. I'm including these assets in the hope that because the game has been made freely available at various points in time by EA, and because it's 24 years old as of publishing this project that no action will be taken. Long story short, please don't sue me! Long term, I plan to add functionality to extract assets from the original game files within this project. The normal way for these open-source engines work is to insist that the users get the artwork from another source.
- chungy 9y agoEA is actively selling SimCity 2000 at least on GOG.com. With that in mind, I think there can be no real gesture of goodfaith on the author's part. It's lazy, maybe just the "easy way" to do it in the beginning, but when the game is being actively sold, it's also slimy.
- colechristensen 9y agoI don't think "bad faith" and "slimy" should really apply to 24 year old game assets. I value useful creation much higher than dated intellectual property. Or in other words, I do not support long-tail profit and control of any creative work.
- meddlepal 9y agoThat's fine, but when you get sued into oblivion don't come complaining that you didn't know it wasn't OK. Lobby for law changes if you don't like the law.
- chongli 9y agoI don't think anyone here is claiming that the author is legally in the right. This is a moral question and labels like "slimy" and "bad faith" are moral labels, not legal ones.
- romanovcode 9y agoGotta say 21 FPS not very pleasant to game with.
- oneeyedpigeon 9y agoIs it really that noticeable? I don't remember ever watching a 24 fps film thinking 'this is jerky'. Is it more about the lag between input and response than any jerking?
- romanovcode 9y ago> Is it really that noticeable? Oh yes, it sure is. > Is it more about the lag between input and response than any jerking? In this example - Yes. In 3d games it would be visible jerking.
- Crespyl 9y agoIn a low-fi "turn based" game like SC, it'd be pretty tolerable as long as the cursor still moves at a normal speed. Anything with more animation or especially real-time input like in a first person game, if run at < 60FPS is immediately noticeable, and below 30FPS quickly becomes entirely unplayable. Additionally, in the past I didn't think 24FPS movies were jerky, but now that I've started looking, there are lots of scenes that definitely look stuttery to me. In particular, watch for "smooth" panning shots and see how the farther background elements will jump and stutter across the screen. Excessive motion blur helps to hide some of the problem, but there's a limit to what the filmmakers can really do. There's a lot of cinematography rules to reduce or hide the problem, but that comes with cutting yourself off from lots of things you might otherwise want to do with the camera.
- amyjess 9y agoOn the subject of movies, I remember hearing somewhere that Bruce Lee had to slow himself down for the cameras because if he moved like he actually fights, the 24fps cameras would just pick him up as a blur. I'd love to see a martial arts movie shot at 60fps. That sounds like it would be the perfect use case for 60fps. On a similar note, I understand that a lot of sports are broadcast in 60fps for this reason too.
- blt 9y agois there source code to SC2K anywhere? If not, won't it be really hard to even approximate the simulation behavior?
- pjc50 9y agoIt could be reverse-engineered from the original binary, although that's very time-consuming.
- rage8885 9y agoThere is no source code anywhere, unfortunately. I'm planning to approximate it the best I can based on information available online over the years and observing game behavior. In a lot of ways it's a fairly simple game but still has quite a lot of depth. My priority right now is getting rendering and some basic interactions (plopping buildings, networks, etc..) working and then move to implementing the simulation on top of that.
- Quequau 9y agoI enjoyed the first SimCity and I really enjoyed SimEarth. However, at some point I really stopped enjoying SimCity... and I'm not sure if it's that the game got more obsessively micro-managing or I just grew out of that style of game play entirely.
- meddlepal 9y agoClassic, SC2K and SC3K were Will Wright games and didn't stress too much on the city micromanaging gameplay. They were plain and simple city builders. Things changed with SC4. Weirdly SCS and the last failed SimCity are probably closer in gameplay design and feel to the older titles than SC4 but the community hated them.
- Fnoord 9y agoHow do these official Sim City games compare to the newer game Cities: Skylines. That appears to be the spiritual successor. I like that that doesn't require an always-on connection, it also seems to have good reviews (87% on Steam) but how does it compare to the official Sim City games?
- meddlepal 9y agoI'm not big on Skylines. It looks very pretty, but the agent-simulation model has a lot of issues versus how the older SimCity games worked. To work around the quirks of the "every sim is independent" aspect you have to do weird things with city design that feel counter intuitive for various reasons... for example, who does a city of 50K need a mass transit system? Garbage management has issues too. I will say this though, a more experienced Skylines user should comment. I bought it early on, played it for a little bit and went back to SC3K and SC4... dusted it off again and played for a little bit more but went back to SC3K again. Some of these issues may have been addressed by now.
- amyjess 9y ago> for example, who does a city of 50K need a mass transit system? I think that has more to do with the fact that the game is developed by a European studio (Finnish, IIRC), and in Europe even smaller cities have decent mass transit systems, so it makes perfect sense to them that you should put mass transit in a city of 50K. Edit to add: Doing a SimCity-style fixed grid layout with two-lane roads is a disaster in Skylines because it's a disaster in real life. There's a reason why real downtown areas are horribly congested. If you set up a proper street hierarchy with arterials, collectors, and local streets, you'll have much better traffic flow, just like in real life. The SimCity games never really cared much for letting you build different types of streets (SC4 came close, but not to the extent of Skylines), and the game itself made you place everything on a grid where every tile matters, diagonals are a waste of space, and curves are close to impossible. But Skylines has several different street types built in, and the game itself uses a more flexible layout engine that doesn't penalize you for doing curves and diagonals. Also, the traffic AI is just poorly coded, and there are mods to replace it with better, such as Traffic Manager: President Edition. It's not a problem with the agent system; it's a problem with poor AI programming. Here's a video I stumbled on comparing the vanilla traffic AI with the TMPE AI across various different types of intersections: https://www.youtube.com/watch?v=yITr127KZtQ https://www.youtube.com/watch?v=yITr127KZtQ The first thing that jumped out at me is that the vanilla AI just doesn't know how to handle traffic lights. Some mods might as well be requirements for playing the game, and TMPE is one of them.
- baystep 9y agoI was actually making an open source sim city clone in JS myself a while ago. Didn't get this far at all, but I was mostly in it to test if I could get async updating from the simulation portion. Essentially doing threading in JS. Which I was somewhat successful in using Web Workers and shared buffer arrays, would be interested in helping with this project. Unfortunately in my research I didn't find any concrete documentation on how the simulation algorithm actually works, so I doubt this would end up a direct clone on SC2K.
- erikrothoff 9y agoIn a similar vain, check out Open Red Alert: http://www.openra.net/ http://www.openra.net/ At my previous job we used to play it every Friday, excellent remake of a great game.
- sethgecko 9y agoMy favourite game of that era is Transport Tycoon which also has an open source remake https://github.com/OpenTTD/OpenTTD https://github.com/OpenTTD/OpenTTD
- meddlepal 9y agoNot free or open source but you should check out Jan Zelenys Mashinky on Steam if you want a more modern OpenTTD.
- billpg 9y agoI once "won" SC2K when all my launch arcologies took off. However, I was busy fixing the city's plumbing (the buildings are hidden so you can deal with the pipework) and I missed it. I tried switching mode but it wouldn't let me until it finished.
- burlesona 9y agoHaha that’s brutal :)
- ramon 9y agoI love the revival of these classic games, they're so cool and awesome! I remember I had this SimCity 2000 CD somewhere, imagine now being able to install it everywhere is so great for the creators of these games, these guys should be proud of making such a thing!
- theandrewbailey 9y agoSimCity 2000 is one of the few original discs that I kept from when I was a kid. It came in handy when I built a Windows 98 machine a few years ago.
- erikb 9y agoAh dang. SC3K would've been more interesting.
- jelv 9y agoopenage http://openage.sft.mx/ http://openage.sft.mx/ Free (as in freedom) open source clone of the Age of Empires II engine (work in progress)
- mixedmath 9y agoI'm sort of stunned at just how few lines of code are necessary for this remake to work. It's just a couple thousand.
- collyw 9y agoDid you ever see Elite? That ran on my Acorn electron with its whopping 32Kb of memory. My CV takes up more disk space than that these days.
- squeaky-clean 9y agoIt's not a complete remake yet, right now it can just load and display cities. > Currently a lot remains to be implemented but the basic framework is there for importing and viewing cities. Lots of stuff remains completely unimplemented such as the actual simulation, rendering of many special case tiles and buildings, support for zoom levels and anything else that exists outside of importing and viewing.
- mixedmath 9y agoAh, I see. Indeed, I didn't read closely and missed that. Thank you.
- qwerty456127 9y agoWould be great if it could use SQLite and Electron already installed in the system instead of downloading/building them from the Internet sources unless that's really necessary (I actually find it strange node/electron still don't take care of this by integrating SQLite int their standard APIs anyway). The window just shows an empty brown field and nothing else, I could find no "start new scenario" or anything like that in the menu. Otherwise the idea is amazing. Surely SimCity 2000 is one of the greatest games ever and I can't wait for it to be implemented and extended as far beyond what it originally was as possible.
- kodablah 9y ago> Would be great if it could use SQLite and Electron already installed I don't understand what this means. These are usually application building components, not installable libs/applications. What do you mean be use the ones already installed? How do you install either of those "in the system" for use by multiple apps? Or do you mean the NPM cache which I figured it did leverage? Maybe I'm misunderstanding your statement?
- qwerty456127 9y agoI mean I already have sqlite3 executable in /usr/bin and the libraries wherever they are meant to be located. AFAIK Windows 10 comes with SQLite within $PATH too. I don't really code JavaSctipt so I am not sure but I think it probably is not really hard and probably is a more "right way" to detect SQLite binaries already available this way and use them than download/compile it for every new application using it. Of course it doesn't really matter but it would feel good for "unix way" perfectionists at least :-)
- hangonhn 9y agoThis may be a dumb question: How is it that in recent years small groups of programmers, sometimes just one, are able to recreate games that used to take a whole studio? Is it the availability or power of new open source tools? Did hardware advancements help (you can be more inefficient)? Is it the spread of knowledge and skills? Anyone who knows more care to enlighten? Thanks in advance.
- protomikron 9y agoSometimes they don't ship the artwork, like tiles, but "just" the engine. Not that this lessens the achievement, it is still impressive.
- hoopism 9y agoThis is lacking any simulation... and a number of other important features (as the author state very clearly BTW... so I am not diminishing their work). In this case I would say the advancement of libraries and tools make efforts like this substantially easier than back then.
- stereo 9y agoporntipsguzzardo ardo ardo