CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 106 users online: 4 members, 75 guests and 27 bots.
Members: Ashbad, shundra9, sunset730, Tari.
Bots: Baidu (1), Spinn3r (2), MSN/Bing (1), Magpie Crawler (3), Googlebot (20).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
Author Message
Devreugkx


Newbie


Joined: 21 Feb 2012
Posts: 18
Location: The Netherlands

Posted: 29 Mar 2012 08:11:13 am    Post subject: xLib and more

Hi,

Recently I was busy on making a gam in which you drive on a road and should not hit other cars. But for some reason it didn't work, The car didn't want to move more than one time...
I had this:

Code:
:ClrDraw
:AxesOff
:ZStandard
:Line({-}3,{-}10,{-}3,10
:Line(3,{-}10,3,10
:While 1
:For(A,0,56,8
:Text(A,46," !
:End
:randInt(0,1,20
:For(A,4,56,8
:Text(A,46," !
:End
:For(B,1,20
:52→A
:getKey→K
:If K=24 and A=52:Then
:Text(50,A,"     "
:38→A
:Text(50,A,"[]
:End
:If K=26 and A=38:Then
:Text(50,A,"     "
:52→A
:Text(50,A,"[]
:End
:End
:End

Any help?

Because this didn't work I was about to make a car sprite.
I downloaded xLib to be able to easy recall pictures in my program but the "real(" command didn't work.
I tried some game which use xLib, like SHIFT and LINE RIDER, but both said INSTALL XLIB. But I installed it. What to do?

Hope someone can help me with this.
Back to top
turiqwalrus


New Member


Joined: 18 Nov 2010
Posts: 95
Location: Eggplant shopping! :P

Posted: 29 Mar 2012 09:16:19 am    Post subject: Re: xLib and more

Devreugkx wrote:
Hi,

Recently I was busy on making a gam in which you drive on a road and should not hit other cars. But for some reason it didn't work, The car didn't want to move more than one time...
I had this:

Code:
:ClrDraw
:AxesOff
:ZStandard
:Line({-}3,{-}10,{-}3,10
:Line(3,{-}10,3,10
:While 1
:For(A,0,56,8
:Text(A,46," !
:End
:randInt(0,1,20
:For(A,4,56,8
:Text(A,46," !
:End
:For(B,1,20
:52→A
:getKey→K
:If K=24 and A=52:Then
:Text(50,A,"     "
:38→A
:Text(50,A,"[]
:End
:If K=26 and A=38:Then
:Text(50,A,"     "
:52→A
:Text(50,A,"[]
:End
:End
:End

Any help?

Because this didn't work I was about to make a car sprite.
I downloaded xLib to be able to easy recall pictures in my program but the "real(" command didn't work.
I tried some game which use xLib, like SHIFT and LINE RIDER, but both said INSTALL XLIB. But I installed it. What to do?

Hope someone can help me with this.

Right...
First of all, did you already open the Xlib app and specifically enable it? if not, then do that and test again.

If you already enabled it, then check what OS version you have. Xlib is known to not work entirely with Mathprint OS(2.53 and 2.55)
_________________
This signature is completely empty Very Happy

except for this
and this
JOIN THE WFCLFY!
Back to top
Devreugkx


Newbie


Joined: 21 Feb 2012
Posts: 18
Location: The Netherlands

Posted: 29 Mar 2012 09:21:44 am    Post subject:

I did really enable it.
I tried CLASSIC instead of MATHPRINT, still the same problem.
Maybe it got something to do with DCS, because there is also an XLib etc..... function.
Back to top
JosJuice


Power User


Joined: 17 Oct 2010
Posts: 306
Location: Sweden

Posted: 29 Mar 2012 09:24:51 am    Post subject:

Devreugkx wrote:
I tried CLASSIC instead of MATHPRINT, still the same problem.
Most of the problems caused by MathPrint OSes can't be fixed by going back to Classic. If the OS is the problem, you'll have to install an older one (preferably 2.43), but I'm not completely sure that it is.
Back to top
Devreugkx


Newbie


Joined: 21 Feb 2012
Posts: 18
Location: The Netherlands

Posted: 29 Mar 2012 09:32:05 am    Post subject:

Anywhere I can donwload 2.43? I was looking, but all the links I found didn't work for some reason :ninja:
Back to top
tifreak8x


Guru


Joined: 16 Mar 2005
Posts: 9061
Location: Sol System

Posted: 29 Mar 2012 09:32:51 am    Post subject:

I think one of the other languages of TI's website has 2.43 still available.
_________________
Projects: AOD Series: 70% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Look here for Assembly Resources.
Back to top
JosJuice


Power User


Joined: 17 Oct 2010
Posts: 306
Location: Sweden

Posted: 29 Mar 2012 09:38:00 am    Post subject:

This one should work: http://education.ti.com/downloads/files/83plus/TI84Plus_OS243.8Xu
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55749
Location: Earth, Sol, Milky Way

Posted: 29 Mar 2012 09:55:30 am    Post subject:

Devreugkx wrote:
I did really enable it.
I tried CLASSIC instead of MATHPRINT, still the same problem.
Maybe it got something to do with DCS, because there is also an XLib etc..... function.
Doors CS already supplies every xLIB function; you can delete the actual xLIB application and reinstall the Doors CS hooks. Smile xLIB's hooks don't work properly under the MP OSes, but Doors CS is patched to allow xLIB and other hybrid hooks to work in MP OSes.
_________________


Back to top
Devreugkx


Newbie


Joined: 21 Feb 2012
Posts: 18
Location: The Netherlands

Posted: 29 Mar 2012 09:59:57 am    Post subject:

Allright that's nice.
But xLib works with OS 2.43
Some games require xLib and check if it's installed, so I'll keep the program.

Can somebody solve the problem with my game that car don't want to move anymore? (see 1st/2nd post)

Anyway thanks guys =)
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55749
Location: Earth, Sol, Milky Way

Posted: 29 Mar 2012 10:11:42 am    Post subject:

Devreugkx wrote:
Allright that's nice.
But xLib works with OS 2.43
Some games require xLib and check if it's installed, so I'll keep the program.

Can somebody solve the problem with my game that car don't want to move anymore? (see 1st/2nd post)

Anyway thanks guys =)
That's what I'm saying, Doors CS has all of the xLIB functions, including the one that tells programs that xLIB is installed. Smile It's a complete replacement for xLIB (and yes, it works on 2.43 too). If you have both DCS and xLIB on your calculator, you essentially have two copies of the same thing (except that the DCS versions of the xLIB functions have been super-optimized and debugged Wink).

Regarding your bug, I notice that you set "52→A " inside every single getKey loop, which doesn't seem like what you'd want.
_________________


Back to top
tifreak8x


Guru


Joined: 16 Mar 2005
Posts: 9061
Location: Sol System

Posted: 29 Mar 2012 11:00:54 am    Post subject:

Is the car supposed to be the []? A For( loop is not going to be good for using as a getKey loop, you're going to want to replace it with either a While or Repeat loop.

Also, is this the program in its entirety?
_________________
Projects: AOD Series: 70% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Look here for Assembly Resources.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are GMT - 5 Hours

 
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

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.029739 seconds.