Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Jim Bauwens

Pages: 1 ... 100 101 [102] 103 104 ... 125
1516
TI Z80 / Re: TruVid - 4 level grayscale video with sound
« on: July 08, 2011, 02:39:59 pm »
I must say, this is very impressive!
I didn't know sound from a calculator could be that good!

1517
TI-Nspire / Re: Pacman Lua
« on: July 08, 2011, 02:33:19 pm »
Good luck pianoman!

I know its kinda hard to make this game in Lua, because you will need to do lots of calculations and screen refreshes, so I hope that it will work out!

1518
TI-Nspire / Re: My Nspire contest entry - Zombie FPS game
« on: July 08, 2011, 11:01:31 am »
He can't provide the link because its his contest entry. You will have to wait a bit :)

1519
News / Re: Farewell
« on: July 08, 2011, 06:44:54 am »
DJ, I will miss you, and I hope you will visit still sometimes.

Good luck with everything else!

1520
News / Re: On-calc Lua programming now possible!
« on: July 06, 2011, 04:36:08 pm »
To be honest, I didn't release my LuaTerm yet, I just posted some pre-release code :p
And it doesn't only load lua from strings, you can directly type and test stuff, just like on a normal Lua console :)

1521
TI-Nspire / Re: [TI-Nspire] Make3D - TI-Basic to Lua
« on: July 05, 2011, 04:30:37 am »
Congratulations Levak (with your exams)!

And nice work on Make3D!

1522
TI-Nspire / Re: [Lua] Bobby Carrot
« on: July 03, 2011, 05:01:42 pm »
First off all, exe programs don't work ine Linux, as they are make for windows. In recommend this converter: http://www.ticalc.org/archives/files/fileinfo/437/43704.html , which works in Linux.


As for tilp, the version in the Ubuntu repo is currently outdated, so you will need to compile it from source. Here is how to do it:

First download this script: http://lpg.ticalc.org/prj_tilp/download/install_tilp.sh
Copy it to your home directory ("/home/chockosta")
Open a terminal (Applications --> Accessories -->Terminal)
Run this:
Code: (SH) [Select]
sudo apt-get install subversion autoconf automake libtool libglib2.0-dev zlib1g-dev libusb-dev libgtk2.0-dev libglade2-dev libsdl1.2-dev gettext bison flex groff texinfo xdg-utilsThis will install all the dependencies to compile tilp.
Then run this:
Code: (SH) [Select]
chmod +x ./install_tilp.sh
sudo ./install_tilp.sh
You will be asked for your password, type it (its normal that you don't see it while typing).
Then wait for the installation to finish.

When its done (without any errors) you have successfully installed and compiled tilp. To use tilp just run "sudo tilp" in a terminal.

1523
jboavida, you need to put gc:drawimage (image,0,0) inside on.paint, like this:
Code: (Lua) [Select]
function on.paint(gc)
    gc:drawimage (image,0,0)
end

on.paint get called every time the screen gets/needs to be redrawn (for example when you open the program or run platform.window:invalidate()

Everything that uses gc should be called from on.paint. I recommend you to read  the tutorials at http://www.inspired-lua.org/category/tutorials/starting-in-lua/ , they will help you understand how nspire Lua works.

1524
Thats looks pretty good! I didn't think of using copy/paste for that.
Good work!

1525
Lua / Re: Lua Q&A
« on: July 02, 2011, 03:54:43 pm »
The D2Editor also sucks events for some reason, and my programs start acting really weird after a while. I really would like to use it, but its so bugged that I can't. It just get to anoying after a time.

1526
Lua / Re: Lua Q&A
« on: July 01, 2011, 04:03:20 pm »
There is a D2Editor, but it really is buggy, so you can't use it.

You can make something like this:
Code: (Lua) [Select]

msg = ""

function on.paint(gc)
    gc:drawString(msg,10,10,"top")
end

function on.charIn(ch)
    msg = msg .. ch
    platform.window:invalidate()
end

Of course you will have to do some changes to make it usable, but it should show the basics.

1527
Lua / Re: Lua Q&A
« on: June 30, 2011, 04:03:07 pm »
No problem :)

1528
Lua / Re: Lua Q&A
« on: June 30, 2011, 11:05:41 am »
Its a way to loop through all the items of an Array.

Example: (works only on computer, as it uses print)
Code: (Lua) [Select]
    mytable={1,2,3,"a","b","c"}

    for i, p in pairs(mytable) do
       print("Spot: " . i)
       print("Content: " . p)
    end
will output
Code: (Lua) [Select]
Spot: 1
Content: 1
Spot: 2
Content: 2
Spot: 3
Content: 3
Spot: 4
Content: a
Spot: 5
Content: b
Spot: 6
Content: c

i is the spot in the table, p is the content of that spot.

Here is some handy information about tables: http://lua-users.org/wiki/TablesTutorial

1529
Lua / Re: Lua Q&A
« on: June 30, 2011, 10:30:54 am »
Sadly enough you can't just compare a table like that (unless you add a metatable for it with the appropriate funcion).
You can do it like this:
Code: (Lua) [Select]

function compare(t1, t2)
    for i, p in pairs(t1) do
        if p~=t2[i] then
            return false
        end
    end
    return true
end

a={1,2,3}
b={1,2,3}

if compare(a, b) then
--they are equal
else
--they are not equal
end

1530
TI-Nspire / Re: [Lua] Bobby Carrot
« on: June 29, 2011, 06:24:49 pm »
I don't think it will detect your keypresses (in the online player)

Pages: 1 ... 100 101 [102] 103 104 ... 125