Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@ MigrationBackup/

# NUnit

# Coop local utilities
/ILSpy_binaries_*/
/nuget.exe

# Build Results of an ATL Project

# Benchmark Results
Expand Down Expand Up @@ -549,4 +553,4 @@ source/.idea
!*Coop.csproj.user
!*MissionTestMod.csproj.user
# CodeRush
/source/.cr/personal
/source/.cr/personal
95 changes: 95 additions & 0 deletions Modules/Coop/GUI/Prefabs/CoopConnectionUIMovie.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<Prefab>
<Window>
<Widget WidthSizePolicy="StretchToParent" HeightSizePolicy="StretchToParent">
<Children>
<Standard.Background/>

<Standard.TopPanel Parameter.Title="@MovieTextHeader"/>

<ListPanel DoNotAcceptEvents="false" WidthSizePolicy="CoverChildren" HeightSizePolicy="CoverChildren"
HorizontalAlignment="Center" VerticalAlignment="Center" MarginTop="-300"
LayoutImp.LayoutMethod="HorizontalLeftToRight">
<Children>
<TextWidget WidthSizePolicy="Fixed" SuggestedWidth="256" HeightSizePolicy="Fixed"
SuggestedHeight="64" VerticalAlignment="Center" HorizontalAlignment="Right"
Brush="Clan.TabControl.Text" Text="@IpText" PositionXOffset="-20"/>

<EditableTextWidget WidthSizePolicy="Fixed" SuggestedWidth="256" HeightSizePolicy="Fixed"
SuggestedHeight="64" VerticalAlignment="Center" HorizontalAlignment="Left"
Brush="ScoreboardPanels_2" Brush.AlphaFactor="0.75" Brush.FontSize="32"
Brush.TextHorizontalAlignment="Center" Brush.TextVerticalAlignment="Center"
Text="@Ip" IsVisible="true" PositionXOffset="-80"/>
</Children>
</ListPanel>

<ListPanel DoNotAcceptEvents="false" WidthSizePolicy="CoverChildren" HeightSizePolicy="CoverChildren"
HorizontalAlignment="Center" VerticalAlignment="Center" MarginTop="-100"
LayoutImp.LayoutMethod="HorizontalLeftToRight">
<Children>
<TextWidget WidthSizePolicy="Fixed" SuggestedWidth="256" HeightSizePolicy="Fixed"
SuggestedHeight="64" VerticalAlignment="Center" HorizontalAlignment="Right"
Brush="Clan.TabControl.Text" Text="@PortText" PositionXOffset="-20"/>

<EditableTextWidget WidthSizePolicy="Fixed" SuggestedWidth="256" HeightSizePolicy="Fixed"
SuggestedHeight="64" VerticalAlignment="Center" HorizontalAlignment="Left"
Brush="ScoreboardPanels_2" Brush.AlphaFactor="0.75" Brush.FontSize="32"
Brush.TextHorizontalAlignment="Center" Brush.TextVerticalAlignment="Center"
Text="@Port" IsVisible="true" PositionXOffset="-80" />
</Children>
</ListPanel>

<ListPanel DoNotAcceptEvents="false" WidthSizePolicy="CoverChildren" HeightSizePolicy="CoverChildren"
HorizontalAlignment="Center" VerticalAlignment="Center" MarginTop="100"
LayoutImp.LayoutMethod="HorizontalLeftToRight">
<Children>
<TextWidget WidthSizePolicy="Fixed" SuggestedWidth="256" HeightSizePolicy="Fixed"
SuggestedHeight="64" VerticalAlignment="Center" HorizontalAlignment="Right"
Brush="Clan.TabControl.Text" Text="@PasswordText" PositionXOffset="-20"/>

<EditableTextWidget WidthSizePolicy="Fixed" SuggestedWidth="256" HeightSizePolicy="Fixed"
SuggestedHeight="64" VerticalAlignment="Center" HorizontalAlignment="Left"
Brush="ScoreboardPanels_2" Brush.AlphaFactor="0.75" Brush.FontSize="32"
Brush.TextHorizontalAlignment="Center" Brush.TextVerticalAlignment="Center"
Text="@Password" IsVisible="true" PositionXOffset="-80"/>
</Children>
</ListPanel>

