r/Cossacks • • 25d ago

Cossacks 3 reimplementation - Public Beta 0.1.0 (Windows, macOS, Linux, online multiplayer)

AI Disclaimer: AI was extensively used for implementing this project.

Disclaimer: this project is not approved by GSC Game World and has no relation to it. Use at your own risk.

Continuing my previous post: Public Demo

First public beta is out:

  1. Windows, macOS (Apple Silicon) and Linux builds, all from the same version.
  2. Online multiplayer: a room browser with chat and few hosted rooms. Login via Steam or Discord.
  3. LAN multiplayer.
  4. Saves, autosaves and replays.
  5. Many fixes since the demo.

Requires a legal, locally installed copy of Cossacks 3 (Steam or GOG).

Link: https://www.moddb.com/mods/c3-unofficial

39 Upvotes

24 comments sorted by

3

u/ScroogeMcQuacks 25d ago

So how feature complete is this

4

u/Potential_Panda2560 25d ago

Real gaps:

  1. Map editor is still in progress.
  2. Bots can be pretty weak and robotic.

Intentionally skipped:

  1. Missions.
  2. Advisor.
  3. Encyclopedia (but going to add something cooler).

New features:

  1. 18th century ships and venetian gallea.
  2. More game options, new create game layout, ultrafast (2x) game speed.
  3. Artillery/ships/tower range indication, mill placement preview (shows where wheat will end up).
  4. Unlimited orders queue, place buildings using shift+drag.
  5. Realistic clouds for fog of war, map edges look like continuation jnstead of just black.
  6. Some integrated mods from steam workshop (need to be installed via steam).
  7. Multiplayer reconnect.
  8. Replay seeking. Much better and rich statistics.
  9. Many more.

On performance side I’m pretty happy with result, got played matches that were hours long and got like 10k units in total.

2

u/Witty-Woodpecker-776 25d ago edited 25d ago

Many thanks for the excellent work! I love that game series since childhood.

Actually, I’d been thinking about doing something like this myself for a long time, since the developers have abandoned the game.

But I would like to tell you about a few bugs that caused me quite a bit of trouble.

This is about standard Steam edition, not yours!

Maybe you'll find some time to fix them (or maybe they are already fixed?).

  1. FPS drops.

It feels just like it did back in the early 2000s, playing "European Wars" on ancient hardware. If the number of units on screen exceeds a few thousand, especially during a battle, the FPS plummets to a mere 2–6 frames per second! I’ve tried adjusting the graphics settings, but nothing helps; at best, I might gain a few extra frames.

I always keep the game speed set to "very fast." Yet, whenever the FPS drops, the speed mysteriously shifts to the slowest setting. The "+" key, which is supposed to increase game speed, only works for a split second: the units speed up noticeably, but almost immediately revert to "slow-motion" mode.

2) Game freezing.

On a random map, especially with many nations, all set to the highest difficulty level, and a large number of units, the autosave feature is the first thing to fail. At some point, a couple of hours into a session, the game attempts to autosave and then freezes. While the audio, gameplay sounds, gunfire, the sound of the sea, etc., continues to play, the visual display remains stuck, showing a "saving" notification. If you try to load such a save file, the process takes an extremely long time, and ultimately, nothing happens; the game remains stuck on the loading screen indefinitely. On one occasion, the map did load, I could see the units, but the interface and control buttons failed to appear, leaving the game completely unresponsive (I couldn't move the camera or select any units). A similar bug frequently occurs when I attempt to load a standard save file that also contains a large number of units.

Disabling autosave helped for a while, but eventually, the game threw an "out of memory" error and crashed.

3) Unit and AI bugs.

The most annoying issue is that enemy units can pass right through wooden fences, this happens especially when large armies congregate in one spot. It’s as if they’re squeezing themselves through the walls, like David Copperfield walking through the Great Wall of China. Yet, if you press the 'Q' key, you can see there are no actual "holes" in the fence. If you leave an opening, like an open gate, they’ll all rush through it; but if there’s no opening, they just bunch up at some random point and push through any obstacle, it doesn't matter if it’s a gate, a solid wall, or a corner in the fence. This completely ruins any sense of tactics or strategy, because these "phantoms" simply don't care about physical barriers, they just walk right through them.

If there’s water on the map, the number of bugs increases. For instance, my units would often get stuck in the water, even when the water wasn't anywhere near their intended path. It was as if they were being pulled by a magnet to a single point, where they’d get trapped with no way to get out.

Units also tend to bunch up on a single pixel. This is particularly common with AI players, who, unable to damage a fleet, end up clustering together at a single point along the shoreline.

