gosu / ashton

Special graphical effects and other extensions for the Ruby/Gosu game library (⚠️ unmaintained)
MIT License
43 stars 10 forks source link

Unable to create a texture of size #46

Open KoBeWi opened 6 years ago

KoBeWi commented 6 years ago

Some player reported an error in one of my games. Whenever he starts a level, he gets this exception:

Unable to create a texture of size 768x672 C: / Users / Ulis / Desktop / Adventure Island Ruby / AdventureIsland / data / scripts / ashton / texture.rb: 73: in `initialize ' C: / Users / Ulis / Desktop / Adventure Island Ruby / Adventure_Island / data / scripts / ashton / texture.rb: 73: in initialize ' C: / Users / Ulis / Desktop / Adventure Island Ruby / Adventure_Island / data / scripts / ashton / window_buffer.rb: 5: ininitialize ' C: / Users / Ulis / Desktop / Adventure Island Ruby / Adventure_Island / data / scripts / map.rb: 48: in new ' C: / Users / Ulis / Desktop / Adventure Island Ruby / Adventure_Island / data / scripts / map.rb: 48: inmask ' C: / Users / Ulis / Desktop / Adventure Island Ruby / Adventure_Island / data / scripts / map.rb: 42: in modify_mask ' C: / Users / Ulis / Desktop / Adventure Island Ruby / Adventure_Island / data / scripts / map.rb: 217: ininit ' C: / Users / Ulis / Desktop / Adventure Island Ruby / Adventure_Island / data / scripts / map.rb: 26: in block in draw ' C: / Users / Ulis / Desktop / Adventure Island Ruby / Adventure_Island / data / scripts / map.rb: 26: ineach ' C: / Users / Ulis / Desktop / Adventure Island Ruby / Adventure_Island / data / scripts / map.rb: 26: in draw ' C: / Users / Ulis / Desktop / Adventure Island Ruby / Adventure_Island / data / scripts / game.rb: 113: indraw ' C: /Users/Ulis/AppData/Local/Temp/ocrB9AE.tmp/src/Adventure_Island.rb: 85: in draw ' C: / Users / Ulis / Desktop / Adventure Island Ruby / Adventure_Island / data / scripts / console.rb: 71: indraw ' C: /Users/Ulis/AppData/Local/Temp/ocrB9AE.tmp/lib/ruby/gems/2.2.0/gems/gosu-0.11.2-x86-mingw32/lib/gosu/patches.rb: 152: in tick ' C: /Users/Ulis/AppData/Local/Temp/ocrB9AE.tmp/lib/ruby/gems/2.2.0/gems/gosu-0.11.2-x86-mingw32/lib/gosu/patches.rb: 152: intick ' C: /Users/Ulis/AppData/Local/Temp/ocrB9AE.tmp/src/Adventure_Island.rb: 118: in `

'

(ignore the fact that Ashton is embedded in game, it's some old release)

The game at this line creates a WindowBuffer. I've seen someone has this error years ago and I believe it's related to old graphic card, but I'm reporting in case it can be fixed somehow.

You can see the game here: https://youtu.be/6uvSeOi4HOA (download in description)