Author Topic: "Luna" is here and converts your .lua files into 3.0.2-compatible .tns files  (Read 57487 times)

0 Members and 2 Guests are viewing this topic.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
In general, using obfuscation and patents is a sign of a definite will to keep tight control and hamper interoperability. Here, it's between unauthorized third parties and the calculator/computer software. They could have done without inventing a proprietary XML compression scheme and patenting it: there are multiple other ways to compress XML data.

But obviously, they fail at preventing interoperability (nobody seriously doubted it would succeed)... and they can't even complain legally in the countries where reverse-engineering for the purpose of creating interoperability is allowed.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Alex

  • LV2 Member (Next: 40)
  • **
  • Posts: 32
  • Rating: +3/-0
    • View Profile
Hello,
Having a mac with OS X 10.5.8, I downloaded LUNA mac. But he put:

"dyld: unknown required load command 0x80000022
Trace / BPT trap
logout "

So I asked for help on TI-BANK Adriweb and gave me a native application for Mac, providing an interface to Luna, but still the same problem:

"LUNA has unexpectedly quit" and looking at the error report, still the same control problem.

I wonder if someone could compile me for my version of Mac OS X.

Thank you in advance.
AlexRider38

PS: I use google translate ;D

Offline Alex

  • LV2 Member (Next: 40)
  • **
  • Posts: 32
  • Rating: +3/-0
    • View Profile
 :w00t:  :'(
« Last Edit: August 20, 2011, 04:39:55 am by Alex »

Offline Cuervo

  • LV2 Member (Next: 40)
  • **
  • Posts: 33
  • Rating: +2/-1
    • View Profile
Sorry, I don't have Mac OS X 10.5.x

Can you please install Xcode from your Mac OS X Install DVD (or download the newest version from https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20414 (which should be better) if your internet connection is fast) and try to run 'make dist' in the src dirctrory of my download?

http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX
(Should build the 32-bit executable)


Cuervo
« Last Edit: August 20, 2011, 04:59:46 am by Cuervo »

Offline Alex

  • LV2 Member (Next: 40)
  • **
  • Posts: 32
  • Rating: +3/-0
    • View Profile
Have you mac?

Offline devpolytechnic

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +0/-0
    • View Profile
Re: "Luna" is here and converts your .lua files into 3.0.2-compatible .tns files
« Reply #50 on: September 21, 2011, 06:23:17 pm »
@Adriweb
I'm beginning to program right now in Lua, but for some reason, when I tried converting my .lua file, it says this error:
The program can't start because zlib1.dll is missing from your computer. Try reinstalling the program to fix this problem.

In case you think this is a hardware error, here are my PC specs (Note: I built my own computer):
OS: Windows 7 Ultimate 64-Bit Service Pack 1 Version 6.1.7601
CPU: AMD Phenom II X6 1100T Black Edition at 3.3 GHz
Memory: Corsair 8GB Vengeance Blue 1600 MHz
Video Card: XFX Radeon HD 6950 1 GB GDDR5
 ???

Thanks,
devpolytechnic
i like programming :)
#include <iostream>
int main()
{
cout << "Hello, World!" << endl;
}

public class HelloWorld{
 public static void main(String[] args){
  System.out.println("Hello, World!");
 }
}

Define helloworld()=
Prgm
Disp "Hello, World!"
EndPrgm

function on.paint(gc)
 gc:drawString("Hello, World!",125,100)
end

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: "Luna" is here and converts your .lua files into 3.0.2-compatible .tns files
« Reply #51 on: September 22, 2011, 04:07:03 am »
Alex, I don't know if Mac OS X 10.5 contains the SSL libs Luna needs by default, that is why it might fail.
Sadly enough I'm not experienced enough with macs to help you. You should try to ask Adriweb again about this, because Mac is his main platform, and he is quite a good programmer.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: "Luna" is here and converts your .lua files into 3.0.2-compatible .tns files
« Reply #52 on: September 22, 2011, 06:46:51 am »
thanks @jimbauwens :P

