r/openage • • Jul 25 '25

News Openage Development 2025: June 2025 (and before)

47 Upvotes

Hello everyone and welcome to the newest update on openage development. This time we are going to take a look at all the things that happened since August and also other stuff that might be interesting. So without further ado, let's bring you up to date!

Game entity interaction

We'll start with the features that enable interaction between game entities, i.e. attacking, converting and all other things that game entities can do to each other. I'm happy to say that this milestone has now been completed (yay!) and also works pretty nicely with everything else we've implemented so far. Check out this recording to see how it looks:

Demo of interaction

To recap the initial problem description for game entity interaction: The challenge in letting game entities interact is not the triggering of a single action, e.g. an attack. That's actually the easy part. Instead, the major challenge arises from modelling the complex gameplay patterns in RTS that combine multiple actions. What do we mean by that? Well, take these types of gameplay as examples:

  • looping actions, e.g. attacking until a target is dead

  • chained actions, e.g. moving closer to another unit before attacking

  • combinations of the above, e.g. chasing a moving target

You can probably find more examples if you think about your last gaming session. RTS and especially AoE2 are full of those patterns.

Agent Behavior in the openage Activity System

Another way to think about how these gameplay patterns work is to see game entities as agents for the player. Unlike in a first-person game, where a player's inputs directly control the character, agent control is usually more indirect. Agents may be given commands that then trigger specific behavior and might set up a complex chain of events. They also may act completely on their own, e.g. units using the aggressive/defensive/passive stances system in AoE2.

openage implements this agent behavior in a place called the activity system, which we already talked about before. The idea is that game entity behavior is modeled via a node graph that acts like a state machine for the individual game entity. Traversing the graph happens when the game entity receives events, e.g. a player command. Visiting nodes then executes actions or checks conditions to branch on different paths in the graph. You could also say that the activity graph represents the decisions a game entity can make.

Most of the work for game entity interaction went into making the activity system fit for interactive agent behavior. For example, we implemented new decision node types to evaluate the state of the game entities that interact, e.g. for checking if one game entity is in range of the other's attack radius. We also had to design an activity graph that matches the unit behavior in games like AoE2, so that gameplay feels the same. You can see the resulting graph below:

Activity Graph for units

Follow the graph from the Start node on the left. The behavior for attacking is located in the top right portion of the graph. You can see the basic loop for checking whether the target is in range as well as the application of an effect (like attacking) via the ApplyEffect node.

