Slashdot Mirror


3D Freeciv-Web (Beta) Released (freeciv.org)

It's the open source web version of the classic Linux strategy game, and now Slashdot reader Andreas(R) -- one of its developers -- has an announcement. Now the developers are working on bringing the game to the modern era with 3D WebGL graphics [and] a beta of the 3D WebGL version of Freeciv has been released today. The game will work on any device with a browser with HTML5 and WebGL support, and three gigabytes of RAM... It's a volunteer community development project and anyone is welcome to contribute to the project. Have fun and remember to sleep!
The developers of Freeciv-web are now also working on a VR version using Google Cardboard, according to the site, while the original Freeciv itself has still been maintained for over 20 years -- and apparently even has its own dedicated port number.

68 comments

  1. do you really need VR support? by Osgeld · · Score: 3, Interesting

    its a empire building game, even the use of 3d is on the unnecessary side

    1. Re:do you really need VR support? by Anonymous Coward · · Score: 2, Interesting

      I did a 3D version of Nethack for my senior design project. The characters were rendered at different angles, so you got depth perception with the goggles. I added extra emphasis to the pipes so you knew how tall the walls were!

    2. Re:do you really need VR support? by umafuckit · · Score: 1

      its a empire building game, even the use of 3d is on the unnecessary side

      They have a 2D version.

  2. 3 GB of RAM?! Does it work in FF? by Anonymous Coward · · Score: 0

    The game will work on any device with a browser with HTML5 and WebGL support, and three gigabytes of RAM...

    Does that mean it won't work in Firefox? Because on my computer, Firefox routinely uses far more resident memory than that. That's even with all plugins and extensions disabled.

    1. Re:3 GB of RAM?! Does it work in FF? by Andreas(R) · · Score: 3, Informative

      The game works nicely in Firefox and any other modern browser. It requires that your computer or mobile device has at least 3 gigabytes of memory, and will not work so well if you have less.

    2. Re: 3 GB of RAM?! Does it work in FF? by Anonymous Coward · · Score: 2, Insightful

      Why does it require so much memory? Is it because JavaScript is such an awful and inefficient language? It makes me laugh when JavaScript clones of old DOS games need multiple gigabytes of memory, while the original DOS games ran fine with only 1 or maybe 2 MB!

    3. Re: 3 GB of RAM?! Does it work in FF? by Anonymous Coward · · Score: 1

      I'm not defending JS or claiming there's no waste because of it, but comparing the 3D version of this game to a DOS game is like wondering why Rogue needs less processing power to run than Quake.

    4. Re:3 GB of RAM?! Does it work in FF? by Anonymous Coward · · Score: 0

      i have probably like a thousand tabs open and it still uses like 2 gigs + some. But i do have NoScript.

    5. Re: 3 GB of RAM?! Does it work in FF? by Anonymous Coward · · Score: 1

      I have AAA games on my hard drive that will run on a system with 3 GB of RAM and don't look like games from the early 1990s.

    6. Re: 3 GB of RAM?! Does it work in FF? by Anonymous Coward · · Score: 1, Insightful

      Look at the screenshot in the announcement article.

      Really, I insist that you take a look.

      The graphics quality is rudimentary.

      Somebody else described it as looking like "from the early 1990s". At first I thought that was an exaggeration, but it isn't. To be blunt, it looks worse than games from that time period.

      I don't see how anyone can justify 3D graphics of such a low quality requiring 3 GB or more of RAM! It's unjustifiable, as far as I'm concerned.

    7. Re: 3 GB of RAM?! Does it work in FF? by Anonymous Coward · · Score: 0

      Then just install the non-browser version of freeciv. Like everything else in life, there are tradeoffs. JS might suck up a lot of memory, but then it allows you to play games without installation of the game or dependencies other than the browser.

      If 3GB RAM is much of a barrier for you, there are other options. But for many of us with memory to spare, the effort of installing a game is larger than the near zero cost of having 3 GB free. YMMV, and you can do your own cost benefit comparison instead of assuming everyone else has to has to be the same as you.

    8. Re: 3 GB of RAM?! Does it work in FF? by Anonymous Coward · · Score: 0

      Uh, not it doesn't. Not early 90s. Civ 2 was 1996, and take a look at that compared to this.

    9. Re: 3 GB of RAM?! Does it work in FF? by functor0 · · Score: 0

      Are you on Windows? Last I heard, there's still no 64-bit version of Firefox on Windows.

    10. Re: 3 GB of RAM?! Does it work in FF? by Anonymous Coward · · Score: 0

      Aesthetics has no relevance to the argument. Symphony of the Night, which runs on the laughably obsolete hardware of the PSX (and, just barely, on the Saturn), still looks better than some modern games that require more than 4gb of VRAM. That does not mean it's logical to complain that the latter game wouldn't run on PSX-tier hardware.

    11. Re: 3 GB of RAM?! Does it work in FF? by dbIII · · Score: 1

      So?
      It's graphics quality is better than Minecraft and Tetris.
      It's a tile based game so being able to tell one square from another is the aim of the graphics, just as with Minecraft and Tetris you want to distinguish blocks.

    12. Re:3 GB of RAM?! Does it work in FF? by fuzzywig · · Score: 1
      I opened the same bunch of tabs in all the browsers on my computer (Win10 x64) and had a look at how much memory they were using. All the browsers were 64 bit, and Firefox and Chrome both had several plugins, including uBlock and Lastpass.

      Memory used in MB:
      Firefox 662
      Chrome 780
      Edge 1012
      IE 1056

      So for me, Firefox is actually using the least memory, I suggest you test with the browsers available to you, with a selection of tabs that reflects your usual usage.
      I did find that over time as I opened new tabs and closed others that memory usage crept up, but I can't be bothered to spend a couple of hours using Internet Explorer just to see how it's memory usage balloons.

  3. Feedback is welcome! by Andreas(R) · · Score: 4, Informative

    I'm one of the developers of Freeciv-web. Please post your questions and feedback here or on the Github issue tracker. This is a beta-version, so there are many things to improve in the game. If you are a good developer or 3D artist perhaps you would be interested in helping improve the game also. Creating an open source game like this can be a lot of fun!

    1. Re:Feedback is welcome! by Anonymous Coward · · Score: 1, Insightful

      Any particular reason you can't manage to make it more memory efficient? I've done quite a bit of WebGL work, with both three.js and our own 3d libraries. While three.js isn't very efficient (compared to less general solutions) I can't imagine how poor the rest of the implementation must be to require 3 gigs of ram!

      Is it something else, like tooling? Are your models just unnecessarily complex? Judging from the screenshots, that couldn't possibly be the case.

      Something, I don't know what, has gone horribly wrong with your project.

      You could blame the language if you want, but we've produced far more impressive things that require significantly fewer resources (1% of the memory requirement, for example.) using the same tech.*

      I can only hope that you and your team are already well-aware of this problem and are actively working to remove whatever absurdity lead to these insane client requirements.

      *(Well, not jQ or jQUI, as those are so obviously oversized and inefficient. They add no value. It's a massive waste, and an easy thing to cut out. Of course, with your ridiculous client requirements, it's just a drop in the bucket.)

    2. Re:Feedback is welcome! by Andreas(R) · · Score: 2, Informative

      The game itself uses about 800 MB of RAM on a typical map. On mobile devices with just 2GB of RAM the game will crash. 3 GB of total RAM always works without any problems. Most gaming devices have more than 3 GB of RAM these days anyway.

    3. Re:Feedback is welcome! by Anonymous Coward · · Score: 0

      There's no reason a game like this should have memory problems on platforms from 15 years ago, never mind modern platforms. 3GB of ram is ridiculous as that's right up there with what most modern AAA titles use.

    4. Re:Feedback is welcome! by Anonymous Coward · · Score: 1, Insightful

      Have you done any memory usage profiling to find out why it needs 3 GB of RAM?

      If you haven't, you really should! Something sounds very wrong for a relatively simple game with simple 3D graphics to be using so much memory.

      If you have, then you should be able to explain to us exactly why it uses so much memory. You should be able to give us details about the data being stored, for example, and any data structures being used.

    5. Re:Feedback is welcome! by Billly+Gates · · Score: 1

      Not phones

    6. Re:Feedback is welcome! by Anonymous Coward · · Score: 1

      I put money on overhead from those frameworks.

    7. Re: Feedback is welcome! by Anonymous Coward · · Score: 0

      My four year old cheap phone has 3GB RAM...

    8. Re: Feedback is welcome! by Anonymous Coward · · Score: 0

      Which one?

    9. Re:Feedback is welcome! by Hasaf · · Score: 1

      I actually wanted to play Free-Civ last summer. However, the program is randomly scattered over a half dozen sites. Can you put it in one place where a person can just download and install it?

      I finally just gave up on it.

      I am using OSx if that matters.

    10. Re:Feedback is welcome! by kamapuaa · · Score: 1

      Are you embarrassed to be associated with a product that looks like this?

      --
      Slashdot: providing anti-social weirdos a soapbox, since 1997.
    11. Re:Feedback is welcome! by schweini · · Score: 1

      Is there an ETA for the VR support? If it uses WebVR, will it also work with the HTC Vive/Oculus?

    12. Re:Feedback is welcome! by Anonymous Coward · · Score: 0

      you make me want to fire up my 586 and play civ II.

      NIls K. Hammer

    13. Re:Feedback is welcome! by Anonymous Coward · · Score: 1

      deeply troubling? Who the fuck are you. Its a free game. Get over yourself already.

    14. Re:Feedback is welcome! by Anonymous Coward · · Score: 0

      The graphics are pretty awful. I don't expect fancy, but at least make them look nice.

      UI seems very awkward to use too.

    15. Re:Feedback is welcome! by unixisc · · Score: 1

      I'm one of the developers of Freeciv-web. Please post your questions and feedback here or on the Github issue tracker. This is a beta-version, so there are many things to improve in the game. If you are a good developer or 3D artist perhaps you would be interested in helping improve the game also. Creating an open source game like this can be a lot of fun!

      Just out of curiousity - are you also associated w/ the main FreeCiv project? How similar/different is FreeCiv-web from FreeCiv, other than being run from a browser?

      I am not a developer, but FWIW, there is one suggestion I have about the game. The current FreeCiv game (2.5.5) is at par w/ Civ 3. Can you introduce things like diplomatic, cultural and religious victories as options to the game? In short, pick some of the more interesting aspects of Civ 4-6, and introduce them here. One major advantage that FreeCiv has over the mainstream Civs (aside from being FOSS) is the number of 'nations' - everything from Khwarezm to Russia. Maybe associate certain things w/ each nation. Also, increase the number of architectures that each nation models on: 5 is too little.

    16. Re:Feedback is welcome! by unixisc · · Score: 1

      There is a version of FreeCiv on the Android - for tablets. It's however incredibly hard to win even at the easiest levels. The downloadable versions are a lot more palatable

    17. Re:Feedback is welcome! by Anonymous Coward · · Score: 1

      Sounds like a nice project for you.

    18. Re:Feedback is welcome! by inasity_rules · · Score: 1

      I dunno, I kind of dig the retro look. Reminds me of Win95 games. Not sure what's up with the ram usage though.

      --
      I have determined that my sig is indeterminate.
    19. Re: Feedback is welcome! by Anonymous Coward · · Score: 0

      I suspect he only has one four year old.

    20. Re:Feedback is welcome! by Raenex · · Score: 1

      Sounds like a nice project for you.

      While open source is all about scratching your own itch, I'm still very surprised the project has reached this state with regards to memory usage. Did not one of the developers think to profile memory usage and see what the fuck is going on?

    21. Re:Feedback is welcome! by BlindMaster · · Score: 1

      I like the game, but wish to have more ways to win.
      I wish the research chart and battle units can be further extend (maybe into the future with different directions?).
      Anyway, those are content suggestion, rather than technical suggestion, maybe not as useful.

  4. cloud.. ugh.. by Anonymous Coward · · Score: 0

    I'll pass..

  5. React? Angular? NoSQL? by Anonymous Coward · · Score: 0

    Which hip new web tech does it use?

    1. Re:React? Angular? NoSQL? by Andreas(R) · · Score: 4, Informative

      The client is using JavaScript, jQuery, jQuery UI and the Three.js 3d engine. The server is running a Java web application on Tomcat, the Freeciv server is implemented in C and there are processes which use Python.

    2. Re:React? Angular? NoSQL? by Anonymous Coward · · Score: 0

      Maybe if it was a native application it wouldn't take 3GB for 1998 era graphics.

    3. Re:React? Angular? NoSQL? by ssam · · Score: 1

      You can install the native version from http://www.freeciv.org/ Should run fine on just about any computer made in the past 15 years.

  6. Not strictly an HTML5 freeciv question: by Anonymous Coward · · Score: 0

    But how many different savegame/client/server communication breakages have there been in freeciv over the years?

    I stopped playing around 2.3 or so after being unable to load a particularly long running savegame I had that was a couple years old. That had happened a couple times in the past, but without looking at the savegame datestamps and compiling multiple old versions to figure out which it worked against it seemed difficult to continue playing my old games, which got me to quit.

  7. hey there by alaamiahclean · · Score: 1

    Fantastic post.Much thanks again. Cool.

  8. IE 6 support? by Billly+Gates · · Score: 2

    This is your boss. Important clients use IE 6. Can we get it to work in IE 6 before the end of today?

    Thanks

    1. Re:IE 6 support? by epyT-R · · Score: 1

      Take the C code of the original freeciv and port it to activex.. haha

  9. AI by Princeofcups · · Score: 3, Interesting

    Everyone spends their time making a prettier game, whereas most of the players just want an AI that doesn't suck. I know, graphics are easy. The results are obvious. No one wants to spend time doing something hard that can't even be seen on the surface.

    --
    The only thing worse than a Democrat is a Republican.
    1. Re:AI by Anonymous Coward · · Score: 0

      Competitive players have given up on AI in general long ago. The only real challenge is playing with other actual people, otherwise you're just playing against a cheating AI and only developing anti-AI strategies.

    2. Re:AI by Anonymous Coward · · Score: 0

      No one wants to spend time doing something hard that can't even be seen on the surface.

      Worse, no one wants to spend time on something that will just piss off players if you do too well at it. If your AI is too good it ends up annoying the bad players and they'll complain :D

      Graphics are more generally acceptable as an improvement.

    3. Re:AI by Anonymous Coward · · Score: 2, Informative

      Dunning-Kruger in full effect.

      Good graphics are not easy. The results are not always obvious (e.g., shaders on TF2 or Civ6 are believed to be simplified but are rather complex in order to do a lot of trickery with the environment such as FOW representation and reveals)

      And if you believe no one spends time on AI, go to http://mobygames.com and look up your favorite AAA title. For most, if not all games that have a 70 or higher on Metacritic and require a computer to make decisions, there is at least one, if not a few, programmers dedicated *just* to AI.

    4. Re:AI by Anonymous Coward · · Score: 0

      Everyone spends their time making a prettier game, whereas most of the players just want an AI that doesn't suck. I know, graphics are easy. The results are obvious. No one wants to spend time doing something hard that can't even be seen on the surface.

      This is relevant:
      https://www.arago.co/hiro-freeciv

  10. Why 3D? by skam240 · · Score: 1

    If the game still looked anything like what I played as a kid in the 90's it certainly needed a face lift but what were they doing going 3D? The screenshots dont look good at all, wouldnt some really nice pixel art have looked a ton better and been about the same amount of work to make?

    --
    I ignore Anonymous Coward posts. If you want to discuss something, that's awesome. Log in.
  11. 2D maps are fine by ooloorie · · Score: 1

    I just don't get the desire for 3D interfaces for turn based strategy games like this. The move from text-based interfaces (Empire, 1970's) to 2D GUIs (XConq 1980's, Civilization, 1990's) was reasonable and improved the game experience. But I find the 3D interfaces that Firaxis introduced in the 2000's really made things worse.

    1. Re:2D maps are fine by drinkypoo · · Score: 1

      I'm still playing Civ 2 on XP in vmware because it has by far the best interface of any game of its type, worlds ahead of freeciv in terms of actual usability. (Being able to multiple-select and do different things in freeciv is very cool, mind you.) I can play civ so much faster.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  12. FreeCiv needs to catch up by unixisc · · Score: 4, Interesting

    I quite agree. The original Freeciv game is at par w/ Civ 3: we are now at Civ 6. While Freeciv has some great advantages over mainstream Civ games - like 500+ 'nations', they could use a few of the other advances that have been added to subsequent versions, like culture, religion and so on. It would even be nice if they had things like cultural victories, diplomatic victories, religious victories and so on, like in Civ 6.

    1. Re:FreeCiv needs to catch up by Oswald+McWeany · · Score: 2

      I quite agree. The original Freeciv game is at par w/ Civ 3: we are now at Civ 6.

      In some ways that might not be a bad thing. I haven't tried Civ6 yet, I'm waiting for the inevitable gold version at 1/4 the cost and loaded with all the expansions.

      Some of the "middle civs" maybe 2, but definitely 3, and 4, were amongst the best for playability and enjoyment. 5 was visually stunning, and no counter that UI has improved over time; but I feel playability peaked at 3, or 4 (with all expansions). 5 wasn't even playable until the 2nd expansion came out. It was a hideous joke at launch.

      I haven't played 6 yet, but I get the impression it's been dummy-proofed with the console market in mind, rather that a traditional civ game. I will buy it, I've played all the others, I'll just wait a little bit for the expansions.

      Freeciv being at a Civ 3 level might be perfect for those of us who care more about the game than the graphics. More about the fun than the User Interface.

      --
      "That's the way to do it" - Punch
    2. Re:FreeCiv needs to catch up by Anonymous Coward · · Score: 0

      Religious victories?

      What is a religiouc victory? Can you have Inquisitions and Jihads?

      Disclaimer: I've only played FreeCiv.

    3. Re:FreeCiv needs to catch up by unixisc · · Score: 1

      I quite agree. The first time I played Civ V, it was miserable. Actually, I just wanted to get G&K, but it was unplayable w/o the vanilla edition, so I bought that as well. That particular one was really lame.

      However, since then, there have been plenty of enhancements to it which make it currently better than either 4 or 6. Only thing I wish - that 5 & 6 had a scenario editor as well. Not b'cos I wanna cheat (even though I can do that), but to set up certain historical scenarios and play from there.

  13. FreeCiv vs Civ by unixisc · · Score: 1

    I have yet to digest Civ 6, since there are unreasonable restrictions on what we can do. In Civ 4, we had a scenario editor where we could edit anything - names of cities, civilizations, rulers - pretty much create a board w/ a set group of players, cities, religions, city buildings, et al. In Civ 5, the editor was gone, but there have been a lot of mods that have made it almost as flexible, while in the meantime associating each nation w/ certain attributes, like religion (e.g. if Islam hasn't been invented and the Arabs invent a religion, they get it, unlike in Civ 4 where whoever first discovers Divine Right gets it). Civ 6 is downright horrible - you can't edit the name of your ruler, nor the name of your civ. Like if you are Russian, you're stuck w/ Peter: no way to edit it to Katrina or Nikolai. Originally, even the city names were locked: if you wanted to start w/ Moscow instead of St Petersburg, you were out of luck. At least, that one's been fixed.

    About the 3D effects, in Civ 5, one has to go into 3D to see the status of the city, like if it's been secretly converted to another religion: it's not something that's visible in 2D, and you don't get a status report until the conversion is done. But in the meantime, in the 3D view, it shows a delayed status: like if you've adapted a policy, it goes away in the 2D view, but in the 3D view, it still prompts you to select a policy, but when you go into it, you see that it's already been done. Oh, and lets say you change the name of a city early in the game. Like let's say you're playing the French, and wanted to change the name of your capital from Paris to Versailles. Even after you've changed it, it'll still show you 'Paris' in 2D, but if you go to 3D, you'll see the correct name 'Versaille': it's only after Versailles has grown that you'll see the correct name. This is really a bug: if you change the name of a city, the new name is what should show up immediately, no matter what stage of the game you are in.

    I agree w/ you that 3D is less important to this game than feature improvements. As it is, FreeCiv is currently feature compatible w/ Civ 3: there is a whole bunch of stuff in versions 4-6 that could be imported. I'm not suggesting that everything be brought over lock, stock and barrel, but I am suggesting that some of the features, like religion, culture and the like, be brought in, and that we have several ways of winning in addition to conquest and scientific. Like cultural, diplomatic, religious, score, et al. I'd love to see those improvements brought in. It's nice that this game is being made available on the web, but given that it's FOSS, I don't think platform support is an issue here: I'm playing it on my new TrueOS system. Instead, make this game feature compatible w/ Civ versions beyond 3.

  14. gameplay by Anonymous Coward · · Score: 0

    That gameplay on this game is 50 years old and has not changed. who the fuck cares about 3D when the gameplay sucks?

  15. Hmmm by Anonymous Coward · · Score: 0

    My thoughts reading this:

    Now the developers are working on bringing the game to the modern era with 3D

    Sounds great, while graphics shouldn't be more important than gameplay, it is one of the things that keep turning people off from open source games.

    browser

    Do not want.

  16. Oh the simulated _Modern_ horror! by Anonymous Coward · · Score: 0

    Just install the damn thing you masochistic assholes! Modern == WRONG.

  17. interesting facts by JoKer_Destroy · · Score: 0

    a great love story between Spiderman and princess Elsa though fictional, but it could be what attracts viewers in the future (https://goo.gl/W2GO34)

  18. religion in civ by unixisc · · Score: 1

    In Civ 4, they introduced concepts like religion and culture, and in Civ 6, they introduced the concept of a religious victory. In Civ 5, a religious victory mod exists where if 65% of all cities worldwide (depending on the level you are playing) convert to a religion, the owner of that religion gets a religious victory. In Civ 6, it's one of 5 regular victory modes, which can be attained if you've converted all your enemy cities to your religion, making them unable to even resurrect their own religion, let alone convert you.

    In Civ 5, they have a unit called 'Inquisitor', which can eliminate all alternative religions in the city. As an example, let's say you are Arabia and owning Mecca, which has 5 Muslim citizens. Your enemy is the Byzantines, who are Christian, and who send Christian missionaries to convert your city. Every time a missionary strikes, you may see 1 or 2 of your citizens become Christian. If any religion has a majority in the city, as opposed to a plurality, the city converts to that. Let's say the Byzantines managed to make 3 of the 5 citizens Christian, Mecca would become Christian. But if you in advance created an Inquisitor, that inquisitor can reconvert all the infidels in the city back to Islam, w/o altering the population. In fact, even if your city had 3 Muslims and 2 Christians, you could still use the inquisitor to suppress the 2 Christians and convert them to Islam. Note that if you created the inquisitor in Mecca after it was converted to Christianity, you'd get a Christian inquisitor, and if you applied him, you'd end up wiping out your own religion in the city. So inquisitors should be built in cities that are still your original religion.

    Aside from missionaries, they also have prophets in Civ 5 (which are Apostles in Civ 6), who are much more powerful and can strike 4 times, converting entire cities to their religion. In Civ 5, prophets have the option of declaring a religious war. If such a thing happens, all civilizations and city states that follow your religion will declare war on your target, which cannot be one of your co-religionists. So Arabia could declare a religious war on Byzantium, but not on, say, the Muslim city state of Kuala Lumpur.