ndless-nspire / Luna

Create TNS files from Lua and XML
Other
62 stars 14 forks source link

Help with converting this to a .tns file #20

Closed Scrivdogg99 closed 6 months ago

Scrivdogg99 commented 6 months ago

Can you please help with converting this to a .tns file, it just isn't working for me. Thank you

https://github.com/TheLocust3/Ti-Nspire-Gameboy-Classic-Emulator

adriweb commented 6 months ago

The linked project is neither working nor finished. Take a look at that one though https://github.com/Vogtinator/gbc4lua

Scrivdogg99 commented 6 months ago

Thank you that's really cool but my os version is 4.5.5 and it says it crashes if its above 3.6 and 4.5.5 doesn't have ndless support currently so I wanted a lua emulator so I can just use that without the jailbreak.

adriweb commented 6 months ago

no, it says before 3.6 it crashes. And it doesn't require ndless.

Scrivdogg99 commented 6 months ago

Oh ok thanks, I'm really bad at this but I can't turn it into a .tns file haha, I'm really new to this stuff

Scrivdogg99 commented 6 months ago

I hope it's not too much to ask but are you able to convert it into a .tns file for me, it would help a lot thank you

adriweb commented 6 months ago

I'll let @Vogtinator reply but I think it's mostly a proof of concept / technical showcase. It wouldn't be able to run fast enough to be fun. Also, iirc one has to build it in their own due to the rom having to be embedded or something

Scrivdogg99 commented 6 months ago

That's fine I just think it's cool to run without needing ndless

adriweb commented 6 months ago

lmao bro you can't share roms that's illegal 😂

Scrivdogg99 commented 6 months ago

Whoops

Scrivdogg99 commented 6 months ago

Thank you for your help, I’ll be sure to contact @Vogtinator also thank you for telling me it’s illegal I didn’t know

Vogtinator commented 6 months ago

https://github.com/Vogtinator/gbc4lua?tab=readme-ov-file#gameboy-emulator-targeting-lua-51 has build instructions. Needs to be run on a system with make, sed and python3 available.

Scrivdogg99 commented 6 months ago

I'm sorry it just isn't working for me I've copied and pasted it and worked around it and I have make, sed and python3 installed but it still isn't working

Vogtinator commented 6 months ago

What's the error message?

Note that even when done properly, Input isn't implemented yet and it's abysmally slow.

Scrivdogg99 commented 6 months ago

I tried following what it said but it kept saying like git doesn't work so I actually did it write but then it couldn't find the rom and I can't remember the rest but it just isn't seeming to work for me.

Vogtinator commented 6 months ago

Without a proper error message I can't really help any further.

Scrivdogg99 commented 6 months ago

┌──(kali㉿kali)-[~/…/ndless/src/tools/LuaBin] └─$ luabin.cpp PokemonBlue.gb - rom | sed 's/"/"/g' > rom.lua luabin.cpp: command not found

┌──(kali㉿kali)-[~/…/ndless/src/tools/LuaBin] └─$ lua PokemonBlue.gb - rom | sed 's/"/"/g' > rom.lua lua: PokemonBlue.gb:1: unexpected symbol near '<\255>'

adriweb commented 6 months ago

luabin.cpp is the source code to be compiled... then you can use that

Scrivdogg99 commented 6 months ago

I inputted this

g++ -E luabin.cpp PokemonBlue.gb - rom | sed 's/"/"/g' > rom.lua

It's loading, does that mean it is working?