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 - Jonius7
Pages: 1 ... 36 37 [38] 39 40 ... 129
556
« on: March 27, 2012, 08:05:56 am »
Oh wow I cannot believe there has been no comments to this news article. Then again, it isn't really relevant to many people. I wonder if there is any other way to back up these PMs but also shutting down the forum site.
557
« on: March 27, 2012, 07:58:46 am »
Wow I wonder how this is going, since I just noticed this topic here: http://ourl.ca/15659Good to see you back flyingfisch!
558
« on: March 27, 2012, 07:53:05 am »
Is EndIf or End not required in TI-BASIC (83/84)? I know that End is required in Casio Basic and EndIf in TI-nspire Basic End (for function in Lua) too.
559
« on: March 27, 2012, 07:48:45 am »
Assuming you still have issues with this, if you mean running 83+ BASIC games on the CX, then you cannot do that, unfortunately. Do you mean running programs found on ticalc.org?
I remember downloading several 83+ games from ticalc.org myself and trying to make them work with TI-nspire before realising that they only accepted .tns documents Only the Touchpads and Clickpads have any chance of compatibility with 83+ BASIC games with the 84+ Keypad.
560
« on: March 27, 2012, 07:43:46 am »
Oh! I thought it was customary to give peanuts only in the Introduce Yourself! Board and direct new members to start a topic there And good stuff CoD_Black_Ops_Master. Here in Omnimaga we aim to help and contribute.
561
« on: March 27, 2012, 07:21:52 am »
This doesn't work with > OS 3.0.2 does it? Fortunately I have managed to get it working . so edited version by me here: http://ourl.ca/15678.new#new
562
« on: March 27, 2012, 07:20:48 am »
Well hi everyone, I have been slowly trying to learn TI-nspire Lua here. I have thought for a bit, made some demo beginner programs with the help of jimbauwens , and learnt a lot along the way (also creating a batch file for Luna for quick lua -> tns conversion). But I still have a long way to go. So I had the tns file for 15puzzle but it didn't work, probably because it was designed to work with OS<3.0.2. Fortunately I have managed to extract Problem1.xml from the tns file (rename it as a zip), copy to Notepad++ save as a .lua file, then used this page, to fix some errors/discrepancies with xml coding and tinspire Lua code, and got it working! Played it, got it solved in 353 moves. Now here I post the source code and tns file of 15Puzzle, edited by Jonius7 for OS 3.0.2 and above And I think one of the best ways to learn is to analyse source code line by line and try to understand what it means. So I shall try here with some help to dissect this source code: function on.charIn(ch) if ch == "r" then board = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }
-- Randomize local swaps = 0 for i = 1, 16 do local j = math.random(i, 16) if i ~= j then board[i], board[j] = board[j], board[i] swaps = swaps + 1 end if board[i] == 16 then empty = i end end
-- If the number of swaps plus the number of empty-space movements is odd, -- then the puzzle is impossible, so do an impossible move to make it possible -- (exchange the space with a tile two squares away) if (swaps + (empty - 1) + math.floor((empty - 1) / 4)) % 2 == 1 then local i = (empty + 7) % 16 + 1 board[empty] = board[i] empty = i board[empty] = 16 end
moves = 0 platform.window:invalidate() end end
on.charIn("r")
function on.paint(gc) local won = true for i, n in ipairs(board) do if n ~= 16 then local x = (platform.window:width() - 128) / 2 + 32*((i - 1) % 4) local y = (platform.window:height() - 128) / 2 + 32*math.floor((i - 1) / 4) gc:drawRect(x, y, 30, 30) gc:drawString(n, x + (30 - gc:getStringWidth(n)) / 2, y + 15, "middle") end won = (won and n == i) end
local str = moves .. " moves" gc:drawString(str, (platform.window:width() - gc:getStringWidth(str)) / 2, 0, "top") if won then str = "You win! Press R to reset" gc:drawString(str, (platform.window:width() - gc:getStringWidth(str)) / 2, platform.window:height(), "bottom") end end
function on.arrowKey(key) local dir if key == "left" and empty % 4 ~= 0 then dir = 1 elseif key == "right" and empty % 4 ~= 1 then dir = -1 elseif key == "up" and empty <= 12 then dir = 4 elseif key == "down" and empty > 4 then dir = -4 else return end board[empty] = board[empty + dir] empty = empty + dir board[empty] = 16 moves = moves + 1 platform.window:invalidate() end
563
« on: March 27, 2012, 06:56:36 am »
nope like the omnom textbox is hidden by the lower border of the omnomIRC shoutbox
like this:
aeTIos|Blah blah blah ----------------------- <<<lower border [textbox is hidden by teh lower border ]
Oh it sometimes does this, the chat box completely disappears, but that's when it hasn't finished loading the page/module. And this happens on all browsers For reset zoom, press Ctrl + 0
564
« on: March 27, 2012, 06:25:00 am »
Oh really? I'm not sure if that happens for me. It looks fine for me. Could you post a screenshot please?
565
« on: March 27, 2012, 06:16:26 am »
You mean there's a small gap between the Omnom chat box and the nav bar?
566
« on: March 27, 2012, 05:05:57 am »
It does look very nice overall! Shall benefit the community greatly, and bring some relief to the feeling of being stuck on 3.0.2.
567
« on: March 27, 2012, 05:01:37 am »
So, TotKotM song previews... Also here is some song/album art
Shall upload my whole collection in a zip/rar file when I can. Stay tuned.
568
« on: March 27, 2012, 04:48:50 am »
Hi heepoopsalot, Please do not necropost in old topics, unless for a particular reason that is relevant to the current events of today.
569
« on: March 27, 2012, 04:39:58 am »
We have a group of newer programmers that were celebrating their first birthday at Omnimaga. (such as Stefan) http://ourl.ca/15328And I am disappointed in myself in not really posting updates to my own projects But things are ok overall, I guess. Also something I found: Copy to Clipboard when in [code] [/code] does not work. In Chrome at least.
570
« on: March 27, 2012, 04:38:09 am »
Wow, this has been left from August last year! I wasn't sure if there were any actual developments on the Facebook Page anyway. Yeah hopefully https might work soon.
Also nice, because now people can get Omnimaga news directly from Facebook so this might bring them back when they don't visit for a long while.
Maybe, if they remember about the Omnimaga Facebook Page, as it might not be a bookmarked page on the left sidebar.
Pages: 1 ... 36 37 [38] 39 40 ... 129
|