Page 1 of 2

[1.5.10] Random water tiles appearing after new install

Posted: Tue Jul 03, 2018 8:58 am
by Effigy
I installed ToME on a new computer and I'm having water tiles randomly appear on the overworld map and in dungeons. In the screenshot, I'm standing on Elvala and you can see sparkles for two unexplored dungeons nearby, but the actual town/dungeon tiles are invisible when they get changed to water tiles.

The PC is using Windows 10. I had previously installed the standalone ToME client before deleting it and installing the Steam version, if that matters. I tried deleting the world.teaw file, but it didn't resolve the issue. Any advice on fixing this?

Re: [1.5.10] Random water tiles appearing after new install

Posted: Tue Jul 03, 2018 9:37 am
by Effigy
There are some other weird tile issues, like door tiles disappearing when opened instead of showing an open door. The "water" tiles aren't actual water, but look like it. The water tiles sometimes turn back to the correct tiles, then back to water, as you move around the area. I have no idea what's going on here.

Re: [1.5.10] Random water tiles appearing after new install

Posted: Tue Jul 03, 2018 11:28 am
by HousePet
All I can suggest is: Build an Ark! O_O

Re: [1.5.10] Random water tiles appearing after new install

Posted: Wed Jul 04, 2018 12:49 am
by Effigy
Someone in chat said they had the same issue, so apparently this isn't an isolated case.

Re: [1.5.10] Random water tiles appearing after new install

Posted: Mon Jul 23, 2018 5:30 pm
by Xeno The Morph
Indeed it is affecting me after the new win10 update (presumably there was a driver change), and no matter what drivers I try to install on my Integrated Intel or Nvidia cards it wont go away...