Additionally, we wanted to make the whole node graph configurable, ensuring that game entity behavior is changeable instead of relying on hardcoded behavior. This actually worked pretty nicely. We managed to expose all node types, decision functions, and actions via the game data files, so almost everything can be configured without changing the code. Currently, there are no failsafes for checking if a graph is "correct" (i.e. it doesn't crash the whole engine), but that will hopefully be added in the near future.

Targeting game entities (with your mouse)

So far we've only mentioned how agent behavior may be triggered by commands and conveniently left out how these commands end up in the game. We want to specifically look at the implementation of targeting game entities, i.e. finding out which game entity a player "right-clicked" on.

Player inputs like right-clicking are routed through openage's input system. A minor "problem" for interaction is that this input system knows almost nothing about what's going on in the simulation. This design allows us to run the input system in a separate thread, making the handling of inputs faster and easier, so we ideally don't want to change it. However, it raises the question: How do we get to know what game entity a player right-clicked on? After all, we should be able to give the selected game entities a hint on what they should interact with.

openage's current solution is a bit janky, but it currently gets the job done. For this, we consult the openage renderer - another engine subsystem. The idea is that the renderer creates an additional texture, a so-called ID texture, that writes the value of the game entity ID to the pixel location of sprites belonging to said game entity. Essentially, this texture lets us look up which game entity is occupying each pixel on the screen.

The ID texture is directly passed to the input system which then uses the (x, y) coordinates of the click event to look up the game entity ID at that position. Unlike the color textures created by the renderer, the ID texture is never shown on screen. Here is what it would look like if it would be drawn:

ID texture (colored for clarity)

Black pixels match no game entity. Colored pixels represent locations of game entities.

Side Tangents

Aside from game entity interactions, there were a bunch of features that were implemented on the side. These features are probably only "cool" if you are a giant nerd (like @heinezen), but he writes these posts and decides what gets discussed, so...

Curve Compression

Curves are openage's internal data structure for storing value changes over time in the game simulation. In other words, they store past, present, and predicted values of game entity data used during the game, e.g. HP or unit position, as time-value keyframes. Values for the time between keyframes can also be interpolated.

In most situations in the simulation, keyframes are inserted lazily, which means that the simulation doesn't check whether the keyframe is redundant or not. This is usually fine and also desired, since this makes operating on curves much faster.

Curve without compression

Curve without compression. Keyframes B, D, E, H, and K are redundant and don't change the interpolated values.

However, there are cases where we don't want duplicate keyframes. An example of this is the usage of curves for storing the animations of objects in the renderer. To which frame index to use for the current animation, the renderer checks the animation's keyframe time to determine when the animation started. The frame index is then roughly calculated using this formula:

frame_idx = (current_time - keyframe_time) / time_per_frame

Problems can occur when the animation is triggered by a looping action, e.g. attacking a game entity until it's dead. Currently, the animation is requested for every "iteration" of this loop, i.e. every time the action is done, a new animation keyframe is inserted. However, if the loop time for the action does not match the loop time of the animation, then the animation gets abruptly cut off whenever a new keyframe is inserted.

Curve compression solves this nicely by only adding keyframes is they don't change the interpolated value. This is what the curve looks like when compressed:

Curve with compression

Curve with compression. Only the necessary keyframes remain.

This not only solves the jittering animations in the renderer, but it's also useful for other use case where we want the data to be compact. Examples for this are curves that are sent over the network or recordings written to disk.

Converter Cleanups

Transforming the game data from AoE2 and other games to openage formats is handled by the openage converter. The code for this conversion is actually pretty complex and rivals the actual engine code in size. However, it's also been infamous for containing a bunch of files that are pretty much unreadable as they contain up to 10,000 lines.

Having huge files is not a really a problem for running the scripts, but rather developing on them. Turns out parsing giant files doesn't make the job of IDE indexers very easy. That alone was enough motivation to finally split up the converter files more. Increasing the readability is also a nice plus and makes the converter more maintainable.

As a side goal, we've also been working on making the converter less error-prone and more forgiving in some cases. This was necessary due to the constant changes to the game data format in the new expansions for AoE2:DE. Updates to AoE2:DE should hopefully not crash the converter as much anymore, although we still have to keep pace with the data format changes.

Outside Contributions

Since our last update, openage has received a number of outside contributions that we want to honorably mention here. These add a few significant improvements to the engine :)

@jere8184 and @dmwever improved the openage pathfinder. Most notably are the increased the pairing heap performance, the introduction of the dirty flag for integration as well as the addition of an array curve datastructure for use in the field types.

@jere8184 also added fixes for the Windows builds and CI pipeline. They also introduced fused types to the SLP/SMP/SMX/SLD image conversion in our converter.

@ZzzhHe has made added several new features to the renderer:

@haytham918 had added optional clang-tidy checks to our buildsystem.

@bytegrrrl added a few operations to our FixedPoint class that enable us to use pure fixed-point calculations in more places. FixedPoint can now also use an intermediary type useful for operations on large numbers, thanks to the contribution of @Eeelco.

We hope we didn't forget anybody who made important changes :) More external contributions are also open in the GitHub repository.

What's next?

A better first question might be: When does the next blogpost release after this one? Will it also take almost a year? That's a good question, although the answer is that sadly it will probably take a while to write the next update. Writing the devlogs takes a lot of time, especially when they should be understandable for newbies. Also, when the choice is between writing devlogs and coding, coding is still much more fun... So coding will take priority for a while. However, I (@heinezen) still like creating the devlogs, so maybe they will pop up more frequently again sooner or later :D

As for openage, we now have opened a loooot of possibilities with the completition of game entity interaction. We can now go the boring route and add more interaction types that are not handled fully yet (like building construction). There's also the possibility for a more exciting route which leads us even deeper into topic of state transitions, e.g. proper handling of unit deaths. Or we might do something entirely different depending on who has better ideas. I guess you'll find out next time ;)

Take care!


r/openage • • Sep 17 '26

My unofficial OPENAGE update

Thumbnail
gallery
44 Upvotes

I started reviving openage because I love AoE2 — with the help of AI (if you do not like IA don’t read this post and don’t even bother me)

I’ve been working on openage, the open-source engine/reimplementation project for Age of Empires II, because I love the game and I felt the project had been sitting unfinished for a long time.