<ListPanel DoNotAcceptEvents="false" WidthSizePolicy="CoverChildren" HeightSizePolicy="CoverChildren"
HorizontalAlignment="Center" VerticalAlignment="Center" MarginTop="300"
LayoutImp.LayoutMethod="HorizontalLeftToRight">
<Children>
<Standard.Button Brush="Standard.BackButton" HorizontalAlignment="Center" VerticalAlignment="Center" SuggestedWidth="128"
MarginTop="20" Command.Click="ActionCancel" PositionXOffset="-20" SuggestedHeight="64"/>
<Standard.Button HorizontalAlignment="Center" VerticalAlignment="Center" MarginTop="20" SuggestedWidth="128"
Command.Click="ActionConnect" Parameter.Text="@JoinButtonText" PositionXOffset="20"/>
<Standard.Button HorizontalAlignment="Center" VerticalAlignment="Center" MarginTop="20" SuggestedWidth="128"
Command.Click="ActionHost" Parameter.Text="@HostButtonText" PositionXOffset="60"/>
</Children>
</ListPanel>

<TextWidget WidthSizePolicy="Fixed" SuggestedWidth="256" HeightSizePolicy="Fixed"
SuggestedHeight="64" VerticalAlignment="Bottom" HorizontalAlignment="Right"
Brush="ScoreboardPanels_2" Text="@CommunityText" PositionYOffset="-90" PositionXOffset="-6"/>

<ListPanel DoNotAcceptEvents="false" WidthSizePolicy="CoverChildren" HeightSizePolicy="CoverChildren"
HorizontalAlignment="Right" VerticalAlignment="Bottom" MarginBottom="60"
LayoutImp.LayoutMethod="HorizontalLeftToRight">
<Children>
<Standard.Button HorizontalAlignment="Left" VerticalAlignment="Bottom"
Command.Click="ActionGithub" Parameter.Text="@GithubButtonText" PositionXOffset="-20"/>
</Children>
</ListPanel>

<ListPanel DoNotAcceptEvents="false" WidthSizePolicy="CoverChildren" HeightSizePolicy="CoverChildren"
HorizontalAlignment="Right" VerticalAlignment="Bottom" MarginBottom="10"
LayoutImp.LayoutMethod="HorizontalLeftToRight">
<Children>
<Standard.Button HorizontalAlignment="Left" VerticalAlignment="Bottom"
Command.Click="ActionDiscord" Parameter.Text="@DiscordButtonText" PositionXOffset="-20"/>
</Children>
</ListPanel>

</Children>
</Widget>
</Window>
</Prefab>
3 changes: 3 additions & 0 deletions Modules/Coop/ModuleData/BodyProperties/BodyProperties.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<BodyProperties>
</BodyProperties>
18 changes: 18 additions & 0 deletions Modules/Coop/ModuleData/characters/characters.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<NPCCharacters>
<NPCCharacter id="coop_debug_npc"
default_group="Infantry"
is_hero="false"
occupation="Soldier"
culture="Culture.empire"
name="{=coop_debug_npc}Coop NPC">
<face>
<face_key_template value="BodyProperty.fighter_empire" />
</face>
<skills>
<skill id="OneHanded" value="60" />
<skill id="TwoHanded" value="60" />
<skill id="Athletics" value="60" />
</skills>
</NPCCharacter>
</NPCCharacters>
4 changes: 4 additions & 0 deletions Modules/Coop/ModuleData/module_strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<strings>
<string id="coop_debug_label" text="{=CoopLabel}Coop" />
</strings>
3 changes: 3 additions & 0 deletions Modules/Coop/ModuleData/new_pieces.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<CraftingPieces>
</CraftingPieces>
3 changes: 3 additions & 0 deletions Modules/Coop/ModuleData/new_templates.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<CraftingTemplates>
</CraftingTemplates>
3 changes: 3 additions & 0 deletions Modules/Coop/ModuleData/new_weapon_descriptions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<WeaponDescriptions>
</WeaponDescriptions>
3 changes: 3 additions & 0 deletions Modules/Coop/ModuleData/settlements.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<Settlements>
</Settlements>
11 changes: 11 additions & 0 deletions Modules/Coop/ModuleData/spitems/spitems.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Items>
<Item id="coop_debug_token"
name="{=coop_debug_token}Coop Token"
mesh="crate_a"
is_merchandise="false"
weight="1"
Type="Goods">
<Flags Civilian="true" />
</Item>
</Items>
52 changes: 52 additions & 0 deletions Modules/Coop/SubModule.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<Module>
<Name value="Coop"/>
<Id value="Coop"/>
<Version value="v0.0.1"/>
<SingleplayerModule value="true"/>
<MultiplayerModule value="false"/>
<DependedModules>
<DependedModule Id="Native" DependentVersion="v1.3.10"/>
<DependedModule Id="SandBoxCore" DependentVersion="v1.3.10"/>
<DependedModule Id="Sandbox" DependentVersion="v1.3.10"/>
<DependedModule Id="CustomBattle" DependentVersion="v1.3.10"/>
<DependedModule Id="StoryMode" DependentVersion="v1.3.10"/>
</DependedModules>
<SubModules>
<SubModule>
<Name value="Coop"/>
<DLLName value="Coop.dll"/>
<SubModuleClassType value="Coop.CoopMod"/>
<Tags>
<Tag key="DedicatedServerType" value="none" />
<Tag key="IsNoRenderModeElement" value="false" />
</Tags>
</SubModule>
</SubModules>
<Xmls>
<XmlNode>
<XmlName id="CraftingPieces" path="new_pieces"/>
</XmlNode>
<XmlNode>
<XmlName id="WeaponDescriptions" path="new_weapon_descriptions"/>
</XmlNode>
<XmlNode>
<XmlName id="CraftingTemplates" path="new_templates"/>
</XmlNode>
<XmlNode>
<XmlName id="BodyProperties" path="BodyProperties"/>
</XmlNode>
<XmlNode>
<XmlName id="Items" path="spitems"/>
</XmlNode>
<XmlNode>
<XmlName id="NPCCharacters" path="characters"/>
</XmlNode>
<XmlNode>
<XmlName id="Settlements" path="settlements"/>
</XmlNode>
<XmlNode>
<XmlName id="GameText" path="module_strings"/>
</XmlNode>
</Xmls>
</Module>
33 changes: 33 additions & 0 deletions Modules/Coop/coop_debu_recap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Coop – Récap debug

