Bosek / OstrivSDK

Reading and writing Ostriv game files.
MIT License
2 stars 0 forks source link

Trade Route #3

Open minimumcringetv opened 3 months ago

minimumcringetv commented 3 months ago

The trade route seems to be determined similarly to other level features like riverflow or fishing spots. Is that data also editable? Currently making custom rivers and placing trading docks on them isn't possible if you don't follow the original map river entrance. 20240723190518_1

Bosek commented 3 months ago

Hello, thanks for feedback! I'll try to poke around, the data does not seem to be in a level file. There are really only fishing spots and river flow vectors as far as I know. Can you provide me with your heightmap please?

minimumcringetv commented 3 months ago

Thank you for replying. I've made some example shapes to illustrate what is on my mind. 20240728143350_1 20240728143354_1 In case of the camp, you cannot place it in the area separated by a river, which means there is a point on the map that it needs to be connected to. 20240728142837_1 20240728142840_1 In case of trading dock, you can only place it on the river that enters the playable area containing a certain point on the edge.

This leads me to believe that those entry points are defined somehere within the game. Unfortunately I have no idea how all of this works. I hope you can find something related. If not, we will have to stick to the original map layouts in this regard.

minimumcringetv commented 3 months ago

level07_heightmap this is the example heightmap

minimumcringetv commented 3 months ago

I have found additional hint. There is actually a point on the edge of playable area in the water that is "occupied". Must be the trade route entrance. 20240730091741_1

minimumcringetv commented 3 months ago

And here is the land entrance counterpart. I wonder where those coordinates are stored. 20240730092140_1