MaxCoderz
http://maxcoderz.org/forum/

A way to test for xlib instalation? What about a shell?
http://maxcoderz.org/forum/viewtopic.php?f=21&t=1411
Page 2 of 2

Author:  Spellshaper [ Sat 07 Jan, 2006 2:31 pm ]
Post subject: 

kalan_vod wrote:
Also we could make it where it creates a appvar for savegames!



found something for that, actually it can be used with any game you´re making :) :
http://www.ticalc.org/archives/files/fileinfo/344/34443.html

Author:  kalan_vod [ Sat 07 Jan, 2006 3:03 pm ]
Post subject: 

Thanks, but I rather not have a pic set to the side just for using his little program :P as I have plenty of people to thank already. Also welcome to the boards!

Author:  necro [ Mon 09 Jan, 2006 2:17 am ]
Post subject: 

...actualy, only the shell maker would have to put that in their credits and use room on their flash page...but it seems like it be better to make a new prgram for it that'd be a little faster than 5-10 minutes on occasion.

Author:  threefingeredguy [ Mon 06 Feb, 2006 4:38 pm ]
Post subject:  Re: A way to test for xlib instalation? What about a shell?

necro wrote:
Code:
:1
:real(0
:If not(Ans
:Then
:ClrHome
:Disp "PLEASE INSTAL XLIB BEFORE TRYING TO RUN THIS GAME
:Pause
:End
:If not(Ans
:Stop
I now use this in every xLIB program. VERY good idea.

Author:  kalan_vod [ Mon 06 Feb, 2006 10:23 pm ]
Post subject:  Re: A way to test for xlib instalation? What about a shell?

threefingeredguy wrote:
necro wrote:
Code:
:1
:real(0
:If not(Ans
:Then
:ClrHome
:Disp "PLEASE INSTAL XLIB BEFORE TRYING TO RUN THIS GAME
:Pause
:End
:If not(Ans
:Stop
I now use this in every xLIB program. VERY good idea.

You might want to do
Code:
:1
:real(0
:If not(Ans
:Then
:ClrHome
:Output(1,1,"PLEASE INSTAL XLIB BEFORE TRYING TO RUN THIS GAME
:Pause
:End
:If not(Ans
:Stop

Author:  threefingeredguy [ Tue 07 Feb, 2006 12:30 am ]
Post subject: 

Actually I do
Code:
:1
:real(0
:If not(Ans
:Then
:Output(1,1,"*--------------*-PLEASE INSTALL--     xLIB     -*--------------*
:Stop
:End
The Stop won't cause a memory leak there since it restores the program stack and exits. I think it also doesn't display Done.

Author:  kalan_vod [ Tue 07 Feb, 2006 12:55 am ]
Post subject: 

threefingeredguy wrote:
Actually I do
Code:
:1
:real(0
:If not(Ans
:Then
:Output(1,1,"*--------------*-PLEASE INSTALL--     xLIB     -*--------------*
:Stop
:End
The Stop won't cause a memory leak there since it restores the program stack and exits. I think it also doesn't display Done.

Correct, and thats what I do just wasn't sure if the leak was there or not thanks for confirming that.

Author:  katmaster [ Thu 09 Feb, 2006 3:13 am ]
Post subject: 

Quick question, what's the point of the :1 at the beginning?

Author:  kalan_vod [ Thu 09 Feb, 2006 3:15 am ]
Post subject: 

I believe that real is affected by Ans if xlib isn't installed.

Author:  necro [ Thu 09 Feb, 2006 6:09 pm ]
Post subject: 

that is indeed the principal on which I based that

Page 2 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/