I decided to see how far I could take it with the help of AI coding tools (mainly Claude Code), while actually testing and validating the changes rather than just generating code and calling it done.

So far I’ve managed to get quite a lot working:

  • Fixed a large number of build, converter and runtime issues.

  • Got the project compiling and passing its test suite.

  • Added proper AoE2/HD data conversion and validation.

  • Fixed terrain, sprites, animations and several rendering issues.

  • Got Town Centers and units rendering correctly from the converted data.

  • Added player ownership and player colors.

  • Added selection and real mouse/keyboard input.

  • Added map generation with deterministic seeds and configurable sizes.

  • Implemented entity collision/occupancy and improved pathfinding.

  • Added multi-unit movement and work positions around resources.

  • Implemented an actual economic simulation:

    • Wood

    • Food

    • Gold

    • Stone

    • Gathering

    • Carrying

    • Drop-off

    • Resource depletion

    • Villager production

    • Resource costs

  • Town Centers can now produce villagers with T, using the actual converted game data.

  • Villagers now have proper gathering animations instead of the infamous moonwalking while chopping trees 😂

  • Carrying animations are also working from the converted data.

  • Added deterministic economy test scenarios and a small economy test map.

  • Added a lot of regression tests; the current test suite is at 51/51 passing.

There are still plenty of things missing, of course. Combat, construction, technologies, AI, campaigns, multiplayer, better pathfinding, resource depletion visuals, etc. are still future work.

Also, to be completely transparent: AI has been a major part of this development process. I use it to investigate the existing codebase, implement changes, debug problems, write tests and iterate much faster. But the work is being tested against the actual project, game data and runtime behavior rather than just accepting whatever the AI generates.

And before anyone starts the usual “this is vibecoding” discussion: that isn’t what this post is about. 😅 People who has tried vibecoding knows that it’s not only texting ChatGPT “finish the OpenAge and make no errors”, and it’s not even cheap so please a bit of respect. (Thanks to my brother for letting me use his Claude subscription)

I’m not claiming to have magically created a game with AI. I saw a project I care about that was unfinished, I love AoE2, and I wanted to see if I could help push it forward with the tools available today.

If you’re interested in openage itself, the technical progress, or the things that still need to be solved, that’s what I’d actually love to discuss.

The goal is simple: make openage playable. ❤️

What’s possible to do right now?

Town center texture is fixed and can spawn villagers, villagers can recollect all the economy, entities are not walking through the buildings anymore, all textures that were broken are now fixed and I can spawn 19 civilizations with mostly all their buildings and entities and different team colors, FPS improvements, when I first build the source I used to get around 5-15 fps (intel i7 3th gen, integrated graphics, 6gb ram), now it gets up to 160 with 200 entities spawned and 2 more civilizations with their own entities, player can control only their own villagers

What’s still broken?

Path finding is still a bit stupid but it works, sometimes villager gathers wood 1 block next to where the tree is, blacksmith crashes the game

I will continue with the project and the moment I can get a small demo I will upload the files so you all can try it, my goal is to continue till I finish it or get stuck or get bored, I just wanted to share all this with you


r/openage • • Nov 27 '18

Fluff openage v0.3.1 status

Thumbnail
youtube.com
43 Upvotes

r/openage • • Jan 08 '25

News Openage development update 2025?

40 Upvotes

Happy new year guys!

No more update posts? 🥹 I used to enjoy those.
I see you still have commits flowing on github and a new release, so I guess the project is still kicking.

What are you cooking?


r/openage • • Dec 29 '18

News Openage 35C3 annual status report

Thumbnail
youtube.com
39 Upvotes

r/openage • • May 21 '20

Electronic Arts will be releasing the TiberianDawn.dll and RedAlert.dll and their corresponding source code under the GPL version 3.0 license

Post image
37 Upvotes

r/openage • • Jan 01 '22

Blogpost Engine Core Modules 2022

Thumbnail
blog.openage.dev
32 Upvotes

r/openage • • Aug 22 '18

Happy Birthday openage!

Post image
32 Upvotes

r/openage • • Nov 11 '23

News Openage release 0.5 status report

Thumbnail
youtube.com
31 Upvotes

r/openage • • May 05 '24

News Openage Development 2024: April

30 Upvotes

