A thread to discuss migration to Allegro 4.4.3, and GME 0.6.
I'll add more later.
A thread to discuss migration to Allegro 4.4.3, and GME 0.6.
I'll add more later.
http://www.zoriarpg.com/zc/LoE_Userbar.png http://zoriarpg.com/zc/EiyuuUserbar.png
http://www.zoriarpg.com/zc/CIS_Original.pnghttp://www.zoriarpg.com/zc/CIS_II_Userbar.png
Latest ZC 2.53 (Win32) | (Technical Specification | Changelog)
Latest ZC 2.55(Win32) | 2.55 Modules | (Techical Specification | Changelog)
ZC Source Code | ZClaunch Source Code
Featured Scripts & Headers: RPG.zh ( v. a0.97.1 ) ( RPG.zh Thread ) | Zelda 3 Thief's Town Treasure Chest Minigame (ffc) | Bobomb (enemy)
ZScript & ZC-Related Pastebin | ZC Dev & Builds | ARCHIVED ZC Dev & Builds | YouTube Channel | Quests and ZScript Repository
All of the code that I create and publish here is free for use, modification and distribution under the GPL v2.0, or v3.0 where applicable.
Here are the main questions I have about the switch:
1. What are the main API changes in version 4.4? What changes have to be made to the ZC/ZQ code itself to get it to work with 4.4 (I've been told it's just a dozen lines or so)?
2. What is needed to get the sound libraries to work with allegro 4.4? Will the existing libraries Just Work when linked against 4.4?
3. What is the problem with GME? My understanding is that it was a library independent of Allegro?
To get allegro 4.4 working, I just needed to write replacements for the functions that were hacked onto ZC's version of allegro 4.2:
https://github.com/gwx/ZeldaClassic/...leg_compat.cpp
https://github.com/gwx/ZeldaClassic/...alleg_compat.h
I stuck the include in zc_alleg.h and it worked fine.
Also I needed to add this line here or zquest would corrupt ag.cfg:
https://github.com/gwx/ZeldaClassic/...186f20cf93125a
Quick question: Does your allegro 4.4 build fix the alt-tab fullscreen crash, or any other fullscreen bug for that matter?
This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.
I'm running on linux and haven't had any of those issues in the first place. I gave the files to Zoria, and he mentioned something of that nature, though.
Edit: With regards to the sound, I appear to be having the same issue as over here: http://www.armageddongames.net/showt...th-allegro-cfg
I got the same issue when I tried a 4.2 version I found by searching through old debian packages, so I think it's an artifact of how allegro was built. That post is from a while ago. Maybe you guys already fixed it somehow, and remember what to do?
Last edited by Grayswandir; 12-27-2016 at 01:19 AM.
From the linked thread it sounds like the problem is with ALSA (which does get used for me also, when I build Allegro using default settings on Ubuntu). It doesn't seem to be related to 4.2 vs 4.4.
Good question. I think ZoriaRPG uses Windows? Does alt-tabbing out of fullscreen work for you?Quick question: Does your allegro 4.4 build fix the alt-tab fullscreen crash, or any other fullscreen bug for that matter?
I'm still interested in the answer to this question. Will the existing sound libraries link against 4.4 unmodified? What is the issue with GME?2. What is needed to get the sound libraries to work with allegro 4.4? Will the existing libraries Just Work when linked against 4.4?
The Allegro 4.4 build does fix most of the fullscreen bugs on Win 10. Fullscreen opens with no complaints. If you alt+tab, it doesn't crash, but when you alt+tab back, the graphics are squished, and you need to exit and reenter fullscreen to fix it. That could be from one of the ag.cfg settings, or something else though.
Other than that, and the issue with me using dynamic libs, it works in fullscreen seemingly flawlessly, which is why I asked others to test it, but apparently I forgot to static link the bastards, which means starting over with allegro and the libs, and rebuilding them, just to see if that is the cause of the audio crash, which from what I can tell, stems from NSFs.
http://www.zoriarpg.com/zc/LoE_Userbar.png http://zoriarpg.com/zc/EiyuuUserbar.png
http://www.zoriarpg.com/zc/CIS_Original.pnghttp://www.zoriarpg.com/zc/CIS_II_Userbar.png
Latest ZC 2.53 (Win32) | (Technical Specification | Changelog)
Latest ZC 2.55(Win32) | 2.55 Modules | (Techical Specification | Changelog)
ZC Source Code | ZClaunch Source Code
Featured Scripts & Headers: RPG.zh ( v. a0.97.1 ) ( RPG.zh Thread ) | Zelda 3 Thief's Town Treasure Chest Minigame (ffc) | Bobomb (enemy)
ZScript & ZC-Related Pastebin | ZC Dev & Builds | ARCHIVED ZC Dev & Builds | YouTube Channel | Quests and ZScript Repository
All of the code that I create and publish here is free for use, modification and distribution under the GPL v2.0, or v3.0 where applicable.
Now that the repositories are sorted out, I'm interested in making this a top priority, especially if as you say it fixes the Windows crash issues.
I'm still unclear on the relationship between the sound libraries and Allegro 4.4. Is there a compatibility issue with GME? Or is that an unrelated topic?
I am (figuratively) literally scratching my head as to why a packfile routine would affect a config file write. All packfile_password("") should do is effectively set the global packfile password to a zero-length string. ....?
[edit] Oh, right allegro 4.4. That must be a bug they introduced since 4.2. Sneaky little buggers.
Last edited by Gleeok; 12-30-2016 at 06:00 AM.
This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.
Maybe they changed the config file to use the global packfile password (if set)?
EDIT: This does seem to be the case. flush_config uses pack_fopen to do its file IO, which inherits the current global packfile password at the time the file is opened.
So I managed to get ZC to compile against Allegro 4.4 and run (https://github.com/ArmageddonGames/Z...ree/DD/alleg44). The good news is that ZoriaRPG is correct; the fullscreen crash is gone, though there is screen corruption once you alt-tab back. The fixes he lists also are indeed all that is needed to get the existing code to compile, though unfortuantely getting Allegro 4.4 to compile out of the box is a somewhat painful process (some of the stdint fixes had to be put back into the Allegro headers, etc). Allegro 4.4 also requires DirectX, which has to be installed before you can compile the library, and is incorrectly configured to try to use the DirectDraw, which has been removed from DirectX.
There are currently 2 users browsing this thread. (0 members and 2 guests)