Author Topic: Cave Story for TI nspire CX  (Read 25389 times)

0 Members and 1 Guest are viewing this topic.

Offline gameblabla

  • LV3 Member (Next: 100)
  • ***
  • Posts: 86
  • Rating: +17/-1
    • View Profile
    • Gameblabla's website
Cave Story for TI nspire CX
« on: April 23, 2015, 08:30:00 pm »
Hello everyone !
I have finally ported Cave Story to the Ti nspire after i spent 3 days working on it.
This is based on NXEngine, a complete recreation/rewrite of Cave story.

The game is now running fullspeed, yay !

If you don't know what the hell Cave Story is , visit this website.

Installation :
You can put the files anywhere on your calc.
Make sure the folder "data" is next to "cave.tns".
sprites.sif.tns, tilekey.dat.tns and stage.dat.tns are also necessarry.

Controls :
Touchpad, Clickpad : Move
Ctrl : Fire
Shift : Jump
TAB : Inventory
Del : map

You can download it in the attachments below.

Download : https://tiplanet.org/forum/archives_voir.php?id=219777
Source code : https://github.com/gameblabla/nxengine-nspire/

If if you can't run the game (not even the black box on the top left), then you don't have enough memory. Reset your calc
« Last Edit: June 12, 2018, 04:28:06 pm by gameblabla »

Offline Ivoah

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +3/-0
    • View Profile
    • Codinghobbit
Re: Cave Story for TI nspire CX
« Reply #1 on: April 23, 2015, 10:00:25 pm »
This is awesome! I was hoping someone would port NX-engine to the Nspire!

EDIT: Think you might be able to get this on the downloads page on cavestory.org? They already have a TI-BASIC port.
« Last Edit: April 23, 2015, 11:24:08 pm by Ivoah »
http://codinghobbit.no-ip.org
My Calcs:
TI-86 (now broken) $2
TI SR-56 - $0
TI-Nspire CX CAS - $152
TI-84+ Silver Edition - $56
TI-84+ Silver Edition - $0
TI-85 - $0
TI-73 Explorer VS - $10
ViewScreen - $3

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Cave Story for TI nspire CX
« Reply #2 on: April 23, 2015, 11:48:12 pm »
Wow, what a fantastic game to port! I'll have to dig up my nspire and give this a try. ;D

Offline Ivoah

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +3/-0
    • View Profile
    • Codinghobbit
Re: Cave Story for TI nspire CX
« Reply #3 on: April 24, 2015, 07:20:16 am »
I could convert them to NTI but doing so would violate Cave story's license so i'm stuck.

Why would this violate the license? What is the license? Don't you just need to worry about nx-engine's license?
http://codinghobbit.no-ip.org
My Calcs:
TI-86 (now broken) $2
TI SR-56 - $0
TI-Nspire CX CAS - $152
TI-84+ Silver Edition - $56
TI-84+ Silver Edition - $0
TI-85 - $0
TI-73 Explorer VS - $10
ViewScreen - $3

Offline ordelore

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +7/-0
  • Genius and Friend
    • View Profile
    • ordelore8x
Re: Cave Story for TI nspire CX
« Reply #4 on: April 24, 2015, 04:55:43 pm »
Huzzah!
I am a friend.
I mine Bitcoins.

Offline gameblabla

  • LV3 Member (Next: 100)
  • ***
  • Posts: 86
  • Rating: +17/-1
    • View Profile
    • Gameblabla's website
Re: Cave Story for TI nspire CX
« Reply #5 on: April 24, 2015, 10:55:05 pm »
Don't you just need to worry about nx-engine's license?
NXEngine is GPL but the graphics,maps ... are proprietary and Pixel only allow normal usage and redistribution.
It's not clear if i can modify the graphics or not.

Anyways, i have converted some images to NTI and the speedup was very small.
All the paths for sprites are inside the sprites.sif file and it cannot be easily modified,
so i won't be able to convert the sprites.
I will post this version soon and change the default mapping.

Any suggestions to the default mapping ?
Right now it's not very good and i have not bothered to change them.