Hello everyone, we are happy to have you here for yet another openage update. For the latter half of the month, we have taken a small break from pathfinding to work on other small internal projects that have been piling up, e.g. some leftover tasks in the renderer. That also means that, unlike last month, this update won't be 100% pathfinding exclusive, so those of you who enjoy more variety have something to look forward to!

Pathfinding in nyan API

Since the pathfinding system in the engine is mostly finished, we have been making efforts to officially use it into the movement systems of the game simulation and build it into our rudimentary map generation. The first major step in this direction is the integration of new pathfinding-related objects into our nyan modding API. This allows game objects to utilize the pathfinding functionality in several ways.

nyan API objects

The new API object PathType can be used to define grids in the pathfinder. Usually, there exists more than one pathfinding grid per game. For example, AoE2 has two grids, one for land-based units and one for ships. If you are very generous, you could additionally consider that there is a third "air" grid as the ambient birds flying all over the map have separate pathfinding rules. A unique air grid is also used for flying units in Star Wars: Galactic Battlegrounds.

PathType objects can be referenced by other API objects to reference a specific grid, e.g. by the Move ability with its new member path_type. This tells the engine which grid to search for pathfinding when the ability is used by a game entity. For dynamically influencing the cost of the grid, there is now a Pathable ability which changes the cost of grid cells for one or multiple grids at its location when it is active. The latter ability may for example be used by buildings to make parts of the grid impassable as long as the building exists.

For map generation, the Terrain API object now allows defining the pathing costs associated with each terrain via the path_costs member. This member simply assigns a cost value to each grid defined with PathType. When the map is created, the terrain generator used these values to initialize the cost fields for the grid in the pathfinder.

Rendering Multi-textured Objects

After adding all the relevant pathfinding types to our API, we are finally able to put all pieces together and make units move with proper pathfinding. However, there was one minor problem that we wanted to resolve first: While the gamestate has supported tiling with terrains for a while, the terrain renderer couldn't display them properly yet. In fact, the renderer would only use the texture of the first tile for texturing a whole 10x10 chunk, so all chunks looked like they only contained a single terrain type. Given that this is rather distracting when we want to test whether pathfinding based on specific terrain costs works, we took a slight detour to extend the renderer first. You can see the result in the screenshot below.

Multi-terrain/layer support

Previously, each terrain chunk in the renderer was handled as a single mesh that would be drawn with one texture in the shader. In the new implementation, the chunk is split up so that all tiles with matching terrain textures get their own mesh. For example, if there are 6 different terrain textures, then there would be 6 meshes created for the chunk. All of the meshes are drawn individually, but this is practically unnoticeable as the meshes border each other seamlessly. You may have also noticed the lack of terrain blending which currently make the tile edges very distinct.

After we updated the terrain renderer, we also applied similar changes to the world renderer (which draws unit sprites). Here, we added support for rendering animations with multiple layers. In the above screenshot, you can see this in action when you look at the castle, which consists of a main layer and a shadow layer. The main layer is the building sprite, whereas the shadow layer is the semi-transparent grayscale sprite to the left of the building. Previously, the renderer would only draw whatever layer was defined first.

The principle is roughly the same as for the terrain chunks: Every layer gets its own mesh which is drawn individually. Draw order is a bit more important in this context because animations of different units are more likely to overlap each other than tiles in the terrain renderer. Therefore, we added the possibility to insert renderable objects by priority into the rendering pipeline. As a result, all animation parts should now be displayed properly in the game.

What's next?

Now that the terrain renderer actually displays what's happening in the gamestate, we can start working on integrating the pathfinder again. In theory, this is pretty trivial to add, but we'll have to see if we encounter some errors in the implementation.

The next obvious step for the terrain renderer is blending support. This could be much harder as we would have to find a strategy that can handle the blending styles of all the old and new releases (AoE1, Conquerors, and the Definitive Editions all have different approaches). We will probably try to tackle the classic Conquerors blending first and then iterate and adjust gradually for other styles.


r/openage • • Dec 29 '19

News Openage 36C3 annual status report

Thumbnail
youtube.com
30 Upvotes

r/openage • • Dec 16 '19

Age of pixel so far :D / like in the good old GBA days

Post image
30 Upvotes

r/openage • • Nov 14 '19

News Openage Development: 2019 - Special AoE2:DE FAQ intermission

29 Upvotes

The Definitive Edition of Age of Empires 2 will be out today or is already out while you read this, so we will take this opportunity to answer some questions about how we handle the new version. Feel free to ask more questions in the comments.

