Mednafen Members Members   Search Search   Help Help   Register Register   Login Login   Home Home
Home » Mednafen » Bugs » gba(gameboy advance) problem
Show: Today's Messages  :: Show Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
gba(gameboy advance) problem [message #1034] Sat, 29 December 2007 07:02 Go to next message
seymsag  [PM]
Hello,

I have mednafen 0.8.6 and I am runing it on Yellow Dog Linux on Playstation 3.When I try to open a gba rom it gives a segmentation error and crashes, is there a fix for that?Also, is playing it on fullscreen on sdtv posssible?

Thanks

edit:I compiled the source myself ,this makes my mednafen unsupported I guess, so sorry if I posted this in wrong place.

[Updated on: Sat, 29 December 2007 07:04]

Re: gba(gameboy advance) problem [message #1036 is a reply to message #1034 ] Sat, 29 December 2007 16:14 Go to previous messageGo to next message
Administrator  [PM]
I don't have any big-endian machines to test Mednafen on, so it's probably not going to work flawlessly(if at all) on such platforms(PowerPC included).

Do you want to donate a PS3? ;b


You could try running it in gdb:

gdb ./mednafen
set args /path/to/GBA/game.gba
r
bt

and copy/paste the output of the bt(backtrace) command.

[Updated on: Sat, 29 December 2007 16:16]

Re: gba(gameboy advance) problem [message #1039 is a reply to message #1036 ] Sun, 30 December 2007 04:59 Go to previous messageGo to next message
seymsag  [PM]
Thanks for the help, actually gbc and Pcengine games I tried work flawlessly on mednafen on my machine.
Here is the output of bt command:


#0 0x100dfa30 in Load (name=Variable "name" is not available.
) at GBA.cpp:2522
#1 0x1000e40c in MDFNI_LoadGame (name=0xffa469d9 "Desktop/Oyunlar/gba/cb.gba") at mednafen.cpp:390
#2 0x10054ecc in LoadGame (path=0xffa469d9 "Desktop/Oyunlar/gba/cb.gba")
at drivers/main.cpp:579
#3 0x10055d24 in main (argc=2, argv=0xffa46854) at drivers/main.cpp:1138


I had to writa "gdb mednafen" instead of "gdb ./mednafen"
Re: gba(gameboy advance) problem [message #1040 is a reply to message #1034 ] Sun, 30 December 2007 18:28 Go to previous messageGo to next message
Administrator  [PM]
Around line 2522 in src/gba/GBA.cpp, replaced:

 if(!useBios)
 {
   memcpy(bios, myROM, sizeof(myROM));
 }

 #ifndef LSB_FIRST
 for(unsigned int i = 0; i < sizeof(myROM)/4; i++)
 {
  WRITE32LE(&myROM[i], myROM[i]);
 }
 #endif


with

 if(!useBios)
 {
  memcpy(bios, myROM, sizeof(myROM));
  Endian_A32_NE_to_LE(bios, sizeof(myROM) / 4);
 }


And at the beginning, change:
#include "../md5.h"

to
#include "../md5.h"
#include "../endian.h"
Re: gba(gameboy advance) problem [message #1042 is a reply to message #1040 ] Mon, 31 December 2007 07:44 Go to previous messageGo to next message
seymsag  [PM]
Thanks, works perfectly now, except for fullscreen.I am running it on a sdtv however so that means It doesnt support fullscreen for 480i?(It says no
video mode large enough for "horizontal"x"vertical")

[Updated on: Mon, 31 December 2007 08:47]

Re: gba(gameboy advance) problem [message #1043 is a reply to message #1042 ] Mon, 31 December 2007 16:49 Go to previous messageGo to next message
haikai  [PM]
seymsag wrote on Mon, 31 December 2007 08:44

Thanks, works perfectly now, except for fullscreen.I am running it on a sdtv however so that means It doesnt support fullscreen for 480i?(It says no
video mode large enough for "horizontal"x"vertical")



Hint: search the documentation for -<system>.xscalefs and -<system>.yscalefs.
Re: gba(gameboy advance) problem [message #1044 is a reply to message #1043 ] Mon, 31 December 2007 18:07 Go to previous messageGo to next message
seymsag  [PM]
Thanks for the hint, I can control the size of window in windowed mode and select fullscreen from screen properties(so no problem), but -<system>.xscalefs or -<system>.yscalefs command doesnt effect full screen size for me, I also tried editing cfg file, I still get the same error.

[Updated on: Mon, 31 December 2007 18:28]

Re: gba(gameboy advance) problem [message #1045 is a reply to message #1044 ] Mon, 31 December 2007 18:34 Go to previous messageGo to next message
haikai  [PM]
Are you certain that:

mednafen -gba.xscalefs 2 -gba.yscalefs 2 -fs 1 <romname>

doesn't work for you? Huh. Aren't you running at 640x480? The native resolution of the GBA is 240x160, so the above command should work. And then you'll want -gba.stretch 1 - or to run at another resolution or scale setting if you want the image to better fill the screen while preserving aspect ratio.

EDIT: haha, oops. You'll also need to change -gba.xres and -gba.yres to 640 and 480 respectively. The documentation is better than I am. :b

[Updated on: Mon, 31 December 2007 18:46]

Re: gba(gameboy advance) problem [message #1046 is a reply to message #1045 ] Mon, 31 December 2007 20:00 Go to previous messageGo to next message
billb  [PM]
haikai wrote on Mon, 31 December 2007 19:34


EDIT: haha, oops. You'll also need to change -gba.xres and -gba.yres to 640 and 480 respectively. The documentation is better than I am. :b


It may be that video mode on the PS3 isn't actually 640 x 480 since there is a "bordered" mode to allow for overscan. I think it's actually 512 x 384, but am not sure. May be better to use this command to determine the screen resolution:

xdpyinfo | grep 'dimensions'

Then set -gba.xres and -gba.yres appropriately.

Also, I want to thank "Administrator" for the GBA.cpp changes that fixed the problem! Mednafen runs great on the PS3 stretched to 1280x720 with scale3x.

Re: gba(gameboy advance) problem [message #1047 is a reply to message #1046 ] Tue, 01 January 2008 04:52 Go to previous message
seymsag  [PM]
I just changed the full screen resolution manually to 576x384 by editing the cfg file and it works perfectly.

Thanks for the help
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic:Cheat Problem
Next Topic:Total lock-up at higher resolutions
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ ]

Current Time: Sun May 5 08:11:29 CDT 2024
.:: Contact :: Home ::.

Powered by FUDforum.
Copyright © FUDforum Bulletin Board Software