Comments (8)
Hey @Shazbot,
Thank you for opening an issue!
I have a suggestion to add an option to the planner view to export the map to a json file. I would then be able to make a mod that consumes that file ingame and recreates the region ownership for factions.
Nice, I've always wanted to do something like that.
It'd be nice if the json used ingame db keys for regions and factions, to make my job easier.
I use the database keys from the assembly kit
throughout the app, so that should not be a problem. The format is:
{
"db_region_key": "db_faction_key",
...
}
Latest version of app, with the export button, should be live now. Let me know if that works for you.
Thanks!
from tww-interactive-map.
Thanks for this, it's exactly what I needed.
Made the mod, and it works fine: https://steamcommunity.com/sharedfiles/filedetails/?id=2154921490
An idea I have from here is to add importing, where I create the same kind of json file ingame and the user imports it into your app. It would enable users to edit their campaign mid-save.
I also had a request for supporting custom factions that some mods add, notable OvN Lost Factions, but this is probably not that easy for you to include. But if you want, you can get all the faction keys and localized faction names, without the banner, from the Mixu Unlocker mod, for example wh2_main_ovn_chaos_dwarfs for Chaos Dwarfs.
Thanks again, works great.
from tww-interactive-map.
Thanks for this, it's exactly what I needed.
Made the mod, and it works fine: https://steamcommunity.com/sharedfiles/filedetails/?id=2154921490
Wow, great work. Just tested it out, amazing!
An idea I have from here is to add importing, where I create the same kind of json file ingame and the user imports it into your app. It would enable users to edit their campaign mid-save.
Yeah, I can look into that, shouldn't be that difficult to implement.
I also have a project that can read save files directly in the browser. I used it in older versions of the app, but it was slow. And usually breaks with every new patch. And it still can't write to save files at the moment, something I still have to implement. But yeah, JSON import/export is a nice alternative.
I also had a request for supporting custom factions that some mods add, notable OvN Lost Factions, but this is probably not that easy for you to include. But if you want, you can get all the faction keys and localized faction names, without the banner, from the Mixu Unlocker mod, for example wh2_main_ovn_chaos_dwarfs for Chaos Dwarfs.
That is also something I can investigate further, will need to rearrange some stuff, but definitely doable.
from tww-interactive-map.
I tried the import feature and it errors out with this (renamed to txt so I can attach it):
from tww-interactive-map.
Alright, fixed it I hope. The keys have to be sorted alphabetically for some reason, must be some strange keyed thing I am doing somewhere else in the code.
from tww-interactive-map.
Hey @Shazbot,
After a lot of delaying and procrastinating I have managed to rewrite the map painter in a separate app. I had difficulties trying to add more functionality to the painter and it was hard to do even basic changes without running in to problems elsewhere.
Anyway, check it out here: https://imrz.github.io/tww2-map-painter/
It's still a work in progress, but it has the same functionalities as the current map painter and more. Users can even import factions that are not on the list, and will be automatically added to the dropdown, this should be a nice workaround for any modded/future factions or any faction I missed.
Peace
from tww-interactive-map.
That looks amazing, thanks a lot! You really went above and beyond with all this.
And this doesn't really matter, but what made you pick React now instead of Vue?
from tww-interactive-map.
No problem, these are fun projects to do. Why React instead of Vue? Re-evaluating react in combination with libraries like leaflet. Also waiting for Vue 3 release to drop. And I just needed something fresh to get me started really.
from tww-interactive-map.
Related Issues (13)
- Update to Vampire coast map HOT 2
- Tooltip in planner/painter is displayed using the debug tooltip. HOT 1
- Map painter HOT 1
- Missing faction in map painter HOT 1
- Save map painter with shareable link HOT 1
- Reenable/Fix starting positions
- chores
- Various Map issues. HOT 1
- Gold Idols resource is missing
- Available to contact
- Available to contact
- Icon is behind tooltip header. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tww-interactive-map.