Grautvornix Posted Friday at 12:43 Share Posted Friday at 12:43 (edited) 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: 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.1.0.zip README.md Edited 6 hours ago by Grautvornix Updated tool version to 1.1.0 plus one new screenshots 1 Link to comment Share on other sites More sharing options...
Asher Posted Friday at 15:34 Share Posted Friday at 15:34 Just ran it on macos, it worked, though I didn't really try anything. The gui is pretty small, could you make it bigger please 1 Link to comment Share on other sites More sharing options...
Grautvornix Posted Friday at 16:38 Author Share Posted Friday at 16:38 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 1 Link to comment Share on other sites More sharing options...
Grautvornix Posted yesterday at 21:18 Author Share Posted yesterday at 21:18 (edited) 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! Edited yesterday at 21:26 by Grautvornix Link to comment Share on other sites More sharing options...
Asher Posted 22 hours ago Share Posted 22 hours ago 3 hours ago, Grautvornix said: 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! I loaded some maps, and it worked. Can you make it so you can load mods for it, like if you are making a map for a mod that adds new structures. Because it was saying a certain civ name was undefined, but it was, just in a mod. Maybe you already added the setting, but I didn't see it Link to comment Share on other sites More sharing options...
Asher Posted 22 hours ago Share Posted 22 hours ago Also if you could add tool tips. When on dark theme, it is had to tell which buttons you can click and not click (see photos). Could you have some other colors, pwease. Also, do you use github or gitlab or any of those type things? It might be easier for other people to update or something Link to comment Share on other sites More sharing options...
Grautvornix Posted 13 hours ago Author Share Posted 13 hours ago 8 hours ago, Asher said: Can you make it so you can load mods for it, like if you are making a map for a mod that adds new structures. Because it was saying a certain civ name was undefined, but it was, just in a mod. Maybe you already added the setting, but I didn't see it Thanks! Very good - I'll take that on board. 8 hours ago, Asher said: Also if you could add tool tips. When on dark theme, it is had to tell which buttons you can click and not click (see photos). Could you have some other colors, pwease. Oops! Good point as well. Needs to be changed. 8 hours ago, Asher said: Also, do you use github or gitlab or any of those type things? It might be easier for other people to update or something You are right, was just lazy and tried to keep it initially simple for me on a local repository. Will change that. 1 Link to comment Share on other sites More sharing options...
Grautvornix Posted 6 hours ago Author Share Posted 6 hours ago @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! Link to comment Share on other sites More sharing options...
Asher Posted 5 hours ago Share Posted 5 hours ago (edited) @Grautvornix, so I was getting some warnings and errors from a certain things on the map which weren't in the base game, then I loaded the game and the mods folder, but the warnings were still there. They didn't go away until I restarted the program. If you could make a button so you can refresh the errors. Also, if you could be able to edit certain things, like description, what civs the players are, if the players are bots or humans, ect. I think that would be helpful, so you don't have to have both this and scenario editor open at the same time, to make some of the smaller changes. Hopefully you don't think that I think this is horrible, it is just my feedback, to make it better; I think this tool will be a pretty usefully helpful Edited 5 hours ago by Asher 1 Link to comment Share on other sites More sharing options...
Asher Posted 5 hours ago Share Posted 5 hours ago Also, it says in the Analyze section under Resources that food is not counted. I guess, why? Is there a certain reason why you didn't count it? Also, the tab Analyze is spelled wrong. It is currently spelled "Anaylse" (replace the "s" with a "z") 1 Link to comment Share on other sites More sharing options...
Asher Posted 5 hours ago Share Posted 5 hours ago (edited) Another thing, I changed the current map, but on the convert page, the Test in Game button stayed the same, instead of changing back to Convert. Also, a stop button would be nice in the convert section Edited 5 hours ago by Asher 1 Link to comment Share on other sites More sharing options...
Asher Posted 4 hours ago Share Posted 4 hours ago I would add (see below) to _CIV_DISPLAY_NAMES in civ_data.py, because if you are using 0ad 28, they are pers, but if you are using 29, they are achae "pers": "Persians", Link to comment Share on other sites More sharing options...
Grautvornix Posted 52 minutes ago Author Share Posted 52 minutes ago @AsherThanks for your comprehensive review! Let me try and resolve things ... 4 hours ago, Asher said: I was getting some warnings and errors from a certain things on the map which weren't in the base game, then I loaded the game and the mods folder, but the warnings were still there. They didn't go away until I restarted the program. Was the mod that provided the missing resource for the map activated in your game (and saved) ? (if not, the tool does not see it.) 4 hours ago, Asher said: Also, if you could be able to edit certain things, like description, what civs the players are, if the players are bots or humans, ect. I think that would be helpful, so you don't have to have both this and scenario editor open at the same time, to make some of the smaller changes. This is a great idea - normally I would have thought that this is defined by the map creator in Atlas already, or on an existing map the map author has a specific scenario in mind (hence the name scenario map). Will integrate that - with that warning, though. In any case the original map is never modified by the tool unless you explicitly request that using the "edit map in place" button. Please clarify! 4 hours ago, Asher said: it says in the Analyze section under Resources that food is not counted. I guess, why? That was a decision is because food resources are also part of what you will be building (fields, corrals). If you consider it useful we can certainly add natural food resources like fish, berries/fruit trees/edible animals etc. This could show a maps initial nutrition potential. Will change. 4 hours ago, Asher said: the tab Analyze is spelled wrong. It is currently spelled "Anaylse" (replace the "s" with a "z" Ok, got me - I used UK English and you are requesting US English. Will change. 4 hours ago, Asher said: I changed the current map, but on the convert page, the Test in Game button stayed the same, instead of changing back to Convert. Also, a stop button would be nice in the convert section Had the same observation when I had installed the map already in the target folder in game. This is a logic bug. Will change. 4 hours ago, Asher said: Also, a stop button would be nice in the convert section But wouldn't that potentially stop the process in the middle of something, i.e. in a non deterministic situation? This should then remove the product of conversion. Or do you want to stop the process when processing batches of maps after one map has finished befaore the next one is started? 3 hours ago, Asher said: I would add (see below) to _CIV_DISPLAY_NAMES in civ_data.py, because if you are using 0ad 28, they are pers, but if you are using 29, they are achae "pers": "Persians", That's another bug to fix. The conversion from persian to achaemenid somehow was wrongly assumed to have happened pre-R0.28. Will change. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now