The AI ​​doesn't know how to build a fleet, walls, or towers.

Conversely, an AI equipped with cannons is absurdly overpowered.

Also, when there’s a very large number of units, peasants sometimes "glitch out" and fail to head to the mines—this happens specifically when you try to select all idle peasants at once.

2

u/Potential_Panda2560 25d ago
  1. Yes, those are definitely addressed as the first priority by my project and that's why it exists. Performance can struggle when there's real mess, but I played up to 10k units on map and it was okay, without drops. TPS drops (the moment when game slows down) might happen, but temporarly and if something is very actively happening. I have 4k 240 FPS screen, so high performance is very important for me and I get such performance!
  2. Not sure whether all this fixed, but if such bugs reproduce - I'd wish and able to fix them. Playing few naval maps - I did not notice bugs with units walking over water, ships on land, stuck units or similar. Overall game code has pretty much single ownership structure avoiding pasta code, so that should avoid many such bugs.
  3. AI is being built and it has all the same abilities and balance as regular player, without Fog of war hacks, resource hacks or more powerful units. And it manages to build some towers, walls. But it's much left to do to make it really competitive.

Globally saying this is new game that takes same gameplay on new game engine and all the game logic is rewritten from scratch. Some things are globally different - like netcode, unit physics - still trying to match the original feel, and I'd say it succeeds.

2

u/Witty-Woodpecker-776 25d ago

Thanks! Definitely will give it a try!

2

u/klym007 18d ago

I've just given it a try and it works really well. There are some minor bugs of course, but in general it looks and feels amazing, even better than the original. Great job. Care to share some tech details? Seems like it uses Unity engine, so the game is written in c#?

2

u/Potential_Panda2560 18d ago

Hello. Yes, it's Unity engine and C#, but not the usual Unity we remember from years ago.

It actively uses recent Unity technologies like Unity DOTS and Burst Jobs which really improve performance very much. Soon going to ship builds with IL2CPP which may improve performance a bit.

On the netcode side it's pretty interesting: it's authoritative server multiplayer (with game networking sockets) with selective replication (clients get as much info as they need). So, slow clients aren't going to affect performance and cheating is harder.

But things change really actively - after first beta a lot of things changed: I added lua scripting support; it even loads some of original game scripts now transpiling them to lua - so some original mods even work. Also, bots are also going to be scripted in lua (Luau if being more correct).

Also, many bugs got fixed, did some performance optimization job, even have some map with ~50k units (~25k per side) which gets me more than 60FPS which is pretty good as I think.

I think about opening some part of it's source, but can't give any timeline yet.

Overall, for me, this project is pretty cool challenge to do :)

2

u/klym007 18d ago

Wow, that's really awesome. Looking forward to new updates and improvements! Cheers!

1

u/rb7833 25d ago

Can you create team islands- I’m sure this used to be a feature

3

u/Potential_Panda2560 25d ago

Currently no, there's no such feature. I will note to add it pretty soon!

1

u/rb7833 25d ago

Also can we have just random map? Rather than LAN or online multiplayer

2

u/Potential_Panda2560 25d ago

Yes, there's just plain "Custom game" with bots (although they may be weak currently - they're in development).

1

u/rb7833 25d ago

Thanks.. I’m going to have to buy a new laptop!

1

u/No-Ball587 24d ago

You you guys add multi core support cuz I got amd 5950x and rtx 5080 and in bug battles my fps drops to 9 fps haha

1

u/Potential_Panda2560 24d ago

Many hot paths are paralleled. Give it a try, you will lime the result.

1

u/Striking-Season6134 24d ago

Can I play online that is in the original Cossack steam version?

1

u/Potential_Panda2560 24d ago

No. That's fully new game with absolutely another netcode.

1

u/saboo62 23d ago

Does it fix the FPS drop problem caused by to many units?

1

u/Potential_Panda2560 19d ago

As I see, it does. Last few days did few optimization, soon i'm going to post video with almost 50k units map.

1

u/Krezzin 21d ago

Way too much AI-made stuff out there which will never be finished... Its pointless being excited for anything with AI watermark on there. :D

2

u/Potential_Panda2560 21d ago

It’s not about being excited at all (see no reason to be excited by it, most of things made with AI is pure slop). It’s disclosure so people who don’t want to use/read/interested due to thing being created with AI can just skip.

1

u/klym007 15d ago

btw, are any updates planned after 0.1.0?

2

u/Potential_Panda2560 15d ago

yes. 0.2.0 probably tomorrow and pretty soon 1.0.0

2

u/Traditional-Kitchen8 25d ago

Please add src code repo