@Devpolytechnic :  Try downloading manually the dll file : http://www.dll-files.com/pop.php?dll=zlib1 and put in in the /System32/ folder (in the /windows/ folder).

Btw, did you download that version : Luna 0.2 ? Getting the latest one is always a good idea.
« Last Edit: September 22, 2011, 06:47:18 am by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Cuervo

  • LV2 Member (Next: 40)
  • **
  • Posts: 33
  • Rating: +2/-1
    • View Profile
Re: "Luna" is here and converts your .lua files into 3.0.2-compatible .tns files
« Reply #53 on: September 22, 2011, 08:05:07 am »
I uploaded the Mac OS X build of Luna 0.2. I also booted one of my old iMac G3s to compile a PowerPC compatible version.
So there are the following files included now:

luna-i386-x86: Intel x86 - 32 Bit
luna-i386-x86_64: Intel x86_64 - 64 Bit
luna-ppc-32: PowerPC - 32 Bit

I am unable to compile a PowerPC - 64 Bit version because I do not have any G5-based machine. Oh, and I did not compile a PowerPC G4 version, but the G3 version will run on any PowerPC based Mac that has at least a G3 processor.

Download (v0.2):
http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX02
(Please note: The download link for 0.1a still works, if you need it^^)

Cuervo
« Last Edit: September 22, 2011, 08:05:45 am by Cuervo »

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: "Luna" is here and converts your .lua files into 3.0.2-compatible .tns files
« Reply #54 on: September 22, 2011, 10:49:41 am »
Thanks, that's good.

I'll update my Luna-GUI Mac App ;)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline devpolytechnic

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +0/-0
    • View Profile
Re: "Luna" is here and converts your .lua files into 3.0.2-compatible .tns files
« Reply #55 on: September 22, 2011, 10:41:10 pm »
@adriweb
I checked the version I downloaded, and it was Luna version 1.0a.    ;)
I downloaded version 2.0 from the link you had, and it worked perfectly.  ;D
Thanks for the quick reply and help!

Now all I have to do is figure out how to program Pong in Lua...This is going to be fun  ::)
i like programming :)
#include <iostream>
int main()
{
cout << "Hello, World!" << endl;
}

public class HelloWorld{
 public static void main(String[] args){
  System.out.println("Hello, World!");
 }
}

Define helloworld()=
Prgm
Disp "Hello, World!"
EndPrgm

function on.paint(gc)
 gc:drawString("Hello, World!",125,100)
end

Offline Goplat

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 289
  • Rating: +82/-0
    • View Profile
Re: "Luna" is here and converts your .lua files into 3.0.2-compatible .tns files
« Reply #56 on: September 24, 2011, 09:15:00 pm »
Two bugs related to replacing & and < in lua source with character entities:

* escape_special_xml_chars stops processing when it reaches the offset equal to the size of the original input ("p < in_buf + header_size + in_size"), not taking into account that the size is changing during the loop, so characters near the end of the program may not get escaped
* xml_compress copies the footer without taking into account the change in size ("memcpy(in_buf + header_size + in_size, lua_footer, sizeof(lua_footer));"), resulting in a truncated program and garbage at the end of the xml
Numquam te deseram; numquam te deficiam; numquam circa curram et te desolabo
Numquam te plorare faciam; numquam valedicam; numquam mendacium dicam et te vulnerabo

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: "Luna" is here and converts your .lua files into 3.0.2-compatible .tns files
« Reply #57 on: September 25, 2011, 07:45:32 am »
I guess that blending Luna 0.1 and 0.2 will solve the problem since Luna 0.1 used to work and sources are quite identical for this part.
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: "Luna" is here and converts your .lua files into 3.0.2-compatible .tns files
« Reply #58 on: September 25, 2011, 12:13:23 pm »
Would it be possible to use it in order to get text from a TNS file without TI-Nspire Computer software ?

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: "Luna" is here and converts your .lua files into 3.0.2-compatible .tns files
« Reply #59 on: September 25, 2011, 12:34:00 pm »
Would it be possible to use it in order to get text from a TNS file without TI-Nspire Computer software ?

With an emulator and a memory dump ... but it is really messy
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua