Lurker News
I've seen some interests in (simulation) video games here on HN so I thought I'd share a short version of our story.

More than 6 years ago, me and my friend from university were playing around with an idea of making a game we always wanted to play. We worked on it on weekends but the progress was quite slow, especially due to so many dead ends and wasted effort.
Eventually however, we solidified our direction and decided to take the risk to resign from our well paid SWE jobs and work on it full time. It took more than a year but yesterday we have finally released it on Steam: https://store.steampowered.com/app/1594320/Captain_of_Indust...
I am still not sure if this was a good decision financially, but unlike in a corporate environment, I am so much happier working on a product that I can put my love into and see people enjoy it, see my direct impact, and be able to make big decisions (although this also adds a lot of stress).
I also quite enjoy the added SWE challenges. I had to write so many complex algorithms (path-finding, logistics, serialization, ...) and optimize things down to bits (shaders, compression of in-memory data, ...) that were rarely required by my corp job.
Anyhow, this is getting a little long, feel free to ask any questions, I will do my best to answer them.

Comments (279) 95 threads

Sohcahtoa822 replies#
I bought it last night and played for about 5 hours and can't wait for my work day to end today to get back into it.

Overall, I'm pretty happy with it. Factory building with a dash of colony sim mechanics. My only criticism is that the tutorial is a bit lacking and basically info-dumps a lot of "what" without a lot of "why". If I didn't have experience with other factory building games, I'd probably be completely lost. It'd be nice if the game guided you more through the first couple tech tiers.
It was also a bit frustrating at first with how expensive conveyer belts are, but then I had a light-bulb moment where I accepted that this is not Factorio/DSP/Satisfactory, and that I don't NEED conveyer belts everywhere. In the early game, trucks are cheap and can easily handle the load until I've got steady production of Construction Parts II.
The Recipe window is REALLY nice. I love it! It makes planning so easy! My only request would be to make it so you can click on a product and have it take you to the recipes involving it.
I also really like the design choice to not have to lay power lines everywhere. In other factory games, it's such a chore and not at all a fun mechanic.
Looking forward to seeing how the game evolves over time.

iliketrains2 replies#
Aww, thanks! We heard lots of feedback about tutorials and it is our priority to improve them.

> My only request would be to make it so you can click on a product and have it take you to the recipes involving it.
Try right-click!
> I also really like the design choice to not have to lay power lines everywhere.
Haha, this was removed due to time constraints. We were thinking to have it introduced in some lightweight fashion, like substations that cover large area, but this is still in "thinking" phase.

munk-a2 replies#
Power tends to be interesting when it can be used for logic control - having some trigger that causes a portion of the industry to go dark to focus on some rarely used portion - too many games throw power in just because it's everywhere in factory sims.

As you continue to develop the game I'd suggest you make sure the features you add are always accompanying some interesting feature expansion - one thing that always struck me as odd in Satisfactory was the inclusion of combat - you, the player, interact with enemies only when exploring the world and it adds relatively boring stress - it isn't and doesn't try to be combat focused (like factorio where the factory exists, for a long time, solely to better defend the factory) instead it's a smattering of FPS gameplay in an otherwise unrelated feeling game. So, you need to sort of choose between gameplay or simulation focused - EU4 might be an example you're familiar with where the earliest iterations were strongly focused on simulation with flavor events driving most of the gameplay... and, over time, it has shifted to focus more and more on fair mechanisms - it still has very rich feeling flavor, but the flavor is always secondary to the gameplay. Choosing to focus on either mechanics or flavor and seeing the other as a bonus that will enrich the experience is extremely valuable.
Congrats on the game! I've played maybe five hours of it last night and look forward to learning more of it.

Sohcahtoa828 replies#
Oh yeah, was never a fan of Satisfactory's combat. Did they ever make it optional?

I really wanted to enjoy Satisfactory, but found the first-person perspective made factory building tedious. I know they've made some QoL changes like adding a grid to make it easier, but...meh. It's a beautiful game, but so far DSP has been my favorite factory builder, but gimme another dozen hours and I'll decide how CoI compares in the longer game.

Continue this thread — 8 replies

