xboxscene.org forums

Pages: 1 ... 4 5 [6] 7 8 ... 10

Author Topic: Xmugen  (Read 2956 times)

guybird

  • Archived User
  • Sr. Member
  • *
  • Posts: 407
Xmugen
« Reply #75 on: August 07, 2009, 08:25:00 PM »

One way to do it would be to have it start searching in /mugen/data/ for "system.def".  That's a file that only screenpacks (not sound, fonts, etc) would have.  Then have it remember each instance of that file, and then cat the file for this line of info:

[Info]
name = "Pocket Fighter"

Have it display that screenpack with the info in the name field.

As far as I'm aware, there isn't any kind of screenpack selector for linmugen (Linux Mugen).  Are you 100% sure that the keyboard arrows won't map correctly?  If not, I'm not sure how you're going to remove the mappings for selecting a screenpack once mugen starts.
Logged

bc54

  • Archived User
  • Full Member
  • *
  • Posts: 196
Xmugen
« Reply #76 on: August 07, 2009, 11:29:00 PM »

yeah, there has to be some bug with key scan codes or something. i can map buttons to arrows, but unfortunately it will only work once then start to send the wrong keypress.

we could do something like limit the user to 8 screenpacks, then have the user name the screenpack folders A, B, X, Y, L, R, White, Black. it would be hard coded into the joyd config to launch the screenpack acording to button.

i dont know, im just trying to throw out ideas.

QUOTE
If not, I'm not sure how you're going to remove the mappings for selecting a screenpack once mugen starts.
im just going to have the mugen script kill the joyd daemon when it starts, then restart the joyd daemon when it ends.
Logged

bc54

  • Archived User
  • Full Member
  • *
  • Posts: 196
Xmugen
« Reply #77 on: August 08, 2009, 05:36:00 PM »

i am soo close to getting this right now.

i have gotten a rudimentary menu like system that basicly echo's press a to launch xmugen. press b for the screenpack menu, pres x for power menu...

this menu system utilizes joyd to execute scripts that echo the options. it for the most works, menus launch controller works on startup, it lists everything correctly. but there is one problem, i can get it to launch the mugen script correctly.

for some reason, when it tries to launch mugen, joy2key cant take control of the joypad properly. i have tried making a script called reload that kills the joyd daemon, removes the xpad and joydev modules, then loads the xpad and joydev modules. then i have joyd execute "/usr/bin/reload & /usr/bin/mugen" but it still doesnt work.

the specific error i keep getting is "joydev: Device or resource busy" followed by "joy2key: error getting axes: No such device" as a result of the first error.

im am completely lost. i dont know what to do now.
Logged

guybird

  • Archived User
  • Sr. Member
  • *
  • Posts: 407
Xmugen
« Reply #78 on: August 09, 2009, 01:32:00 PM »

:/  Wish I could help, but you're far beyond what I could've done.  So for the menu, you're using joyd; why use joy2key if you can use it?  Can you only have one set of button configurations for it?  Or can you make multiple configs which your menu script will load/unload as necessary?
Logged

bc54

  • Archived User
  • Full Member
  • *
  • Posts: 196
Xmugen
« Reply #79 on: August 09, 2009, 01:55:00 PM »

well, the thing with joyd is that it takes button presses on a joypad, then executes commands as specified in the config. it doesnt map buttons to keyboard keys.

however, it is possible to map buttons to keys, but it requires the use of an external tool, like xdotool. but, unfortunately xdootool requires a different version of glib. so, if the was a virtual keyboard app, that doesnt require X, like xvkbd, that had the capability to simulate keypress from the command line then we could stop using joy2key and use joyd.

but, i have googled a lot and i havent found anything. but i think there is a way, if you look at this thread, friedgold offers to help the guy with setting up joyd for use with mugen. so i think there is a way but i dont have any idea.
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Xmugen
« Reply #80 on: August 11, 2009, 08:36:00 AM »

QUOTE(bc54 @ Aug 10 2009, 03:55 AM) View Post

but, i have googled a lot and i havent found anything. but i think there is a way, if you look at this thread, friedgold offers to help the guy with setting up joyd for use with mugen. so i think there is a way but i dont have any idea.

