Ajarmar / universal-pokemon-randomizer-zx

Public repository of source code for the Universal Pokemon Randomizer ZX
GNU General Public License v3.0
594 stars 152 forks source link

[Bug] Batch Randomization silently fails on Mac OS X #582

Open valiant-code opened 1 year ago

valiant-code commented 1 year ago

Describe the bug When I enable batch randomization and generate seeds, the program acts like it is generating the seeds successfuly, but when I check the output location there is nothing there. I have tried several different output locations

To Reproduce Steps to reproduce the behavior:

  1. Go to 'batch randomization'
  2. Click on 'Randomize (save)'
  3. Navigate to the output folder
  4. No files!

If "Generate log files" is enabled in the batch randomization settings, a "Could not save log file" pop up appears for each seed made in the batch.

Expected behavior The files should save to the output directory correctly

Screenshots

Screenshot 2022-12-06 at 11 48 46 PM

System (please complete the following information):

Additional context If I disable batch mode I am able to save a seed successfully.

tom-overton commented 1 year ago

Sorry for the delay; finally took a look at this one, and it seems to work fine for me? This is the version of Java I'm using:

openjdk 11.0.17 2022-10-18 LTS
OpenJDK Runtime Environment Zulu11.60+19-CA (build 11.0.17+8-LTS)
OpenJDK 64-Bit Server VM Zulu11.60+19-CA (build 11.0.17+8-LTS, mixed mode)

And my OS:

Screen Shot 2022-12-26 at 8 26 06 PM

I'm using Pokemon Blue (U), and my batch randomization settings are like so:

Screen Shot 2022-12-26 at 8 29 03 PM

I tried launching the randomizer using the launcher, by double-clicking on the JAR, and by using java -jar PokeRandoZX.jar from the Terminal, and in all three cases, batch randomization worked fine.

Since you didn't say which ROM you used in the original post, can you try with Pokemon Blue (U) and see if it works? I want to narrow this down as much as possible.

tom-overton commented 1 year ago

I just updated my Mac to Ventura, and it worked just fine. So we can cross that off as a potential source of problems.

valiant-code commented 1 year ago

@tom-overton I was attempting it with Fire Red (revision 1). I'll see if I can try Blue in the next couple of days

thatzencrab commented 1 year ago

having the same problem as @valiant-code with FireRed, I can try with Blue to see if the issue is FRLG-specific. OS is Ventura 13.0

bww1126 commented 11 months ago

@tom-overton i have the same issue as above, running macOS 14.0 on FireRed

maxcodes commented 7 months ago

Same issue here.

OS: macOS 14.2.1 (Apple M1 Air)

Java:

openjdk 21.0.2 2024-01-16
OpenJDK Runtime Environment Homebrew (build 21.0.2)
OpenJDK 64-Bit Server VM Homebrew (build 21.0.2, mixed mode, sharing)

Tried it on Pokemon Emerald

adamkingdotnet commented 1 month ago

Also having this issue when trying to batch randomize FireRed.

OS: macOS 15.1 (Apple M1 MacBook Air)

Java: java version "1.8.0_421" Java(TM) SE Runtime Environment (build 1.8.0_421-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.421-b09, mixed mode)

Attempted to open up permissions via chmod, run as root, and grant 'Full Disk Access' via 'Privacy & Security' settings, but no luck.