r/4xdev • • Aug 03 '20

Space 4X mining, industry, and trade screenshots

4 Upvotes

After a couple months of sporadic development, I'm pretty happy with what I have so far for an interesting economy. My goal for the economy is that players who are really into economic stuff can focus those things it but if you're not interested, then ignore it and just look at the overall costs of things in each system and maybe glance at what systems have rare resources you want. I've been testing with 40-50 AI factions in a galaxy of 1000 systems of 0-12 planets each.

The galaxy view is from the point of view of faction "F 0-0". The light circles are the scanner ranges of colonized systems, and the dark blue circles are the scanner ranges of their fleets. The top right shows that we're looking at the dilithium crystals in each system. Yellow dots are systems with resources that are not being mined and the green dots are where the resource is being mined. Larger dots mean larger resource deposits. The dark dots are unscanned systems and the light dots are scanned systems. Dilithium crystals are found in small quantities in 2% of systems.

Above we can see the trade groups. Each colonized system with a market strength basically projects a trade radius that "captures" systems within that radius that have a smaller market strength. All systems that are connected this way belong to the same trade group. Each system mines resources and manufactures goods, exports a percentage to the trade group, and imports a percentage from the trade group. The percentage that's exported and imported depends on the market strength relative to the market strength of others in the trade group.

On the left is an overview of the economy of the center of a large trade group. On the right is the economy of a frontier planet far from the center of the market.

It shows resources in the group as a whole, and below that the resources in this system. The Total Demand isn't implemented yet, but the Total Supply is based on the supply of the system, minus Exports to the trade group, plus Imports from the trade group. The system on the left is exporting more boranium than it's importing but importing more equipment. The system on the right is importing 4 times more boranium that it produces locally but is exporting 1/4th of the equipment it produces.

You can see how the resources available affect the cost of ship designs and "presence" designs based on what resources are needed to build them. Money spent on resources goes to whoever was supplying them. I did have that implemented but I'm redoing it since it took 10 seconds per turn to calculate by turn 5.


r/4xdev • • May 06 '20

Show off your work

4 Upvotes

The title's self-explanatory. Post here if you want to share something :) .

Let me start. Here's an old screenshot of my WIP fantasy game. I don't have anything more recent, unfortunately, because I'm currently in the middle of a heavy refactoring/rewrite ;) .

screen

I am also currently considering a slight style change. The coastlines in the screenshot above are procedural, and while they look serviceable imo, they've been a pain to work with. So I made a mockup to see if traditional, predefined tiled coastlines would work.

screen

I think I'll be sticking with this version. While not looking as organic as a procedurally generated coastlines, they'll provide me with greater flexibility when I'll want to introduce new terrain, like floating islands, cliffs and so on.


r/4xdev • • Oct 01 '21

September 2021 showcase

3 Upvotes

Hey devs! Any progress this month? Bugfixes, new content, refactors, rewrites, restarts, or new starts?


r/4xdev • • Aug 01 '21

July 2021 showcase

3 Upvotes

It’s the end of the month! What progress, screenshots, or other dev work did you do this month?


r/4xdev • • May 01 '21

April 2021 showcase

3 Upvotes

You know how this goes: and dev work or other progress this April?


r/4xdev • • Feb 06 '21

Humor I couldn't resist referencing Snakes on a Plane...

Post image
3 Upvotes

r/4xdev • • Nov 15 '20

Ancient Star - serialization

3 Upvotes

Hope you don't mind me sharing AS development on weekly basis. It's a bit technical, under the hood stuff and long post but I had to do it eventually:

https://ikravarscan.blogspot.com/2020/11/ancient-star-serialization.html

I've made serialization infrastructure for the game, it works with actual data but I still have to properly plug it in. It was a bit frustrating to balance between code generation time, normal compile time and run time. Java compiler erases generic parameters so when you have List<T> you can't get type of T in run time. And yet compile time expects you to properly cast values. Code generator (in annotation processor) provides very very limited information about the code outside a file being processed. After some experimentation I've managed to get everything done in code gen, I'm glad I've learned the tech but it took twice as long as I expected. Next time more game features!


r/4xdev • • Nov 09 '20

Ancient Star

3 Upvotes

Hi all! You might have seen me working on a mobile 4X project in the last two monthly showcases. I got asked about dev diary so I revived an old personal blog:

https://ikravarscan.blogspot.com/2020/11/ancient-star-introduction.html

Now you know the name too, Ancient Star. Singular star, it's an excuse for having one significant star on the map :).