What changes are necessary to integrate DE2 features?

Surprisingly not that many. DE2's gameplay mechanics are mostly the same as in the original or were already considered in our API. The new graphic formats (SMP, SMX, etc.) will be the biggest challenge because they have to be converted to PNG.

Do I (eventually) have to buy DE2 to play AoE2 with openage?

No, you will always be able to use older versions like AoC or HD Edition as a conversion source. However, if you want to play with the new graphics or the 4 new civilizations, you must own DE2, so openage has something to convert the data from.

We will also try to make the versions interoperable to some degree. This would mean that someone who has converted from AoC would be able to play with someone converting from DE2 (although this would limit them to the AoC data set). Similarly, DE2 could be played with the old graphics style if you additionally convert media from HD or AoC.

Is openage obsolete now that DE2 is out?

Certainly not :) AoE2 is not the only game that runs on openage. openage supports all AoE-style games, which obviously includes AoE1, its Definitive Edition and SWGB, but can also be a platform for new unique games. And of course there is a lot of stuff that we still want to improve: Better modding support, scripting APIs, other running on operating systems, recreating the 3D asset sources... There's still much to do and we won't stop until we're there.


r/openage • • Oct 29 '19

Hi there ! Last winter i spent quite some time creating custom trees and terrain textures. The third image is a different rocky shore, and the last one a completely different (not fully seamless) terrain set. I never shared it but found this sub so hope you'll like it !

Post image
29 Upvotes

r/openage • • Aug 23 '20

News Openage Development: 2020 - Week 34

28 Upvotes

Upstream

  • NEW: New Converter (Link)

    • Integrate Age of Empires 1 (Link)

    • Integrate Rise of Rome (AoK prequel) (Link)

    • Star Wars: Galactic battlegrounds support (Link)

    • Optimize converted files when saving to PNG (Link1, Link2)

    • Renderer: Mark special pixels in alpha channel (Link)

    • ...and many more additions

Issues

  • PROPOSED: Set PNG compression optimization level via CLI (Link)

  • PROPOSED: Age of Empires 2: HD Edition modpack support (Link)

  • PROPOSED: Age of Empires 1: Definitive Edition modpack support (Link)

  • PROPOSED: Create manifest file for modpacks (Link)

  • PROPOSED: Document .dat specification (Link)

  • PROPOSED: DDS parsing and exporting (Link)

  • PROPOSED: Support SLP v4.2 format (Link)

Too few bugs for your taste? Build the project yourself for Linux, macOS or Windows and report your own findings to us.

Open Discussions

Nothing new.

Roadmap

  1. Rewrite of the coordinate system ✓

  2. Merge eventsystem code ✓

  3. Implement core gamestate

  • nyan file loading and pong demo ✓

  • run pong with generic openage entities ✓

  • Decouple the simulation from display

  • Define minimal gamestate for displaying entities

  1. New converter ✓

  • Better data reading structures ✓

  • Conversion to openage API ✓

  • nyan exporter ✓

  • Converters for AoE1, SWGB and DE2 ✓ (DE1 and HD postponed)

  1. Create a simple demo for testing

  2. Adapt the new renderer to the simulation model


r/openage • • Dec 31 '20

News Openage rC3 annual status report extravaganza (with Q&A)

Thumbnail
youtube.com
27 Upvotes

r/openage • • Jul 14 '24

News Openage Development 2024: June

26 Upvotes

Hello and welcome to another openage devlog. This month, we have introduced a few more pathfinder updates that make it work better with the game simulation. We are now getting to the point where the pathfinding looks and performs okay enough that we can include it in the next release version!

Propagating Line-of-sight through Portals

As described in our April devlog, the pathfinder uses line-of-sight (LOS) optimization to improve pathing close to the target cell. To put it simply: When a cell on the grid is flagged as LOS, there exist a direct (non-obstructed) path from this cell to the target. In practice, this means that any game entity at the position of this cell can move to the target position in a straight line. This makes pathing look much more natural and smooth. If we would only use the direction vectors of the flow field right until the end, we would be limited to their 8 possible directions.

In our initial implementation, LOS optimization was confined to the target sector, i.e. cells outside the target sector were never flagged as LOS. However, this meant that a lot of paths that could have been a straight line but crossed a sector boundary looked noticeably weird. Instead of bee-lining straight towards the target when there are no obstructions, game entities would have to move to the edge of the target sector first before they would reach an LOS cell:

