Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

IKE: add PBEM/hotseat multiplayer to any scenario

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> IKE: add PBEM/hotseat multiplayer to any scenario Page: [1]
Login
Message << Older Topic   Newer Topic >>
IKE: add PBEM/hotseat multiplayer to any scenario - 1/25/2021 9:48:08 PM   
musurca

 

Posts: 47
Joined: 7/16/2020
Status: offline
Hi everyone — I've created a small code framework called IKE that lets you add PBEM (Play by E-Mail) or Hotseat play to any CMO scenario, allowing you to engage in a turn-based multiplayer game with one or more opponents by exchanging .save files.

LATEST RELEASE (UPDATED): https://github.com/musurca/IKE/releases/download/v1.21/IKE.v1.21.zip

SCENARIO PACK (UPDATED): https://github.com/musurca/IKE/releases/download/v1.21-scenarios/IKE_Scenario_Pack_v1.21a.zip

IKE...
* keeps track of turn order and length, and stops the scenario automatically when a player’s turn is over.
* provides a summary of any losses sustained or messages received during the last turn.
* adds an (optional) Setup Phase, allowing players to configure loadouts, missions, and orders before the game begins.
* supports either Unlimited Orders (traditional CMO play) or Limited Orders to simulate command delay and friction.
* provides password protection for each player’s turn.
* allows players to either use the scenario’s recommended PBEM settings, or customize them at game start.
* maintains a consistent random seed, to discourage replaying turns for more advantageous results.
* prevents players from cheating by (optionally) disabling the Editor until the scenario has ended.


Moreover, adding IKE to your scenario does not require any advanced coding ability, nor entail any complicated dependencies. All you have to do is paste a block of code into the Lua Script Console, click RUN, and answer a few questions asked by pop-up windows.

I've written an 11-page manual (included in the download above) that will get you started quickly if you want to make a new multiplayer scenario, or else convert an existing scenario for multiplayer use. I've also included five example PBEM scenarios:

* Canary's Cage, 2005
* Duelists, 1989
* First Contact, 1986
* North Pacific Shootout, 1989
* Shamal, 1991 (cooperative)

Hope you find it useful!

IMPORTANT: To use IKE, make sure you have Special Messages set to "Raise Pop-up" in your Game Options.

VERSION HISTORY

v1.21 (2/18/2021):
* fix: API replacements

v1.2 (2/18/2021):
* added: limited order mode
* added: players can customize scenario settings
* added: option to prevent editor mode
* added: losses marked with RPs
* added: missed messages delivered next turn
* added: special action to change side posture
* added: localization support
* fix: end of setup phase message
* fix: API replacements clean themselves up
* fix: workaround for broken ScenEnded trigger
* fix: set clock precisely to turn boundaries
* fix: special message order hiding IKE messages
* fix: coop kills not reported as losses
* fix: observed losses not reported next turn
* fix: ScenEdit_PlayerSide() in limited order mode
* fix: better random seed

v1.1 (2/1/2021):
* fix: edge case for ScenEdit_SetTime()
* fix: use os.date("!") to format scenario times

v1.0 (1/25/2021):
* initial release

Source code available on GitHub

< Message edited by musurca -- 2/26/2021 9:09:00 AM >
Post #: 1
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 1/25/2021 10:19:57 PM   
temkc5

 

Posts: 81
Joined: 10/11/2015
Status: offline
Sounds great can't wait to run some tests!



_____________________________

Non mihi, Non tibi, Sed nobis


(in reply to musurca)
Post #: 2
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 1/26/2021 7:04:00 AM   
Parel803

 

Posts: 341
Joined: 10/10/2019
From: Netherlands
Status: offline
sounds impressive, respect
with regards GJ

(in reply to temkc5)
Post #: 3
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 1/26/2021 4:16:08 PM   
Patmanaut


Posts: 386
Joined: 1/20/2013
Status: offline
Sounds great! Thanks for sharing!

May I ask, will this mod modify the current CMO installation and updates?
I run the Steam version.

Thanks again.



< Message edited by Patmanaut -- 1/26/2021 4:26:41 PM >

