You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

SDL/n2DLib ports for TI Nspire

b/Game Downloads Started by gameblabla, August 19, 2015, 08:48:31 PM

Previous topic - Next topic

0 Members and 5 Guests are viewing this topic.

u/gameblabla 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.

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.
u/Dream of Omnimaga April 22, 2016, 03:12:59 AM
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?
u/Vogtinator April 22, 2016, 04:36:17 PM
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.
u/Dream of Omnimaga April 23, 2016, 08:47:31 AM
What is the max size allowed?
u/Vogtinator April 23, 2016, 10:18:40 AM
The default emu_debug_alloc_size is 8MiB. It prints a message "[Zehn] emu_debug_alloc_size too small!" if the executable needs more.
u/gameblabla 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...
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.
u/Vogtinator April 23, 2016, 07:37:41 PM
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.
Last Edit: April 23, 2016, 07:51:02 PM by Vogtinator
u/gameblabla April 23, 2016, 07:52:09 PM
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 ?
Last Edit: April 23, 2016, 07:54:39 PM by gameblabla
u/Vogtinator April 23, 2016, 07:54:30 PM
Here you go.

u/gameblabla 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.
u/Vogtinator April 23, 2016, 08:05:59 PM
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?
u/gameblabla April 23, 2016, 08:19:02 PM
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 ?
Last Edit: April 23, 2016, 08:23:45 PM by gameblabla
u/Vogtinator 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.
u/Dream of Omnimaga April 23, 2016, 09:50:56 PM
Wow, if this game works on a real calc in the future, this will be epic! O.O
u/gameblabla April 24, 2016, 02:57:20 AM
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 ?
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal