World map with provinces

sorry for my inactivity, but i just wanted to ask, what is the best way to make an interactive world map with provinces, states and all that stuff, like the map in some grand strategy games like hearts of iron iv and europa universalis 5. for reference, something like this:


i used square tiles until i realized they were ugly as hell, so i decided to restart the entire project. help plzzzzz

OH BOI, that must took FOREVER

hahahaha… no. as much as i WISHSHHH that this was my progress. sadly its just a reference for what i wanted…

ye ummm just draw it out

That’s a tough one… as was discussed (and argued about) in this thread:

Basically since you don’t have direct access to rendering with GD, you’ll have to either draw each province as its own sprite, or compromise by using “nodes” (i.e. just a coordinate point of each province is used for selecting / marking)

hmm yes i am willing to draw 13k provinces one by one

i was scrolling through that thread 5hrs ago lol, btw wdym by “node”? (oh nvm)

I think magic sofas right - and it does need the link to the other thread
my wife asked what was up with me earlier - ‘im just trying to work out how to do something’ i replied. i was staring into space trying to think of an easy way to do this …i just dont think there is one.

damn that’s gonna take FOREVER so uhhh good luck and let me know when ur finish

i dont think either, i think i need to uh, convert the shp file into an csv and loop for each country id and draw each coordinate with the shape painter and such… i am gonna cry, i cant use godot because i am LIMITED TO MY BLOODY IPAD

indeed it will, anyways thanks king :face_holding_back_tears::v:

oh yea, off topic but legit your username reminded me of another game dev (shnary i think his tag was), hes the creator of countryballs at war so i nearly choked when i glanced at your user

WAIT, i have thought of a solution, what if i use an existing province map right, and it’ll be one whole image, each province on the image will be random different colors, and i use the readpixels extension to determine what province i am interacting with then somehow recolor the provinces and give each one a variable.

is it uh… is it possible?

yes you can read the colour value if they’re all different colours - read the other thread that magic sofa linked. and you could have all the colour strings in an array to determine the province and then for recolouring them all individually …theres the ‘magically recolour them all individually’ extension - i think i’d suggested using shape painter and have all the points for each province stored and ready to go…but that’s lots of work too.

ohh okay, if the first one doesn’t work ill just use the second option. i heard you could apparently use csv files in gdevelop so ill convert a shapefile full of provinces and other stuff into csv and loop through every country id and coordinates… and yes i did read the thread magicsofa sent, i got a slight understanding on how i could possibly to this.

There is one thing about handcrafted maps, that sometimes surprises: they need to be crafted by hand (sorry, just joking - don‘t mean to be mean).

So if you are willing to create your provinces with mathematical tools, then things can be automated (Noise, Voronoi, Chaikin, …).

But if you want specific provinces, that are human made, then you need to craft them in order to enable interaction with them :wink:

Yes, you do have direct access to rendering if you use javascript

its okay, i found my way to life

Can you elaborate further? How are you building and picking each province? What is your solution? (Might be helpful for @Dedonwaewal, who wanted a similar thing earlier this year)

Yes, and water is also wet. “Write your own extension” is generally not what people are looking for when they ask for help on this forum…