The International Simutrans Forum

 

Author Topic: slopes patch  (Read 2362 times)

0 Members and 1 Guest are viewing this topic.

Offline ceeac

  • Devotee
  • *
  • Posts: 135
Re: slopes patch
« Reply #35 on: July 01, 2020, 07:40:06 AM »
Thanks ceaac in one sense I’m amazed those are the only warnings as for the last few months so many have been generated by trunk I’ve not been able to notice any in my own code! These do highlight an issue which will fix though.
Try adding -Wno-deprecated-copy.

Offline kierongreen

  • Dev Team, Coder/patcher
  • Devotee
  • *
  • Posts: 2303
Re: slopes patch
« Reply #36 on: July 01, 2020, 09:38:04 AM »
Try adding -Wno-deprecated-copy.
Thanks....

ok I understand. Then this here is not a solution for us, then pak128.german will remain at double heights.If the map generator can set slopes on rock faces. That would be great.
I intended this for loaded height maps.
I had built that in before. Look here:
https://www.simutrans-forum.de/mybb/showthread.php?tid=8964
Unfortunately, my patch not work anymore, since your patch.
You can also see, my need for a snow slope.

Try looking at https://simutrans-germany.com/files/upload/generate-lightmaps-markers-with-images.zip - this includes the lightmap program which is working on one of my computers at least but also generated markers and lightmap images for pak sizes 32, 64, 128, 192 and 256 for single and double heights. Note that the double height versions result in non-rectangular pak images I've no idea how these will work in game.

Edit - have a hunch there may be a problem here with 32 vs 64 bit compilation? The lightmap program uses longs and so on which might behave differently?
« Last Edit: July 01, 2020, 09:55:54 AM by kierongreen »

Online makie

  • Devotee
  • *
  • Posts: 192
    • Homepage PAK128-German
  • Languages: DE
Re: slopes patch
« Reply #37 on: July 01, 2020, 11:10:24 AM »
The png looks fine.
I will try, this will take a while.

Online makie

  • Devotee
  • *
  • Posts: 192
    • Homepage PAK128-German
  • Languages: DE
Re: slopes patch
« Reply #38 on: July 02, 2020, 11:45:49 AM »
This is my version of the  lightmap generation program.
https://sourceforge.net/p/simutrans/code/HEAD/tree/tools/generate-lightmaps/generate_lightmaps_TH.cc
The tiles must be square for makeobj. In my case it must be packed with pak160. Maybe it have to be shift to the right position.
-------------------------------
there is a little problem with PAK160 size of the  generate_lightmaps


« Last Edit: July 02, 2020, 06:56:58 PM by makie »