Thin client
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Thin client
Would it be feasible to create a sort of "Thin client" using love2ds current setup?
Re: Thin client
What would a "thin client" be?
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Re: Thin client
Zeex00,
Do you mean something like a browser that downloads and executes assets and code Just-In-Time from various addresses via HTTP? One problem would be sandboxing -- you would want to add guards to love2d to keep downloaded code from reading/writing arbitrary files on your hard drive, etc. I'm not sure if love2d provides much sandboxing, but if it does, I doubt that it provides as much as browsers do.
Do you mean something like a browser that downloads and executes assets and code Just-In-Time from various addresses via HTTP? One problem would be sandboxing -- you would want to add guards to love2d to keep downloaded code from reading/writing arbitrary files on your hard drive, etc. I'm not sure if love2d provides much sandboxing, but if it does, I doubt that it provides as much as browsers do.
-
- Party member
- Posts: 712
- Joined: Fri Jun 22, 2012 4:54 pm
- Contact:
Re: Thin client
I don't know what a thin client is, either, but just wanted to add that sandboxing is quite a thing in Lua, and thus, in Löve.peterrust wrote:Zeex00,
Do you mean something like a browser that downloads and executes assets and code Just-In-Time from various addresses via HTTP? One problem would be sandboxing -- you would want to add guards to love2d to keep downloaded code from reading/writing arbitrary files on your hard drive, etc. I'm not sure if love2d provides much sandboxing, but if it does, I doubt that it provides as much as browsers do.
One of Lua's original purposes was to provide scripting extensions to programs (modding etc.) and such extensions should always be sandboxed, so it was engineered into Lua from the beginning (AFAIK).
I used it quite a lot for trAInsported as well, since users run their own Lua code within my game, so I needed to make sure that the code can't read files etc.
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
Re: Thin client
Thanks for the correction Germanunkol! I come from a Javascript background & was guessing (wrongly, it seems) about Lua's sandboxing capabilities in comparison to JS. Looks like it's actually fairly easy to set the environment that you run the untrusted code in via `setfenv()` (see http://stackoverflow.com/questions/1224 ... ua-sandbox).Germanunkol wrote:sandboxing is quite a thing in Lua, and thus, in Löve.
One of Lua's original purposes was to provide scripting extensions to programs (modding etc.) and such extensions should always be sandboxed, so it was engineered into Lua from the beginning (AFAIK).
I used it quite a lot for trAInsported as well, since users run their own Lua code within my game, so I needed to make sure that the code can't read files etc.
Re: Thin client
I was referring to a client/server relationship where the client just sends key presses,and basic vars across the network to the server.While the server handles all gamelogic
- zorg
- Party member
- Posts: 3465
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: Thin client
It's completely possible to implement an authoritative server model, and that's what it's called.
It is a bit involved though, if you want to do it right, see this very nice article about it: http://gabrielgambetta.com/fpm1.html
This is also neat, as a supplementary for the above: http://gafferongames.com/networking-for ... etworking/
It is a bit involved though, if you want to do it right, see this very nice article about it: http://gabrielgambetta.com/fpm1.html
This is also neat, as a supplementary for the above: http://gafferongames.com/networking-for ... etworking/
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Who is online
Users browsing this forum: Google [Bot] and 2 guests