Staredit Network > Forums > Modding Assistance > Topic: Understanding map "walkability"
Understanding map "walkability"
May 15 2022, 9:29 am
By: andreasvz  

May 15 2022, 9:29 am andreasvz Post #1



Hi,

for reading in the maps in Stargus there're tons of old code that somehow works. But the detection which map tiles could be walked and which not is not working. I rewrote some format parsers for the Chk format and the CV5, CF4,... format.

But I'm not complete sure which information is only for the Map Editor and which is really used for the game.

For example just that data which decides if a ground unit could walk to a place on the map. Where is this encoded? Do you know?

regards
Andreas




May 15 2022, 4:08 pm jjf28 Post #2

Cartography Artisan

VF4 contains tile flags which determine walkability
VF4
TileFlags

(4 by 4 array of mini tiles per tile, you get the tile using the "megatile" index from CV5)
Graphical preview of elevation&walkability



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

May 15 2022, 6:07 pm andreasvz Post #3



Thanks for the hint. I'll try to integrate this.

Interesting project - do you plan support on Linux platform for your code?

I'm asking as we're developing stargus but till now nobody is working on the map editor.

I'm at the moment re-implementing lot of starcraft formats with kaitai parser:
https://github.com/andreas-volz/stargus/tree/master/src/kaitai

Maybe all C++ people should spend their work in portable and good base libraries to read the data :-)




May 16 2022, 4:50 am jjf28 Post #4

Cartography Artisan

Parts of the project are intended to be portable (e.g. Mapping Core - which is the parser/starcraft/non-gui mapping stuff); though I'm not actively targeting linux.



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
[01:05 am]
Vrael -- that's better
[12:39 am]
NudeRaider -- can confirm, Vrael is a total madman
[10:18 pm]
Vrael -- who says I'm not a total madman?
[02:26 pm]
UndeadStar -- Vrael, since the ad messages get removed, you look like a total madman for someone that come late
[2024-5-02. : 1:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
Please log in to shout.


Members Online: Roy