What I did for xboxhdm2 was to release the source code and document my steps - so that others with alternative  views and different expertises could contribute to the advancement of the tool beyond what I as one individual could possibly do - scullc and fwz chipped in at the crucial moments to overcome technical obstacles. Food for your thought  dry.gif
Logged

bc54

  • Archived User
  • Full Member
  • *
  • Posts: 196
Xmugen
« Reply #81 on: August 11, 2009, 02:47:00 PM »

ok, first nio107's questions.

i dont know if you mean faster as in the gameplay or the loading time. i havent timed it but the loading times seem decent and the gameplay is mostly smooth. there is a little bit of slowdown when you get a K.O. and because it is based on xdsl, boot time is not bad either.

i am useing the latest linux mugen to my knowledge. it says it is march 14, 2002 version, so i think that is the latest.

i dont know what you mean a "ported winmugenplus". if you mean a real port, no because in order to port anything to the xbox you NEED the source code and mugen was closed source, so it will never have a native port. but it there was an open source clone of mugen written in C then it would be possible. but unfortunately shugendo, the best candidate is not open source. i think i read somewhere that the developer, sakirsoft, said that he would port it to the xbox if openxdk could compile it. he has already ported it to the psp, and he said he would like to see a port on the xbox, but doesnt want to do it with ms xdk.

the problem with that setup you have in your link is that it is based on a very limited linux setup. so for example, when you exit mugen it locks you in the command line. what this new setup will do allow mugen to be scripted to run a menu like thing when you exit mugen. also, this will more ability to log mugen, finding the source of errors then fixing them. also, xdsl has worked with every screenpack ad charset i have thrown at it, unlike any other setup i have tried.

and finally, from what i have done and know, a large swap file like 3gb wont make much, if any, difference. swap is only used when the the computer, in this case xbox, has gotten close to the ram limit, so it begins to use swap as ram. but swap is terribly slow compared to ram. i have run xtreme xmugen, the largest screenpack/charset i have perfectly on 512mb swap, and then i tried it one 1gb swap and i didnt notice a difference.

@ldotsfan
yeah, thats a good idea. i wasnt giving up if anybody got that idea. im probably going to take a few days off, but ill get back to it. ill post someting on megaupload or something that has all the files needed to replicate my setup.
Logged

bc54

  • Archived User
  • Full Member
  • *
  • Posts: 196
Xmugen
« Reply #82 on: August 11, 2009, 04:48:00 PM »

ok, i have uploaded all of my bash scripts and configs and here is the link.

http://www.megaupload.com/?d=RJ87RLVG

so for this to work, you need to get the latest linux mugen version, this is where i got it:

http://www.mugenatio...load.php?id=812

this ^ will come with the stock screenpack and char (kung fu man). if you want, just put in whatever screenpacks and chars you want. now, you need to change the mugen.cfg so joy2key works correctly. make sure it say this at the end:
CODE
[P1 Keys]
Jump   = 24
Crouch = 26
Left   = 27
Right  = 25
A      = 19
B      = 20
C      = 21
X      = 16
Y      = 17
Z      = 18
Start  = 22
 
; P2 Key config (configurable from M.U.G.E.N)
[P2 Keys]
Jump   = 38
Crouch = 40
Left   = 41
Right  = 39
A      = 33
B      = 34
C      = 35
X      = 30
Y      = 31
Z      = 32
Start  = 36
this map the keys correctly, but you will still need a keyboard to correctly launch mugen from the command line (just type "mugen" then press enter.)

also, i have edited the linuxboot.cfg so that it starts in text mode, this is what i have:
CODE
title XDSL Xmugen
kernel KNOPPIX/linux24
initrd KNOPPIX/ird-loop.gz
append root=/dev/ram0 init=/etc/init rw video=xbox:640x480,hoc=20,voc=20 rootfs_name=xdslfs 2 quiet kbd-reset
the important part is the "2" on the "append" line. this runs init level 2, text mode.

also, i want somebody to look at my /opt/bootlocal.sh, it has this:
CODE
#!/bin/bash
# put other system startup command here
/sbin/syslogd
set -- /mnt/hda50/*
if [ ! -e "$1" ]
then
mount /dev/hda50
fi
unset
set -- /mnt/hda55/*
if [ ! -e "$1" ]
then
mount /dev/hda55
fi
unset
sudo /usr/bin/mugenstart &
are the "set -- /mnt/hda50/*..." the best way to determine which drive to mount? what it basically does is if files/directories dont exist in /mnt/hda50 (E drive) then it mounts /dev/hda50. then the same thing for F.

i my next post, im going to explain how to get my setup with my files.
Logged

bc54

  • Archived User
  • Full Member
  • *
  • Posts: 196
Xmugen
« Reply #83 on: August 11, 2009, 05:33:00 PM »

OOPS!! i used the wrong files in my package above, instead use this one

http://www.megaupload.com/?d=P38B49J9

you absolutely need a keyboard to test this.
then get the linux mugen from the post above. copy it to either E:\Games\xmugen or F:\Games\xmugen. capitalization MATTERS! make sure the mugen executeable is named "mugen". also, make sure you chars ar xmugen compatible, like for me "frieza" from dbz had a file called "buyu+hd.act" the + symbol doesnt work on fatx, so i had to rename it and edit the frieza.def to match. then edit the file data/mugen.cfg as specified above. in my new pack, there is my mugen.cfg, already edited for the xbox.

extract the zip file containing my scripts/configs. ftp them to E:\ (so you have the folder E:\mugenstuff). this tut requires theyre on E:\ not F:\!

start xdsl in frugal mode and create a new loopback install (or use your current loopback, it doesnt really matter, but im going to assume its a fresh loopback for the rest of the minitut). select at lest 300mb loopback size. use the defaults for things like autologin (enable) and the other questions it asks. choose whatever size swap you want, i use 1024mb (1gb). then reboot and launch the loopback instal. dont change the linuxboot.cfg yet!

once in the xdsl desktop, open the menu, select xdslupgrade> upgrade sound > install alsa. this will instal alsa and gnu utils.

then open up the menu, select my dsl > mydsl browser. click text search, and type in gcc. pick the package "gcc1-with-libs.dsl" i use the dsl package, but i figure the .unc should be the same.

once these packages are installed, a keyboard is needed to continue, or you can ssh (start ssh daemon from the menu first), but you still need a keyboard later.. hit "ctrl+alt+backspace" to go to the command line. become super user (type su) then enter the following one by one:
CODE
mount /dev/hda50 #if its already mounted then continue on.
mv /opt/bootlocal.sh /opt/bootlocal.sh.bak
cp -R /mnt/hda50/opt/bootlocal.sh /opt
cp -R /mnt/hda50/usr/bin/* /usr/bin
cp -R /mnt/hda50/root/* /root
# now for me the hidden files didnt copy over, so i have to do it after.
cp -R /mnt/hda50/root/.joy* /root
update-rc.d ssh defaults


now, edit the linuxboot.cfg so that somewhere in the append line it has a 2. in my new pack, i have included my linuxboot.cfg.
you can do this like so:
CODE
nano /mnt/hda50/linuxboot.cfg

then add the 2 in there, then press ctrl+x, y, enter.

then reboot, and when you start xdsl again you will see something like this:
Welcome to...
Xmugen

Press "A" to Quick Start Xmugen...
Press "B" to load Screenpack Selecetor Menu...
Press "X" to load Power Menu...
Press "Back" to Reload Main Menu...

then, play with the menu system, but dont actually launch xmugen. joy2key wont launch properly and for me the keyboard stops working. you cann ssh in and reboot the xbox if you accidentily do start mugen.

to test mugen, hit ctrl+c, and you shoiuld see "root@[/]: or something like that. type "mugen" and press enter. then mugen will start. use start to select menu items because A/B/X/Y/White/Black will crash mugen!

good luck and ask questions if i missed something.
Logged

guybird

  • Archived User
  • Sr. Member
  • *
  • Posts: 407
Xmugen
« Reply #84 on: August 12, 2009, 10:57:00 AM »

It seems as though we're to the point now that either the loading script, or the joy2key is causing problems.  Are you sure that joy2key compiled correctly?  Alg5 (original porter of XMugen) claimed that his joy2key was an "ugly hack", and I'm not sure how he compiled it, but he led me to believe that it wasn't a typical compile.  Have you tried taking our existing joy2key's from the earlier XMugen's and tossed them into this setup?
Logged

bc54

  • Archived User
  • Full Member
  • *
  • Posts: 196
Xmugen
« Reply #85 on: August 12, 2009, 01:28:00 PM »

yeah, joy2key compiled perfectly on XDSL. its weird, it wouldnt compile on my computer, but it worked flawlessly on the xbox.

its using joy2key 1.6.1 right now, but there is a newer version, 1.6.3 but it wouldnt compile on the xbox, so i compiled it on my computer, but it requires a later version of glibc. and thats something that is not going to happen.

i think i have tried using alg5's joy2key, but it said "using parameters." and just hung there with no sign of input.

have you, or anybody else, gotten mugen to run following my steps above?
Logged

nio107

  • Archived User
  • Newbie
  • *
  • Posts: 9
Xmugen
« Reply #86 on: August 12, 2009, 07:30:00 PM »

QUOTE
this map the keys correctly, but you will still need a keyboard to correctly launch mugen from the command line (just type "mugen" then press enter.)


I can't... I don't have a keyboard... ):

so unless there's no need to use a keyboard, I can't help...
Logged

bc54

  • Archived User
  • Full Member
  • *
  • Posts: 196
Xmugen
« Reply #87 on: August 12, 2009, 08:13:00 PM »

yeah, eventually i want it to work without a keyboard, but unfortunately as of right now it is required.

i mean, you can run mugen without a keyboard, thru ssh, but the joy2key will not map keys to the correct virtual terminal so youll be stuck at the F1 screen.
Logged

guybird

  • Archived User
  • Sr. Member
  • *
  • Posts: 407
Xmugen
« Reply #88 on: August 13, 2009, 09:55:00 AM »

Has anyone tried putting winmugen (not linmugen) through wine and seeing what kind of performance it gets?  That would be the next big step up from the current case sensitive & character sensitive setup we have.  I've never used wine before, so I don't know how much overhead it takes.
Logged

guybird

  • Archived User
  • Sr. Member
  • *
  • Posts: 407
Xmugen
« Reply #89 on: August 13, 2009, 11:07:00 AM »

CODE
title XMugen
kernel KNOPPIX/linux24
initrd KNOPPIX/ird-loop.gz
append root=/dev/ram0 init=/etc/init rw video=xbox:640x480,hoc=20,voc=20 rootfs_name=xdslfs 2 quiet kbd-reset


7.  Now start Xdsl again and select the "XMugen" option from the menu.  You will see something like this:
Welcome to...
Xmugen

Press "A" to Quick Start Xmugen...
Press "B" to load Screenpack Selector Menu...
Press "X" to load Power Menu...
Press "Back" to Reload Main Menu...

Then, play with the menu system, but don't actually launch xmugen.  Joy2key wont launch properly and for me the keyboard stops working.  You can ssh in and reboot the xbox if you accidentally do start mugen.

To test mugen, on your keyboard hit ctrl+c, and you should see "root@[/]: or something like that.  If you're ssh'ing in, skip that.  Type "mugen" and press enter, then mugen will start.  Use start to select menu items because A/B/X/Y/White/Black will crash mugen!


Now that's out of the way, you'll notice a few changes to the how to, nothing really serious though.  Now when I tested this, when I ssh'd in and ran mugen, this is what I get:


CODE
joyd: no process killed
Using Xmugen on F Drive...
sudo: joy2key: command not found
sudo: joy2key: command not found
Allegro application is running on VT 5
joy2key: no process killed


Either it isn't compiled correctly, or it is "installed" on my setup.  Also no buttons worked with the menu screen.  Only when I ssh'd in was I able to do anything.
Logged
Pages: 1 ... 4 5 [6] 7 8 ... 10