-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terrain probability is broken in 1.1.0+ #1949
Comments
Thanks for opening an issue about this! Indeed I've seen a few people who have pointed out problems using the probability. What is your operating system and which version of Tiled are you using exactly? I'm afraid it probably has to do with change b9655a3. For some reason this new C++11 API for choosing random numbers is not working for everyone. Maybe it's not supported by a compiler, or maybe I'm using it in the wrong way (though it worked for me). In any case we should find a solution. |
I'm using Windows 10 Home, and the 32-bit versions of Tiled. As I've said I've tested on version 1.0.3 (where probability works) and all version including and above version 1.1.0 (where probability doesn't work). |
Just wondering, but is it broken on the 64-bit version of Tiled as well? Just asking because it's compiled using a different compiler (MSVC 2013 rather than MinGW, which is used for the 32-bit builds). |
Just tested and 64-bit version seems to work fine. |
Thanks! That somewhat explains why reports of this issue have been a bit rare. Still, I'll look into fixing this also for the 32-bit Windows version. |
Sorry for the bug everybody, it was a case of not reading the documentation carefully enough:
That explains why it only affected some platforms (I think only the 32-bit Windows version). And the fix was to avoid creating a new Not sure if I'll still make a 1.1.7, but I'll release the fix today in a new development snapshot. |
Probability seems to be broken in every release since 1.1.0.
I've tested both creating the tileset/terrain and using the terrain brush in every version from 1.0.3 and up.
It seems to just pick one of the full tiles and only uses that regardless of what the probability is.
Steps to reproduce:
Create simple terrain from tileset (4 full tiles - probability shown on each tile)
![image](https://user-images.githubusercontent.com/2626362/39934451-240429ec-5546-11e8-9fca-b9f859b00637.png)
Tiled version in this step doesn't seem to matter, it behaves the same regardless.
Use terrain brush with the created terrain:
![image](https://user-images.githubusercontent.com/2626362/39934652-c5ec4514-5546-11e8-9020-5787d84bd157.png)
![image](https://user-images.githubusercontent.com/2626362/39934741-0eb2a360-5547-11e8-90c0-2f6e576fdbc5.png)
Version 1.1.5
Version 1.0.3
The text was updated successfully, but these errors were encountered: