you can type /luaui join and it will join a hardcoded lobby channel. if you just type /luaui blablabla it will say "blablabla" in that channel.
it is a bit choatic because I was just testing around..still afaik only example of something a bit like lua lobby? Somewhere I have a bit better version where you can also join battles and recieve the script.txt Or maybe it got lost when clearing out all the springtest installs
Quote:
How can I run a minimalistic spring instance, with the intent of only running my Lua code?
I think a mod and map always have to be loaded. (unless headless spring but then you have no graphics at all: can not draw chat, buttons etc) So maybe just use a very small map and mod for now...
you can type /luaui join and it will join a hardcoded lobby channel. if you just type /luaui blablabla it will say "blablabla" in that channel.
it is a bit choatic because I was just testing around..still afaik only example of something a bit like lua lobby? Somewhere I have a bit better version where you can also join battles and recieve the script.txt Or maybe it got lost when clearing out all the springtest installs
Thanks, that is useful.
knorke wrote:
I think a mod and map always have to be loaded. (unless headless spring but then you have no graphics at all: can not draw chat, buttons etc) So maybe just use a very small map and mod for now...
I guess I will use a dummy mod/map then.
Is there a way to keep the socket and/or run lua code (to send ping/pong) after I call Spring.Restart?
Joined: 22 Feb 2006, 01:02 Location: cheap kitchen
Quote:
Is there a way to keep the socket and/or run lua code (to send ping/pong) after I call Spring.Restart?
atm no..basically you lose everything at Spring.Restart That was also my question in this thread: viewtopic.php?f=23&t=27683 Since lua socket is not 100% done yet (?) maybe that will eventually change? For now the only way to keep data between restarting is writing/reading files or via script.txt and reinitiliaze everything.
Is there a way to keep the socket and/or run lua code (to send ping/pong) after I call Spring.Restart?
atm no..basically you lose everything at Spring.Restart That was also my question in this thread: viewtopic.php?f=23&t=27683 Since lua socket is not 100% done yet (?) maybe that will eventually change? For now the only way to keep data between restarting is writing/reading files or via script.txt and reinitiliaze everything.
There's also the choice of making a separate application through which connection itself / socket is handled that communicates with spring's Lua via localhost.
I guess I'll make it a standalone Lua lobby, i.e. not relying on spring at all, using only some Lua interpreter and libraries.
My Lua lobby reinitilizes and connects nearly instantly so there is no much need for saving anything but the battle you were. Though it is heavily helped with C++ partially handling the commands. I handle some commands with Lua too.
Users browsing this forum: No registered users and 2 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum