LuaIce

LuaIce

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
Andrej
Posts: 176
Joined: 13 Aug 2006, 18:55

LuaIce

Post by Andrej »

I am trying to make Lua to Ice (http://www.zeroc.com/) bindings for Spring.

Trac URL:
http://desu.no-ip.info:6666/projects/LuaIce/

Git URL to get the current code is: [url]git://desu.no-ip.info:6667/var/repos/LuaIce/.git/[/url]
However Springs repo is kinda huge so i would ask you not to clone directly from me and instead:

clone the main repository first (or use an existing one instead)

Code: Select all

git clone git://github.com/spring/spring.git
then,

Code: Select all

git remote add LuaIce git://desu.no-ip.info:6667/var/repos/LuaIce/.git/
git fetch LuaIce
git checkout -b myLuaIce LuaIce/LuaIce
For examples: http://desu.no-ip.info:6666/LuaIceExamples/
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: LuaIce

Post by AF »

Why use ICE when there'res luasockets and the built in spring engine network code and boost::asio?
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: LuaIce

Post by Argh »

Just curious, because I've never heard of LuaICE before... couldn't that potentially be used to make an all-Lua client application?

That could be really interesting.
Andrej
Posts: 176
Joined: 13 Aug 2006, 18:55

Re: LuaIce

Post by Andrej »

Not sure if i get what you mean >an all-Lua client application< by
but you could use the Ice stuff to send out unit positions/other info available to widgets and have another program read & use it if that is what.
Image
(shows white dots in the window on the right side on same positions as units in spring running on left side)
I suppose if you extended that to draw map in the background, select units & send back orders you could have a semi-usable client (except sending the position of all units every frame or whatever would use a lot of bandwidth when theres like 3000)

http://desu.no-ip.info:6666/LuaIceExamples/LuaIceEx2.7z
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: LuaIce

Post by hoijui »

if it was realy useless, then it wont be used, and nobody has to wory. if it may be usefull, then it can not hurth to have it.
Andrej, what do you want to use it for?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: LuaIce

Post by AF »

I think argh means you could use lua to write a network application in its entirety using this stuff, and he is correct.

But I still dont see why ICE is any better than luasocket
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: LuaIce

Post by aegis »

ice appears to be an event/notification framework like dbus? luasocket would simply provide a means for implementing things like ice or direct communication
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: LuaIce

Post by Argh »

argh means you could use lua to write a network application in its entirety using this stuff
Yeah, that's what I meant, and other things, like in-game ability to chat with people still in the Lobby, implementation of voice chat via a Widget, setting up multiple game hosting sessions automatically (stuff like automated tournaments, or even really wild stuff, like allowing end-users to be automatically connected with other players for a given game-type) and other uses.

While the current generation of Lobbies are all very good, there are a lot of things they can't do, and it might be interesting to see what happens if everybody was working in a language and framework that would encourage a more ad-hoc, modular approach to the problems of getting people together to play games.
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: LuaIce

Post by Regret »

OH GOD YES PLEASE IMPLEMENT NETWORKING FOR SPRING LUA PLZPLZPLZ
Post Reply

Return to “Engine”