Anyways, hope you'll enjoy Cave Story on ti nspire, i plan to do more !
EDIT : I have uploaded a new version : This version is slightly faster and i have changed the default controls.
Download link is the same
« Last Edit: April 25, 2015, 09:45:34 pm by gameblabla »

Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Re: Cave Story for TI nspire CX
« Reply #6 on: April 25, 2015, 10:46:19 pm »
Have you considered porting using n2DLib instead of nSDL? It runs faster, especially on the Grayscale models (like mine). I love Cave Story and would love to play this.
I am Bach.

Offline gameblabla

  • LV3 Member (Next: 100)
  • ***
  • Posts: 86
  • Rating: +17/-1
    • View Profile
    • Gameblabla's website
Re: Cave Story for TI nspire CX
« Reply #7 on: April 25, 2015, 11:17:08 pm »
Quote
Have you considered porting using n2DLib instead of nSDL? It runs faster, especially on the Grayscale models (like mine). I love Cave Story and would love to play this.
r u crazy

n2DLib is missing some functions i need (e.g. load an image from file) and the source code is big so it might take days,  perhaps even weeks to add n2Dlib support.
Maybe i'll do it (I love Cave story too) but for now, i can't do much.

By the way, i have fixed support for older ti nspire and i forgot some files as well.
Download link is the same, as usual.
« Last Edit: April 25, 2015, 11:57:35 pm by gameblabla »

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Cave Story for TI nspire CX
« Reply #8 on: April 26, 2015, 03:37:46 am »
Perhaps you could try converting the files on the calculator at first launch? That way you don't distribute modified files, but rather a converter.
If you like my work: why not give me an internet?








Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Re: Cave Story for TI nspire CX
« Reply #9 on: April 26, 2015, 10:41:09 am »
Quote
Have you considered porting using n2DLib instead of nSDL? It runs faster, especially on the Grayscale models (like mine). I love Cave Story and would love to play this.
n2DLib is missing some functions i need (e.g. load an image from file) and the source code is big so it might take days,  perhaps even weeks to add n2Dlib support.
Maybe i'll do it (I love Cave story too) but for now, i can't do much.

I can do it, if you don't mind me modifying your source. It's actually a pretty easy conversion process, from when I used to work with nSDL.
I am Bach.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Cave Story for TI nspire CX
« Reply #10 on: April 26, 2015, 02:09:58 pm »
I cannot download from that link you gave us. It's stuck at connecting to the site.
If you like my work: why not give me an internet?








Offline gameblabla

  • LV3 Member (Next: 100)
  • ***
  • Posts: 86
  • Rating: +17/-1
    • View Profile
    • Gameblabla's website
Re: Cave Story for TI nspire CX
« Reply #11 on: April 27, 2015, 07:01:33 am »
All the paths for sprites are inside the sprites.sif file and it cannot be easily modified,
Ended up finding a workaround for that and all the images are built inside the executable now.
I have released a new version and i have fixed some bugs. (the Profile is now saved in the ndless folder)

I cannot download from that link you gave us. It's stuck at connecting to the site.
Yeah, i don't know why but it didn't worked. This is fixed.

pimathbrainiac, if you want to port it to n2DLib, now you can. (simply download the source code, link in first post)
You can let SDL handle the input, you don't have to replace it.
Beware though, this will only compile with the latest Ndless toolchain from git.
« Last Edit: May 16, 2015, 02:44:03 pm by gameblabla »

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Cave Story for TI nspire CX
« Reply #12 on: April 27, 2015, 04:43:48 pm »
Does it run smoother now the new image format is used?
If you like my work: why not give me an internet?








Offline gameblabla

  • LV3 Member (Next: 100)
  • ***
  • Posts: 86
  • Rating: +17/-1
    • View Profile
    • Gameblabla's website
Re: Cave Story for TI nspire CX
« Reply #13 on: April 27, 2015, 10:08:35 pm »
Does it run smoother now the new image format is used?
No, not really... It seems like the blitting is not very efficient.
Tried to run the game without colorkeys and it ran much faster, but it looked ugly. (nearly unplayable in fact)
I'm trying to find a good compromise. Other than that, i don't know.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Cave Story for TI nspire CX
« Reply #14 on: April 28, 2015, 06:14:38 pm »
Without hardware accel blitting is never efficient.
If you like my work: why not give me an internet?