ZGE & Mac M1

All topics about ZGameEditor goes here.

Moderator: Moderators

Post Reply
User avatar
rrTea
Posts: 450
Joined: Sat Feb 15, 2014 9:54 am
Contact:

ZGE & Mac M1

Post by rrTea » Tue Aug 24, 2021 11:49 am

For various reasons, a few months ago MacOS (M1) became my main working environment instead of Windows. I still have my Windows computer (I have a few in fact) but I'm avoiding using it because I have to first drag it out of the cupboard, connect / mount it, wait for it to update 20 times… It's impractical.

I also noticed that the latest ZGE versions do not offer MacOS builds, did anybody try launching ZGE executables (while it was still possible to make them) on M1?

So, is there any interest in making ZGE work on M1 or at least make MacOS (M1 I guess) executables?

User avatar
VilleK
Site Admin
Posts: 2196
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: ZGE & Mac M1

Post by VilleK » Tue Aug 24, 2021 12:34 pm

Hi,

During the last year I've been involved in the process of making FL Studio running natively on M1 and this includes ZGE. So ZGE works fine on M1. Using Intel Mac binaries with Rosetta on M1 also works very well.

The only reason I don't include Mac binaries in recent ZGE releases is that I don't have a build environment that automatically builds the Mac files. And since Mac is very rarely used for ZGE then I haven't bothered so far.

But yes, it works fine. Just let me know if I should try to make a binary for you to test with.

User avatar
rrTea
Posts: 450
Joined: Sat Feb 15, 2014 9:54 am
Contact:

Re: ZGE & Mac M1

Post by rrTea » Tue Aug 24, 2021 12:37 pm

That'd be fantastic!

User avatar
VilleK
Site Admin
Posts: 2196
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: ZGE & Mac M1

Post by VilleK » Tue Aug 24, 2021 2:57 pm

rrTea wrote:
Tue Aug 24, 2021 12:37 pm
That'd be fantastic!
I forgot to be specific: it is just the possibility to generate M1 files that works. Zge itself (the authoring tool) still needs to run on Windows. Perhaps you can run Windows in a VM like VirtualBox.

User avatar
rrTea
Posts: 450
Joined: Sat Feb 15, 2014 9:54 am
Contact:

Re: ZGE & Mac M1

Post by rrTea » Tue Aug 24, 2021 3:27 pm

Setting up a VirtualBox is a bit impractical… Well then the only thing I can think of for my situation is to dedicate a Windows laptop (I have one, packed somewhere) specifically for ZGE or something like that. I'll have to think about it.

User avatar
VilleK
Site Admin
Posts: 2196
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: ZGE & Mac M1

Post by VilleK » Wed Aug 25, 2021 9:08 am

There is also Parallells: https://9to5mac.com/2021/05/03/the-supe ... mac-video/

I hope you find a solution that works for you. It would be a shame if this becomes a hurdle for further development. Your ZGE projects look fantastic.

User avatar
VilleK
Site Admin
Posts: 2196
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: ZGE & Mac M1

Post by VilleK » Mon Aug 30, 2021 8:49 am

There is a way to develop on Mac if you can manage to edit the zgeproj file directly with a text editor.

1. Install demo version of FL Studio: https://www.image-line.com/fl-studio-download/
2. Put your zgeproj file in this folder /Applications/FL Studio 20.app/Contents/Resources/FL/Plugins/Fruity/Effects/ZGameEditor Visualizer/Effects
3. Start FL Studio and add the ZGameEditor Visualizer plugin on the mixer
4. Select your zgeproj from the effect selector

Now you can run your project and whenever you save a change in a text editor then the plugin will reload the project.

Not ideal of course but better than nothing :)
Attachments
Skärmavbild 2021-08-30 kl. 10.40.43.png
Skärmavbild 2021-08-30 kl. 10.40.43.png (2.29 MiB) Viewed 1445 times

User avatar
rrTea
Posts: 450
Joined: Sat Feb 15, 2014 9:54 am
Contact:

Re: ZGE & Mac M1

Post by rrTea » Mon Aug 30, 2021 9:42 am

That's quite an interesting solution, I'll definitely try it!

I'm still working on setting up a Windows corner, it's taking lots of time but it should work eventually.

User avatar
rrTea
Posts: 450
Joined: Sat Feb 15, 2014 9:54 am
Contact:

Re: ZGE & Mac M1

Post by rrTea » Sun Sep 19, 2021 10:25 pm

It works! …but when I tried opening some of my projects FL Studio just crashes. Maybe because I often use a Windows specific library (to turn off Microsoft's cursed IDE) so next time I'll try to manually edit those out.

User avatar
VilleK
Site Admin
Posts: 2196
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: ZGE & Mac M1

Post by VilleK » Mon Sep 20, 2021 1:19 pm

Nice! I think you can test with "if(MACOS)" to make code run differently on Mac. Indeed I expect it will crash if you try calling Windows specific functions.

User avatar
rrTea
Posts: 450
Joined: Sat Feb 15, 2014 9:54 am
Contact:

Re: ZGE & Mac M1

Post by rrTea » Thu Nov 04, 2021 10:09 am

I tried to get used to using ZGE through FL, but didn't manage.

User avatar
VilleK
Site Admin
Posts: 2196
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: ZGE & Mac M1

Post by VilleK » Thu Nov 11, 2021 10:09 am

rrTea wrote:
Thu Nov 04, 2021 10:09 am
I tried to get used to using ZGE through FL, but didn't manage.
I can understand this. Do you have any other option to run ZGE?

ZGE designer tool uses the VCL library that is Windows specific and that makes it hard to port to Mac.

User avatar
rrTea
Posts: 450
Joined: Sat Feb 15, 2014 9:54 am
Contact:

Re: ZGE & Mac M1

Post by rrTea » Thu Nov 11, 2021 12:16 pm

Right now no (I gave away all my Windows computers) but I'll buy a laptop or something small like that when I get a chance (maybe one of those Intel NUCs, on which I tested ZGE already and it works well, or maybe a HP 24-dp1002ng). Too bad about the library, but there's no helping it if it's Windows specific.

User avatar
Ats
Posts: 469
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: ZGE & Mac M1

Post by Ats » Thu Nov 11, 2021 12:21 pm

Did you try using Wine emulator on MAC? I'm running ZGE perfectly on linux with it.
https://wiki.winehq.org/Download

User avatar
rrTea
Posts: 450
Joined: Sat Feb 15, 2014 9:54 am
Contact:

Re: ZGE & Mac M1

Post by rrTea » Thu Nov 11, 2021 2:33 pm

Emulators: in my context it's impractical. Easier to just get a new computer.

Post Reply