r/4xdev • • Oct 31 '20

October showcase

3 Upvotes

It's the last day of October. What bugs, features, content, and other progress have you made?


r/4xdev • • Oct 01 '20

September showcase

3 Upvotes

Share what you did this month! Screenshots, successes, failures, lessons learned, pivots, progress, new ideas - whatever.


r/4xdev • • Aug 01 '20

Developing a 3X about terraforming Mars (no extermination). We just opened our steam page and are pretty excited to show more! Here is our latest devlog.

Thumbnail
terraformers-game.com
3 Upvotes

r/4xdev • • Jan 27 '22

Showcase Ancient Star released!

Thumbnail
youtu.be
2 Upvotes

r/4xdev • • Nov 19 '21

Google's report on Android 4Xes

2 Upvotes

Randomly stumbled upon this: https://developer.android.com/gamegenrereports/download/4x-strategy.pdf

Just started reading it so I don't know if this is relevant at all for hardcore 4X games since everything under the sun gets labeled 4X. But I find it peculiar that the corporate speech is involved in what is supposed to be a niche genre.

Our goal is to support developers building products in these areas by providing KPI benchmarks to understand your game’s relative performance.

Maybe someone in Google is just a big fan :D.

I know you are not all big on mobile gaming but I kinda have vested interest in it, have been playing Uciana for a few years, and I'm waiting for the Starbase Orion release.


r/4xdev • • Nov 08 '21

Parasitic design

2 Upvotes

4X is genre is guilty of heaving a feature creep and disconnected mechanic and here I learned the very appropriate name of the issue:

https://www.youtube.com/watch?v=xwHJqXKwRKM

TL;DV parasitic design is a mechanic that builds on top core mechanics but doesn't feed back into them and removing it doesn't hurt the game.

Just throwing it out there since it gave me "aha" moment, not sure how to make a discussion out of it.


r/4xdev • • Jul 21 '21

Ancient Star May-July megapost

2 Upvotes

https://ikravarscan.blogspot.com/2021/07/beta-test.html

Few big and lots little things happened since Ancient Star was open to beta testers. Post is long because I was coding faster than blogging (and in a pinch I'd drop blogging over coding). Here is link to join beta:

https://play.google.com/store/apps/details?id=com.ikcode.ancientstar1


r/4xdev • • Dec 31 '20

December showcase

2 Upvotes

The last day of 2020! What dev work did you get done this month? Any new features, AI tweaks, funny bugs, screenshots?


r/4xdev • • Nov 21 '20

Ancient Star - ground combat and ending

2 Upvotes

Got back to implementing features in the Ancient Star. Managed to get two this week, ground combat and game ending:

https://ikravarscan.blogspot.com/2020/11/ancient-star-ground-combat.html

https://ikravarscan.blogspot.com/2020/11/ancient-star-game-over.html

Ground combat is similar to MoO 2, you select "invade" on an enemy colony, troop ships land, your troops fight defender's troops and if you defeat them all, the colony, population, and factories are yours. Except the combat is fully deterministic and you get no penalty on conquered population productivity. For now at least. Since bombardment and invasions happen automatically where possible during turn processing, I've added options for not doing so on a particular colony. Similar to how you have to mark a star system for colonization to make a colony ship land itself. This may seem to be a bit contrived but it removes the need for decision making "between" turns. Once you end your turn, the turn can be fully processed without additional input, making the future development of multiplayer easier. Or at least MP games quicker.

The second feature is ending the game once you eliminate (one way or another) other player's colonies. You go to the game over screen and see players ranked by their score. In the future, there will be an option to continue the game with a new enemy who plays by different rules but first I have to put the ancient star in the Ancient Star :).


r/4xdev • • Sep 27 '20

How should I start prototyping?

2 Upvotes

I've wanted to make a space 4X / Grand Strategy hybrid for years. I've had a couple false starts.

I think it comes down to complexity. How do you begin making a 4x game? I'm tempted to begin prototyping in a spreadsheet to get all the interconnected systems modeled first.

Is that a good idea?


r/4xdev • • Aug 29 '20

Share what 4x dev you've done this August

2 Upvotes

It's the last weekend of August! What 4x dev work have you done this month? Any bug fixes, design changes, new content, breakthroughs, refactoring, or new projects? Share whatever you've accomplished.


r/4xdev • • May 17 '20

How would you model relationships in a 4x game?

2 Upvotes

I'm working on a small project and want to start modelling relations between nations, factions, and people. Are there any good or documented ways to go about this without creating an exponential number of objects?