maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   PSX4All Maemo Edition (https://talk.maemo.org/showthread.php?t=47904)

late666 2010-08-28 06:04

Re: PSX4All Maemo Edition
 
what premission do I need to set?

you don't get screen flickering when you use both cyclemult and skip? i'm playing chronocross and it happens only in battles but it drives me crazy...

Magik 2010-08-28 08:58

Re: PSX4All Maemo Edition
 
Quote:

memory card saves and save states both
DO NOT WORK IN PXS4M 0.4.2
They work.
Delete both memory cards and it will be fine(search the thread)

beli 2010-08-28 13:20

Re: PSX4All Maemo Edition
 
Hi,

I created a simple GUI in python to launch a game with psx4m

I also added a keys file with the gdk keyvalues used by psx4m

Warning: this is only for people who know what they are doing...

I uploaded it here http://studwww.ugent.be/~tverbele/psx4m.zip

It in the /opt/ dir and the install script normally creates a shortcut to the app.

If it also works for other people maybe someone can help to package this in a nice .deb?

When I have time i'll maybe take a look to manage the key mapping from the GUI as well.

yodawg 2010-08-28 20:22

Re: PSX4All Maemo Edition
 
hey bell id like to use your gui
to it install your version is it as simple as transferring the files to the n900 and running the install script?

beli 2010-08-28 21:47

Re: PSX4All Maemo Edition
 
yup, it worked that way for me... just make sure to put it in the /opt/ dir

yodawg 2010-08-28 21:50

Re: PSX4All Maemo Edition
 
is your version .42? and does it having working memory card and save states?

IINexusII 2010-08-29 01:49

Re: PSX4All Maemo Edition
 
nice job! it works, but only waxd are enabled it seems for me and q to quit emulator.

you seemed to have configured it for the gamegripper, but most of the buttons dont work :P

and i have no idea whats what in the keys file so trying to change them myself would be abit impossible

confusedfella 2010-08-29 02:14

Re: PSX4All Maemo Edition
 
whats the differance between psx4m and psx4all?
I want to use this emulator but im completely clueless. can anyone give me a step by step guide how to install it properly? and do i need to overclock my device to run games smoothly?

Thanks

IINexusII 2010-08-29 03:02

Re: PSX4All Maemo Edition
 
Quote:

Originally Posted by confusedfella (Post 801106)
whats the differance between psx4m and psx4all?
I want to use this emulator but im completely clueless. can anyone give me a step by step guide how to install it properly? and do i need to overclock my device to run games smoothly?

Thanks

with psx4m it looks much better graphics wise, much smoother text and all.

to install download the zip file in the link above

copy it or copy extracted contents to n900 root

it would be better if you have something like filebox installed, then you could just copy the psx4m folder to /opt or do mv /home/user/MyDocs/psx4m /opt i think

then do (in xterminal) sh /opt/psx4m/install.sh

it should then appear in your applications menu and it would be ablt like the 0.3.9 gui

chaoscreater 2010-08-29 03:12

Re: PSX4All Maemo Edition
 
Quote:

Originally Posted by Crogge (Post 794352)
The PSX Emu is one of the primary reasons why I have the N900, it would be sad if the development would stop. That would be the end of my N900 :/

N900 aint the only phone that can run it.....almost every device can run it, Windows Mobile, iPhone, Android, etc.

confusedfella 2010-08-29 03:19

Re: PSX4All Maemo Edition
 
thanks nexus but i got an error.

I copied the file to the n900 root and opened xterminal and typed sh /opt/psx4m/install.sh
it gave this error sh: can't open /opt/psx4m/install.sh

what do I do?

IINexusII 2010-08-29 04:20

Re: PSX4All Maemo Edition
 
you need to copy the psx4m folder to /opt first. use filebox as it is easier (check app manager) and then run the sh command as root

confusedfella 2010-08-29 04:57

Re: PSX4All Maemo Edition
 
Thanks alot nexus youve been very helpfull i got one more question what type of files does this application run? does .bin work?

thanks again buddy

IINexusII 2010-08-29 05:02

Re: PSX4All Maemo Edition
 
Quote:

Originally Posted by confusedfella (Post 801160)
Thanks alot nexus youve been very helpfull i got one more question what type of files does this application run? does .bin work?

thanks again buddy

so far .iso .bin .img and .mdf workd for me, depends on the game really not all of them work

lukash 2010-08-29 08:53

Re: PSX4All Maemo Edition
 
@beli: You can run `dpkg-buildpackage -rfakeroot` when in the psx4m root directory to build the package. If you need to run some stuff after installation, you can put it into the 'debian/postinst' file (bash script). It would be good to also undo the changes in 'debian/postrm'.

I think it would be better to use Bratag's ini parser instead of what you're using now though :)

beli 2010-08-29 09:09

Re: PSX4All Maemo Edition
 
The keys are configured for my N900 which has a spanish keyboard layout. I didn't have enough time to create a complicated config parser.

The numbers in the keys file are the keymap codes for:
Left
Right
Up
Down
o
x
triangle
square
Select
Start
L2
R2
L1
R2
Quit

The codes to enter you can find looking at http://www.koders.com/c/fidD9E5E78FD...FADE79933.aspx and converting the hex codes to decimal with a converter like http://www.xs4all.nl/~erikl/baseconv.html

I know its a bit complicated but the idea is to generate this keys file from the GUI later on.

The file chooser allows .img, .bin and .iso for now.

The ideal case would be to package it in a .deb that does the installation script as postinstall and checks for the python deps, but I didn't have time to figure that out yet. Any help is welcome.

Kevstacey 2010-08-29 10:38

Re: PSX4All Maemo Edition
 
i just save my games as i would on a normal ps1. i didnt do anything special to enable save/load.
i have savestates for resident evil, crash bandicoot and abes oddysee and all run fine loading from game menu :)

confusedfella 2010-08-29 13:23

Re: PSX4All Maemo Edition
 
I loaded a .bin file (crash team racing) but when i press start nothing happens. any ideas?

leetut 2010-08-29 13:32

Re: PSX4All Maemo Edition
 
crash team racing wouldnt work for me bro, try another game, crash 1 works

confusedfella 2010-08-29 14:44

Re: PSX4All Maemo Edition
 
i tried 3 .bin files and none of them work do i have to do anything before loading the .bin file in the psx4m application?

right now i just open the app load the file and run start

Thanks again

leetut 2010-08-29 15:04

Re: PSX4All Maemo Edition
 
well i type this:
cd ~/MyDocs/psx (hit enter)
psx4m -cyclemult 3 -runcd crash1.bin (hit enter)

thats presuming you have a game called 'crash1.bin' in a folder called 'psx'
in the n900 folder (MyDocs)

------------------------------------------

on another note ive been trying to add this to a .desktop file so i can just hit an icon on my homescreen and have it launch the game,
but it never works
always gives me 'internal error xterm closed'
does anyone know a way around that?

this is what ive got so far:
Quote:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Crash1
Exec=osso-xterm " cd ~/MyDocs/psx psx4m -cyclemult 3 -runcd crash1.bin"
Icon=general-crash1
X-Osso-Type=application/x-executable

Andy1210 2010-08-29 15:51

Re: PSX4All Maemo Edition
 
try this:
Exec=osso-xterm "cd ~/MyDocs/psx && psx4m -cyclemult 3 -runcd crash1.bin"

leetut 2010-08-29 16:08

Re: PSX4All Maemo Edition
 
i did mate
but .desktop files dont recognise the && command
at least thats what i learned a while ago
the solution that time was to make a script and have the desktop file launch the script
but that aint working either
and when i try to chmod u+x the script psx4m wont work from the usual xterm way
im way out of my depth here of course!
and im only trying to do this cos i keep forgetting what to type into xterm to launch the games!

Andy1210 2010-08-29 16:33

Re: PSX4All Maemo Edition
 
make script contain this:

Code:

#!/bin/sh
cd /home/user/MyDocs/psx
psx4m -cyclemult 3 -runcd crash1.bin

Desktop file line:
Code:

Exec=/FOLDER/FOLDER2/YOUR_SCRIPT
______

key file for gamegripper for normal US keyboard:
Code:

97
100
119
120
65362
65361
112
108
98
109
116
117
103
106
113


leetut 2010-08-29 17:06

Re: PSX4All Maemo Edition
 
na mate it still wont work
the icon in my menu just lights up and stays lit
but nothing opens

desktop file now looks like:
Quote:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Crash1
Exec=/home/user/MyDocs/crash1script
Icon=general-crash1
X-Osso-Type=application/x-executable
script is
Quote:

#!/bin/sh
cd /home/user/MyDocs/psx
psx4m -cyclemult 3 -runcd crash1.bin
ran: cd MyDocs
chmod u+x crash1script

at least its not saying error anymore though!

techie 2010-08-29 17:25

Re: PSX4All Maemo Edition
 
Quote:

Originally Posted by leetut (Post 801481)
Exec=osso-xterm " cd ~/MyDocs/psx psx4m -cyclemult 3 -runcd crash1.bin"

Instead of cd'ing try this
Exec=osso-xterm "/home/user/MyDocs/psx/psx4m -cyclemult 3 -runcd crash1.bin"

leetut 2010-08-29 18:16

Re: PSX4All Maemo Edition
 
same as above mate,
the icon in my menu just lights up and stays lit
but nothing opens or starts

Andy1210 2010-08-29 19:18

Re: PSX4All Maemo Edition
 
Quote:

Originally Posted by leetut (Post 801572)
na mate it still wont work
the icon in my menu just lights up and stays lit
but nothing opens

ran: cd MyDocs
chmod u+x crash1script

at least its not saying error anymore though!

