Giter Site home page Giter Site logo

Comments (8)

hesselink avatar hesselink commented on May 20, 2024 1

@BenjaminAmos Thanks, that was quick! I've just tested it. There's a small typo in the shell script (an X missing from the jre directory name, I've commented on the relevant line). After fixing that, the game starts for me!

from destinationsol.

Cervator avatar Cervator commented on May 20, 2024

That's unfortunately due to being on an M2 (or M1 really) Mac :-( Thank you for including that information, that makes it very clear.

I'm not sure if there's a native lib ready for that OS flavor quite yet, but if there is then we might be able to fix it. @BenjaminAmos may be able to find out at some point 👍

from destinationsol.

BenjaminAmos avatar BenjaminAmos commented on May 20, 2024

We'll need to use at least libGDX 1.11 for macOS ARM support (changelog). We're currently on 1.9.14. Upgrades in the past have been fairly trouble-free, so it shouldn't be too difficult.

from destinationsol.

BenjaminAmos avatar BenjaminAmos commented on May 20, 2024

I've attempted to fix this with #689.

@hesselink
If you've got time then I'd appreciate if you could test the changes and let me know if they work. You can get a build of the game with the M1/M2 changes here. To start the game, run the solOSX.sh script.

from destinationsol.

lectricas avatar lectricas commented on May 20, 2024

any progress on this?

from destinationsol.

BenjaminAmos avatar BenjaminAmos commented on May 20, 2024

The changes I proposed apparently work, so I'll try and give #689 another test this week and see if I can merge them in. I can't test that it works personally but it should work after that. The project is very slowly maintained on my part at the moment, unfortunately.

from destinationsol.

lectricas avatar lectricas commented on May 20, 2024

@BenjaminAmos I've copypasted everything from this into my project and it compiled and started.

But now the buttons are messed up and I can't press them. Can you move me into the right directinon where to dig in?

Screenshot 2023-11-30 at 02 05 51

from destinationsol.

BenjaminAmos avatar BenjaminAmos commented on May 20, 2024

I think you've just resized the game window to be too small. Can you make it a bit larger by dragging the window corners around?

Not being able to press the buttons at all is a bit concerning. Is the display using any sort of DPI scaling? There's some code that checks the display density on Android but I'm not sure if that code is used in the desktop build.

// Mobile screen densities can vary considerably, so a large digital resolution can be displayed
// on a very small screen. Due to this, it makes sense to scale the UI roughly proportionally
// to form a more sensible default. Otherwise, the UI may appear to be too big/small.
// On very large mobile screens, such as tablets, you may need to adjust the UI scale further in the game options.
if (solApplication.isMobile()) {
baseUIScale = Gdx.graphics.getDensity() / MOBILE_UI_DENSITY;
} else {
baseUIScale = 1.0f;
}

If all else fails, you can try to manually adjust the window size and scale by editing engine/src/main/resources/settings.ini. The x value is width and the y value is height. nuiUiScale is the UI scaling factor. I've previously found that 800x600 is the smallest playable resolution.

from destinationsol.

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.