Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Meka 0.80 with new sound engine *TESTERS WANTED!*

Reply to topic Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8
Author Message
  • Joined: 19 Nov 2015
  • Posts: 30
Reply with quote
Post Posted: Thu Jun 14, 2018 10:03 pm
I don't think this really makes a difference because I've had every "applet" closed before and it still did this. Unless I'm not understanding what an applet is.
MEKA screenshot.PNG (240.31 KB)
MEKA screenshot.PNG

  View user's profile Send private message
  • Joined: 22 Apr 2018
  • Posts: 80
Reply with quote
Post Posted: Tue Jul 03, 2018 7:18 pm
Last edited by bsittler on Wed Jul 04, 2018 4:16 pm; edited 1 time in total
Tried out MEKA for the first time on Mac OS X — nice indeed! — and noticed a small patch was needed for working fullscreen:

diff --git a/meka/srcs/video.c b/meka/srcs/video.c
index 09773e4..efb7cda 100644
--- a/meka/srcs/video.c
+++ b/meka/srcs/video.c
@@ -142,7 +142,11 @@ static int Video_ChangeVideoMode(t_video_driver* driver, int w, int h, bool full
    // Create new display
    int display_flags = driver->flags;
    if (fullscreen)
+      #if ARCH_MACOSX
+      display_flags |= ALLEGRO_FULLSCREEN_WINDOW;
+      #else
       display_flags |= ALLEGRO_FULLSCREEN;
+      #endif
    else
       display_flags |= ALLEGRO_WINDOWED;
    al_set_new_display_flags(display_flags);


Also the location of the meka.cfg file was non-obvious to me, I needed to edit it to change video_gui_resolution to 1366x768 for this old MacBook Air. In case it helps others, the config file location is ~/Library/Application Support/org.smspower.meka/meka.cfg

I also noticed the .app has no icon by default, but I just used Data/machine_sms.tga expanded to square with magenta replaced by transparency and I think it looks OK.

Build steps I use, likely relying on installation of some other tools (a least pbmplus or netpbm, I think, and using allegro5 from MacPorts):
(
    (
         cd srcs/ &&
              make \
                  INC_OS='-Ilibs -I../include -I/usr/local/include -I/opt/local/include' \
                  LIB_OS='-L/opt/local/lib -l freetype -framework OpenGL -framework CoreFoundation -framework OpenAL -framework AudioToolbox -framework AppKit -framework IOKit -framework Foundation'
     ) &&
          tools/dist_bin_osx.sh  &&
          tgatoppm < Data/machine_sms.tga |
               pnmpad -width 512 -height 512 -white |
               ppmchange '#FFFFFF' '#FF00FF' |
               pnmtopng -transparent='#FF00FF' > icon.png &&
          png2icns icon.icns icon.png &&
          echo 'read '\''icns'\'' (-16455) "icon.icns";' > icon.r &&
          Rez -o Dist/Meka.app/$'Icon\r' icon.r &&
          SetFile -a C Dist/Meka.app &&
          rm -f icon.{png,icns,r}
)


edit: re-added spaces and newlines for readability
  View user's profile Send private message
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 7937
  • Location: Paris, France
Reply with quote
Post Posted: Tue Jul 03, 2018 9:14 pm
Thank you, I pushed the first fix to the repo for now.

I have an idea of how to evolve Meka so it could be back in a decent state (easier to compile and to work with) and will try to perform that cleanup in 2018..
  View user's profile Send private message Visit poster's website
  • Joined: 19 Nov 2015
  • Posts: 30
Reply with quote
Post Posted: Thu Aug 09, 2018 5:57 am


It has been several months since I posted this and I have made the post about my problem with MEKA, and no one seemed to respond or know what to do here so I'll post it again.

These applet things I have probably have nothing to do with "leaking memory"
  View user's profile Send private message
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 7937
  • Location: Paris, France
Reply with quote
Post Posted: Thu Aug 09, 2018 7:08 am
If you open the Task Manager and keep it open, does the Memory amount used by mekaw.exe grows over time?
  View user's profile Send private message Visit poster's website
  • Joined: 19 Nov 2015
  • Posts: 30
Reply with quote
Post Posted: Thu Aug 09, 2018 8:01 am
Bock wrote
If you open the Task Manager and keep it open, does the Memory amount used by mekaw.exe grows over time?


The memory usage increases mostly 8 kilobytes every second or so.
  View user's profile Send private message
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 7937
  • Location: Paris, France
Reply with quote
Post Posted: Thu Aug 09, 2018 8:24 am
Thanks, will look it up when I can but Meka is a bit of a mess at the moment.
  View user's profile Send private message Visit poster's website
  • Joined: 19 Nov 2015
  • Posts: 30
Reply with quote
Post Posted: Thu Aug 09, 2018 8:26 am
Bock wrote
Thanks, will look it up when I can but Meka is a bit of a mess at the moment.


Is there anything I can do to stop this leaking? Like can I find out where the memory is being leaked to so I can monitor it?
  View user's profile Send private message
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 7937
  • Location: Paris, France
Reply with quote
Post Posted: Thu Aug 09, 2018 8:37 am
If you know C++ and can compile Meka you may use a tool for this purpose.
  View user's profile Send private message Visit poster's website
  • Joined: 01 Sep 2018
  • Posts: 5
Reply with quote
Linux (Ubuntu Mate 18.04) Compile
Post Posted: Sat Sep 01, 2018 12:28 am
Hi,
I managed to compile MAKE on Ubuntu Mate 18.04 64-bit, and it seems to run fine.
What I needed to do to compile it was remove the trailing ".0" from the allegro pkg-config line in the make file otherwise it did not find the libraries.
Original:
ifeq ($(SYSTEM), unix)
LIB_ALLEG = `pkg-config --cflags --libs allegro-5.0 allegro_image-5.0 allegro_audio-5.0 allegro_font-5.0 allegro_primitives-5.0 allegro_ttf-5.0`
endif

New:
ifeq ($(SYSTEM), unix)
LIB_ALLEG = `pkg-config --cflags --libs allegro-5 allegro_image-5 allegro_audio-5 allegro_font-5 allegro_primitives-5 allegro_ttf-5`
endif
  View user's profile Send private message
Reply to topic Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8



Back to the top of this page

Back to SMS Power!