* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: SDL/n2DLib ports for TI Nspire  (Read 37782 times)

0 Members and 1 Guest are viewing this topic.

Offline gameblabla

  • Super User
  • Join Date: May 2015
  • Location:
  • Posts: 647
  • Post Rating Ratio: +11/-6
  • TI-nspire porter
    • View Profile
Re: SDL ports for TI Nspire
« Reply #30 on: September 04, 2015, 12:17:54 am »
Yes, you should rename your roms so they have no spaces.
For example, rename mario kart to smk.sfc.tns.
I'll add this to the readme if this works for you.

By the way, this is how it looks like on my Ti Nspire :

« Last Edit: September 04, 2015, 01:44:59 am by gameblabla »
  • Calculators owned: TI Nspire CX, TI-89

Offline Streetwalrus

  • Professional slacker
  • CodeWalrus Staff
  • Super User
  • Server Maintenance
  • Original 5
  • Join Date: Nov 2014
  • Location: Israel
  • Posts: 2856
  • Post Rating Ratio: +20/-0
  • ƎW∀⅁ ƎH⊥
    • View Profile
  • Gender: Male
Re: SDL ports for TI Nspire
« Reply #31 on: September 04, 2015, 11:03:26 am »
Wow, that's amazing. It runs at a pretty OK speed too. O.O
  • Calculators owned: TI-80, HP 40G, TI-84 Plus rev G (yay 128k RAM), TI-83 Plus Silver Edition (broken LCD), TI-82 Stats.fr (black), TI-Nspire CX rev C (yay Nlaunchy), TI-83+ SE ViewScreen



Offline gameblabla

  • Super User
  • Join Date: May 2015
  • Location:
  • Posts: 647
  • Post Rating Ratio: +11/-6
  • TI-nspire porter
    • View Profile
Re: SDL ports for TI Nspire
« Reply #32 on: September 04, 2015, 12:23:27 pm »
Hi all,
i have fixed a serious bug with PocketSNES that prevented it to work on some calcs, like in DJ and critor's one.
It was trying to save in a nonexistant directory.
Critor had the same issue as dj and he told me the new version works now.
Anyways, you should download it again if PocketSNES did not worked for you.
  • Calculators owned: TI Nspire CX, TI-89

Online DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18249
  • Post Rating Ratio: +91/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: SDL ports for TI Nspire
« Reply #33 on: September 04, 2015, 03:12:35 pm »
Horray, it works! I assume it didn't create the directory if non-existent, right? Also is the error dependent on specific calculator hardwares? On the TI-84+, for example, Omnicalc's restore RAM function will not work on any 84+ hardware manufactured past April 2007.

Anyway, I am running Final Fantasy: Mystic Quest as I write this :). Thanks a lot and great job :)
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Offline gameblabla

  • Super User
  • Join Date: May 2015
  • Location:
  • Posts: 647
  • Post Rating Ratio: +11/-6
  • TI-nspire porter
    • View Profile
Re: SDL ports for TI Nspire
« Reply #34 on: September 04, 2015, 03:45:49 pm »
Also is the error dependent on specific calculator hardwares? On the TI-84+, for example, Omnicalc's restore RAM function will not work on any 84+ hardware manufactured past April 2007.
In fact, the version of PocketSNES with the bug should have not worked on my ti nspire...
Trying to save in the root directory can do funny things, or nothing depending on the hardware.

Anyway, I am running Final Fantasy: Mystic Quest as I write this :). Thanks a lot and great job :)
Thanks, can't wait to fix my atari 2600 emulator.
  • Calculators owned: TI Nspire CX, TI-89

Online DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18249
  • Post Rating Ratio: +91/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: SDL ports for TI Nspire
« Reply #35 on: September 04, 2015, 03:55:27 pm »
Oh it saved in the root directory? I guess it's better to save in the documents folder, plus it makes it easier for people to delete savestates and config (if they want to reset games/emulator setups, that is). Also, if TI ever updates the Nspire there are risks of file conflicts, if, for example, they decide to name a root directory file exactly like a ROM savestate file and that Ndless comes out for that OS afterwards.
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Offline gameblabla

  • Super User
  • Join Date: May 2015
  • Location:
  • Posts: 647
  • Post Rating Ratio: +11/-6
  • TI-nspire porter
    • View Profile
Re: SDL ports for TI Nspire
« Reply #36 on: September 04, 2015, 04:11:47 pm »
Oh it saved in the root directory? I guess it's better to save in the documents folder, plus it makes it easier for people to delete savestates and config (if they want to reset games/emulator setups, that is).
Obviously, this was a bad behaviour. i just forgot to fix this.
Currently it works like Oswan, it creates a directory with the dot and puts everything in it, like on Linux.
You can check your saves in /documents/ndless/.pocketsnes
I think it's neet as a system, i should to this more.
Might a write a tutorial/document about it for Nspire programmers.
« Last Edit: September 04, 2015, 04:13:20 pm by gameblabla »
  • Calculators owned: TI Nspire CX, TI-89

Online DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18249
  • Post Rating Ratio: +91/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: SDL/n2DLib ports for TI Nspire
« Reply #37 on: September 04, 2015, 10:29:15 pm »
Does the dot hide the folder? I never used Linux before.
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Offline Ivoah

  • Super User
  • Join Date: Dec 2014
  • Location:
  • Posts: 523
  • Post Rating Ratio: +6/-0
    • @NoahRosamilia
    • Ivoah
    • @UCmgDyh_AeaHALohvR7PKXIw
    • /u/Ivoah
    • Ivoah
    • 114/11421
    • View Profile
    • Codinghobbit
  • Gender: Male
  • WalriiPoints: 100