(in reply to Parel803)
Post #: 4
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 1/26/2021 6:23:59 PM   
musurca

 

Posts: 47
Joined: 7/16/2020
Status: offline
quote:

May I ask, will this mod modify the current CMO installation and updates?


IKE only modifies the scenario to which it's applied — it doesn't touch your CMO installation at all, so no worries there.

(in reply to Patmanaut)
Post #: 5
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 1/29/2021 9:16:00 AM   
CanofWhoop

 

Posts: 4
Joined: 1/29/2021
Status: offline
I ran a test scenario with the one you provided "Nato Surface Group vs Soviet Forces, 1985" playing against myself and I am having a problem with my NATO side/units being deleted. completely poof after time Z04:30:02. I am not getting a message popup warning to save my progress and end my turn. and I do in fact have special messages popups turned on.
the forum is not allowing me to post links yet.

(in reply to musurca)
Post #: 6
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 1/29/2021 7:03:10 PM   
musurca

 

Posts: 47
Joined: 7/16/2020
Status: offline
quote:

I ran a test scenario with the one you provided "Nato Surface Group vs Soviet Forces, 1985" playing against myself and I am having a problem with my NATO side/units being deleted. completely poof after time Z04:30:02. I am not getting a message popup warning to save my progress and end my turn. and I do in fact have special messages popups turned on.
the forum is not allowing me to post links yet.

Hi CanofWhoop-- thanks for the report. Your units SHOULD vanish at the end of a turn, but the game should show you a special message pop-up at Z04:30:00 (end of NATO Turn 1) that pauses the game and tells you to save your progress. A few questions for you to try to solve this:

1) Were you able to play through the NATO & Soviet Setup Phases without an issue? (i.e. did you see the special messages ending those turns?)

2) Which build of CMO are you running? You should see this in the title bar of the CMO window. (And just to make sure: you're running the commercial/Steam edition of CMO, not CMANO or Command PE?)

3) If you load the beginning of NATO Turn 1 again, and run through it at the fastest simulation speed, do your units still disappear after Z04:30:00 without a message?

4) Can you send me the save file after the end of the Soviet setup phase (i.e. the beginning of NATO Turn 1)? You can't post links yet but you should be able to attach a zipped file to a post on this forum by clicking "Click here to upload!" on a new message. If not, feel free to email me at nick.musurca at gmail.com.

Appreciate your help in ironing out the kinks in this release!

(in reply to CanofWhoop)
Post #: 7
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 1/30/2021 6:14:19 AM   
CanofWhoop

 

Posts: 4
Joined: 1/29/2021
Status: offline
Edit: I sent you a PM. Forum kept blocking me from replying because of the string of CMO version numbers for whatever reason.

quote:


Hi CanofWhoop-- thanks for the report. Your units SHOULD vanish at the end of a turn, but the game should show you a special message pop-up at Z04:30:00 (end of NATO Turn 1) that pauses the game and tells you to save your progress. A few questions for you to try to solve this:

1) Were you able to play through the NATO & Soviet Setup Phases without an issue? (i.e. did you see the special messages ending those turns?)

Yes, both times.

quote:


2) Which build of CMO are you running? You should see this in the title bar of the CMO window. (And just to make sure: you're running the commercial/Steam edition of CMO, not CMANO or Command PE?)

I'm running Steam CMO v1.02 Build Eleven47.16
quote:


3) If you load the beginning of NATO Turn 1 again, and run through it at the fastest simulation speed, do your units still disappear after Z04:30:00 without a message?

Yes
quote:


4) Can you send me the save file after the end of the Soviet setup phase (i.e. the beginning of NATO Turn 1)? You can't post links yet but you should be able to attach a zipped file to a post on this forum by clicking "Click here to upload!" on a new message. If not, feel free to email me.

Appreciate your help in ironing out the kinks in this release!


Will do password for both sides is "test"
File name is named weirdly but it should be NATO's first move after Soviet's setup phase.

Attachment (1)

< Message edited by CanofWhoop -- 1/30/2021 6:25:10 AM >

(in reply to musurca)
Post #: 8
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 2/1/2021 7:06:24 AM   
KnightHawk75

 