Without LOS propagation

You can almost see where the sector boundary is as the game entity is turning very sharply towards the target as it reaches the first LOS flagged cell in the target sector.

This behaviour has been fixed by propagating the LOS integration through sector portals. Essentially, LOS flags are passed from one side of the portal (in the entry sector) to the other (in the exit sector). LOS integration then continues in the exit sector using the passed LOS flagged cells as the starting point. As a result, paths look much better when they cross multiple sectors:

With LOS propagation

Optimizing Field Generation

The topic of performance came up in a Reddit comment before, so we thought it might be interesting to pick it up again. Performance is big factor in the feasibility of flow fields, since pathfinding should not stall gameplay operations. Flow fields do have some benefits for the quality of paths, but the added complexity can come with a hefty performance price tag. Thus, we have to ensure that the pathfinding is still as performant as possible.

Over the last month, we have applied several optimization strategies:

Simplified Code

We removed a lot of redundant code from the design phase of the pathfinder. This includes things like redundant sanity checks, debug code, or flags that were only relevant for the pathfinding demos that you've seen in our monthly devlogs.

CPU-friendly datastructures

To increase throughput for field generation on the CPU, we replaced most occurences of datastructures that are known to be slow (e.g. std::unordered_map, std::deque, std::unordered_set) with vectorized data types (std::vector and std::array). These data types utilize the CPU's L1-L3 caches much better, which means that the CPU has to spend less time on fetching data from RAM and has more time for running calculations.

Flow Field Caching

Generated flow fields are now cached and reused for subsequent path requests if possible. In practice, chaching can be done for all flow fields on the high-level path where the target is a portal cell (i.e. any sector that is not the target sector). Since field generation is deterministic, building two flow fields with the same target cell results in them being equal. Therefore, if a high-level paths uses the same portal as a previous path request, the previously generated flow field can be reused.


The overall result of our optimizations is that pathfinding is now about 2x-4x faster than in our first iteration. Technically, there are no benchmarks yet, so you have to trust our numbers for now. On our test machines, a path request can take between 0.3ms and 2ms for paths of roughly the same length, depending on the number of fields that have to be built and how many obtructions there are per sector. Flow field and integration field generation in the low-level pathfinding stage is now so fast that the A* calculations of the high-level pathfinder are becoming the bottleneck with ~50% runtime usage.

What's next?

That was definitely enough pathfinding for a while. There is a probably still lot to improve, but other parts of the engine need attention too.

Next month, we will focus more on game entity interactions. That means we will make them do things to each other, like damage or healing or whatever we can think about that's fun (and not too complicated).


r/openage • • Mar 22 '25

Fluff "I Didn't Expect Such a Masterpiece But Here We Are"

Thumbnail
youtube.com
25 Upvotes

A review of the openage game engine, it's code base, documentation, API and other stuff.


r/openage • • Jul 03 '23

News Openage Development 2023: June

24 Upvotes

Welcome to another monthly openage update. This month there's been a lot of progress inside the gamestate, so there is much to show and even more to discuss.

Modpack Loading - Part 2

Since our previous update, modpack loading and game data handling inside the engine's gamestate have been greatly extended. The biggest advancement in this regard is that the engine can now create actual units - or game entities as we call them - from the information in the nyan database. Additionally, the available game data from the modpacks can now be used in the game simulation routines. Right now, game entities can do very little and therefore still use a very limited amount of the data, but it's a step forward from having hardcoded test entities.

Here you can see how different entities from the AoE1, AoE2 and SWGB modpacks are created and displayed from modpack data:

GameEntity spawning

Note that this example contains both buildings and units as game entities. Internally, openage doesn't differentiate between different unit types and instead uses composition to define what each game entity can do. This means that when a game entity is spawned, the engine essentially "assembles" its capabilities by assigning properties and abilities (e.g. Move, Turn, Idle, Live, etc.) based on what is defined for the game entity in the modpack.

Rudimentary Game Logic

Now that we can get game entities into the game world, we can start playing around with them. Currently, there are only two things a game entity can do: Idle or Move. This doesn't sound like much, but more stuff will soon be added to the gamestate one by one. Most of this months work went into the architecture to support more complex action states of game entities.

