News for hackers. Stuff that matters.
Re:Setris – Tetris with Sand Physics by WatchDog on Tuesday May 30, 2023 @01:56AM (#36121550)
Any chance of macos support? I tried running the jar, but didn't get very far, the jar seems to include binaries macos binaries for both x86 and arm, but it didn't want to start.
Re:Setris – Tetris with Sand Physics by DiscourseFan on Tuesday May 30, 2023 @02:14AM (#36121663)
I just have it running on an emulator on my machine, unfortunately.
Re:Setris – Tetris with Sand Physics by mslivo on Tuesday May 30, 2023 @02:14AM (#36121666)
It's not officially supported as I can't test it myself. It should work in theory but as far as I know it nobody got it to run yet.
Re:Setris – Tetris with Sand Physics by t0ps0il on Tuesday May 30, 2023 @02:47AM (#36121846)
`java -XstartOnFirstThread -jar setris-desktop-1.0-SNAPSHOT-jar-with-dependencies.jar`

I had to add the start on first thread flag to prevent errors and start a launch. I do get stuck after `Starting UI Subsystem` gets logged but I havent put any real effort into trying to debug that yet.

Re:Setris – Tetris with Sand Physics by m_eiman on Tuesday May 30, 2023 @05:56AM (#36123002)
I get this when run with homebrew's openjdk (which is JDK 20, I think):

  mikaeleiman@iMac ~/D/Setris-1.2_LINUX> java -XstartOnFirstThread -jar setris-desktop-1.0-SNAPSHOT-jar-with-dependencies.jar
  [LWJGL] [ThreadLocalUtil] Unsupported JNI version detected, this may result in a crash. Please inform LWJGL developers.
  [30.05.23][11:52:12] Loading Assets
  [30.05.23][11:52:12] Done.
  [30.05.23][11:52:12] Starting UI Subsystem
  [30.05.23][11:52:12] Done.
  [30.05.23][11:52:12]   0 FPS |    260MB RAM |    8 Threads | Render: 13ms
  mikaeleiman@iMac ~/D/Setris-1.2_LINUX> 
A window is opened, looks like the title screen with the text "press A". But nothing happens when I press keys, A or others.

Maybe related to the LWJGL warning?

Re:Setris – Tetris with Sand Physics by m_eiman on Tuesday May 30, 2023 @06:56AM (#36123373)
I know little of how Java works, and especially how to override libs, but I did try downloading lwjgl's latest release and put all its jars in the classpath:

  CLASSPATH=(string join ':' (find . | grep jar | grep lwjgl)) java  -XstartOnFirstThread -Xmx4G -jar setris-desktop-1.0-SNAPSHOT-jar-with-dependencies.jar
(fish instead of bash; the "string join" part takes all the jar paths and joins them on a single line with colon separators)

Same output and behavior, though.

Also tried with an older JDK (version 17), but that fails to even open a window.

Re:Setris – Tetris with Sand Physics by Tepix on Tuesday May 30, 2023 @03:49AM (#36122192)
Perhaps someone can sponsor access to a macOS VM? Renting a Mac Mini M1 is $0.11 per hour at Scaleway.com (by the way, their launch video is hilarious https://youtu.be/jZJnrKjfA3s )
Re:Setris – Tetris with Sand Physics by gitgud on Tuesday May 30, 2023 @08:40AM (#36124121)
That is the weirdest Saas company video I’ve ever seen…
Re:Setris – Tetris with Sand Physics by ankitg12 on Tuesday May 30, 2023 @02:49AM (#36121856)
Tried running with following JDK on mac, but don't see any screen after the initial few messages:

Setris-1.2_LINUX % java -version openjdk version "17.0.7" 2023-04-18 OpenJDK Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7) OpenJDK 64-Bit Server VM Temurin-17.0.7+7 (build 17.0.7+7, mixed mode, sharing)

Setris-1.2_LINUX % java -XstartOnFirstThread -jar setris-desktop-1.0-SNAPSHOT-jar-with-dependencies.jar [30.05.23][12:16:41] Loading Assets [30.05.23][12:16:41] Done. [30.05.23][12:16:41] Starting UI Subsystem ^C% Setris-1.2_LINUX %