Posts: 865
Joined: 11/15/2018
Status: online
Just wanted to say, cool stuff, nice work.


(in reply to CanofWhoop)
Post #: 9
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 2/1/2021 11:19:41 AM   
CanofWhoop

 

Posts: 4
Joined: 1/29/2021
Status: offline
quote:

The new scenario file you pm'ed me appears to work as intended. I went as far as "Nato turn three" with no apparent flaws.
Now i'm looking forward to play with others. Cheers!


Attachment (1)

(in reply to KnightHawk75)
Post #: 10
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 2/1/2021 11:22:05 AM   
CanofWhoop

 

Posts: 4
Joined: 1/29/2021
Status: offline
The new scenario file you pm'ed me appears to work as intended. I went as far as "Nato turn three" with no apparent flaws.
Now i'm looking forward to play with others. Cheers!

(in reply to CanofWhoop)
Post #: 11
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 2/1/2021 8:14:22 PM   
musurca

 

Posts: 47
Joined: 7/16/2020
Status: offline
I've just updated IKE to v1.1 to fix the bug reported above. Recommend that you convert your scenarios again with the updated code. (Note that the example scenario included with the release has already been converted--all you have to do is a start a new game.)

You can download from the link at the top of the thread.

Big thanks to CanofWhoop and KnightHawk75 for helping me squash this one. And if anyone gets a PBEM game going with this, let me know how it worked out!

