Author Topic: Chips Challenge for TI-Nspire  (Read 60337 times)

0 Members and 1 Guest are viewing this topic.

Offline apcalc

  • The Game
  • Project Author
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Chips Challenge for TI-Nspire
« Reply #15 on: August 28, 2010, 10:48:49 am »
I was looking over the code for Tile World, and it looks like it might be pretty easy to port it to the Nspire instead of completly starting from scratch.  It seems as if it does not use too many functions that we don't already have for the Nspire.  The main problem would be printf(, but I could just use dialog boxes. :) This would lead to several advantages in the game:

1. I would probably finish faster, as I would not have to start from scratch
2. It would read the original .dat files for Chips Challenge, which would save me time from importing levels
3. As calc84 said, the game would be very accurate
4. No level editor would need to be written, as a computer one could be used to make it into a .dat file, which could be used by my program

The only drawback to this would be that I could not include the original level .dat file.  But, I am sure I could get permission to include the CC Level Pack 2 .dat file!
« Last Edit: August 28, 2010, 10:53:06 am by apcalc »


Offline JonimusPrime

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 389
  • Rating: +25/-5
    • View Profile
    • Jonimoose.net
Re: Chips Challenge for TI-Nspire
« Reply #16 on: August 28, 2010, 11:36:51 am »
Yeah, Tile World is a pretty fun clone, but iirc it doesn't support entering passwords to go to a specific level, but maybe that was because I was using an old build for Windows CE.

Also since I have the Full Windows Entertainment Pack from Win95 getting the .dat file won't be an issue for me. :P

"Always code as if the person who will maintain your code is a maniac serial killer that knows where you live" -Unknown

"If you've done something right no one will know that you've done anything at all" -Futurama

"Have a nice day, or not, the choice is yours." Tom Steiner

Offline apcalc

  • The Game
  • Project Author
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Chips Challenge for TI-Nspire
« Reply #17 on: August 28, 2010, 11:37:46 am »
I was almost sure when I was going through the source I saw a function that allowed entering a password, but if it is not there, I will just add it in. :)


Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Chips Challenge for TI-Nspire
« Reply #18 on: August 28, 2010, 01:08:41 pm »
What does printf( do? Does it just display text? Having text seems like a major issue on the Nspire from what I read so far. Couldn't you just create a custom font routine? Even in TI-83+ BASIC it's possible (although it's very large compared to xLIB/DCS, Axe and ASM)

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Chips Challenge for TI-Nspire
« Reply #19 on: August 28, 2010, 01:10:40 pm »
Exactly right, DJ. He'll probably end up needing to make a custom routine (or using dialog boxes, like he said).
printf() is difficult to get working because, on the Nspire, it doesn't output to the screen, but to an internal serial port, IIRC.
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Chips Challenge for TI-Nspire
« Reply #20 on: August 28, 2010, 01:11:49 pm »
Exactly right, DJ. He'll probably end up needing to make a custom routine (or using dialog boxes, like he said).
printf() is difficult to get working because, on the Nspire, it doesn't output to the screen, but to an internal serial port, IIRC.

The nice thing about a custom font is, though, one can create "letters" that aren't exactly letters.  In S.A.D., I use Belthium Crystal Icons, Oxygen Icons, and Lobster Icons as part of the font.

Offline apcalc

  • The Game
  • Project Author
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Chips Challenge for TI-Nspire
« Reply #21 on: August 28, 2010, 01:12:16 pm »
Well, bwang wrote a DrawStr( function that I could use also.  printf( essentinally draws text to the screen, but it also allows you to add numbers, other variables to the string.  I don't think this will be too much of a problem, thankfully!


Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Chips Challenge for TI-Nspire
« Reply #22 on: August 28, 2010, 01:13:47 pm »
I wonder if eventually ExtendeD or someone else will write a text routine for Ndless. Text seems like an essential programming command to me x.x. And yea Hot Dog. In old FF games, they had stuff such as armor and weapon icons.

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Chips Challenge for TI-Nspire
« Reply #23 on: August 28, 2010, 01:14:28 pm »
Ah, yes, I forgot the 'f', for 'format' ;D. You've checked the source to make sure it doesn't over-use this, I assume?
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline apcalc

  • The Game
  • Project Author
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Chips Challenge for TI-Nspire
« Reply #24 on: August 28, 2010, 01:16:29 pm »
Well, I really have only had time to skim over the source, as I am busy with work for school, but once I have some free time (probably this weekend) I will look through the source a bit closer to make sure it won't be too hard to port.


Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Chips Challenge for TI-Nspire
« Reply #25 on: August 28, 2010, 01:19:22 pm »
Yeah, writing your own printf() would be a pain. Does C for the Nspire have the sprintf() function, which you could use with DrawStr()?
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline apcalc

  • The Game
  • Project Author
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Chips Challenge for TI-Nspire
« Reply #26 on: August 28, 2010, 01:22:55 pm »
Sprintf is defined for the Nspire, but I am not sure if it can be used (it might be like printf, only for RS232).  I will have to check with someone to find out exactly, as I never have really used it.


Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Chips Challenge for TI-Nspire
« Reply #27 on: August 28, 2010, 01:24:28 pm »
sprintf() writes to a string, which is exactly why I suggested it.
Coupled with DrawStr(), your problems are solved :D
Edit: Well, mostly :P
« Last Edit: August 28, 2010, 01:24:47 pm by calcdude84se »
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Chips Challenge for TI-Nspire
« Reply #28 on: August 28, 2010, 01:27:44 pm »
So how were these routines discovered?  I know TI didn't just GIVE them to people who used ndless!

Offline apcalc

  • The Game
  • Project Author
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Chips Challenge for TI-Nspire
« Reply #29 on: August 28, 2010, 01:29:00 pm »
I believe the Ndless team disassembled the OS and looked through them to find all of the functions.