Skip to content

Commit

Permalink
Merge pull request #11 from Peppie84/feature/multiplayer
Browse files Browse the repository at this point in the history
Multiplayer support
  • Loading branch information
Peppie84 authored Oct 10, 2024
2 parents 665a82c + 08f1420 commit 998628b
Show file tree
Hide file tree
Showing 7 changed files with 348 additions and 89 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased]
- Reduced load while playing with precision farming and calculating the field info
- Added translation for IT by FirenzeIT - for [#7](https://github.com/Peppie84/FS22_BeesRevamp/issues/7)
- Added multiplayer functionality - for [#5](https://github.com/Peppie84/FS22_BeesRevamp/issues/5)

## [1.0.0.0] - 2024-10-01
- Initial Release
Expand Down
8 changes: 1 addition & 7 deletions FS22_BeesRevamp/modDesc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ Most questions can be answered by the in-game help of this mod.
- Precision farming compatible
- TerraLife compatible
Currently no multiplayer support.
Yield bonus for: Canola, Sunflower, Alfalfa, Clover, Buckwheat, Phacelia, Silphie, Mustard and Clover gras
Additional supported bee hives:
Expand Down Expand Up @@ -60,8 +58,6 @@ Bitte schau Dir die Ingame-Hilfe zu dieser Mod an. Sie kann die meisten Fragen b
- Precision Farming kompatibel
- TerraLife kompatibel
Aktuell kein Multiplayer support.
Ertragsbonus für: Raps, Sonnenblume, Luzerne, Klee, Buchweizen, Phacelia, Silphie, Senf und Kleegras
Zusätzlich unterstützte Bienenstöcke:
Expand Down Expand Up @@ -92,8 +88,6 @@ La maggior parte delle domande può essere risolta dall'aiuto in-game di questa
- Compatibile con precision farming
- Compatibile con TerraLife
Attualmente nessun supporto multiplayer.
Bonus di resa per: Colza, Girasole, Erba Medica, Trifoglio, Grano Saraceno, Facelia, Silphie, Senape e Erba di Trifoglio
Alveari aggiuntivi supportati:
Expand All @@ -104,7 +98,7 @@ Per ulteriori informazioni, aiuto e segnalazione di problemi, visita <a href='ht
]]></it>
</description>
<iconFilename>icon_BeesRevamp.dds</iconFilename>
<multiplayer supported="false" />
<multiplayer supported="true" />
<extraSourceFiles>
<sourceFile filename="src/main.lua" />
</extraSourceFiles>
Expand Down
4 changes: 2 additions & 2 deletions FS22_BeesRevamp/src/activatables/swarmcontrolactivatable.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ end

---Do the swarm control on the beecare spec.
function SwarmControlActivatable:run()
g_brUtils:logDebug('SwarmControlActivatable:run')
if g_server ~= nil then
self.beecare:doSwarmControl()
else
---TODO for Multiplayer!
---g_client:getServerConnection():sendEvent(CUSTOM_EVENT.new(self.bale))
g_client:getServerConnection():sendEvent(SwarmControlEvent.new(self.beecare))
end
end
Loading

0 comments on commit 998628b

Please sign in to comment.