dMZX Forums: Bundling games on Mac OS? - dMZX Forums

Jump to content

If you are new to DMZX, please take the time to look over the FAQ pinned in General before asking a question.

Some simple tips when posting problems:

1) Read FAQs first, and then other recent bug posts and entries in the Bug Tracker. The problem has, often, been already addressed. Redundant reports just waste time.

2) Make sure you explain exactly when the problem happens. If impossible, narrow down the problem to a few possible causes.

3) Go into specifics about your computer and MZX settings. Are you running MZX on Windows, Linux, Mac OS, a PSP, or something else? What versions of these OSes (Tiger vs Leopard, XP vs Vista, 32-bit vs 64-bit, etc)? How is MZX set up? If your problem is regarding a certain aspect of MZX (such as the display), what are the relevant settings in the config file?

Thanks, Management.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Bundling games on Mac OS?

#1 User is offline   allison 

  • Member
  • PipPip
  • Group: Members
  • Posts: 74
  • Joined: 13-July 09
  • Gender:Female

Post icon  Posted 15 July 2016 - 10:04 PM

Hey! Right now I'm trying to update the itch.io version of my new-ish game, Quality Television. One of the planned fixes is making it fully compatible with the itch app.

This essentially entails providing the app with a single file to run (which can be pointed to with a custom manifest). Of course, MegaZeux normally starts with a file prompt. I was able to get it to launch an included MegaZeux binary that starts on the actual game on Windows rather easily with a cmd file:

start "" "mzxrun.exe" QualityTV.mzx


Mac OS, however, is proving much trickier to work with. For some reason, the Mac OS version of Megazeux doesn't seem to accept file input (such as file association, dragging a file into the app, or supplying a file as an argument). Specifically, it acts as though it can accept it (gets highlighted and whatnot), but simply opens the default directory like usual.

This is a big problem, because it means that I can't get it to launch the game correctly. The only other way I know of to get this working is with the config file's startup_path and startup_file variables.

The config file, however, has its own problems. There are two functions I need that I'm not sure how to express within the config file's startup_path:

  • I need to be able to get the current user's home directory (something like [username]/Library/etc...)
  • I need to express spaces within the path (since the itch app stores games within "Application Support")

Is there any way to express these? Failing that, is there any other way to get the Mac version of Megazeux to run a specific file within the same directory?

This post has been edited by crazyal02: 15 July 2016 - 10:07 PM

1

#2 User is offline   astral 

  • 6 pc chicken mcnobody
  • PipPipPip
  • Group: Members
  • Posts: 475
  • Joined: 20-October 01
  • Gender:Male
  • Location:South Carolina

Posted 21 July 2016 - 04:06 PM

IIRC you can just put startup_file = your_file_name.mzx in the config.txt. that should launch your world whenever mzx is launched. it defaults to caverns.mzx, uncomment it by removing the # and change it to whatever you need. you shouldn't need to actually know which directory you're in, you can use relative paths.
i thought you said weast
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users