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. Below screenshots illustrate the GUI and its capabilities. (They may not accurately reflect the current version) 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. README.md post-atlas-1.3.0.zip Edited 5 hours ago by Grautvornix Updated tool version to 1.3.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 Saturday at 21:18 Author Share Posted Saturday 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 Saturday at 21:26 by Grautvornix Link to comment Share on other sites More sharing options...
Asher Posted yesterday at 00:37 Share Posted yesterday at 00:37 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 yesterday at 00:46 Share Posted yesterday at 00:46 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 yesterday at 09:28 Author Share Posted yesterday at 09:28 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 yesterday at 16:08 Author Share Posted yesterday at 16:08 @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 yesterday at 16:59 Share Posted yesterday at 16:59 (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 yesterday at 17:00 by Asher 1 Link to comment Share on other sites More sharing options...
Asher Posted yesterday at 17:12 Share Posted yesterday at 17:12 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 yesterday at 17:17 Share Posted yesterday at 17:17 (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 yesterday at 17:20 by Asher 1 Link to comment Share on other sites More sharing options...
Asher Posted yesterday at 18:16 Share Posted yesterday at 18:16 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", 1 Link to comment Share on other sites More sharing options...
Grautvornix Posted yesterday at 21:57 Author Share Posted yesterday at 21:57 @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. 1 Link to comment Share on other sites More sharing options...
Asher Posted 23 hours ago Share Posted 23 hours ago 1 hour ago, Grautvornix said: 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.) I think I activated it in-game after the program was already running, but I had to restart the program for it to recognize it. Maybe if you could add a refresh button? 1 hour ago, Grautvornix said: 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! You should be able to edit these things in the Atlas editor, but I was thinking it would be nice to change some of this stuff in your program. Maybe it is not that important though 1 hour ago, Grautvornix said: 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. I think it could show the naturally occurring food (excluding fields and corrals that spawn with the map), and you could just put a note that says "excludes fields and corrals". But, do whatever you think is better, I don't think it is that big of a deal 1 hour ago, Grautvornix said: Ok, got me - I used UK English and you are requesting US English. Will change. Oh, sorry. I didn't realize that. Then I guess it isn't a spelling mistake. I probably doesn't matter that much, it is close enough 1 hour ago, Grautvornix said: 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? I mean, like if you clicked start, but then realized you forgot to do something, then you could just click stop instead of having to let it finish running 1 Link to comment Share on other sites More sharing options...
Thalatta Posted 23 hours ago Share Posted 23 hours ago 1 hour ago, Grautvornix said: Ok, got me - I used UK English and you are requesting US English. Will change 5 minutes ago, Asher said: Oh, sorry. I didn't realize that. Then I guess it isn't a spelling mistake. I probably doesn't matter that much, it is close enough Wouldn't it be better to use what the game uses? "Civilisation" appears in the UI, UK English then. Although I don't know how consistent this is. 1 Link to comment Share on other sites More sharing options...
Grautvornix Posted 14 hours ago Author Share Posted 14 hours ago 8 hours ago, Thalatta said: Wouldn't it be better to use what the game uses? "Civilisation" appears in the UI, UK English then. Although I don't know how consistent this is. Exactly - had Claude analyse spelling through the game and maps and the verdict was rather US English, although not fully consistent throughout maps and modules. So most probably I continue in an inconsistent spelling (changed Analyse to Analyze and colour to color, but not yet civilisaiton to civilization). As this change took a lot of tokens, I'd park that for the moment. Link to comment Share on other sites More sharing options...
Stan` Posted 14 hours ago Share Posted 14 hours ago 8 hours ago, Thalatta said: Wouldn't it be better to use what the game uses? "Civilisation" appears in the UI, UK English then. Although I don't know how consistent this is. Then it's bad https://gitea.wildfiregames.com/0ad/0ad/wiki/EnglishStyleGuide 2 1 Link to comment Share on other sites More sharing options...
Grautvornix Posted 10 hours ago Author Share Posted 10 hours ago (edited) A new realease of post-Atlas is available (see intial post of this threat). It covers these bugs: changed to the game's standard spelling (hopefully captured all issues) show natural food resources placed on the map in analyze tab/resources table make the finding table sortable allow re-reading the map after changing (re-analyze button) conversion process can be stopped. added support for nomad mode And these new features: Assess balance of resources amongst players (imbalance might be an intended challenge hence this is only an indicational warning) Added a way to edit map properties (analyze tab, edit button), so that it is possible to edit description, names, map characteristics, players etc. without re-opening Atlas. Please let me know your observations, criticism, found bugs, new ideas, improvement suggestions etc.! Edited 9 hours ago by Grautvornix typo Link to comment Share on other sites More sharing options...
Thalatta Posted 9 hours ago Share Posted 9 hours ago 5 hours ago, Stan` said: Then it's bad https://gitea.wildfiregames.com/0ad/0ad/wiki/EnglishStyleGuide Oh hell naw! Just by pressing Learn to Play one can read "Civilisation", no one cares about guidelines . Will consider it for my upcoming renaming PR. 1 Link to comment Share on other sites More sharing options...
Grautvornix Posted 9 hours ago Author Share Posted 9 hours ago @Thalatta happy it was not in my code Link to comment Share on other sites More sharing options...
Grautvornix Posted 5 hours ago Author Share Posted 5 hours ago Updated to 1.3.0 (see top of this thread) Extended editing capability Analyze tab lists also treasures and relics if any Re-arranged section on the analyze and edit tabs fo rimproved readability. 1 Link to comment Share on other sites More sharing options...
Asher Posted 1 hour ago Share Posted 1 hour ago Seems to work , @Grautvornix 1 Link to comment Share on other sites More sharing options...
Grautvornix Posted 1 hour ago Author Share Posted 1 hour ago Thanks @Asher! This is great to hear! (read ) Just tried to convert some older maps from the forum (the LegendofMali worked mostly!) but some are just too old and I need to investigate how to still use them. 1 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