Re: SDL/n2DLib ports for TI Nspire
« Reply #38 on: September 04, 2015, 10:37:24 pm »
Does the dot hide the folder? I never used Linux before.

On linux it does, dunno about the Nspire file browser.
  • Calculators owned: TI-86 (now broken), TI SR-56, TI-Nspire CX CAS, TI-84+ SE, TI-84+ SE, TI-85, TI-73 Explorer VS, ViewScreen, TI-84+ CSE, TI-83+ SE

Offline gameblabla

  • Super User
  • Join Date: May 2015
  • Location:
  • Posts: 647
  • Post Rating Ratio: +11/-6
  • TI-nspire porter
    • View Profile
Re: SDL/n2DLib ports for TI Nspire
« Reply #39 on: September 04, 2015, 10:39:44 pm »
Does the dot hide the folder? I never used Linux before.
No, it doesn't hide the folder thankfully.
I just put the dot to make it clear it's a folder with all the saves in there.
  • Calculators owned: TI Nspire CX, TI-89

Offline Ivoah

  • Super User
  • Join Date: Dec 2014
  • Location:
  • Posts: 523
  • Post Rating Ratio: +6/-0
    • @NoahRosamilia
    • Ivoah
    • @UCmgDyh_AeaHALohvR7PKXIw
    • /u/Ivoah
    • Ivoah
    • 114/11421
    • View Profile
    • Codinghobbit
  • Gender: Male
  • WalriiPoints: 100
Re: SDL/n2DLib ports for TI Nspire
« Reply #40 on: September 05, 2015, 04:03:18 am »
I was playing some of this today, and it'd nice! Also, it did open and run the smc file just fine. I made a few issues on the github repo, it'd be nice if you checked them out.
  • Calculators owned: TI-86 (now broken), TI SR-56, TI-Nspire CX CAS, TI-84+ SE, TI-84+ SE, TI-85, TI-73 Explorer VS, ViewScreen, TI-84+ CSE, TI-83+ SE

Online DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18249
  • Post Rating Ratio: +91/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: SDL/n2DLib ports for TI Nspire
« Reply #41 on: September 05, 2015, 04:04:57 am »
Ah ok thanks for the info guys. Also Ivoah yeah I only tried smc files myself since that's what I mostly used for SNES emulation. I wasn't even sure that there was a possibility that only sfc files run.
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Offline gameblabla

  • Super User
  • Join Date: May 2015
  • Location:
  • Posts: 647
  • Post Rating Ratio: +11/-6
  • TI-nspire porter
    • View Profile
Re: SDL/n2DLib ports for TI Nspire
« Reply #42 on: September 05, 2015, 09:02:09 pm »
I was playing some of this today, and it's nice! Also, it did open and run the smc file just fine. I made a few issues on the github repo, it'd be nice if you checked them out.
Oh yes, i forgot i do not filter files on Nspire.
I closed one issue and answered the other one.
It needs a better control sheme i agree with that, i'm surprise no one complained about that.
I guess you're just happy playing your SNES games on your calc.

Believe or not but i can still improve speed for PocketSNES.
Switching to n2DLib, even partially, should bring a nice speed bump.

As for my other emulators, Stella still crashes.
I will look into that later, custer's Revenge can wait i think.
I tried to switch to native with Potator but all i got is a Black screen,
strange.
  • Calculators owned: TI Nspire CX, TI-89

Online DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18249
  • Post Rating Ratio: +91/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: SDL/n2DLib ports for TI Nspire
« Reply #43 on: September 05, 2015, 09:13:06 pm »
I noticed that the controls were a bit akward, but we can't do much about it on the TI-Nspire and HP Prime. They made our job a bit hard by putting the d-pad in the middle. The best would be to group the A, B, X and Y buttons as close as possible to each others, but then comes the issue about L and R. I can't really think of a decent control scheme with that many buttons. If I ever make my own racing or platform game on the HP Prime, I'll simply use 2 buttons and maybe the touchscreen.

That said, MK controls on the SNES weren't that great either. It's a bit akward to use items while driving at the same time.
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Offline gameblabla

  • Super User
  • Join Date: May 2015
  • Location:
  • Posts: 647
  • Post Rating Ratio: +11/-6
  • TI-nspire porter
    • View Profile
Re: SDL/n2DLib ports for TI Nspire
« Reply #44 on: September 06, 2015, 02:45:12 am »
You won't believe me when i'll tell you the reasons why all of my emulators were so slow :
Simply linking an executable to libSDL makes everything twice as slow !
Now, Potator and PocketSNES runs fullspeed overclocked and Oswan runs much faster !
And i thought the TI Nspire was slow...

PocketSNES

PocketSNES is a SNES emulator.
The first version was using SDL but i switched it to n2DLib and the speedup is HUGE.
I can now play games fullspeed when my calc is overclocked to 266mhz !

You can download it here.

Potator

Potator was the first Watara Supervision emulator available.
It can emulate all the games available on it, including Bon Treasure games and the like.
You can download it in the attachments below.

Gameblabla's Oswan

Remember when i told DJ that for Oswan to run faster, it would need an ARM recompiler ?
I was wrong... Not linking it to libSDL (even though it did not use it) improved the speed and now,
speed emulation is twice as fast !
(But an ARM recompiler would still be nice)

You can download it in the attachments below.
« Last Edit: March 20, 2016, 10:54:13 pm by gameblabla »
  • Calculators owned: TI Nspire CX, TI-89

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games