-
Who's Online 4 Members, 0 Anonymous, 365 Guests (See full list)
-
Topics
-
Posts
-
By Adriano0ad · Posted
Hello everyone! I'm back with another exciting update on the development of my mod, World Rising! I'm introducing the first BOSS to inhabit the Japanese maps: a mighty prehistoric elephant that lived around the beginning of the Jomon period, potentially representing one of the last survivors of its species. Bosses will play an important strategic role in the game. In addition to providing large amounts of meat, defeating them will significantly boost heroes' attributes, giving players who overcome these challenges a valuable advantage. This new mechanic will make map exploration even more rewarding, encouraging players to take risks and develop new strategies. Below is a preview video showcasing our first BOSS. I hope you enjoy it, and as always, your feedback and suggestions are very welcome! 827732447_Gravando2026-12-04124026.mp4 -
@Perzival12 Sorry for the tag, but you already mentioned this in one of your posts. I understand you better on this point now.
-
By minhthien309 · Posted
Hi everyone, Steel & Oil is a work-in-progress WWII-era total conversion for 0 A.D. 0.28 "Boiorix". I'm sharing it early to hear what you think. It is made by one person together with Claude (an AI assistant). Claude handles most of the art and design work, so the visuals are still simple and not very detailed. The focus so far has been on gameplay. I know a WW2 variant has been asked for before ("Request WW1/2 Variant", where the poll was strongly in favour), and Stan's Pyrogenesis 1944 project was paused some years ago. Steel & Oil is a separate take on the idea. The units and buildings are modelled specifically for this mod (scripted in Blender), and the game is already playable from start to finish against the AI. What is different from 0 A.D. No infantry. Every unit is a vehicle, a ship or an aircraft. Fuel. Everything that moves burns Oil, so supply lines matter. Real airfields. Aircraft taxi, take off, fly a landing pattern and land on runways. Amphibious landings. Transport Ships carry tanks across the water, with warships for cover. Custom AI. It plays a full game: economy, army, navy, air force and landings. How to play (quick overview) Factions: Alize, Axiom, Soyuz and Yotama. They share one roster and differ by faction bonuses. Building and research: only the Bulldozer can build. Research to unlock new units is done at the Headquarters. Gold: Cargo Trucks haul Gold from mines to the Steel Mill or the Headquarters. Oil: Oil Tankers pump Oil from Offshore Rigs and bring it back to the Oil Refinery. Fuel: every vehicle, ship and aircraft burns Oil while moving. Refuel at the Oil Refinery or with a Fuel Truck. An empty tank stops a unit; an aircraft that runs dry crashes. Air: aircraft need an Airfield or an Aircraft Carrier, and their range is limited. A Radar warns you of enemy aircraft, and parked fighters scramble on their own. Landings: load tanks onto Transport Ships and land them on enemy shores, with warships covering the beach. Counters: Heavy Tank beats Medium, Medium beats Light, Light beats Self-propelled Artillery, and the artillery beats Heavy. Submarines and torpedoes hunt big ships; Destroyers hunt submarines. Limitations Because this is one person plus Claude, not every leftover part of the original 0 A.D. interface has been tested and replaced yet. You may still see some 0 A.D. text or buttons. Please tell me if you find any. Known issues Ships and vehicles sometimes slide sideways or jostle each other. Aircraft at an Airfield sometimes wait or circle for a while before landing. The AI often cancels its amphibious landings, and AI-vs-AI games can drag on. Some leftover 0 A.D. interface text and buttons remain. Download and installation Download: [link] (steel-and-oil-0.0.5.zip, 13 MB). You need 0 A.D. 0.28.0. Download steel-and-oil-0.0.5.zip. Install it in either of these ways: Rename it to steel-and-oil-0.0.5.pyromod, then double-click it (or drag it onto pyrogenesis.exe). The game installs it for you. Or extract it into Documents\My Games\0ad\mods\steel-and-oil\, so that mod.json sits directly inside that folder. Start the game and open Settings → Mod Selection. Enable Steel & Oil, keep public` enabled, then start the mods (the game restarts with the mod loaded). Source code: not public yet. If the community response is positive, I plan to publish the full source so others can contribute. All feedback is welcome: gameplay, balance, bugs, and anything that feels off. Thanks for trying it! -
By wasname321 · Posted
Running a replay with -serializationtest=N segfaults at turn N+1 for me, in every game with Petra AIs I tried. For example skirmishes/acropolis_bay_2p with two Petra AIs and N = 200, on a clean release build of main 47f5fb4f (no local changes). The commits since then don't touch the simulation code. Backtrace, shortened: ``` JS::shadow::Zone::needsIncrementalBarrier (this=0x0) js::gc::PreWriteBarrierImpl JS::Heap<JS::Value>::~Heap ICmpTemplateManager::~ICmpTemplateManager (m_CachedInstance) CCmpTemplateManager::Deallocate CComponentManager::ResetState CComponentManager::~CComponentManager CSimulation2Impl::Update (the secondary simulation is rebuilt every turn) ``` What I think happens: 1. The serialization test destroys the previous turn's secondary CComponentManager every turn. 2. ~CComponentManager first removes its extra GC roots tracer, and ResetState() clears m_TraceCache, so the components' cached JS instances aren't traced any more. 3. ResetState() then deletes the components in reverse order. Deleting the AIManager destroys the AI's script interface, and Context::UnRegisterRealm calls JS::FinishIncrementalGC if an incremental GC is running. MaybeIncrementalGC() at the end of each turn usually leaves one running. 4. That GC sweeps the cached instances of the components that haven't been deleted yet. 5. The next destructor, the TemplateManager's JS::Heap<JS::Value> m_CachedInstance, runs a write barrier on the dead cell. Finishing any incremental GC at the start of ~CComponentManager, before anything stops being traced, fixed it for me: ``` CComponentManager::~CComponentManager() { JSContext* cx = m_ScriptInterface.GetGeneralJSContext(); if (JS::IsIncrementalGCInProgress(cx)) JS::FinishIncrementalGC(cx, JS::GCReason::API); JS_RemoveExtraGCRootsTracer(cx, Trace, (void*)this); ResetState(); } ``` With it, Acropolis Bay ran 100 turns of the serialization test without problems, and a random map game ran 1,000 turns. Something else I noticed while looking at this, though it wasn't the cause: Update assigns a new m_SecondaryTerrain before it replaces the context and component manager that still point to the old terrain. Resetting the component manager first, then the context, then the terrain avoids that. -
By wasname321 · Posted
On Survival of the Fittest, if you save the game and load it again, no more enemy waves come. attackerUnitTemplates in maps/random/survivalofthefittest_triggers.js is a script global that only InitSurvival fills (on OnInitGame). Script globals aren't saved and OnInitGame doesn't run on load, so after a load the table is empty and the next wave fails with: ``` ERROR: Error in timer on entity 1, IID104, function DoAction: TypeError: can't access property "heroes", attackerUnitTemplates[civ] is undefined ``` After that no further waves spawn. To reproduce: 1. Start Survival of the Fittest. 2. Save before the first wave and load the save. 3. Wait for the wave: the error above shows up and no attackers come. A rejoin is not affected, because a rejoining client runs InitGame before it receives the state. I checked that with two peers. Fix: reload the templates if the table is empty when a wave starts: ``` Trigger.prototype.StartAnEnemyWave = function() { + if (!Object.keys(attackerUnitTemplates).length) + this.LoadAttackerTemplates(); ``` With this, loaded games stay identical to the running game across the waves I tested. Tested on main 47f5fb4f;
-