(FYI, for anyone who wants to peek at the unminified code: I'll post it to GitHub as soon as I can. Because IKE has to inject its own code into an event action, there's currently a convoluted build process I use to create the releases. I'm working on streamlining that into a shell script.)



< Message edited by musurca -- 2/19/2021 5:21:07 PM >

(in reply to CanofWhoop)
Post #: 12
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 2/5/2021 6:16:14 PM   
musurca

 

Posts: 47
Joined: 7/16/2020
Status: offline
Quick update just to say that I've put the unminified source code on GitHub. If anyone's interested in digging in, I'd be happy to merge pull requests with new features or translations of the text into other languages.

(This is just for those interested in tinkering. If you're just interested in creating a PBEM scenario, you only have to download the latest release—no messing with code required.)

< Message edited by musurca -- 2/19/2021 5:46:14 PM >

(in reply to musurca)
Post #: 13
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 2/19/2021 1:29:45 AM   
musurca

 

Posts: 47
Joined: 7/16/2020
Status: offline
Hi everyone -- I've just released a huge new update for IKE. You can download it here or at the top of this thread-- or if you just want to play some PBEM scenarios, you can download the scenario pack that I've made, featuring PBEM conversions of five standard CMO scenarios. (Using the latest CMO public beta is highly recommended.)

The major new feature in this release is Limited Order mode, which is a whole new way of playing CMO. Instead of being able to micromanage your units, you have a limited number of "order phases" within your turn. Once you give your orders and start the clock, you will NOT be able to control your units until the next order phase begins. Planning ahead will be crucial! It's a more equitable way to play CMO as a turn-based multiplayer game while also being an interesting abstraction of command delay.



Of course, if you prefer playing CMO in the traditional way (or Unlimited Order mode), you can do that as well--because another major new feature is the ability to change the settings of the PBEM scenario when the game starts. You can either go with the recommended settings implemented by the scenario author, or you can use your own preferences. Everything from the turn length to the command mode (Unlimited or Limited orders) is configurable.



Finally, for competitive PBEM situations, I've implemented the ability to prevent cheating by blocking access to Editor Mode until the scenario has ended. This is an entirely optional feature that relies on new elements in the latest public beta (1147.17). For casual games between friends, I wouldn't recommend it-- but it's great if you're matching wits with some sketchy strangers you've met on the Discord.

Beyond that, I've also squashed a number of bugs, and written an 11-page manual (included with the release) to help scenario authors either create new PBEM scenarios or convert their existing ones for play.

I've been having a great time playtesting on the CMO Discord, and I hope more of you will join! Playing against a human opponent--“a live, vigorous enemy in the next room waiting feverishly to take advantage of any of our mistakes, ever ready to puncture any visionary scheme, to haul us down to earth" (Cpt. William McCarty-Little)--really changes the game completely.

Special thanks to the following people who helped with this release:

* WM2K (suggesting Limited Order mode)
* CanofWhoop (playtesting)
* CluckSalad (playtesting)
* michaelm75au (tireless bug fixing / new features!)


< Message edited by musurca -- 2/26/2021 9:09:35 AM >

(in reply to KnightHawk75)
Post #: 14
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 2/23/2021 5:08:17 PM   
bradinggs


Posts: 350
Joined: 7/17/2013
Status: offline
This looks fantastic, nice work! Thank you for sharing it. Quick question, is this usable on the CMANO version as well or only the CMO?

(in reply to musurca)
Post #: 15
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 2/23/2021 9:27:36 PM   
musurca

 

Posts: 47
Joined: 7/16/2020
Status: offline
I only use CMO, so it's hard to give a definitive answer as I'm not sure what the current state of support is for CMANO (in particular, not sure if it gets the new Lua functions/fields that are available in the latest versions of CMO).

So I would guess that IKE is CMO-only, but I could be wrong! However I can only support issues that come up on CMO as I have no way of reproducing them otherwise.

(in reply to bradinggs)
Post #: 16
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 2/23/2021 9:59:37 PM   
Rory Noonan

 

Posts: 2744
Joined: 12/18/2014
From: Brooklyn, NY
Status: offline
If you're sending save files back and forth (sorry I haven't had a chance to try this yet, it does look fascinating though) it won't work between CMANO and CMO as CMO saves can't be read by CMANO.

_____________________________


(in reply to musurca)
Post #: 17
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 2/24/2021 6:21:06 AM   
bradinggs


Posts: 350
Joined: 7/17/2013
Status: offline
Thanks for the clarification Rory. Noted Musurca, CMO it is. I have both so was just wondering. Great stuff, can't wait to give this a spin in CMO. Thank you!

(in reply to Rory Noonan)
Post #: 18
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 2/26/2021 9:20:53 AM   
musurca

 

Posts: 47
Joined: 7/16/2020
Status: offline
Quick update: I've uploaded a new version of the scenario pack to fix some small bugs in the scenario scripting, mostly for Canary's Cage. The official IKE release is okay and remained unchanged (although you'll want to replace the scenario pack that comes with it if you downloaded it before today). Changelist below:

North Pacific Shootout
* fix: radio sounds played for other side

Canary's Cage
* fix: error msg on failed attempt to deploy divers
* fix: NAIL score spread
* fix: NAIL scoring & messages

< Message edited by musurca -- 2/26/2021 7:04:13 PM >

(in reply to bradinggs)
Post #: 19
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 2/26/2021 11:06:36 PM   
ETF


Posts: 1726
Joined: 9/16/2004
From: Hamilton Area, Canada
Status: offline
Where can I donate to this amazing project?

_____________________________

My Top Matrix Games 1) CMO MP?? 2) WITP/AE 3) SOW 4) Combat Mission 5) Armor Brigade

Twitter
https://twitter.com/TacticWargamer

(in reply to musurca)
Post #: 20
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 2/27/2021 12:36:51 AM   
musurca

 

Posts: 47
Joined: 7/16/2020
Status: offline
No donations, please. Give to charity? Call your parents? Buy DLC? All acceptable alternatives.

(but thank you, I'm glad you enjoy it.)

(in reply to ETF)
Post #: 21
RE: IKE: add PBEM/hotseat multiplayer to any scenario - 2/28/2021 11:27:35 AM   
ETF


Posts: 1726
Joined: 9/16/2004
From: Hamilton Area, Canada
Status: offline
All right brother $50 to Doctors without borders under musura!

Let me see if I can email the receipt and make it a jpeg to you sir. Thanks

_____________________________

My Top Matrix Games 1) CMO MP?? 2) WITP/AE 3) SOW 4) Combat Mission 5) Armor Brigade

Twitter
https://twitter.com/TacticWargamer

(in reply to musurca)
Post #: 22
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> IKE: add PBEM/hotseat multiplayer to any scenario Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.172