A console thing

General discussion about LÖVE, Lua, game development, puns, and unicorns.
volts
Prole
Posts: 5
Joined: Thu Jul 24, 2008 1:52 am

Re: A console thing

Post by volts »

Thanks zeddy. This is the cat's meow! Are you cool with us distributing under Zlib license or as public domain?
--
volts
User avatar
zeddy
Prole
Posts: 8
Joined: Mon Jul 07, 2008 11:03 am

Re: A console thing

Post 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 ^^
Green_Hell
Citizen
Posts: 94
Joined: Thu Feb 21, 2008 1:11 am

Re: A console thing

Post 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.
>>I love LÖVE.<<
User avatar
mike
Administrator
Posts: 364
Joined: Mon Feb 04, 2008 5:24 pm

Re: A console thing

Post 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...
Now posting IN STEREO (where available)
User avatar
BlackNecro
Prole
Posts: 2
Joined: Fri Aug 29, 2008 2:09 pm

Re: A console thing

Post 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
User avatar
nightvenom
Prole
Posts: 36
Joined: Sat Aug 16, 2008 3:07 pm

Re: A console thing

Post by nightvenom »

Old news, but never saw this sweet stuff ? So is this free to use on our projects ?
User avatar
TsT
Party member
Posts: 161
Joined: Thu Sep 25, 2008 7:04 pm
Location: France
Contact:

Re: A console thing

Post by TsT »

Good work!

Is you code is under free licence ?

Regards,
My projects current projects : dragoon-framework (includes lua-newmodule, lua-provide, lovemodular, , classcommons2, and more ...)
User avatar
zeddy
Prole
Posts: 8
Joined: Mon Jul 07, 2008 11:03 am

Re: A console thing

Post by zeddy »

Yeah, sure. Public domain, so you can use it and modify it however you like.
User avatar
TsT
Party member
Posts: 161
Joined: Thu Sep 25, 2008 7:04 pm
Location: France
Contact:

Re: A console thing

Post 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,
My projects current projects : dragoon-framework (includes lua-newmodule, lua-provide, lovemodular, , classcommons2, and more ...)
User avatar
nightvenom
Prole
Posts: 36
Joined: Sat Aug 16, 2008 3:07 pm

Re: A console thing

Post by nightvenom »

Ok ty :)

Yes it will be under a free license :)
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 3 guests