setr#
I think it’s less about making a choice between one and the other, and more about committing to the features. Satisfactory could easily have a decent combat component to it (more specifically, the factorial model of automated combat makes perfect sense for a factory game, and 3D tower defense games are quite viable).

The problem with Satisfactory is they half-assed it — they didn’t commit to adding combat, they just tossed it in because why not. There’s nothing really stopping them from layering on combat mechanics without disrupting their current gameplay… they just need to actually do the full job, or not at all.
It’s not even unreasonable, as currently the game has no real driver for optimizing base layout or production rates beyond your personal interest in doing so.
Power, per your description, is the same; if you just toss it in because why not, it adds nothing to the game, and usually detracts from it instead. Ultimately any additional mechanic needs to be “worth its weight”, and should either alter your interaction with existing mechanics, or enhance those interactions.
Simply targeting “more simulation” isn’t sufficient justification on its own

imdsm1 reply#
As Tynan (RimWorld) said in his book, show, don't tell. Walk players through a tutorial without them realising its a tutorial. Look at Oculus First Steps for a great tutorial that doesn't feel like one.
Sohcahtoa82#
Portal has the best tutorial in game history.
april_22#
Also looking forward to how the game will progress over time!
japhib1 reply#
Looks awesome! Congrats on the release, and it seems like you're getting a pretty good reception so far as well.

A few questions:
1. How did you get all the assets for your game? Did you make them yourselves? I also work on games as a hobby, but I'm no artist so I struggle to get things looking as good as this game.
2. How did you decide to use Unity for your game engine? Did you consider any others, and if so, what was the deciding factor?
3. How did you organize your code in Unity, especially on a big, multi-year project like this? I find Unity scenes and prefabs get messy really fast. The only way around this I've found is to avoid using the scene/prefab stuff as much as possible and just focus on doing stuff with code instead. But I'd love to hear any strategies you have.
4. (Probably most related to the art question) How did you decide to make the game 3d? It just seems a lot more difficult than 2d so it seems like indies tend to avoid 3d when possible. And it definitely seems possible for a top-dow-view strategy game.

iliketrains3 replies#
Thank you!

1. All 3D assets and music was done by our contractors. All paid work. On average, one model is probably around $500.
2. C#. We both were familiar with it and it is a great language. Lots of nice features, easy to work with, lots of tools, less error prone (looking at you C++), has reflection (very helpful for serialization and code gen), and if you know what you are doing, it can be very performant (avoid allocations, use structs, etc).
3. Great question, yeah, our project is separated to code and graphics. All code is in separate project completely decoupled from Unity. Unity just gets a compiled DLL. Unity has only assets that are referenced by string paths. We also have a separate projects for "data", where all the game entities are instantiated and filled with data. Core project has just functionality with no data. The entire game is one "scene" in Unity, we manage everything internally (like main menu vs. game).
4. We started in 2D, but it seemed "lame", not good looking. Very quickly we started prototyping in 3D and that felt better. Especially the dynamic terrain and mining.

hoten1 reply#
So what exactly is the utility of Unity in this setup then?
iliketrains6 replies#
It is basically a big rendering library, providing C# APIs for rendering and sound. It also packages all assets, and can be used as editor.

Continue this thread — 6 replies

devortel1 reply#
> On average, one model is probably around $500.

That's a pretty impressive budget, there must be hundreds of models in the game.

davnn1 reply#
On a related note, how did you fund the development over such a long timeframe?

Continue this thread — 1 reply

hahamrfunnyguy1 reply#
It sounds like you had several different contractors working on it, so what steps did you take to ensure a consistent art style?
iliketrains#
Yes, multiple, three stayed with us for more than a year and are mentioned in Credits.

Initially, we asked them to do things "realistically", but not looking too brand new. Eventually, we had a good set of models that we could use as a style reference. We had to redo some models that were not fitting the style and we still have a list of models to improve.
One thing that we learned early is that all models need to have a common scale, otherwise details like doors look bad when scaled differently on each model. We have established a metric system, each tile in game is 2x2 m, all railings are 1m tall, all doors are 2m, etc.
Now we have a doc with all our notes regarding style and rules that we share with new artists.

