Giter Site home page Giter Site logo

Comments (5)

rofl0r avatar rofl0r commented on June 15, 2024

works fine for me with python 2.7 based pygame <3

from singularity.

EinstokFair avatar EinstokFair commented on June 15, 2024

«Pygame may not always be built to support all image formats. At minimum it will support uncompressed BMP. If pygame.image.get_extended() returns 'True', you should be able to load most images (including PNG, JPG and GIF).»

mine outputs True for print(pygame.image.get_extended())

https://www.pygame.org/docs/ref/image.html#pygame.image.load

from singularity.

nthykier avatar nthykier commented on June 15, 2024

Hi @EinstokFair

When you start the game, do you get the menu and are you able to access the Options to change theme?

I ask because the image it fails to load is for the default theme. I was hoping that you as a work around could try one of the other themes, but I am bit unsure what works for you at this stage.

from singularity.

nthykier avatar nthykier commented on June 15, 2024

If that does not work, then a more involved attempt is to modify the prefs.dat file (you may have to create it) and set the theme=vector. But I admit it is far from "good".

Scratch that - the vector theme depends on the default theme, so it would still crash. We need to resolve the reason for why your pygame says it supports the images we need and then fail to deliver on that promise. This may be a bug in your distribution build of pygame (if you are using a distribution) or pygame itself.

from singularity.

EinstokFair avatar EinstokFair commented on June 15, 2024

It is possible to choose theme via command line argument at command line. But I don't know which name to try.
I am unable to get into "options" menu, because stack trace appears right after the application start.

UPD:
$ singularity --theme=vector
Singularity 1.00 (commit: 2ebc2f3)
Running under Python 3.9.5 (default, Jul 15 2021, 11:19:42) [GCC 10.3.0]
pygame 2.0.1 (SDL 2.0.10, Python 3.9.5)
Hello from the pygame community. https://www.pygame.org/contribute.html
The error-log configured as /home/user/.local/share/singularity/log/error.log (lazily created when something is logged)
True
/usr/lib/python3.9/site-packages/singularity/data/themes/vector/images/earth_night.png
/usr/lib/python3.9/site-packages/singularity/data/themes/vector/images/earth.png
/usr/lib/python3.9/site-packages/singularity/data/themes/default/images/arrow.png
/usr/lib/python3.9/site-packages/singularity/data/themes/default/images/icon.png

Starts successfully to menu. Filenames and "True" word are lines which I added for diag.

from singularity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.