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 - Levak

Pages: 1 ... 39 40 [41] 42 43 ... 68
601
News / Re: The Launch of a new website : TI-Planet
« on: September 02, 2011, 10:04:39 pm »
As many told us, tiplanet was a bit slow sometimes and for some people.

We optimized tiplanet so that it stores in a html cache file all "static" widgets such as last posts, members' calculators etc ... Then it loads faster and treats the SQL server so that it can handle more users/queries at a time. On the other hand we've put a light theme without any transparency for mobiles and those who want it (look at the link below the Chat box named "le site est lent ?")

http://tiplanet.org/forum/viewtopic.php?p=115685#p115685

602
Lua / Re: Add function to the gc class
« on: September 02, 2011, 02:01:31 pm »
Shouldn't that be possible? Isn't it just stored in a property of the object? Your workaround is also a good solution, but not as clean as I'd like. :p

What do you mean, the color can be changed when drawing an image?

There is a glitch in OS 3.01 and 3.0.2 (understand what you want with this sentence ;) ).
When you draw an image, the last pixel affect the global color and global alpha

603
Lua / Re: Add function to the gc class
« on: September 02, 2011, 01:12:10 pm »
Good ideas in this topic !

However, I should point out that using platform.gc() is discouraged, and is generally a bad idea.
(multiple reasons like the fact that it's not working the exact same way as the 'normal' gc, and for future compatibility matters... ;)  )

Somehow I overlooked your post... Anyways, isn't it true that the usage of platform.gc() in jimbauwens' example is no bad practice, since getmetatables is just a reference to the original metatable shared by all gc objects? I mean, you do use the passed gc in the on.paint() function, so that shouldn't give unexpected results?

Don't you agree that this way looks like a better method for a GUI library?

platform.gc() is a constructor of a new independant gc object.

What does the TINspire framework do :

Code: [Select]
local gc=platform.gc()
gc:begin()
on.paint(gc)
gc:finish()

What does that mean ? On each screen refresh, it recreate an independant gc object that has a different reference.

And since it is a different object, using methods such as setFont/setColor won't change gc, but your new object you define each time you use platform.gc.

If you want to store this gc in on.paint(), it won't be drawn as it, since it has a different reference/address

In Jim method, you define, yes, one time a new object, but you pick up its meta table. It is not the same. Each gc object has the same metatable, but not the same properties.

Would this work?

It would use the normal gc to define all the methods the first time on.paint is called then when it is done it would redefine itself.
Ouch :p
Just use a boolean, like if not gc2 then ..... end in your on.paint()

but anyway, look at the fisrt part of my post, you can't do so :p

604
I guess I should compile TNOC 1.22 for Windows but since it is a way too hard to solve zlib stuff problems under windows I've never done it, even if there are many bug-fix ... =/

605
News / Re: Omnimaga Contest 2011 Part 2 results
« on: September 01, 2011, 01:49:51 pm »
Levak -> with that money, you'll be able to pay for tiplanet.org's stuff, right ?
^^'
lol
You could, I guess.

I hoped yes, but since it is gift card, I really don't know !

606
News / Re: Omnimaga Contest 2011 Part 2 results
« on: September 01, 2011, 01:33:47 am »
I CANT beat his highscore GRRR

:D

want god mod ? :D look at the sources, there is one :D

607
Miscellaneous / Re: Post your desktop
« on: September 01, 2011, 12:01:21 am »
Avant Window Naviguator  <3

608
News / Re: Omnimaga Contest 2011 Part 2 results
« on: August 31, 2011, 07:27:48 pm »
I hope that coding it in 4 days (2 + 2 debugging/features days) didn't discouraged anyone :)

To everybody : keep the good work !

As we say : GG :D



edit : oops; missed the end of my first sentence x)

609
News / Re: The Launch of a new website : TI-Planet
« on: August 31, 2011, 04:17:00 pm »
.net ?

But it will break my tiplanet logo :'(


610
TI-Nspire / Re: Hyena: a simple (Lua) GUI library for the TI-Nspire
« on: August 31, 2011, 04:14:00 pm »
hoffa : you should create a screen class. That way you don't have to do like that

Code: [Select]
        win_2 = hyena:createWindow("FEELS GOOD MAN", 80, 40, 100, 100)
        hyena:setWindowContentFunction(win_2, win_2_f)

but like that :
Code: [Select]
screen = class()
function screen:init()
...
end

function screen:paint(gc) --> here gc is hyena for more "confort"
...
end

...

textBox = class(screen)
function textBox:init(txt)
...
end

-- override screen:paint(gc) function
function screen:paint(gc) --> here gc is hyena for more "confort"
...
end

...

        win_2 = textBox("FEELS GOOD MAN")
        hyena:setWindowContentFunction(win_2)

611
_o\ \o| \o/ |o/ /o_

I think that real-time and complete games have dominated.
The Pong would have had a chance to win if it had been completed :/

612
News / Re: The Launch of a new website : TI-Planet
« on: August 30, 2011, 11:47:46 pm »
No no : 1,32 Mo (1 390 081 Bytes)


Edit for those who didn't follow the discussion : it is TI-Planet size without content image, just background/icons and stuff like that.

613
News / Re: The Launch of a new website : TI-Planet
« on: August 30, 2011, 11:39:46 pm »
Ah ok I see. Do you think they could be reduced in size or something? Or maybe there could simply be an alternate theme that is similar but more optimized for lower or farther connections.

Animated Gif of 500Ko ... dunno :p

614
News / Re: The Launch of a new website : TI-Planet
« on: August 30, 2011, 11:27:20 pm »
Yeah I agree. Maybe it's a bit choppy in some browsers during scrolling but I love it. I guess what needs to be done now is:

-Fix the bug that causes pages to not load 80% of the time, forcing me to refresh like 4 times until they work. (All I see is the planet background). That bug doesn't happen on the index or the forum index, though, just in topics or the archives.

Fixed, but it was general to all the pages, thus ...

Quote
-Maybe look into the server load issues to reduce the loading time (10 seconds per page sometimes). However, loading time on the forums is a bit faster than on Free.fr.
The long time to load is due to news pictures, not the website itself : the background is only a 200KB image.

615
Minecraft Discussion / Re: I set up the minecraft server
« on: August 30, 2011, 08:09:23 am »
EDIT 4 ANS: Everyone in the server have to sleep if I remember correctly.
EDIT 5 ANS: Maybe not enough light?

No ! there were lots of lights everywhere in a little house _closed_
As soon I sleep, a mob spawns on me and kills me...

Pages: 1 ... 39 40 [41] 42 43 ... 68