Unsolved Next but not last, minimap questions

Discussion in 'Mod Support' started by DePains, Nov 22, 2018.

  1. DePains

    DePains
    Expand Collapse

    Joined:
    Nov 27, 2017
    Messages:
    105
    Hi,

    I made a minimap, imported it through the world editor by selecting the terrainblock and assigning the minimap.

    It's working but I have two issues :

    1 - it's not at the same location as the terrain. That was the occasion for me to see that I forgot to put the terrain at [0,0,Z] before populating it with things. I looked around in the files but I can't seem to find how to indicate a position for the minimap.
    Can I do that or do I need to move everything back at [0,0,Z] for the minimap to fit the terrain ?

    2 - my minimap have coloured roads. But if I make "drivability"=1 for my decal roads, game draw them on top of the minimap, thus hiding roads colouration.
    Can I disable that and still have roads drivability at 1 ?

    Thank you !
     
  2. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,685
    IIRC the minimap must be the same size of the terrain (so if terrain is 4096x4096, so should be your minimap image.
    The terrain location should not matter AFAIK.

    You cannot hide roads that have drivability different from 0
     
    • Informative Informative x 1
  3. DePains

    DePains
    Expand Collapse

    Joined:
    Nov 27, 2017
    Messages:
    105
    Thanks for the answer,
    well they are the same size. In fact east and west sides are on spot. It's shifted north for some reason... I'd say roughly a bit more than a third of it is north of the terrain.

    And ok for the "drivable" roads, thanks.
     
  4. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,685
    The terrain is using a 'squareSize' value different than 1 by chance?
     
  5. DePains

    DePains
    Expand Collapse

    Joined:
    Nov 27, 2017
    Messages:
    105
    Yes, 1.953125...
    But the mini map seem to be the right size, just shifted north.
     
    #5 DePains, Nov 22, 2018
    Last edited: Nov 22, 2018
  6. DePains

    DePains
    Expand Collapse

    Joined:
    Nov 27, 2017
    Messages:
    105
    What does this has to do with the minimap ? I can't find what is the issue.
    Thanks.
     
  7. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,685
    squareSize is basically scaling the heightmap.
    1 means that 1px = 1m square side
    2 means that 1px = 2m square size (so you end up with a terrain double the size)

    And so on. This should affect the alignment of the minimap to the terrain
     
  8. DePains

    DePains
    Expand Collapse

    Joined:
    Nov 27, 2017
    Messages:
    105
    Thank you Nadeox1,

    This I got, hence the 1.953125 for my 4096*4096 heightmap to have a 8km*8km terrain.

    And that it does, but why ? Can I fix it ?

    If I check official maps that have a squareSize value different than 1, I found :
    • Automation Test Track (squareSize = 0.5) : heightmap is 4096 and minimap is 4096 pixels
    • Hiroshi Raceway (squareSize = 0.75) : heightmap is 2048 pixels and minimap is 1024 pixels
    • Utah (squareSize = 0.5) : heightmap is 4096 and minimap is 1024 pixels
    So minimap apparently doesn't even have to be the same size as the terrain.
    But none of official maps have a squareSize above 1, I'm checking mod to find one with squareSize>1 and with a minimap. I didn't find one yet.
     
  9. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,685
    I'm not entirely sure about that, because I haven't touched minimaps in a while.
    Can you send me your level via PM so that I can check what's happening?
     
  10. DePains

    DePains
    Expand Collapse

    Joined:
    Nov 27, 2017
    Messages:
    105
    Yep, sure thing. I'll do that as soon as I finished cleaning it from unused things (dae, textures,...).
    I'm cleaning it to be sure it's not caused by a leftover from the map folder I copied to start this...
    --- Post updated ---
    Do you prefer having it "packaged" or do I just zip the folder in my documents folder ?
     
  11. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,685
    Not needed for it to be packaged, I will be unpacking it anyway most likely.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice