| Author |
Message |
dvw86

Joined: 04 May 2005 Posts: 636 Location: Washington State
|
Posted: Sun 14 Aug 2005, 23:10 Post subject:
Odd problem launching games from Ice |
|
I'm trying to put some games into my Ice menu. Trouble is that the game starts and promptly quits. It only happens on Memory, Voom, War, and XRick. here is the code that I'm trying to use in the menu.
| Code: |
prog "Memory" package_toys.png /root/my-roxapps/memory/martian
|
|
|
Back to top
|
|
 |
GuestToo
Puppy Master
Joined: 04 May 2005 Posts: 4078
|
Posted: Mon 15 Aug 2005, 03:51 Post subject:
|
|
i haven't tried any of these programs yet
maybe you need to change the working dir before they start
you could make a simple wrapper script
right click in my-applications/bin and click New Script ... name it martian (if you like)
edit the script, so it looks something like:
| Code: | #!/bin/sh
cd /root/my-roxapps/memory/
exec /root/my-roxapps/memory/martian |
type martian in an rxvt window to see if it works ... if it does, it should work in an icewm menu too ... something like:
| Code: | | prog "Memory" package_toys.png martian |
|
|
Back to top
|
|
 |
dvw86

Joined: 04 May 2005 Posts: 636 Location: Washington State
|
Posted: Mon 15 Aug 2005, 11:11 Post subject:
|
|
Well I made the script and clicking on it starts the game. However when I start it from the Ice menu, the game starts up and instantly quits.
|
|
Back to top
|
|
 |
GuestToo
Puppy Master
Joined: 04 May 2005 Posts: 4078
|
Posted: Mon 15 Aug 2005, 19:28 Post subject:
|
|
if it starts from the script, it should start by running the script from a menu
are there any error messages in /tmp/xerrs.txt?
|
|
Back to top
|
|
 |
dvw86

Joined: 04 May 2005 Posts: 636 Location: Washington State
|
Posted: Mon 15 Aug 2005, 22:05 Post subject:
|
|
That's what I thought too. There were some errors generated. I'm not sure which file it is referring to though.
System init Ok.
Entering game...
can't read from file
|
|
Back to top
|
|
 |
dvw86

Joined: 04 May 2005 Posts: 636 Location: Washington State
|
Posted: Wed 17 Aug 2005, 02:06 Post subject:
|
|
It's almost like Rox or Ice doesn't have permission to read a file. I still haven't figured it out. Any more ideas?
|
|
Back to top
|
|
 |
GuestToo
Puppy Master
Joined: 04 May 2005 Posts: 4078
|
Posted: Wed 17 Aug 2005, 04:33 Post subject:
|
|
sometimes there are problems starting a program with a different working directory, so it will find the files in one case, but not in the other ... sometimes a program will get the working dir from dirname, which can cause problems if the program was run using a relative path (like ./my-program), which is why i suggested a script that cd's to the dir and runs the program using an absolute path
other than that, i can't think of any other significant difference starting a program by clicking it or from a script or from a menu ... you should have the same rights and permissions, i think
i think if the program will start from a script, it should start from the menu
i haven't tried the program at all ... i assume it's an X program and not a console program? (i think it would have to be an X program if it will run by clicking it) ... if it's a console program, you would need to start it something like rxvt -e my-program ... but i don't think it is
there must some reason it isn't working, but i don't know what it is
|
|
Back to top
|
|
 |
dvw86

Joined: 04 May 2005 Posts: 636 Location: Washington State
|
Posted: Wed 17 Aug 2005, 10:21 Post subject:
|
|
Well I have tried this on two different computers and Puppy 1.0.4 and 1.0.3. Starting the programs from Ice in 1.0.4 always crashes, with or without using the wrapper script. Starting the program from Ice in 1.0.3 without the wrapper script crashed, but when I used the wrapper script in 1.0.3 it worked. The only other differance is that Puppy 1.0.3 is an option 2 HD install. If you get a chance could you give it a try. I'm starting to wonder if there isn't a problem with my pup001 file in 1.0.4?
|
|
Back to top
|
|
 |
duke93535

Joined: 05 May 2005 Posts: 192 Location: California , High Desert
|
Posted: Wed 17 Aug 2005, 16:30 Post subject:
|
|
You might rethink the common source of those dot pup games. I had nothing but trouble from those games, in the ice window maker.
|
|
Back to top
|
|
 |
klhrevolutionist

Joined: 08 Jun 2005 Posts: 1124
|
Posted: Wed 17 Aug 2005, 17:11 Post subject:
well |
|
I'm not sure that I can help, but I believe memory game or martien requires
SDL, If my memory serves me, dvw86
EDIT- Bruce B. some of the games such as barrage.pup and xrick.pup are to big to post, so that is why you are linked to your host file.
sorry for the troubles
_________________ Heaven is on the way, until then let's get the truth out!
Last edited by klhrevolutionist on Thu 18 Aug 2005, 05:24; edited 1 time in total
|
|
Back to top
|
|
 |
Bruce B

Joined: 18 May 2005 Posts: 10818 Location: The Peoples Republic of California
|
Posted: Wed 17 Aug 2005, 21:37 Post subject:
Re: well |
|
| klhrevolutionist wrote: | I'm not sure that I can help, but I believe memory game or martien requires
SDL, If my memory serves me, dvw86
And duke93535 as far as looking at the source, well I made sure that the game worked!! This problem is getting it working from the menu!!!
But thanks for your great input!!! |
I think so according to the info at:
http://www.goosee.com/puppy/wikka/DotPupsContributions
Says to install SDL, install barrage.pup, but the link to barrage dotpup is broken it seems.
The barrage.pup link is broken here also:
http://www.murga.org/~puppy/viewtopic.php?t=1605&highlight=barrage
Would you do a favor? If you have barrage.pup would you mind uploading it to the additional software section?
|
|
Back to top
|
|
 |
duke93535

Joined: 05 May 2005 Posts: 192 Location: California , High Desert
|
Posted: Wed 17 Aug 2005, 22:43 Post subject:
|
|
Barrage dot.pup works fine with the ice window maker menu and i just put a symbolic link to mini icons, i have downloaded barrage.pup with the link at Contributed Dotpups works fine bruce.
|
|
Back to top
|
|
 |
Bruce B

Joined: 18 May 2005 Posts: 10818 Location: The Peoples Republic of California
|
Posted: Wed 17 Aug 2005, 23:14 Post subject:
|
|
Duke, it works, you say?
I tried it again and got the same page I got before. Only this time I read the page. Big difference when you read.
http://www.yourfilehost.com/media.php?cat=other&file=barrage.pup
What can I say? Sorry for the static on the line. Thanks for your help
|
|
Back to top
|
|
 |
mike

Joined: 13 Aug 2005 Posts: 75 Location: Bowser
|
Posted: Wed 17 Aug 2005, 23:21 Post subject:
|
|
it happens to everyone Bruce
|
|
Back to top
|
|
 |
dvw86

Joined: 04 May 2005 Posts: 636 Location: Washington State
|
Posted: Wed 17 Aug 2005, 23:23 Post subject:
|
|
Interesting, Barrage works in Puppy 1.0.3 from the Ice menu without a wrapper script, but it refuses to work in 1.0.4 with or without a wrapper script.
|
|
Back to top
|
|
 |
|