Alternatively, join us on Discord.
You can help CodeWalrus stay online by donating here.

SDL/n2DLib ports for TI Nspire

Started by gameblabla, August 19, 2015, 08:48:31 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

gameblabla

Mame for TI Nspire, you want it ?
It's yours my friend, as long as you debug it with GDB !
TNS file
Github repo

Trying to port Wolf4SDL and guess what ? Crashes.
Crashes before the application even starts...
Same thing for MAME apparently.

Is my devkit buggy ?
I do not know but you can still give it a try on your nspire.
If it works,  then you can run your games (provided they come from the old mame 0.37 set) by putting this line in ndless.cfg.tns :
ext.zip=mame

This is going nowhere so i'll just take a break just like i did in december and hopefully
gcc and newlib will get fixed again.
  • Calculators owned: None (used to own an Nspire and TI-89)

DJ Omnimaga

Hm, sorry to hear about Wolf4SDL crashing. Maybe you could ask the Ndless team directly about what could be wrong? (assuming they are the ones who made gcc and newlib)

Also Mame for the TI-Nspire is definitively interesting if it runs. It can emulate a lot of obscure platforms if I recall correctly, right?
  • Calculators owned: TI-84 Plus C Silver Edition, TI-84 Plus CE, Casio fx-CG10, HP Prime, fx 1.0 Plus, fx-7400G Plus, fx-9750G Plus, fx-9860G, HP 39gII
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite

Vogtinator

Quote from: gameblabla on April 22, 2016, 02:45:25 AM
Mame for TI Nspire, you want it ?
It's yours my friend, as long as you debug it with GDB !
TNS file
Github repo

Trying to port Wolf4SDL and guess what ? Crashes.
Crashes before the application even starts...
Same thing for MAME apparently.

I tried to compile it, didn't work. I had to add "#undef TRUE" and "#undef FALSE" to nucleus.h.
The reason for the crashes is probably that malloc fails. The binary is also too big to be debugged (without tweaking emu_debug_alloc_size) and it doesn't even load on OS >= 4.0.
  • Calculators owned: TI-Nspie CX CAS, Casio FX-85ES

DJ Omnimaga

  • Calculators owned: TI-84 Plus C Silver Edition, TI-84 Plus CE, Casio fx-CG10, HP Prime, fx 1.0 Plus, fx-7400G Plus, fx-9750G Plus, fx-9860G, HP 39gII
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite

Vogtinator

The default emu_debug_alloc_size is 8MiB. It prints a message "[Zehn] emu_debug_alloc_size too small!" if the executable needs more.
  • Calculators owned: TI-Nspie CX CAS, Casio FX-85ES

gameblabla

To compile Mame, you actually need to comment out the os.h file.
Maybe i should file a bug for this but you should completely remove this file because it conflicts with a lot of applications out there...
And the uncompressed executable is 30MB, so debugging it is out of question...

I guess it's really dead then...
How about you look at Wolfenstein 3D instead ? ;D
https://github.com/gameblabla/wolf4sdl_nspire

I will see if i can't port KEGS instead, it's pretty fast on my computer and it takes like less than 1% of my cpu,
it should run pretty fast on nspire.
  • Calculators owned: None (used to own an Nspire and TI-89)

Vogtinator

April 23, 2016, 07:37:41 PM #231 Last Edit: April 23, 2016, 07:51:02 PM by Vogtinator
Quote from: gameblabla on April 23, 2016, 02:09:33 PM
To compile Mame, you actually need to comment out the os.h file.
Maybe i should file a bug for this but you should completely remove this file because it conflicts with a lot of applications out there...
It's already deprecated, but everything still uses it :-/

QuoteAnd the uncompressed executable is 30MB, so debugging it is out of question...
It's about 10 MiB here, but even that's too large to use on 4.0 ("ld_exec: could not malloc savedscr")

QuoteI guess it's really dead then...
How about you look at Wolfenstein 3D instead ? ;D
https://github.com/gameblabla/wolf4sdl_nspire
Same crash?
Edit: Works fine here on OS 3.1. Probably also a memory problem. enable_relative_paths doesn't seem to work though, I had to place the .wl1.tns files in /documents.

QuoteI will see if i can't port KEGS instead, it's pretty fast on my computer and it takes like less than 1% of my cpu,
it should run pretty fast on nspire.
  • Calculators owned: TI-Nspie CX CAS, Casio FX-85ES

gameblabla

April 23, 2016, 07:52:09 PM #232 Last Edit: April 23, 2016, 07:54:39 PM by gameblabla
QuoteEdit: Works fine here on OS 3.1. Probably also a memory problem. enable_relative_paths doesn't seem to work though, I had to place the .wl1.tns files in /documents.
ah, interesting, care to share your tns ?

QuoteProbably also a memory problem
What do you mean, memory ?
You mean that it is taking too much RAM or is it something else ?
  • Calculators owned: None (used to own an Nspire and TI-89)

Vogtinator

Here you go.

  • Calculators owned: TI-Nspie CX CAS, Casio FX-85ES

gameblabla

Quote from: Vogtinator on April 23, 2016, 07:54:30 PM
Here you go.

Thanks, i don't know how you got it to work though...
It crashes right away on my nspire. (OS 4.2 btw)

I will reinstall my OS and go back to OS 3.1.
  • Calculators owned: None (used to own an Nspire and TI-89)

Vogtinator

Quote from: gameblabla on April 23, 2016, 07:58:14 PM
Quote from: Vogtinator on April 23, 2016, 07:54:30 PM
Here you go.

Thanks, i don't know how you got it to work though...
It crashes right away on my nspire. (OS 4.2 btw)

I will reinstall my OS and go back to OS 3.1.

Just tried on 4.2 CX CAS (firebird) and it works fine. Do you have the latest ndless?
  • Calculators owned: TI-Nspie CX CAS, Casio FX-85ES

gameblabla

April 23, 2016, 08:19:02 PM #236 Last Edit: April 23, 2016, 08:23:45 PM by gameblabla
Quote from: Vogtinator on April 23, 2016, 08:05:59 PM
Just tried on 4.2 CX CAS (firebird) and it works fine. Do you have the latest ndless?
Yeah, i had the latest ndless installed.
Reformatted my calc, put OS 3.1 then tried to run Wolfenstein : it crashed right away.
Have you tried on a real calc ?
  • Calculators owned: None (used to own an Nspire and TI-89)

Vogtinator

I don't have access to my calc right now. There's only a few possibe causes for a crash on HW: Unaligned access and other HW side-effects.
The whole lot of  GCC warnings point to the first.
  • Calculators owned: TI-Nspie CX CAS, Casio FX-85ES

DJ Omnimaga

Wow, if this game works on a real calc in the future, this will be epic! O.O
  • Calculators owned: TI-84 Plus C Silver Edition, TI-84 Plus CE, Casio fx-CG10, HP Prime, fx 1.0 Plus, fx-7400G Plus, fx-9750G Plus, fx-9860G, HP 39gII
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite

gameblabla

Quote from: Vogtinator on April 23, 2016, 08:32:31 PM
I don't have access to my calc right now. There's only a few possibe causes for a crash on HW: Unaligned access and other HW side-effects.
The whole lot of  GCC warnings point to the first.
Well, i can't even run your binary on firebird...
I'm seriously thinking i have corrupted all of my Nspire-related files...

Could anybody else give Wolfenstein 3D a try on their nspire ?
  • Calculators owned: None (used to own an Nspire and TI-89)

Powered by EzPortal