• 0

    posted a message on Fixing a Black Minimap

    @Stealthsam, @FockeWulf, @dingoo71 Glad to be of assistance :)

    Posted in: Terrain
  • 0

    posted a message on Fixing a Black Minimap

    Recently I ran into a curious issue while developing my map, after creating applying custom tileset to my map, my minimap went completely black except for the water. It was black both in the editor and the game. Thinking it was just another issue I could fix by restarting the editor, I did so, and the editor had the minimap, however the game still showed as black. I was totally lost as to why this would issue would occur with just my custom tileset, as changing it back to the original tileset I had been using fixed the issue completely. Googleing the issue turned up some-what complicated solutions about deleting minimap.tga, and I just did not feel like getting into that, so I returned to the editor to see what I could come up with.

    As it turned out a habit of mine, generating a new lightmap anytime it goes out of date, combined with a missing field entry in the editor was causing the issue. Closely examining the differences between my tileset, and the one I duplicated, I only expected to see a difference in the tile and reverb properties I had changed. However there was one key difference between the two tilesets: A property called "Lighting". This particular entry was blank in my tileset, but was set to 'Ulaan' in the other. Selecting a light, re-applying my custom tileset, and re-generating the light map, and my issue was solved.

    I can only assume that the minimap data is generated using the light source selected in the tileset. As for the light map, I can't be certain that it was involved, altho I highly suspect it was.

    The steps I used to fix this was:

    1. Backup your map
    2. Goto the custom tileset in the data editor
    3. Scroll down until you see a drop-down list labeled "Lighting"
    4. Select the type of lighting you wish to use
    5. Save. After saving you should notice that your map lighting in the editor has changed. (For example changing it from Ulaan to Bel'shirSunset creates dramatically different hues)
    6. In the terrain editor, open the menu "Data" and select "Generate Light Map..."
    7. Save
    8. Test you map

    Tip for testing lights: Put the terrain window and the data editor window side by side and the lighting will automatically change in the terrain editor as you adjust it in the data editor. This makes it very easy to choose what type of lighting you want.

    P.S. If your lighting in the terrain editor does not change after changing the lighting property in the data editor, save, exit, and reopen. I ran into this one a time or two.

    Posted in: Terrain
  • To post a comment, please or register a new account.