In openage, the action state of a unit is not directly driven by commands from the input system but by a node-based flow graph with task nodes, branching paths, and wait states for events. Commands mainly signal where to go next in the graph. We do things this way because commands in RTS usually do not trigger one specific action but start entire action chains. For example, a Gather command in AoE2 does not just involve the process of slurping up resources; it also requires moving to the resource, automatically finding a dropoff place and actually depositing the resources in the player's storage.

Below you can see an example of what such a flow graph looks like. The example flow graph is currently hardcoded in the engine and assigned to every game entity. In the future, we want these flow graphs to be configurable per game entity (or game entity type), so that every unit could display different behaviour.

Activity flow graph

Operating on the flow graph in the engine then looks like this:

Activity in action

What's next?

The flow graph logic in the gamestate was the last major component missing in the new engine architecture. Since that is almost done, we will probably prepare a new release soon containing all the changes made over the last months. Before that, we have to clean up all the rough edges in the code and make the features more "presentable" to those who haven't followed the update posts.


r/openage • • Dec 01 '21

News Openage Development: 2021 - November

24 Upvotes

Upstream

  • NEW: Added troubleshooting entry for SDL2 build error (Link)

  • FIXED: Update macOS instructions with newer version of packages (Link)

Issues

  • PROPOSED: Introduce Type hinting (Link)

  • BUG: Target SDL2::SDL2 not found by cmake (Link)

  • NEW: Make fails with Python pyenv (Link)

Too few bugs for your taste? Build the project yourself for Linux, macOS or Windows and report your own findings to us.

Open Discussions

  • Parse nyan API objects in converter instead of hardcoding them (Link)

Roadmap

  1. Rewrite of the coordinate system ✓

  2. Merge eventsystem code ✓

  3. Implement core gamestate

    • nyan file loading and pong demo ✓

    • run pong with generic openage entities ✓

    • Decouple the simulation from display ✓

    • Define minimal gamestate for displaying entities

  4. New converter ✓

    • Better data reading structures ✓

    • Conversion to openage API ✓

    • nyan exporter ✓

    • Converters for AoE1, SWGB, HD, DE1 and DE2 ✓

  5. Create a simple demo for testing


r/openage • • Sep 28 '19

Release Soon™

Post image
24 Upvotes

r/openage • • Apr 24 '19

Fluff Evolution of openage 2013-2019 (Gource visualization)

Thumbnail
youtube.com
24 Upvotes

r/openage • • Oct 14 '17

Openage v0.3.1 October 2017 status

Thumbnail
youtube.com
24 Upvotes

r/openage • • Aug 07 '23

News Openage Development 2023: July

23 Upvotes

Welcome to another monthly update for openage. This month's progress does not involve a lot of code changes as we are preparing for the next release. Nevertheless there is a bunch of new stuff that's not code that we can tell you about.

Architecture Documentation

A lot of work has gone into cleaning up the architecture documentation to include all new/rewritten engine subsystems. If you have followed our monthly News posts in the last months, you have basically already seen an abridged version of the contents. The documentation just adds a lot more technical details and fancy diagrams. Overall, the documentation PR probably contain about 20 pages of new text.

In summary, there are completely new docs for the following subsystems:

  • Event System

  • Game simulation and all its sub-components:

    • Components

    • Systems

    • Event-based game logic

  • Time management

  • Curves

We also removed a bunch of old stuff for code that is now removed or deprecated and updated outdated information. The only thing remaining to be reworked is our website, although this shouldn't take much effort.

Next Release Plan

We are currently preparing for a new release v0.5.0 that will happen soon-ish, maybe even in August. This release will still not really be a "usable" release for casual users. However, it is an important milestone since it will be the first release where all new engine subsystems work together and the basic architecture outline is clear. In theory, this should also make outside contributions easier but we will have to see about that. There is a lot of legacy code that has to remain part of v0.5.0, so jumping into the code might not be that pleasent yet. We will use subsequent v0.5.X releases to refactor and clean up the legacy parts of the codebase.

Release v0.5.0 will add a few more interactable demos that show off what the engine is capable of. Basically, this will be similar to the things you've seen in previous news posts but a bit larger in scope. It should work as a minimal example on how to use the engine for someone that wants to contribute. There will also be a stresstest demo that checks overall engine performance and could help us to locate bottlenecks in the code.

What's next?

Preparartion for the next release will be our major focus. Apart from merging the docs and implementing the demos mentioned above, there also are a few minor bugs and annoyances left to fix.