python tns2lua.py MyFile.tns MyCode.txt
I think it works if one didn't use TI's Tools to create it. If one used third-party tools then it works (or so I believe).Exactly, so:
Does this only work on 3.0.1-only files, or does it also support files that support 3.0.2?It works only on 3.0.1-only files.
Also note that in order to do this you need Python 2.6 or Python 2.7 installed in your computer and they need to be in the terminal path.
python tns2lua.py MyFile.tns MyFile.txt
Any help on this?@echo off
set /p tnsfile= Type the tns filename (without extension):
set /p txtfile= Type the txt filename (without extension):
python tns2lua.py %tnsfile%.tns %txtfile%.txt
Though it didn't seem to work.You better use Luna to create .tns file, that any other third-party tool, since Luna is the only one generating working file for OS >= 3.0.2.
Tutorials on how to use it are everywhere, but basically : luna.exe source.lua output.tns
EDIT : Oh wait nevermind I think I read your post wrong.....
If you're using Windows, add the Python install directory to your PATH environment variable. See http://docs.python.org/using/windows.html#excursus-setting-environment-variables for more information. And no, it won't work with TNS files for OS 3.0.2 and above. (By the way, BBify can also convert OS 3.0.1 TNS files to Lua source -- sorry for the thread hijack, but I thought it was relevant.)