Please Help Me With Pxml!


whynodd

Member
Joined
Sep 20, 2008
Messages
262
I ported the game Enigma (working perfect btw!) and now I want to pnd it. I wrote a PXML.xml, an Icon appears on the desktop but it doesnt start. The game itself works.
So, to test what I have done wrong, I made this small rar (extract to sdcard/pandora/desktop), it should show a zenity file picker. It does if i start run_enigm.sh directly. Could someone look over it and point me to my error? The faster you help me, the faster you get a new great game port ;)

The testfile
 
Whynodd said:
I ported the game Enigma (working perfect btw!) and now I want to pnd it. I wrote a PXML.xml, an Icon appears on the desktop but it doesnt start. The game itself works.
So, to test what I have done wrong, I made this small rar (extract to sdcard/pandora/desktop), it should show a zenity file picker. It does if i start run_enigm.sh directly. Could someone look over it and point me to my error? The faster you help me, the faster you get a new great game port ;)

The testfile

should be a log in /tmp
 
Last edited by a moderator:
Have you put the files into an ido and concatenated the iso and pxml.XML into a PND?

PXML from folders is currently broken.
 
Ok, I made a pnd. Same result. Not working. Here is a log:

in fork!
PND ++ .///enigma.pnd
mountpoint: /media/NIKON2
Basename: enigma
mkdir -p /mnt/pnd/enigma
/mnt/utmp/enigma
/usr/pandora/scripts/pnd_run.sh: line 124: [: !: integer expression expected
not mounted on loop yet, doing so
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
LoopMountedon:
losetup: Could not find any loop device. Maybe this kernel does not know
about the loop device? (If so, recompile or `modprobe loop'.)

usedminor
freeminor 1
Filetype is ISO
sudo mount /dev/loop1
mounting union!
Filesystem is vfat
/usr/pandora/scripts/pnd_run.sh: line 198: cd: /mnt/utmp/enigma: Permission denied
/usr/pandora/scripts/pnd_run.sh: line 200: ././enigma: No such file or directory
app exited
rmdir: failed to remove `/mnt/utmp/enigma': Device or resource busy
rm: cannot remove `/mnt/utmp/enigma': Is a directory
rmdir: failed to remove `/media/NIKON2/pandora/appdata/enigma/.wh..wh.plnk': No such file or directory
rmdir: failed to remove `/media/NIKON2/pandora/appdata/enigma/.wh..wh..tmp': No such file or directory
rmdir: failed to remove `/media/NIKON2/pandora/appdata/enigma/': Directory not empty
cleanup done
 
in the pxml:
---------
<exec command="./enigma" background="true" standalone="true" x11="req"/>
---------

The enigma run script is currently this for test reasons:
---------
#!/bin/sh
thunar
---------
 
Whynodd said:
in the pxml:
---------
<exec command="./enigma" background="true" standalone="true" x11="req"/>
---------

The enigma run script is currently this for test reasons:
---------
#!/bin/sh
thunar
---------

then just have :
<exec command="enigma" background="true" standalone="true" x11="req"/>
 
Last edited by a moderator:
Exactly the same.. but without a ./
Borked Firmware? I did exactly what has been done in other pnd's.

in fork!
PND ++ /media/NIKON2/pandora/desktop//enigma.pnd
mountpoint: /media/NIKON2
Basename: enigma
mkdir -p /mnt/pnd/enigma
/mnt/utmp/enigma
/usr/pandora/scripts/pnd_run.sh: line 124: [: !: integer expression expected
not mounted on loop yet, doing so
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
LoopMountedon:
losetup: Could not find any loop device. Maybe this kernel does not know
about the loop device? (If so, recompile or `modprobe loop'.)

usedminor
freeminor 1
Filetype is ISO
sudo mount /dev/loop1
mounting union!
Filesystem is vfat
/usr/pandora/scripts/pnd_run.sh: line 198: cd: /mnt/utmp/enigma: Permission denied
/usr/pandora/scripts/pnd_run.sh: line 200: ./enigma: No such file or directory
app exited
rmdir: failed to remove `/mnt/utmp/enigma': Device or resource busy
rm: cannot remove `/mnt/utmp/enigma': Is a directory
rmdir: failed to remove `/media/NIKON2/pandora/appdata/enigma/.wh..wh.plnk': No such file or directory
rmdir: failed to remove `/media/NIKON2/pandora/appdata/enigma/.wh..wh..tmp': No such file or directory
rmdir: failed to remove `/media/NIKON2/pandora/appdata/enigma/': Directory not empty
cleanup done
 
Looks like a problem with the file permissions, try to chmod +x enigma
 
Whynodd said:
Exactly the same.. but without a ./
Borked Firmware? I did exactly what has been done in other pnd's.

/usr/pandora/scripts/pnd_run.sh: line 198: cd: /mnt/utmp/enigma: Permission denied
/usr/pandora/scripts/pnd_run.sh: line 200: ./enigma: No such file or directory
app exited
rmdir: failed to remove `/mnt/utmp/enigma': Device or resource busy
I can't test (no acces to your download link from work :)
For some reason, you do have "/mnt/utmp/enigma" without execution right on it
Try to chmod that directory with the usual 755.
 
Last edited by a moderator:
Jdbye said:
Looks like a problem with the file permissions, try to chmod +x enigma

It did not work. Hmmm. The startscript is executable. And this folder /mnt/utmp/enigma is created by pnd_run and should have the right permissions set by the pnd_run-magic-stuff.

Try this pnd here. It should start thunar.

Maybe something is very wrong with my firmware or with the sdcard (fat32). For example, directories named ".wh..wh.orph" are created in every appdata-path. As you can see in the logs, they should be deleted automatically.

Edit: I followed every f*kin tutorial concerning pxml and pnds. I copied pxmls from working pnds and modified them. I tried everything. But it does not work. How do you guys make your stuff? May someone rar me a working directory with a working PXML and a small script that starts something?
This has cost me 2 days already, just to create the minimalst possible working pnd. No success. It's not that I want to play around - there is a fine game waiting for the community.
 
Last edited by a moderator:
Calm down. Do you have an idea of how long did I mess around to get that messy (junky I should say) kdegames.pnd running ? about a month. So 2 days don't sound too frustrating to me (even if I can understand you).

Your real problem is what you have bolded. Fix that permission problem (dropping the directory while the PND is'nt mounted will do too as it shouldn't be there anyway) and be done with that.
The pnd_run.sh you use don't do any chmod, so it can't be that script that created your problem.

Your firmware isn't the problem or you wouldn't be able to start any pnd.

If you need example, choose any pnd, mount it on your pandora (/usr/pandora/scripts/pnd_run.sh -p<PATH to PND>.pnd -m) and have a look. (you may want to use a simple one like gftp)
 
Pickle said:
I would also add to to do a chmod 777 on the pnd contents before they are compressed.
Trust me, 777 is never a good idea (beside security problem, which obviously isn't realy bugger for pnd content...)
 
Last edited by a moderator:
sebt3 said:
Pickle said:
I would also add to to do a chmod 777 on the pnd contents before they are compressed.
Trust me, 777 is never a good idea (beside security problem, which obviously isn't realy bugger for pnd content...)

its a pnd on a pandora....and plus it eliminates any doubt abotu the permissions of the files in the pnd.
change it back to 774 or something more restrictive later.
 
Last edited by a moderator:
sebt3 said:
Your real problem is what you have bolded. Fix that permission problem (dropping the directory while the PND is'nt mounted will do too as it shouldn't be there anyway) and be done with that.
The pnd_run.sh you use don't do any chmod, so it can't be that script that created your problem.
How to fix the permission problem? I don't know where exactly the difference between all my working pnds and my own one is. I don't understand why permissions are wrong if my scripts are exactly like in every working pnd.

sebt3 said:
Your firmware isn't the problem or you wouldn't be able to start any pnd.

If you need example, choose any pnd, mount it on your pandora (/usr/pandora/scripts/pnd_run.sh -p<PATH to PND>.pnd -m) and have a look. (you may want to use a simple one like gftp)
I tried that one moment ago. Mounted meritious.pnd, copied the PXML and modified it so that it points to my testscript. Packed it all together (in Windows with this method: Wiki). Then I insert the SDCard with the fresh new pnd into Pandora, an Icon shows up but it doesn't work. Errors in the logs. Arghggghhh! Should I try to pack the pnd on the Pandora itself? Is Windows my problem? At the moment, I am swapping the sdcards around to do all that stuff.
 
Last edited by a moderator:
I'm no windows guy, so I cant helpon the windows side of the thing (well i'm using windows currently, but I have no choice : job).
But as you have a icon, pndnotifyd is happy with your PND packaging stuff. Sound like your PND is valid (at least its format is supported, PXML file and icon are correctly detected. the pxml file is enough valid to allow icon creation).
Your pnd is mounted and umounted so that's not the problem either.

Be sure the enigma pnd isn't mounted, then "rm -rf /mnt/utmp/enigma" and retry and report :)
 
sebt3 said:
Be sure the enigma pnd isn't mounted, then "rm -rf /mnt/utmp/enigma" and retry and report :)

utmp is empty. Sometimes while I'm trying stuff, there are remaining directories but I don't think there is a problem with that.

It sucks that I have to pnd everything. Is pnd_run from directories really broken? When I try that (sdcard/pandora/desktop/mygamedirectory), it behaves exactly like with my pnds.

I give up. Reflashing now. Maybe I smashed something with the extend utils.
 
Last edited by a moderator:
Whynodd said:
utmp is empty.
Still not working I guess (else you would be happier :D)
Mind giving the pndrun log plz ? (I expect to see other error)

BTW, I'm home in about an hour. I'll give a look within the evening
 
Last edited by a moderator:
Ok, I still have those problems after a firmware reflash. So obviously, my pnd-packing method is wrong. The log still looks the same as the ones that i posted.
How do I pack a pnd on the pandora itself? /usr/pandora/scripts/pnd_make does not work (mkisofs missing)
Maybe that will sort things out.
 
Back
Top