Pandora Uncompressed PNDs


Joined
Aug 20, 2010
Messages
179
I've made an uncompressed (folder-based) PND which, when complete and on the wiki, should further lower the bar for simple development on the Pandora itself.


A lot of things work correctly:


* The application (a simple Python script) runs fine from the terminal: it shows a blank screen for 2 seconds before quitting.


* The PXML file shows up correctly in MiniMenu and XFCE.


EDIT: So, I'm a giant flaming bucket of stupid. It wasn't running because the file's name was "simplepytest.py" not "simpletest.py". I've since corrected that in the PXML and it runs perfectly.


EDIT2: I'm less of a git. MiniMenu apparently has a bug preventing folder-based PNDs from running correctly. I've opened a thread in the support section about it.


However, when I try to run the PND from MiniMenu or XFCE, I get the error message below. Any clues what I'm doing wrong? I wasn't able to find any resources regarding my error message. Is the folder-based PND a pipedream before HF6?


simplepytest.py:

Code:
#! /usr/bin/python


import pygame, pygame.locals

import time


pygame.init()


vidInfo = pygame.display.Info()

resolution = (vidInfo.current_w, vidInfo.current_h)


pygame.display.set_mode(resolution, pygame.locals.FULLSCREEN)


time.sleep(2)




PXML.xml:


Code:
<?xml version="1.0" encoding="UTF-8">

<PXML xmlns="http://openpandora.org/namespaces/PXML">

	<package id="simplepytest">

        <version major="0" minor="0" release="0" build="1"/>

        <author name="Nick Daly" email="Nick.M.Daly@gmail.com"/>	

		<title lang="en_US">Simple Py Test</title>

		<titles>

			<title lang="en_US">Simple Py Test</title>

        </titles>

	</package>

    <application id="simplepytest">

        <title lang="en_US">Simple Py Test</title>

		<titles>

			<title lang="en_US">Simple Py Test</title>

        </titles>

        <description lang="en_US">A Python and Pygame test program.

            </description>

        <version major="0" minor="0" release="0" build="1"/>

        <exec command="python simplepytest.py" />

        <!-- <exec command="simplepytest.py" /> -->

        <author name="Nick Daly" email="Nick.M.Daly@gmail.com"/>

		<licenses>

			<license name="other"/>

		</licenses>

        <categories>

            <category name="Game">

                <subcategory name="ArcadeGame">

            </category>

        </categories>

    </application>

</PXML>




pndrun_simplepytest.out (the error message):


Code:
sudo /usr/pandora/scripts/pnd_run.sh -m -p /media/card1/pandora/menu/simplepytest//PXML.xml -e ./simpletest.py -b simplepytest

not mounted on loop yet, doing so

LoopMountedon: 

/dev/loop4

error determining fs, output was XML

The Union File-system is not mounted !
 
Last edited by a moderator:
Yup. That's what happens when running the PND from MiniMenu. Running it from XFCE doesn't add the extra "/PXML.xml".
 
Back
Top