## Catégories XML activées (SubModule.xml)
- Items → `spitems`
- NPCCharacters → `characters`
- Settlements → `settlements`
- GameText → `module_strings`
- CraftingPieces → `new_pieces`
- WeaponDescriptions → `new_weapon_descriptions`
- CraftingTemplates → `new_templates`
- BodyProperties → `BodyProperties`

## Fichiers ModuleData présents
- `ModuleData/spitems/spitems.xml` (racine `<Items>`, item minimal `coop_debug_token`)
- `ModuleData/characters/characters.xml` (racine `<NPCCharacters>`, NPC minimal `coop_debug_npc`)
- `ModuleData/module_strings.xml` (racine `<strings>`, entrée `coop_debug_label`)
- `ModuleData/settlements.xml` (racine `<Settlements>`, vide)
- `ModuleData/new_pieces.xml` (racine `<CraftingPieces>`, vide)
- `ModuleData/new_templates.xml` (racine `<CraftingTemplates>`, vide)
- `ModuleData/new_weapon_descriptions.xml` (racine `<WeaponDescriptions>`, vide)
- `ModuleData/BodyProperties/BodyProperties.xml` (racine `<BodyProperties>`, vide)

## Dossiers prêts pour contenus futurs
- `AssetPackages`, `Prefabs`, `SceneObj`, `Sounds`, `Music`, `GUI/Brushes`
- `ModuleData/Languages`, `ModuleData/troops`, `ModuleData/troop_upgrade_tools`

## Build
- Commande: `dotnet build BannerlordCoop/source/Coop.sln -c Release`
- État: succès (2 avertissements)
- DLLs disponibles dans `Modules/Coop/bin/Win64_Shipping_Client/` (incl. `Coop.dll`, `GameInterface.dll`)

## Notes
- Les nouvelles catégories sont déclarées et prêtes, sans impact gameplay tant qu’aucun contenu custom n’est ajouté.
4 changes: 4 additions & 0 deletions Modules/Coop/saves/server/TransferSave.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"UniqueGameId": "TransferSave",
"ControlledEntityMap": {}
}
4 changes: 4 additions & 0 deletions Modules/Coop/saves/server/coop1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"UniqueGameId": "coop1",
"ControlledEntityMap": {}
}
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"name" : "Coop",
"main_class" : "CoopMod",
"version" : "v0.0.1",
"game_version" : "v1.1.6"
"game_version" : "v1.3.10.103977"
}
Loading