Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

vonhoff

4
Posts
1
Topics
1
Following
A member registered Mar 30, 2021

Recent community posts

You're right, on second thought I don't see it as a solution either. The bug still persists with the incorrect solution I thought I had found. I'm just not that experienced with software development yet, I'm still learning.

I hope you can find something that could resolve the issue. Keep me up to date :-)

Hi Marc,

I hope you're doing well. I took another look at the issue this afternoon and found a potential fix!

The issue seemed to occur randomly, and when something seems random it could have something to do with memory allocations. I managed to fix the issue by moving line 167 in LoadTileset.c to line 100. It should execute after the tilecount assignment.

After performing this fix, I no longer got randomly missing tiles, which is great. I'm not sure whether there would be a better fix, perhaps you might have an idea. I could make a pull request with the changes if you would like.

(1 edit)

I had a theory about where the missing tiles might be, because I couldn't find any direct errors in the source code for loading the tiles. My theory was that the tiles are not actually missing, but are drawn behind all the layers. To test that theory, I wrote the same application in C, where I added code that turns off the background layer when the first action button is pressed. 

When I turned off the background layer, the tiles that were missing became visible. So now we know that the tiles are not actually missing, they are just drawn behind all the other layers. Maybe it's because of the priority of the layers, but I'm not sure. What do you think?

Hi Marc, 

I'm really enjoying Tilengine so far! 

I'm getting some strange results with empty tiles in layers when I launch my application. I'm not sure what's causing the problem, but I'm hoping you might have some ideas. It seems that it gives different results every time I launch the executable, but it doesn't happen all the time. Perhaps I'm missing a few important lines of code to get the desired result, but I can't figure it out. 

I've included a few screenshots of the problem occurring, as well as the source code I used to build the application below. I'm using the latest version of Tilengine (v2.9.6) and the CsTilenginePure binding that I wrote a few weeks ago. My target platform is Windows 11. 

I appreciate any help you can provide.

Source code: TestApplication.zip - Google Drive