It is basically stopping me playing :(

(and yes I know turning off the the OpenGL shaders should fix it but missing the spell effects is just a no go for me)

Re: [1.5.10] Random water tiles appearing after new install

Posted: Thu Aug 09, 2018 10:50 pm
by BugReporter
Is there anyone with this bug who can provide more info/do some testing? No results are guaranteed, though.
I don't mind wasting my time on something that may yield no result at all, but it's a bit too much to ask from others.

Re: [1.5.10] Random water tiles appearing after new install

Posted: Fri Aug 10, 2018 3:21 pm
by baii
related to intel igpu and openGL shader option.

have a 2 different machine (one laptop, one ssf) with hd620 on windows 10 same issue. I would say it is 99% intel graphic driver broke opengl.

Re: [1.5.10] Random water tiles appearing after new install

Posted: Fri Aug 10, 2018 7:15 pm
by BugReporter
From another topic about what seems to be the same issue (http://forums.te4.org/viewtopic.php?f=42&t=48564): Intel UHD Graphics 620, driver version 23.20.16.4849. Two more hd620 in this topic.
Still, if I understand Xeno The Morph's post correctly, the issue appears on Intel and Nvidia cards with different drivers versions. It shouldn't be too hard to check for someone who has both integrated Intel graphics and a dedicated graphic card on the same computer.

Re: [1.5.10] Random water tiles appearing after new install

Posted: Sat Aug 25, 2018 2:24 am
by anovaguy
Cornac - I'm encountering the issue on a fresh PC that has both integrated and dedicated. Tried both steam and te4 installer. If you can give me some direction, I can get ya logs or test solutions.

Re: [1.5.10] Random water tiles appearing after new install

Posted: Tue Aug 28, 2018 10:13 am
by Xeno The Morph
Well I've been away from ToME for a while but I found a few even older drivers that are compatible with my machine setup (without futzing with my registry to remove the Dell lock on Intel driver installs) so I gave them a try and I think I have found the most recent driver that does work with my machine to allow the OpenGL shader support, avoiding all of the artifacts (so far at least!)

Intel(R) HD Graphics 520 - 21.20.16.4590

For completeness here is my other AMD driver setup (but I'm 95% certain that this does not matter)

AMD Radeon (TM) R5 M335 - 24.20.11016.4

Oh and sorry for my previous post I was a bit annoyed after some fruitless driver swapping and put in the wrong graphics company for the other card! (NVidia instead of AMD!!)

Re: [1.5.10] Random water tiles appearing after new install

Posted: Mon Sep 24, 2018 9:24 pm
by BugReporter
anovaguy wrote:Cornac - I'm encountering the issue on a fresh PC that has both integrated and dedicated. Tried both steam and te4 installer. If you can give me some direction, I can get ya logs or test solutions.
My apologies for the late reply. I don't know how I missed it. Maybe the post was waiting for mod's approval.

I'll add more info, if your offer still holds.
Thanks.

Re: [1.5.10] Random water tiles appearing after new install

Posted: Fri Oct 26, 2018 6:25 pm
by BugReporter
TL;DR Tests. If someone wants to help understand why this happens. Please only try it if you understand what you are doing.

This should be relatively safe. I tried these steps and didn't notice any issues in game or in log. Then again this problem doesn't affect me, so your mileage may wary. What does it do? It changes fragment shader files the game loads on World map to

Code: Select all

uniform sampler2D tex;

void main(void)
{
	gl_FragColor = texture2D(tex, gl_TexCoord[0].xy);
}
Hypothesis. By using an addon to override each shader one after another we should find what shader causes the problem. Then it should be possible to use an addon to disable a problematic shader instead of disabling all shaders in Options or using outdated drivers. If part[1] shows that none of these shaders causes this problem then, if the whole idea is correct, there are two more shaders not covered by this addon (see part[2]).


Part[1] Steps:

1. Back up your tome home folder (T-Engine) in C:/users/"UserName"/.

2. Extract files. There should be 2 directories.

Code: Select all

test
 |-tome-water_test.teaa
 |-shaders_files (^)
    |-main_fbo_files (^^)
3. Copy tome-water_test.teaa in "TomeInstallPath"/game/addons/.

Code: Select all

TomeInstallPath/game/addons
 |-tome-water_test.teaa
    |-overload
       |-data
          |-gfx
             |-shaders (*)
                |-main_fbo (**)
4. Enable tome-water_test addon in addons menu (probably it's better disable all other addons).

5. Enable Developer Mode in Options to speed thigs up. Enable framebuffers and all shader options in Video Options and restart the game.

6. Start a new ToMe game. I guess that shalore berserker is good choice because there are several screenshots with this problem show the area around Elvala.

7. Exit to World map. If the issue is there press Ctrl+S to save the game.

8. Use Ctrl+Alt+Shift+R to reload to make sure the issue remains after reload.

9. Test every .frag file from shader_files (^) individually.
  • a. Switch to explorer. From shader_files (^) copy x.frag (where x is the name of the file) to shaders (*).
    b. Switch to the game and reload with Ctrl+Alt+Shift+R.
    c. Notice whether the issue is still there.
    d. Switch to explorer. Remove x.frag from shaders (*).
10. Repeat step 9 for every .frag file (9 files) in shader_files (^).

11. Test every .frag file from main_fbo_files (^^) individually.
  • a. Switch to explorer. From main_fbo_files (^^) copy z.frag (where z is the name of the file) to main_fbo (**).
    b. Switch to the game and reload with Ctrl+Alt+Shift+R.
    c. Notice whether the issue is still there.
    d. Switch to explorer. Remove z.frag from main_fbo (**).
12. Repeat step 11 for every .frag file (7 files) in main_fbo_files (^^).

13. See Part[2] (not required but can help).

14. Remove tome-water_test.teaa from "TomeInstallPath"/game/addons/ and restore your tome home folder from back up.


Part[2]

a. In Video Options enable shaders and disable framebuffers. Restart the game.
b. Load shalore berserker game.
c. Notice whether the issue remains.

Re: [1.5.10] Random water tiles appearing after new install

Posted: Sat Dec 01, 2018 9:22 pm
by Megashark
I have the same issue, and also have Intel graphics. I've found that disabling just the advanced opengl shaders seems to stop it from happening.

Re: [1.5.10] Random water tiles appearing after new install

Posted: Thu Dec 20, 2018 9:06 pm
by BugReporter
There is another person on Steam who mentioned that disabling advanced shaders solved the problem.
https://steamcommunity.com/app/259680/d ... 2487338631

Re: [1.5.10] Random water tiles appearing after new install

Posted: Fri Oct 25, 2019 2:57 am
by starsapphire
BugReporter wrote:TL;DR Tests. If someone wants to help understand why this happens. Please only try it if you understand what you are doing.

This should be relatively safe. I tried these steps and didn't notice any issues in game or in log. Then again this problem doesn't affect me, so your mileage may wary. What does it do? It changes fragment shader files the game loads on World map to

Code: Select all

uniform sampler2D tex;

void main(void)
{
	gl_FragColor = texture2D(tex, gl_TexCoord[0].xy);
}
Hypothesis. By using an addon to override each shader one after another we should find what shader causes the problem. Then it should be possible to use an addon to disable a problematic shader instead of disabling all shaders in Options or using outdated drivers. If part[1] shows that none of these shaders causes this problem then, if the whole idea is correct, there are two more shaders not covered by this addon (see part[2]).


Part[1] Steps:

1. Back up your tome home folder (T-Engine) in C:/users/"UserName"/.

2. Extract files. There should be 2 directories.

Code: Select all

test
 |-tome-water_test.teaa
 |-shaders_files (^)
    |-main_fbo_files (^^)
3. Copy tome-water_test.teaa in "TomeInstallPath"/game/addons/.

Code: Select all

TomeInstallPath/game/addons
 |-tome-water_test.teaa
    |-overload
       |-data
          |-gfx
             |-shaders (*)
                |-main_fbo (**)
4. Enable tome-water_test addon in addons menu (probably it's better disable all other addons).

5. Enable Developer Mode in Options to speed thigs up. Enable framebuffers and all shader options in Video Options and restart the game.

6. Start a new ToMe game. I guess that shalore berserker is good choice because there are several screenshots with this problem show the area around Elvala.

7. Exit to World map. If the issue is there press Ctrl+S to save the game.

8. Use Ctrl+Alt+Shift+R to reload to make sure the issue remains after reload.

9. Test every .frag file from shader_files (^) individually.
  • a. Switch to explorer. From shader_files (^) copy x.frag (where x is the name of the file) to shaders (*).
    b. Switch to the game and reload with Ctrl+Alt+Shift+R.
    c. Notice whether the issue is still there.
    d. Switch to explorer. Remove x.frag from shaders (*).
10. Repeat step 9 for every .frag file (9 files) in shader_files (^).

11. Test every .frag file from main_fbo_files (^^) individually.
  • a. Switch to explorer. From main_fbo_files (^^) copy z.frag (where z is the name of the file) to main_fbo (**).
    b. Switch to the game and reload with Ctrl+Alt+Shift+R.
    c. Notice whether the issue is still there.
    d. Switch to explorer. Remove z.frag from main_fbo (**).
12. Repeat step 11 for every .frag file (7 files) in main_fbo_files (^^).

13. See Part[2] (not required but can help).

14. Remove tome-water_test.teaa from "TomeInstallPath"/game/addons/ and restore your tome home folder from back up.


Part[2]

a. In Video Options enable shaders and disable framebuffers. Restart the game.
b. Load shalore berserker game.
c. Notice whether the issue remains.
Followed that and found out it would be caused by data/gfx/shaders/water.frag
I have posted an addon to block this.
But I don't know about OpenGL, hope people will find its cause and fix it once for all.