PDA

Просмотр полной версии : IL2DCE: A dynamic campaign engine - генератор миссий



-atas-
03.08.2011, 11:53
http://forum.1cpublishing.eu/showthread.php?t=25076

http://code.google.com/p/il2dce/

Пока прототип.
Устанавливается в меню синглплеера.

Также сделан задел для мультиплеера, но пока не работает корректно из-за отсутствия документации. Надеюсь, разработчики помогут автору пофиксить мультиплеер.

41Sqn_Banks
09.08.2011, 01:29
Hi, I'm the developer.

I struggle with the creation of the server addin. I hope one of the devs can help me with it.

This is what I have so far:

GameServer.cs (http://code.google.com/p/il2dce/source/browse/trunk/IL2DCE/IL2DCE.Game/GameServer.cs) inherits from maddox.game.GameServerDef and is the entry point of the server addin. IL2DCE.GameServer.xml (http://code.google.com/p/il2dce/source/browse/trunk/IL2DCE/IL2DCE.Game/IL2DCE.GameServer.xml) is provided to load the server addin.

ServerOptionsPage.cs (http://code.google.com/p/il2dce/source/browse/trunk/IL2DCE/IL2DCE.Pages/ServerOptionsPage.cs) is the start page of the server addin. So nothing can be set here. I assume that the network settings are taken from the conf.ini file. I call GameDef.init(string password) when the accept button is clicked. Is this call required or only if I want to have a password?

SelectCampaignPage.cs (http://code.google.com/p/il2dce/source/browse/trunk/IL2DCE/IL2DCE.Pages/SelectCampaignPage.cs) selects the campaign. Nothing special here.

CampaignIntroPage.cs (http://code.google.com/p/il2dce/source/browse/trunk/IL2DCE/IL2DCE.Pages/CampaignIntroPage.cs) is where the mission is loaded. Note that I either load the mission via SingleMissGame for single-player or "ServerGame" for multiplayer.


if (Game is IGameSingle)
{
Game.gameInterface.PagePush(Game.gameInterface.PageGet("SingleMissGame"), "mission " + missionFileName);
}
else if (Game is IGameServer)
{
Game.gameInterface.PagePush(Game.gameInterface.PageGet("ServerGame"), "mission " + missionFileName);
}


The mission loads fine and I'm definitly in "server mode" as to context menu shows the "NET Stat" entry.

However clients are unable to connect to the server and it doesn't show up in the steam friends list.

For steam I suppose I have to do some calls to maddox.steam.WServer, however I don't know in what to call an in which order and parameters.

Motorhead
10.08.2011, 17:56
Ух ты, ну очень хорошая новость! Правда пока у них генерится не кампания, а только одна миссия, но надеюсь, этот динамический генератор доведут до ума. Все таки одних статических кампаний мало для полноценного оффлайна, даже если они очень качественные.

-atas-
13.04.2012, 21:19
Автор переписывает генератор заново, ориентируясь на онлайн (оффлайн тоже включен).

Описание концепции: http://code.google.com/p/il2dce/wiki/Software_Requirements_Specification

Компоненты: http://code.google.com/p/il2dce/wiki/Software_Design_Description

Источник: http://forum.1cpublishing.eu/showthread.php?p=408653#post408653