
How does it works ? the whole interface is html+css+javascript using the WebBrowser component which use the installed IE version. It works with IE 6 and IE 7 with a resolution 800*600 and more (4/3 -> 16/10, with a wider screen than 16/10 the background image wont take the whole place). Html is here working as the template framework for the lobby. The skin is in default.ssk (spring skin). The lobby open the html file and replace the known [Data] like [MapList].
To communicate between the html and the lobby, you just need to add a link like : <a href="lobby:settings">settings</a> and the lobby will open the settings. If you add an http link it will open it in the default browser. Otherwise if the link is neither a lobby command nor an http link it will just do nothing.
If some of you are interested in making different skin or updating the current one, just tell me and i'll add further information on available [data] and lobby commands.
So there is a skirmish mode which look like springlobby's one, you can choose between fixed pos, random pos and choose in lobby. It supports mod and map options of course.
There is a missions part. With a new mission file. A mission file is a 7zip file (sd7 for spring), it must contains a 'descriptor.tdf' like this one :
[MISSION]
{
Name=Mission3;
Description=Just a test description;
Briefing=You have to to stuff to win other stuff and then stuff appeared.<br>Don't forget to make stuff and protect stuff.;
HtmlBriefing=briefing.html;
IncludeHtml=1;
MapFile=Cooper_Hill_TNM02-V1.smf;
MapHash=E29A584A;
ModFile=BA621.sd7;
ModHash=2056951972;
}
The description will be displayed in the mission list (and can also be displayed in the briefing).You have two different way to display the mission briefing, the default integrated briefing theme, in this case remove the 'HtmlBriefing' and 'IncludeHtml' keys from the descriptor. The second way is the Htmlbriefing, you can add an html page to your mission that will be displayed as the briefing. And the third way is between the two others, you add an html page that will be included in the default theme using a special html file in the skin (IncludeHtml=1;). To start the mission, the lobby will check if you have the exact same mod and map than the ones required by the mission. So you have to provide the map and mod file and hash.
Then if everything is good, it will launch the mission using the script.txt provided in the mission file (so your can control everythings). What is a mission, a mission is not a startscript, but as suggested trepan it's a mutator and everything is done using LuaRules and LuaUI.
There is also a campaign part. A campaign file is a 7zip file (sd7 for spring), and it must contains a 'descriptor.tdf' like this one :
[CAMPAIGN]
{
Name=Campaign1;
Description=OMG THE FIRST CAMPAIGN;
IncludeHtml=1;
Step1=step1.html;
}
How does it work ? When you select a campaign, it shows the 'step1' html file (Here you don't have choice, it must be html, but you can choose the includehtml option). In the step1.html file, you can let the user pick the mission he wants, like mission1 will attack by north, mission 2 by east and mission 3 by west. To let the user pick a mission simply add a link like this one :
<a href="lobby:pickmission:Mission.sd7:step2.html:step4.html">mission 1</a><br/>
The first parameter, is the mission file, which will be handled like a normal mission, except when the mission will end, if the user wins it will open the second parameter, here step2.html, and if he looses it will open the thirst parameter (here step4.html). The lost step is optional (if there is no lost step it will simply go back to the mission briefing to try again).
For now the progress done in a campaign is not saved. But im gonna add 2 other parameters like a savesettings, to save something and get it back even if the lobby is closed, and a addtoscript, to let you add anything you want in the script file for missions. So you can add optional stuff in your briefing.
So this is a WIP, and everything can change, so if you have any suggestions ... go ahead (especialy the modders).
If you have any question on the lobby part you can ask me, if you have any question on the mission part ask quantum, or trepan or any good Lua/Mod coder.
http://tasclient.it-l.eu/TASClient.7z (it includes the mission test and the campaign)
http://tasclient.it-l.eu/Mission3.sd7
http://tasclient.it-l.eu/Campaign1.sd7
Quantum did the test mission.
and if you have a free music to replace the TA one i added to show it can play music it would be great.
edit: two fixes : launching using the SP button failed because the skin was not extracted if you didn't launch it with -menu, and music is paused when a game is launched
edit2 : other bugs fixed
EDIT3 : The rendering use IE, and only IE and it won't use Firefox or opera ... it must works on both IE6 and IE7 if you want to make a new skin