Grautvornix
Community Members-
Posts
708 -
Joined
-
Last visited
-
Days Won
10
Everything posted by Grautvornix
-
Map making support and conversion tool: post-Atlas
Grautvornix replied to Grautvornix's topic in Scenario Design/Map making
@Asher Here is a bit of feedback on dependencies on entities in other mods: post-Atlas already reads dependencies and shows them on the Analyse tab. What it does not do is connect them to the entities a map places — which is your actual request A maps mod.json provides Dependencies as a real key: "dependencies": ["0ad>=0.28.0", "millenniumad>=1.0"]. Operators are <=, >=, =, <, >. A dependency with no operator is not checked at all. CheckForIncompatibleMods only compares when it finds an operator in the string, so "dependencies": ["millenniumad"] is documentation, nothing more. Write millenniumad>=0 if you want it enforced. CAVEAT: It requires the other mod to be enabled, not merely installed — the version table is built only from the mods in that launch list. It names the mod's name key, not its folder. The base game is 0ad, though its folder is public. Proposed solution: Today a template that isn't in public or the map's own mod produces entity-template-missing, a FAIL, while another mod might have it. Four steps: When templates are missing, search the other mods in the selected install — its own binaries/data/mods and the user's Documents\My Games\0ad\mods, both of which Session already knows — for simulation/templates/<name>.xml, and for actors under art/actors/. Only when something is missing, so nothing slows down. Report what was found by name: "structures/mil/tower is in mod millenniumad (Millennium A.D. 1.2)" — the finding turns from "broken map" into "enable this mod". Where nothing is found: say plainly that these are probably from a mod not installed here, and name the count. Check the map's own mod.json against that: entities from mod X with X not in dependencies → WARN, with an automatic fix that adds X>=<installed version>. write_mod_json already preserves keys it doesn't own, and the converter already writes the file. Conversion and Test in Game: carry the dependency into the converted mod's mod.json, say in the report which mods must also be enabled, and add them to the -mod= list when launching. The other issues, inactive buttons not being visible on dark schem, missing light scheme, missing tooltips Are also addressed. As usual I'll put the release into the top message of this thread. Let me know if something is missing or failing! -
@ThalattaThanks for you comprehensive review! My point is that I try to not substantially modify fundamentals in game mechanics just add a slight touch of more complexity. Salvaging allows getting resources in an emergency via a separate path (not trading, not gathering which might both not be possible in a situation). I'd prefer "salvage rate" so in the end it amounts to "salvage rate × condition = refund". It is a bit complex but I believe we should keep the ability to fine tune. Here we have rules we can turn on and off and also adjust some parameters ("when not sure make it configurable" ) I wanted to have configurable options so there might be a reason why certain types of buildings are excempt (chnged it to exclude fields but not exclude wall segments and towers anymore). So the mechanics is there and it can be configured to exclude what ever building we want - or none. The building shall be recovered only in peace times, i.e. it is not under attack and hasn't recently (15s, configurable). I wanted to make really sure it s not being attacked and not being taken over and is not partially "owned " by someone else, hence the multiplicity of rules. Destruction must be carried out by someone nearby (presence of a unit in 20m, configurable) I also thought about your proposal to let workers destruct (unproduce) a builidng (same animation like construct), but I consider this confusing to see exactly the same animation taking down as building up ("in the heat of the game..."). Absolutely - good point! Will remove that. Walls segments and towers are back in. Same rules as for all builidngs apply. I wanted to avoid adding another icon that might clutter the user interface. Let me experiment if we can "auto-salvage" ships and sieges. (click delete icon (means slavaging) and the ship or siege goes back to the nearest dock or depot where it is dismantled). No, its all of them. At the moment, buildings that don't satisfy the condition (unit nearby) are destroyed exactly like before, but no refund. Destroying with refund takes 10s (draining their health condition until they collapse - and only then there is a refund. The process will be cancelled by any attack). But they are not queued - so if you slect a group of builidngs, hit delete and have a unit nearby each, it takes 10s. I suggest modifying the general delete mechanics to take a few seconds both for structures - and also for units. Let me test if that works.
-
Map making support and conversion tool: post-Atlas
Grautvornix replied to Grautvornix's topic in Scenario Design/Map making
Thanks! Very good - I'll take that on board. Oops! Good point as well. Needs to be changed. You are right, was just lazy and tried to keep it initially simple for me on a local repository. Will change that. -
All right here is my proposal: a refund is limited to a percentage of the resources it took to construct something, say, 50%, multiplied with the current health status of the object, i.e. a ship at 60%health gets 30% refund. all refunds are tied to a condition: ships must be within the perimeter (30m) of your own dock. Outside that area there is no refund. siege engines must be on your own territory, no refund outside. buildings are more complicated: some should not give a refund (walls, towers), others only give a refund if not under attack since 15s and fully owned, and if one own unit is present in their vicinity (radius 20m). Deletion wiht refund becomes a salvaging teardown: the building loses health over, 10 seconds, the resources arrive at the end, any enemy damage during that period cancels it. Deletion of buildings without anyone nearby, or not satisfying the other conditions is immediate and without a refund. All of this remains configurable as I am not yet sure about the best settings (distances, level of refund, criteria, teardown period) I'll adapt the mod and test it first before posting. Done testing. Please see below for the mod. WIll also put it onto mod.io and hope it can be signed @Stan`@ltms recover-resources.zip README.md
-
OK, point taken - how could that be addressed? Should we introduce steps and/or a cap, like 0% finalized- 100% refund, up to 70% finalized - 30% refund, more than 70% finalized - no refund anymore. Deletion after completion - 30% refund. Would that work for you? Currently no salvaging of destroyed buildings exists and they can be immediately deleted anyway at the moment. Requiring units (no siege engines) to actively destroy own buildings woud prevent doing that to a whole group of buildings at once already. Would you really want to use valuable units to destroy that one storehouse that's not needed anymore jsut to get back, say, 30 wood? For me this could be an emergency aspect to get more resources if none is in reach and no bartering is possible anymore, e.g. after a devastating attack of your enemy. Of course, but for gameplay and simplicity I would possibly tend towards the same level of resource refund (we could use the same mechanism). But isn't that a contradiction? If it shall be ultra-fast (scorched earth tactics) it cannot be queued as this would take too long.
-
Map making support and conversion tool: post-Atlas
Grautvornix replied to Grautvornix's topic in Scenario Design/Map making
Did a total review and refactoring of the user interface and functionality. Hope it is better now. I am placing the python code and new screenshots in the original post on top of this conversation. @Asher I'd love to have your comemnts - please have a look! -
Sorry, did not see your message before responding to your previous one. The discussion is less about the refund as such but more abpout shouldbalow the user to simply deletey a building (as well as a unit). For buildings, this goes back to the proposal to extend the destruction process a bit. In fact, what if we need at least one unit commanded to "work" on the building to destroy it, providing a similar benefit as when you destroy your enemy's buildings? This could be exactly the same process as attacking an enemy building (only with a differnt animation possibly). Instead of having a building-cenbtered command "delete" we would need a command to units "destroy my builidng", similar to "build that builidng". This could elegantly take care of my previous question "what if an enemy attacks your building while you were destructing it yourself". The mechanism to arbitrate resources in case of concurrent destruction by two parties attacking the same building is part of the game already (I think/I hope, at least this exists for conquering, never checked for destruction of an enemy builidng together with an ally).
-
This is one of the many compromises to gameplay we have to make, I guess. Hmm. You are right. So no refund after destruction at all because the same principle applies to buildings, ships, siege engines? To provide a refund, - ships need to go back to the dock (done) - siege engines need to be manned (at least one unit) prior to destruction I believe we agree already on these two. There is no refund for buildings when they are at 100% (finished), ever. From the real world, I believe that old buildings (ruins) were often used as a quarry/resource for erecting new ones, hence I question the rule 100% built- 0% refund. The rule in game (0% built/100% back up to 100% built/0% back) certainly applies to the resources you had originally put aside to construct that building. After it has been built (100%) you spent 100% of resources, so destroying currently means losing all of it. Could refunding be exploited? Not really: You get a higher fraction back if deleting after finalizing it, but you had to invest the 100% before. The only cheat here is, that you benefited form the building's function (e.g. research a new technology) while it was working and still get a refund after its destruction.
-
@wowgetoffyourcellphoneTHIS IS PHANTASTIC! It is inspiring and providing an athmosphere well aligned with the situation. Could you try and regenerate some of the game's title screen art with such images?
-
OK, that is exactly what the mod already does (only the animation remains "delete" and does not show selling the ship) Side note: The mod does not provide store-specific credit (which I believe is ok), i.e. when returning a ship, you are getting back a fraction of resources for general purpose. Store credit would mean you get a reduction for your next ship. The remaining question is if a building needs to be garissoned with at least unit in order to allow deletion (mimicking arson). I still have doubts on that concept: burning down your building does definitely not give back much useable resources. Requiring a person to be in placed inside the building to be destroyed appears counter-intuitive to me (this is already strange with a manned tower or siege engine: the crew survives destruction, other than for a ship where they sink together).
-
Where do we get an arsonist actor with appropriate animation and a burning building animation? Same question regarding dismantling of siege engines. Which actor should we use to illustrate someone working on the siege engine? Frankly, I'd rather park these for a moment and instead generate a new mod version that provides the reduced amoutn of recovered resources and the slightly slower destruction. QUESTION: if destruction is not instantaneous but a process taking a bit of time, how would we deal woth an attack onto that object during that time? Is it not attackable while being destructed, or, probably better, could an attacking enemy grab part of the resources of the destructed building ? (sounds complicated but is probably an interesting gameplay aspect)
-
For me, in SP games, I sometimes have to move the storehouse closer to the next forest and I'd like to remove older storehouses and gain a little bit back. Same for fishing boats that I build but fish have been depleted or I don't find any (on some maps). I do agree that the default of 50% of resources is a bit too much and I propose to reduce it to 30%. Frankly, I have not yet seen any scorched earth move by a human player, e.g. deleting a large group of his buildings, but it would be nothing new and already be possible now, I believe. The mod does not endorse that particularly, except that you get a bit back when deleting your stuff. I do agree, though, that deletion should not be an instantaneous process as it is currently, but might take while. I'll investigate how this could be implemented. Requesting a unit to be nearby or inside the to-be-destructed building might add a bit too much of micromanagement (in my personal view), so I'd prefer not to require that. For a siege engine, this might be a good idea , resembling the near-a-dock requirement for ships. let me see what is possible.
-
If we change the buy-back price to 10% it would be much less rewarding. For ships this would work anyhow only near the dock. Should we add similar things to siege engines, e.g. near their depot/workshop? Or at the CC ? And whatr do we do for buildings? I would - personally like to have a little benefit, e.g. when destroying a storehouse I don't need anymore.
-
Map making support and conversion tool: post-Atlas
Grautvornix replied to Grautvornix's topic in Scenario Design/Map making
Thanks exellent news! Your are right - the GUI is a bit "fiddly" and appears overloaded will have a careful look and try and imporve. Used it to convert very nice older skirmish and scenario maps already that I was missing -
Tried to implement this as a mod. Activating the recover-resouces mod below, the following applies onto entities you have constructed yourself and that are not under enemy capturing nor were captured by yourself: Whenever you self-destroy your finished buildings Whenever you self-destroy your finished siege engines Whenever you self-destroy your finished ship when it is near your dock (default 30m) you are getting back a fixed percentage of the construction cost (currently defined 50% as a default but the parameter can certainly be tuned . Note: the mod should work for both R0.28 and R.029 SVN. Please try and let me know if it works for you as well and what best parameters (percentage and ship distance to dock) you would recomment! recover-resources.zip README.md
-
Trying Atlas I found a few things I wasn't able to manage properly (or wasn't careful or patient enough) such as properly connected wall segments and turrets. I finally started to write (with heavy support by Anthropic Claude) a little map analyzer/checker/converter tool, written in python, able to check the maps created with Atlas and offer options to correct issues analyze existing maps , also from older game versions, giving statistics, finding and offering to fix glitches (resource placed underneath a building or wall, trapped units, gaps in wall segments etc.) add a (poor) map preview if not existing or convert the Atlas screenshot into a preview file. converting and fixing older scenario and skirmish maps using the conversion scripts by @Stan` (e.g. renaming persian objects/units to achaemenids) I was only able to test on windows, it should theoretically work on Linux or MacOS as well (Python 3.14, pyQT6, numpy and pillow needed, see documentation). No real guarantee to always work (definitely NOT on random maps), but I was able to successfully convert a few great maps from past I found in the forum and play them. Note 1: Below screenshots illustrate the GUI and its capabilities. (They may not accurately reflect the current version in all details) Note 2: I only started experimenting with maps so I haven't seen all pitfalls by far. Should you have observed further typical mapping issues, I'd be interested to know and try integrating these into the analyzing and fixing section of the tool if possible. post-atlas-1.9.2.zip CHANGELOG.md README.md
-
Awesome - please consider also merging a function like modiomod into your bundle.
-
-
@guerringuerrin Thanks! I was just confused with my keyboard settings and wanted to see where everything is...
-
Attached is a little mod that adds keyboard visualization of hotkeys including testing capability on your configured keyboard for both 0AD releae 0.28 and the SVn version 0.,29. It will be also available from mod.io once signed. show-keybindings-r28.zip show-keybindings-maintainer.md show-keybindings-r29.zip
-
@Atrik You are right, should 've opened a bug report officially. My point was, however, that I was not sure it really is a bug or if I tampered with my install too much. Thatt's why I asked for other observations. Thanks that you fixed it!!! Got to learn how to open git tickets, shouldn't be too difficult .
-
A couple of things regarding Champions.
Grautvornix replied to Thalatta's topic in Game Development & Technical Discussion
@ThalattaIndeed, that is a great idea! Regarding siege engines/elite engies should we limit the amount of reapirs to something, i.e. they can be repiare so many time sonyl ro by somany percent only? Just an idea to avoid creating a super siege that can be used to dominate the battlefield. -
Looks like the latest SVn update solved this issue. Thank you very much!
-
Phantastic - it seems the latest SVN update solved this issue!
-
A couple of things regarding Champions.
Grautvornix replied to Thalatta's topic in Game Development & Technical Discussion
Just some very basic consideration (non historical of course): My first reaction was "Anorganic entities like ships or siege engines actually cannot learn, which is the basic conditions to move upwards on the elite training ladder", but the crews operating them can and these are in our case part of the virtual anorganic unit. Like, a good artillery or sailing/rowing crew can move quicker and aim and hit targets much better than newbies. Therefore it does make sense. I believe, auto repair (self-healing) is something that would realistically be feasible only ashore for ships, e.g. at a shipyard at best - and it does cost resources (wood and metal). For siege engines there were no depots, instead I guess they were built near the battlefield. So repair is done by other units.
