Page 1 of 1
LuaMenu documentation
Posted: 11 Jul 2017, 18:55
by sanguinariojoe
Hey guys
There is some documentation on how LuaMenu works? How can I create a new menu?
Re: LuaMenu documentation
Posted: 11 Jul 2017, 19:01
by gajop
Use newest engine and see
https://github.com/ZeroK-RTS/Chobby for a reference implementation.
LuaMenu is an unsynced state (akin to LuaUI) that runs before (and while) a game/map is started.
Other than that, and a few extra callins for communicating with LuaUI, it's not really that special. If you want to make a lobby/menu, just create widgets as you normally would.
PS: You're always free to assist with Chobby work as that's a game-agnostic lobby. Otherwise, if you want to connect to the Spring (or ZK) lobby server, you can use its liblobby library to help you get started.
Re: LuaMenu documentation
Posted: 15 Jul 2017, 17:33
by sanguinariojoe
Thanks man!
I already knew chobby, but actually I'm not pretty sure how it works, but I'm making slight progresses anyway.
Right now, I focus in creating a Spring:1944 campaign lobby, not even with online mode yet... Depending on the result, maybe it can be integrated in Chobby later. And of course, if I develop something may help you, I'll conveniently make a pull request
Re: LuaMenu documentation
Posted: 15 Jul 2017, 17:48
by sanguinariojoe
BTW, is it not a copyright flaw setting date="in the future"? (see for instance gui_chili_lobby.lua)
It's something like stating it will be GPLv2 in the future, right?
Re: LuaMenu documentation
Posted: 15 Jul 2017, 17:54
by gajop
Have a look at
https://github.com/ZeroK-RTS/Chobby/tre ... eConfig/zk for customization.
There are some ZK widgets for the ZK campaign here as well:
https://github.com/ZeroK-RTS/Chobby/tre ... nu/widgets
Those probably do *not* belong there, as they are ZK specific, but you can use them as inspiration and write your own. They shouldn't cause any real conflict if they're named differently and properly configured.
sanguinariojoe wrote:BTW, is it not a copyright flaw setting date="in the future"? (see for instance gui_chili_lobby.lua)
It's something like stating it will be GPLv2 in the future, right?
As far as I'm concerned date doesn't mean anything (at least nothing related to the license) and all addons need to be GPL compatible anyway so this isn't important.
Re: LuaMenu documentation
Posted: 15 Jul 2017, 19:01
by sanguinariojoe
Yeah, I think I'm changing my mind! Maybe adding it inside chobby would be the best option!
---
P.S. I cannot test it because it is failing downloading Zero-K $VERSION
P.S.2 I finally downloaded the GitHUB repo. Now I have problems with the AI

Re: LuaMenu documentation
Posted: 17 Jul 2017, 12:07
by Anarchid
P.S.2 I finally downloaded the GitHUB repo. Now I have problems with the AI

ZK by default launches Chobby through a .net wrapper that provides some features like engine downloading, notifications, and deployment of the CircuitAI which is what i presume you are missing.
You can get it manually from
springfiles, or from
its github. Some assembly may be required.
Re: LuaMenu documentation
Posted: 17 Jul 2017, 15:45
by gajop
Copy paste from the other thread:
To alleviate some difficulties with non-ZK Chobby installations for now, I've created a more detailed guide:
https://github.com/Spring-Chobby/Chobby ... tomization . Please try following it and report issues if you can't
start Chobby. Other Chobby related issues should be reported
https://github.com/Spring-Chobby/Chobby/issues . Please report all issues in detail, and outline which ones you think are necessary for your game to be using Chobby so I can optimize my workflow when I get back to working with Chobby.
If you have any issues with Chobby, please report them properly, otherwise it'll be hard to work on them.