because crash1script does not receive +x permission! This is not able under MyDocs, cuz this is vfat partition. Copy your script to '/home/user' :)

leetut 2010-08-29 19:53

Re: PSX4All Maemo Edition
 
tried it bro, still the same, icon just freezes and nothing starts

Andy1210 2010-08-29 20:14

Re: PSX4All Maemo Edition
 
hmm, i tried now, and working...

my desktop file:
Code:

[Desktop Entry]

Encoding=UTF-8

Version=1.0

Type=Application

Name=kula
Exec=/home/user/kula

X-Osso-Type=application/x-executable

and my script(/home/user/kula):
Code:

#!/bin/sh
cd /home/user/MyDocs
psx4m -cyclemult 3 -runcd Kula_World.bin

First try run your script from terminal with 'sh SCRIPTNAME' command. This will show errors!

leetut 2010-08-29 20:38

Re: PSX4All Maemo Edition
 
cool mate so it is possible, i did wonder why my script wouldnt load from terminal cos they have for me before on other stuff, the error just says: crash1script not found?
i did remove the .txt from the file name but i also tried it without removing that
also tried putting crash1script in MyDocs but the same not found error from there too

and running sh file name gives me:
/home/user # sh crash1script
: not foundt: line 2: /home/user/MyDocs/psx/psx4m -cyclemult 3 -runcd crash1.bin

edit: home/user/ ls command does show crash1script as being there
but running it by typing crash1script says not found when i am in the home/user dir

Andy1210 2010-08-29 22:18

Re: PSX4All Maemo Edition
 
cuz you need unix like line endings, so don't use windows notepad... Use pspad, notepad++ or another advanced text editor!

ivyking 2010-08-29 22:54

Re: PSX4All Maemo Edition
 
thanks alot for the gui script !
i think there are some little problems / areas for improvement
first , the install script
you should change :
ln -s /home/opt/psx4m/psx4all.desktop /usr/share/applications/hildon/psx4all.desktop
ln -s /home/opt/psx4m/psx4all.png /usr/share/pixmaps/psx4all.png
to
ln -s /home/opt/psx4m/psx4all.desktop /usr/share/applications/hildon/psx4m.desktop
ln -s /home/opt/psx4m/psx4all.png /usr/share/pixmaps/psx4m.png
the above change helps keep psx4m icon , if the user installs psx4all from repository
second , the desktop file
Exec=/opt/psx4m/psx4mui.py
should be changed to
Exec=/home/opt/psx4m/psx4mui.py
the above change is not required since on the n900 /opt is linked to /home/opt but for some strange reason the icon in the menu did nothing until i made this change .
third , the gui script
change the title to psx4m instead of psx4all
line 55
from
self.window.set_title("Psx4all")
to
self.window.set_title("Psx4m")
thanks again !

Andy1210 2010-08-29 23:12

Re: PSX4All Maemo Edition
 
why Exec=/home/opt/psx4m/psx4mui.py?

Exec=/opt/psx4m/psx4mui.py is perfect...

leetut 2010-08-29 23:20

Re: PSX4All Maemo Edition
 
Quote:

Originally Posted by Andy1210 (Post 801760)
cuz you need unix like line endings, so don't use windows notepad... Use pspad, notepad++ or another advanced text editor!

i get the same result if i use pspad, nothing happens:mad:

Andy1210 2010-08-29 23:24

Re: PSX4All Maemo Edition
 
Quote:

Originally Posted by leetut (Post 801806)
i get the same result if i use pspad, nothing happens:mad:

use THIS

:)

ryanl33x1511 2010-08-30 05:21

Re: PSX4All Maemo Edition
 
notthing open when i click on icon psx4m

ryanl33x1511 2010-08-30 05:27

Re: PSX4All Maemo Edition
 
figure out why, u need to give permission to execute

chmod +x /opt/psx4mui.py psx4m key

leetut 2010-08-30 09:48

Re: PSX4All Maemo Edition
 
Quote:

Originally Posted by Andy1210 (Post 801813)
use THIS

:)

it still dont work bro, here are my files:
http://www.mediafire.com/file/exv2mlayi9ekiva/crash.rar
when i put the 3 files in their locations
i type: chmod u+x crash
output i get is: /home/user/ #
then it should start if i just type 'crash' or i hit the icon
but it just wont work for me
terminal always gives me: /bin/sh: not found

other scripts have worked for me like this, even using windows notepad, so im just totally baffled!:confused:
and previous scripts have worked from /home/user/MyDocs so it cant be that either

http://img294.imageshack.us/img294/5...0083011055.png

Andy1210 2010-08-30 13:14

Re: PSX4All Maemo Edition
 
run with 'sh crash' command!
or ./crash
or 'ln -s /home/user/crash /usr/bin/crash'
and now you can use simple 'crash' command


All times are GMT. The time now is 17:12.

vBulletin® Version 3.8.8