Jump to content

Grautvornix

Community Members
  • Posts

    703
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by Grautvornix

  1. A new version 1.4.0 of atlas-tools is available in the first post of this thread. it provides three main changes: @Asher's MacOs app-generation fix. It would be nice if you could test it. @lilypoppy could you please have a look at the Linux version? A new set of terrain brush tools for individual sculpting via mouse click/drag A button to show the last edited feature in the preview window.
  2. No, this is a reaction to a trigger that you define, e.g. someone arrives at a trigger point.
  3. And here is finally atlas-tool release 1.3.0 with a few new features and fixes, available as usual from the inital post of this thread. Some major changes are these (see also changelog in the release): - [new] for both Mercator and post-atlas: a slightly more realistic, but separate preview in 3D, with better rendering of the scenery so that light, shadow, fog/dust and water effects can be seen better - a bit closer to the actual game now. The preview tab can also be used to create screenshots for the map preview. - [new] Mercator, terrain tab: ridges can be randomly jagged as configured by rule - [new] Mercator, terrain tab: rivers and lakes will get an option to place reed in flat areas. - [new] Mercator, entity placer tab: decorating actors can be placed by rule - [new] Mercator entity placer tab: Copy [Ctrl-c) and paste [Ctrl-v) are now implemented, also available via context menu of the selected entities. - [new] Mercator, rules tab: new action allowing a rule to cause a landslide that would block a road (and could kill units underneath) but that can be cleared by units again. - [fix] map loading and saving was complex and error-prone. This has been simplified (I hope), including handover between tools. - [fix] a tributing action on the rules tab is now defined more clearly - [fix] findings regarding rules are being identified better ans shown clearly on the rules tab. I suggest re-installing the suite as dependencies between the two tools have been addressed and improved. Have fun creating maps!
  4. Yes, please do a complete reinstall. You should be able to use the tar.gz file with the precompiled versions of post-atlas and mercator. I tested it only in a simple Ubuntu install on a virtual machine. Hope it does work for you! Please let me know!
  5. Apologies - version 1.1.0 was buggy and seemed to have had issues on MacOS and Linux. htis is now fixed I hope in version 1.2.0 plus a bit additional of Light & Sky and Water colouring. Hope it works for you!
  6. Could atlas be changed to regularly store an automatic backup somewhere ? 3 hours of work is quite a lot.
  7. A new version 1.1.0 of the Atlas tools has been released (see initial post of this thread). (Apologies for the extremely short message!) This new release version 1.1.0 of the Atlas tools provides both mercator and post-atlas in new versions now also trigger script-aware. In Mercator, you can also define multiple trigger scripts that will be executed when pülaying the map. Please let me know if there are any issues or suggestions!
  8. @lilypoppy Thanks for the reports and sorry for the delay! Had most fixes already implemented yesterday but wanted to do some more testing first, hence the release only today. Hope it works now! Please let me know! Again, it would be awesome if you could also test the build script and - if it works - provide the contents of the /dist folder as a zip (precompiled executables for Linux) for inclusion into the post.
  9. As an intermediate solution, could you use pyinstaller and deliver installation packs for Windows, Linux and MacOS?
  10. @lilypoppy We will be getting there! Did you run it with the old spec files (delivered with the 0.25.0 package) or with the new ones? Anyway here is a complete update. Please replace the existing scripts in your atlas-tools root folder (where Mercator.py resides) with the attached ones (build.sh script plus the two spec files). Your logs showed also another issue: there are warnings that libxcb-cursor.so.0 is missing. Qt 6 does not open a window on an X11 desktop without it, so the built programs would not have started. So I'd suggest before runing the script you can try this: sudo apt install libxcb-cursor0 Hope it works now! Best regards, Grautvornix Post-Atlas.spec build.sh Mercator.spec
  11. Here is the new build script and also new spec files (bug identified: On Linux the program is a file called Mercator, with no .exe, and PyInstaller writes it into its work folder, where the spec had already made a folder of that name. Both specs now work in build/<name>/, which is PyInstaller’s own layout. I do not know why this did not stop @Asher’s macOS build, since macOS has no .exe either. Will update all spec-files, both build scripts and deliver a new release 0.26.0 very soon (will be available from the initial post on this thread). For @lilypoppy and all Ubuntu or Debian users, the whole preparation of the build should be this one line: sudo apt install python3-venv binutils libpython3.12 Attached are the new build.sh and the two new pyinstaller spec files. Things to know: The tool also needs the usual desktop libraries added (glib, OpenGL, xkbcommon and so on). A normal Linux desktop has them; a bare server would not. The Linux builds are large: about 269 MB each, against roughly 98 MB on Windows. The icon (icon.ico) is ignored on Linux; PyInstaller only supports it on Windows and macOS. The new release will 0.26 contain this: [fix] The new build scripts (build.sh and build.bat as well as mercator.spec and post-atlas.spec) and a slightly revised icon [new] It integrates the findings tab from post-atlas into mercator so to allow fixing any findings already in the tool itself without having to switch between tools anymore when creating a new map. This option is still there, however. The additional workflow and overall GUI is not yet as simple and as clear as I would like it to be. Will continue working on it. Post-Atlas.spec build.sh Mercator.spec
  12. @lilypoppy Oops! Sorry for the trouble! there are actually two faults, both in build.sh, not in the specs: The cause. Debian and Ubuntu refuse pip install into the system Python (PEP 668). So nothing was installed, pyinstaller did not exist, and no build ran. The misleading end. The script carried on after every failure and printed “Success!”. Working on a better script! Will come out shortly.
  13. It was supposed to also include the worldmap data for selecting the digital elevaiton area for terrain building from scratch. It also removes (now, after bug fixing) teh not needed part of the libraries so the exe goes down from 142 MB to 98 MB for mercator and for post-Atlas from 116 to 97 MB. For me the startup process of the exe files with the "onefile" option is still way too long. This is due to the need to unpack everything during each startup. I will instead now change that to "onedir" i.e. an exe plus a folder with runtime libs. These must stay next to each other at all times.
  14. Good plan! The intent of post-Atlas was to allow batch editing of map packages (well still editing one-by-one but you can step through the maps) and outputting everything into a mod.
  15. Oh, you are right, of course! The reason I asked Claude to provide spec files was that I wanted ensure all documents and the additonal data set for mercator's world map (forms a possible basis for selecting terrain tiles from public DEM sources) are included. the result is ratehr complex and unpleasant to read while your script is straightforward and understandable. I prefer yours actually.
  16. Cool! But does that script work? (shouldn't it be e.g. "pyinstaller mercator.spec" instead of "pyinstaller mercator.py" ?) Embarassingly stupid remark, apologies for that!. Now that is a challenge! No, I don't have any yet, possibly something like the attached (still ugly with the tongue hanging out)
  17. @Alber 0A.D @AsherI like your proposals! If you have options to recover from an almost total defeat, this addds a nice twist to an otherwise straightforward win/loss result. Part of it seems possible already I keep seeing single ally's units garrisoning into my CC etc. It is just not a strategy I was using so far. Wonder if we can build that into a mod for testing...
  18. Hi @Asher thanks for the quick reaction -and the good idea! The tool needs PyQt6, Pillow, numpy, scipy, and pyqtgraph/PyOpenGL. Your script is great, but there are actually two tools in the package (Mercator and post-Atlas) and they need to have their specific environment. My intention was to keep it open as editable python code so anyone can inspect and modify it as needed. But you are certainly right - not everyone has python installed or would like to look into the code. Here are the two pyinstaller spec files Mercator.spec and post-Atlas.spec . A plain pyinstaller --onefile Mercator.py only follows Python imports. It misses non-code resources that get loaded relative to the installed files — docs/ (Help, User Manual, Design notes, Credits), CREDITS.md/LICENSE, and most of all mercator/world/*.json.gz (the real-elevation-data feature). Attached are obsolete pyinstaller spec files that can be called by pyinstaller Mercator.spec pyinstaller PostAtlas.spec New files are in the current distribution (cf. initial post of this thread) This would work as a standalone double-click exe, however: The hand-over between the two tools will not work as built: Check or convert in post-Atlas... and Convert > Edit in Mercator launch the sibling tool via sys.executable -m <module> (atlas_ui/other_tool.py). Inside a frozen exe, sys.executable is that exe, which doesn’t understand -m — and worse, the check for “is the other tool installed” (importlib.util.find_spec) will always say no, since each exe only bundles its own tool. So the button offering the hand-over won’t even appear. That’s a significant regression for frozen builds specifically. I ask my coding buddy (Claude) to find a solution for this as I believe the linking o fhte two tools is an important aspect. @lilypoppy suggested to create a single tool but that would make the GUI even more complex than it is today, I am afraid. But he does have point here. Size: Mercator.exe is ~140 MB, Post-Atlas.exe ~116 MB on windows. They are bundling PyQt6 + NumPy + SciPy + Pillow + pyqtgraph/PyOpenGL for the 3D views). Versus the ~6 MB release zip, this is a very different distribution. This would clearly call for a single exe only. @Asher @lilypoppy Claude just implemented a fix in version 0.23.0, see initial post of this thread. So the only remaining issue is size. Still unsure if we should dare going for a single tool. Please see the latest update on the initial post of this thread. Here are only old/buggy versions. There are new ones in the distribution on top of this thread. Mercator.spec PostAtlas.spec
  19. OK, so now I had no choice (more or less): I am now terminating the single packages of mercator and post-atlas in favor of a common single package "Atlas Tools". The new package is available on https://wildfiregames.com/forum/topic/170271-atlas-tools-a-package-combining-mercator-and-post-atlas/ Unfortunately, every user of the previous tools wanting to upgrade will have to de-install the previous versions as they will not be compatible with the Atlas Tools package anymore. @Stan` could you please freeze this thread?
  20. OK, so now I had no choice (more or less): I am now terminating the single packages of mercator and post-atlas in favor of a common single package "Atlas Tools". The new package is available on https://wildfiregames.com/forum/topic/170271-atlas-tools-a-package-combining-mercator-and-post-atlas/ Unfortunately, every user of the previous tools wanting to upgrade will have to de-install the previsous versions as they will not be compatible with the Atlas Tools package anymore. @Stan` could you please freeze this thread?
  21. Mercator and post-Atlas are now one package with one version number: Atlas Tools 1.4.0. It holds everything of Mercator and post-Atlas (see changelog.md below). They stay two programs, because the two jobs are different, but what you install is now what was tested together and they share the same codebase. The tools are also closely linked so that you can start editing in mercator and then handover to post-atlas for verification or conversion, and back. Mercator is a tool to create maps either from scratch or from digital elevation models, sculpt the terrain add features and textures based on rulesets. It however does not replace Atlas, the games's map editor. Mercator's sole purpose is to ease some of the pains that the powerful, but complex atlas tool creates to users like myself. In fact, Mercator allows handing over its data to the actual Atlas tool for refinement and can then take the map back for the final touch creating a mod or an installation. post-Atlas is a map checking and conversion tool that can be used to process maps and map collections in different formats an convert them into R28 and R29 game format. It also verifies map properties and provides support to correct issues. Post-Atlas also works with mercator and Atlas allowing to handover to these tools and take the result back afterwards. Maps can be tested in-game (headless) to verify there is no blocking issue left. The package is delivered as python souce code (see Readme.md for installation instructions) and should run on Windows 11, Linux and MacOS. While I can only test it on Windows currently, @lilypoppy has kindly tested it extensively on Linux and @Asher used it on MacOS. I am keen to receive any feedback, criticism, ideas, suggestions, error reports etc. Please let me know! As per @Asher's suggestion, there are also specfiles included in the the zipfile's root folder that can be used with pyinstaller to create two executables in a /dist folder together with supporting libraries (/_internal). Please keep the contents of the complete folder /dist intact so communication/handover between the tools works. Create them from the target root folder you chose when extracting the zip using @Asher's modified build script (build.sh for Linux bash environments, build-macos.sh for MacOS, and build.bat for windows commandline, both located in the same root folder of this zip) that also installs all necessary python modules if needed. Prerequisite: You need an installed python environment (> 3.10) an an installed version of the O.A.D. game. Again I am including a precompiled executable Win11 and Linux versions of both tools for those without python installation Happy Mapping! ---- Please find below the release note, further details are provided in the the changelog: Atlas Tools 1.4.0 - shape your terrain by hand Until now Mercator built a map's ground from objects according a user-defined rule set: rivers, roads, ridges, coasts, areas and lakes. 1.4.0 adds what was missing: brushes, to shape the ground individually with the mouse - including rain erosion and landslides (hint: that textures will follow soon). The brushes (Terrain tab, new mode Brush) Raise (Ctrl: lower), Smooth, Flatten, Roughen and an Eraser. Rain erosion: hold it on a slope and gullies appear, deeper the longer it rains. Strength sets how hard; cliffs wear faster than hillsides, but past 45 degrees only a little faster. Landslide: one click high on a slope. It cuts a scar and piles the same earth in a cone at the foot. Yellow lines show beforehand where it will go. (Not to be mistaken for the landslide rule, which happens during the game.) Size, strength, soft and ragged edges; each stroke is one step of Undo. Each tool has a drawing that explains it: a small picture beside the modes, enlarged by a click. Her is an example: Brush mode on a copy of a game map's heights: two landslides, image indicating what changed in red (higher, added material) and blue (lower, removed material), and the yellowish guide of a third under the mouse. Image belwo: effect before and after (note that texture adaptations are yet missing. Nothing is baked into the map until you say so. Pressing Apply to Map is required so that the change takes effect. Brushwork is a layer of its own, located on top of your defined areas, rivers, roads and ridges, which stay objects that you can still change. Show what changed colours it. The Eraser takes it away again, and Restore this road/river repairs a road made uneven or a river narrowed, with one click. Please Note: The editable parts stay with Mercator in its current map version. The map's files hold the finished ground only. So a copy under another name, a map you send to someone, or a map you have saved in Atlas is one entire piece of terrain with your changes baked in but without the previously objects. The user manual has a table of what each way of saving does. 1.3.0 did not know brushwork: open a brushed map's project there and the editable brushwork is lost (what you applied stays, however). The game's terrain is a height every 4 m: no overhangs, tunnels or fine rock structures can be created. Brushing works on the 2D map; the 3D view follows later on. You cannot brush in 3D yet. I have checked the brushes in tests and by hand only on Windows. Also in 1.4.0 View last change (in Mercator's Preview): one click takes you to what you edited (and applied) last - a brush stroke, a river, a placed or deleted object - so you can check it. If a mountain would hide it, the camera turns round or looks from higher up. Terrain shows there once you have applied it. Soften distant ground in the Preview is now off at first, in both programs. Tick it if the textures' repeating pattern bothers you. Textured maps change much faster. With texture rules, the wait after a change was mostly one slow calculation. In my test with six rules, a brush stroke on a 688-tile map would have taken 5.5 s to finish; now it takes 0.7 s. The textures come out the same: I compared 770 paintings of the game's maps tile by tile. macOS: build-macos.sh makes Mercator.app and Post-Atlas.app. Thank you, @Asher for the report Fixed: in the standalone (built) post-Atlas, working through six maps or more at once did not work, on every system. Installing: unzip, pip install Pillow numpy scipy PyQt6 (and pyqtgraph PyOpenGL for the Preview and the 3D view), then python Mercator.py or python Post-Atlas.py. There are standalone builds for Windows and for Linux (x86_64, built on Ubuntu 24.04: unpack the .tar.gz and run Mercator/Mercator or Post-Atlas/Post-Atlas). Use build.bat (Windows 11), build.sh (Linux) and build-macos.sh (MacOS) to make your own executables. Pre-compiled executables for Win11 and Linux are attached. If something is wrong, please let me know and try reporting what you did and what happened, including the tool version (Help > About) and the map if you can share it. atlas-tools-1.4.0-linux-x86_64.tar.gz Atlas-tools-1.4.0-win11.zip atlas-tools-1.4.0.zip README.md CHANGELOG.md
  22. What if we keep the past as is for a while, but provide the new structure for new maps, new blender models etc. ? (Mods are already hosted on mod.io so they are managed elsewhere.) Many maps and models of the past are either already part of the current release version, some are part of a mod (community maps, delenda est etc.), and a third group is abandoned. I believe we could put up a map repository thread underneath the Game Modification | ScenarioDesign/MapMaking . We could subsequently copy (or link) converted old maps there.
×
×
  • Create New...