fnordpiglet7 replies#
I’m a sad. No Mac. :-(

Looks really good. Congrats man. 84% overwhelmingly positive isn’t anything to sneeze at too. The experience must have been amazing. I learned more about computers in developing games that were 1% of what you’ve done. No matter the financial outcome you are winning at nerd life, which is the only life that matters (other than to your spouse your family and friends).

YSK_TECH1 reply#
+1 would defenitely pick up a copy with Mac support. It looks awesome!
taejavu#
Just adding another vote here, if there was mac support I'd buy it today. Without it I'm gonna add it to my wish list and wait for it to be 75% off.
aasasd3 replies#
I thought that by now game engines just have two extra checkboxes to ’build for Mac’ and ‘build for Linux’. Perhaps the signing requirements changed that, though.

Notably also, plenty of games work fine under Wine, but Steam client itself doesn't—on Mac.

Operyl#
It’s not a matter of just having a build, it’s also about being able to support the users who use that build.
iliketrains3 replies#
We do use Unity that does lots of heavy lifting for you regarding porting to other platforms.

However, it's not always that easy as checking a box. For example some shader optimizations may be specific to DirectX. File system works differently (no "User/Documents" on Mac). Or issues with native libraries.
Our game does work on Linux Proton though, that was a surprise to us.

duped1 reply#
It's pretty straightforward to have an abstraction for file systems with "special" file locations, it's been common in app sdks for at least a decade in a half. Unity doesn't have something like that?

Eg you would never use /tmp or %USER%/AppData, but call a function File::getPath(TempDirectory) or something like that.

Continue this thread — 1 reply

BlueTemplar1 reply#
Curious, why targeting DirectX, rather than Vulkan... it's not like you think about releasing on Xbox, do you ?

Continue this thread — 1 reply

danielheath1 reply#
Proton with DV9K is - for a few games - faster than native windows. I don't fully understand it, but apparently the process of automatically rewriting shaders from DX to Vulcan can speed things up.

Continue this thread — 1 reply

Sohcahtoa822 replies#
Cross-platform languages (and by extension -- engines and frameworks) rarely work exactly as advertised. The "just check a box" rarely holds true except for the simplest of programs.

In the old days, Java would advertise itself as being cross-platform (Write once, run anywhere!), but in practice, rarely worked that way.

pvg3 replies#
There are some hugely successful Java games, oddly enough.

Continue this thread — 3 replies

mst#
The joke of that era was "Write once, debug everywhere!"
iliketrains5 replies#
Thanks and sorry for no Mac support.

The hard truth is that Mac users represents less than 1% of our potential user base and it is hard to justify the time to support Mac. We are planning to revisit this decision soon and see how much effort would it be.

fnordpiglet5 replies#
Yes, but we are the cool 1%.
thomashop14 replies#
is it 2005?

Continue this thread — 14 replies

stingrae7 replies#
1st Quarter 2022, Apple shipped nearly 15% of all PCs sold in the US.

Continue this thread — 7 replies

jspaetzel#
This is exactly the kind of thinking that keeps mac-only or mac-first businesses from becoming successful more frequently.
peterpost2#
Sure buddy
carabiner3 replies#
> 1% of our potential user base

How did you determine this? Factorio is available for Mac. How did they, and other game developers, justify the work for a Mac port?

genewitch2 replies#
Author mentioned that they only use unity for the rendering and audio, cross-platform games will use unity for a lot more, and generally get cross-platform for a significantly reduced "cost".

This project is in C# so that's the first hurdle, I'd guess.

Continue this thread — 2 replies

Continue this thread — 1 more reply

Continue this thread — 2 more replies

Continue this thread — 4 more replies

SkyMarshal4 replies#
>I also quite enjoy the added SWE challenges. I had to write so many complex algorithms (path-finding, logistics, serialization, ...) and optimize things down to bits (shaders, compression of in-memory data, ...) that were rarely required by my corp job.

If you ever need a reprieve or change of pace and want to write some words instead of code, do consider writing an engineering blog about how you designed and built it. Factorio's blog has been an enjoyable read, seems like a similar one by you guys would be as well.

Continue this thread — 4 replies

Load more comments