Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 31 Oct 2014, 14:06
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Odd problem launching games from Ice
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [21 Posts]   Goto page: 1, 2 Next
Author Message
dvw86


Joined: 04 May 2005
Posts: 636
Location: Washington State

PostPosted: 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
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: 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
View user's profile Send private message 
dvw86


Joined: 04 May 2005
Posts: 636
Location: Washington State

PostPosted: 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
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: 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
View user's profile Send private message 
dvw86


Joined: 04 May 2005
Posts: 636
Location: Washington State

PostPosted: 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
View user's profile Send private message 
dvw86


Joined: 04 May 2005
Posts: 636
Location: Washington State

PostPosted: 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
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: 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
View user's profile Send private message 
dvw86


Joined: 04 May 2005
Posts: 636
Location: Washington State

PostPosted: 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
View user's profile Send private message 
duke93535


Joined: 05 May 2005
Posts: 194
Location: California , High Desert

PostPosted: 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
View user's profile Send private message 
klhrevolutionist


Joined: 08 Jun 2005
Posts: 1124

PostPosted: 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
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11130
Location: The Peoples Republic of California

PostPosted: 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
View user's profile Send private message 
duke93535


Joined: 05 May 2005
Posts: 194
Location: California , High Desert

PostPosted: 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
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11130
Location: The Peoples Republic of California

PostPosted: 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
View user's profile Send private message 
mike


Joined: 13 Aug 2005
Posts: 75
Location: Bowser

PostPosted: Wed 17 Aug 2005, 23:21    Post subject:  

it happens to everyone Bruce Smile
Back to top
View user's profile Send private message 
dvw86


Joined: 04 May 2005
Posts: 636
Location: Washington State

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [21 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0707s ][ Queries: 11 (0.0042s) ][ GZIP on ]