User Tag List

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 30

Thread: Allegro 4.4 and GME 0.6 Thread

  1. #1
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,760
    Level
    21
    vBActivity - Bars
    Lv. Percent
    68.72%

    Allegro 4.4 and GME 0.6 Thread

    A thread to discuss migration to Allegro 4.4.3, and GME 0.6.

    I'll add more later.

  2. #2
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    70 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    11,025
    Level
    31
    vBActivity - Bars
    Lv. Percent
    8.17%
    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?

  3. #3
    Keese
    ZC Developer

    Join Date
    Jan 2007
    Age
    34
    Posts
    52
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    778
    Level
    9
    vBActivity - Bars
    Lv. Percent
    79.01%
    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

  4. #4
    The Time-Loop Continues ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,817
    Mentioned
    259 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,940
    Level
    33
    vBActivity - Bars
    Lv. Percent
    24.2%
    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.

  5. #5
    Keese
    ZC Developer

    Join Date
    Jan 2007
    Age
    34
    Posts
    52
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    778
    Level
    9
    vBActivity - Bars
    Lv. Percent
    79.01%
    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.

  6. #6
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    70 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    11,025
    Level
    31
    vBActivity - Bars
    Lv. Percent
    8.17%
    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.

    Quick question: Does your allegro 4.4 build fix the alt-tab fullscreen crash, or any other fullscreen bug for that matter?
    Good question. I think ZoriaRPG uses Windows? Does alt-tabbing out of fullscreen work for you?

    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?
    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?

  7. #7
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,760
    Level
    21
    vBActivity - Bars
    Lv. Percent
    68.72%
    Quote Originally Posted by Gleeok View Post
    Quick question: Does your allegro 4.4 build fix the alt-tab fullscreen crash, or any other fullscreen bug for that matter?
    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.

  8. #8
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    70 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    11,025
    Level
    31
    vBActivity - Bars
    Lv. Percent
    8.17%
    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?

  9. #9
    The Time-Loop Continues ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,817
    Mentioned
    259 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,940
    Level
    33
    vBActivity - Bars
    Lv. Percent
    24.2%
    Quote Originally Posted by Grayswandir View Post
    Also I needed to add this line here or zquest would corrupt ag.cfg:
    https://github.com/gwx/ZeldaClassic/...186f20cf93125a
    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.

  10. #10
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    70 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    11,025
    Level
    31
    vBActivity - Bars
    Lv. Percent
    8.17%
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social