Page 2 of 3

Re: A console thing

Posted: Thu Aug 07, 2008 8:04 pm
by volts
Thanks zeddy. This is the cat's meow! Are you cool with us distributing under Zlib license or as public domain?

Re: A console thing

Posted: Fri Aug 08, 2008 4:15 am
by zeddy
volts wrote:Thanks zeddy. This is the cat's meow! Are you cool with us distributing under Zlib license or as public domain?
Hey, thanks
Sure i'll say public domain, so do what you like with it ^^

Re: A console thing

Posted: Mon Aug 18, 2008 11:49 pm
by Green_Hell
farvardin wrote:I don't know if it's because I'm on linux or it's using an US keyboard, but it's not working. In a windows virtual machine with virtualbox, it's working though (and the keyboard is qwerty)

It looks cool anyway!
It's the most shitty thing I hate about SDL. They write about it in documentation but I'm not gona show you because of laziness. They do not support localised keyboards and it does not seam that they're ever gona do anything with this. This whole thing sux. Because I can not use half of my keyboard so I have to run games through setxkbmap scripts to be able to play games like a normal man. And if I play like that I can't do anything else because of different layout.
And that's why SDL is a bad thing.

Sorry about this. I just need to tell anybody.

Re: A console thing

Posted: Tue Aug 19, 2008 10:16 am
by mike
We were discussing how to fix this by having some sort of keyboard-mapping thing in LÖVE (for great justice and the like), but it'll probably come in LÖVE 2.0 or something...

Re: A console thing

Posted: Fri Aug 29, 2008 2:30 pm
by BlackNecro
I found Löve about a few hours ago before that pretty much worked with gmod the for quite some time now ( started scripting lua in june 06).

I played around quite a while until I found this - nice console I like it really much.
I couldn't resist and just had to edit the printv function a bit.
My edited one supports multi dimensional tables and prints them pretty much organized - it's just a bit complicated if you print bigger tables as it fills the small console space quite quickly (*cough* a scrollbar would be nice *cough*)
If somebody wants it or you, zeggy, even wants to add it to the console or whatever feel free to do whatever you want with it :D

Code: Select all

function Console:printv(inTable,scope)
	scope = scope or 0
	local spacer = string.rep(" ",scope*3) or ""
	for var, value in pairs(inTable) do
		if type(value) == "table" then
			self:print(spacer..tostring(var).." = ".. tostring(value))
			self:printv(value, scope + 1)
		else
			local printval = tostring(value) or type(var) == "string" and '"'..tostring(value)..'"'
			self:print(spacer .. tostring(var) .. " = " ..printval)
		end
	end
end

Re: A console thing

Posted: Wed Oct 15, 2008 6:17 pm
by nightvenom
Old news, but never saw this sweet stuff ? So is this free to use on our projects ?

Re: A console thing

Posted: Wed Oct 15, 2008 10:16 pm
by TsT
Good work!

Is you code is under free licence ?

Regards,

Re: A console thing

Posted: Wed Oct 15, 2008 11:19 pm
by zeddy
Yeah, sure. Public domain, so you can use it and modify it however you like.

Re: A console thing

Posted: Thu Oct 16, 2008 8:45 am
by TsT
Oups, sorry I don't see the 2nd page speaking about licence...

Thanks for your god work!

I'm working on advanced input lib and widget management lib for love.
Both fully built on lua.
I will try to release them soon (under GPL).

About your console I suggest (maybe I will modify myself if I get time) to add argument to New console to specofy the toggle key.
And manage everything internaly (parse all keys except the toggle key)...

Regards,

Re: A console thing

Posted: Thu Oct 16, 2008 4:36 pm
by nightvenom
Ok ty :)

Yes it will be under a free license :)