[1.5.10] Random water tiles appearing after new install

Where bugs go to lie down and rest

Moderator: Moderator

Message
Author
Effigy
Uruivellas
Posts: 970
Joined: Fri Oct 10, 2014 4:00 pm

[1.5.10] Random water tiles appearing after new install

#1 Post 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?
Attachments
tome-1.5.10-1530607349.png
tome-1.5.10-1530607349.png (139.93 KiB) Viewed 6137 times

Effigy
Uruivellas
Posts: 970
Joined: Fri Oct 10, 2014 4:00 pm

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

#2 Post 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.

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

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

#3 Post by HousePet »

All I can suggest is: Build an Ark! O_O
My feedback meter decays into coding. Give me feedback and I make mods.

Effigy
Uruivellas
Posts: 970
Joined: Fri Oct 10, 2014 4:00 pm

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

#4 Post by Effigy »

Someone in chat said they had the same issue, so apparently this isn't an isolated case.

Xeno The Morph
Low Yeek
Posts: 6
Joined: Fri Aug 19, 2016 11:47 pm

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

#5 Post 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)

BugReporter
Higher
Posts: 62
Joined: Wed Jun 06, 2018 10:53 am

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

#6 Post 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.

baii
Low Yeek
Posts: 7
Joined: Wed Jun 06, 2018 2:25 pm

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

#7 Post 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.

BugReporter
Higher
Posts: 62
Joined: Wed Jun 06, 2018 10:53 am

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

#8 Post 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.

anovaguy
Posts: 1
Joined: Sat Aug 25, 2018 2:12 am

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

#9 Post 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.

Xeno The Morph
Low Yeek
Posts: 6
Joined: Fri Aug 19, 2016 11:47 pm

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

#10 Post 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!!)

BugReporter
Higher
Posts: 62
Joined: Wed Jun 06, 2018 10:53 am

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

#11 Post 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.

BugReporter
Higher
Posts: 62
Joined: Wed Jun 06, 2018 10:53 am

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

#12 Post 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.
Attachments
test.zip
(6.52 KiB) Downloaded 369 times

Megashark
Posts: 1
Joined: Sat Dec 01, 2018 9:16 pm

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

#13 Post 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.

BugReporter
Higher
Posts: 62
Joined: Wed Jun 06, 2018 10:53 am

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

#14 Post by BugReporter »

There is another person on Steam who mentioned that disabling advanced shaders solved the problem.
https://steamcommunity.com/app/259680/d ... 2487338631

starsapphire
Thalore
Posts: 132
Joined: Sat Sep 27, 2014 11:33 am
Location: Irkkk

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

#15 Post 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.

Post Reply