Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Quick Battle: Knife Fight in a Phone Booth

 
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 >> Quick Battle: Knife Fight in a Phone Booth Page: [1]
Login
Message << Older Topic   Newer Topic >>
Quick Battle: Knife Fight in a Phone Booth - 1/13/2021 6:31:31 PM   
musurca

 

Posts: 46
Joined: 7/16/2020
Status: offline
Hi everyone — I've made a new Quick Battle that's a supercharged version of the Submarine 1v1 Duel, including:

- the ability to add up to 2 allied submarines to each side (for a max 3v3 fight)*
- civilian / biologic traffic
- win/loss conditions
- randomized distance / weather / location
- more submarine classes
- additional locations: the Persian Gulf, the South Atlantic, and the Mediterranean Sea

* You're still only in direct command of a single submarine, but the allied submarines will target the OPFOR—as long as you don't accidentally shoot at them. Make sure you check your targets!

Enjoy! You can find it attached below -- unzip to your CMO/QuickBattle folder. (Please note that I've used DBIDs from the latest beta 1147.16, so it's possible you may see strange results if you're using an older db.)

UPDATE v1.32
-fixed bug related to loading battle from save
-fixed bug related to OPFOR faction name
-allied ID expanded to 3nm

v1.3
-allied submarines will ID each other within 2nm
-time of day setting fixed

v1.2
-can specify class of allied submarines
-can set civilian and biologic traffic levels separately
-fixed bug involving side postures
-added South Atlantic and Mediterranean Sea locations

v1.1:
-improved performance
-fixed bug in penalty conditions for ally casualties

Attachment (1)

< Message edited by musurca -- 2/22/2021 8:24:36 AM >
Post #: 1
RE: Quick Battle: Knife Fight in a Phone Booth - 1/14/2021 1:05:22 PM   
Tom Konczal

 

Posts: 78
Joined: 5/29/2000
From: Orland Park, IL
Status: offline
There doesn't appear to be a scenario file in the folder.

(in reply to musurca)
Post #: 2
RE: Quick Battle: Knife Fight in a Phone Booth - 1/14/2021 3:05:12 PM   
musurca

 

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

There doesn't appear to be a scenario file in the folder.


That's correct—it's a Quick Battle, which is entirely generated with Lua code. Unzip it to your (CMO Install)/QuickBattle folder and it will appear in the Quick Battle menu when the game starts. (In other words, do not put it in your /Scenarios folder as you would with a normal scenario file.)

If you've unzipped it properly, it will create its own folder inside the /QuickBattle path. It should look something like this:




Attachment (1)

< Message edited by musurca -- 1/14/2021 3:14:18 PM >

(in reply to Tom Konczal)
Post #: 3
RE: Quick Battle: Knife Fight in a Phone Booth - 1/14/2021 7:14:52 PM   
Tom Konczal

 

Posts: 78
Joined: 5/29/2000
From: Orland Park, IL
Status: offline
Got it working - thanks

(in reply to musurca)
Post #: 4
RE: Quick Battle: Knife Fight in a Phone Booth - 1/15/2021 10:22:39 PM   
musurca

 

Posts: 46
Joined: 7/16/2020
Status: offline
Just updated this to v1.2 (attachment to first post has been updated):

-can now specify class of allied submarines
-can set civilian and biologic traffic levels separately
-fixed bug involving side postures
-added South Atlantic and Mediterranean Sea locations

(in reply to Tom Konczal)
Post #: 5
RE: Quick Battle: Knife Fight in a Phone Booth - 1/20/2021 10:43:36 PM   
Tom Konczal

 

Posts: 78
Joined: 5/29/2000
From: Orland Park, IL
Status: offline
I have played this battle several times. There doesn’t seem to be a defeat/ victory/triumph notation at the end of the scenario.
Another question, when I have a submarine with a towed array and I spot a goblin, is it better to approach head-on or perpendicular to gain an identification?

< Message edited by Tom Konczal -- 1/20/2021 10:47:05 PM >

(in reply to musurca)
Post #: 6
RE: Quick Battle: Knife Fight in a Phone Booth - 1/21/2021 12:26:31 AM   
musurca

 

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

I have played this battle several times. There doesn’t seem to be a defeat/ victory/triumph notation at the end of the scenario.


When the scenario ends, do you see your final score expressed in points? You get 150 points for each submarine you kill personally, and lose 100 points for each ally killed. (But I should probably put a more verbose debrief here.)

quote:

Another question, when I have a submarine with a towed array and I spot a goblin, is it better to approach head-on or perpendicular to gain an identification?


I'm not an expert, but I usually go closer to perpendicular. My reasoning is as follows:

1) It increases the time it takes to close the distance on the contact, giving me more time to positively identify it as hostile;
2) If there's a launch transient, I'm closer to being able to evade;
3) I'm not sure if this is true in CMO, but in other games (e.g. Dangerous Waters) the towed array has a blind spot in the direction of travel of your submarine.

Again, not an expert, so happy to be corrected on any of these points.

(in reply to Tom Konczal)
Post #: 7
RE: Quick Battle: Knife Fight in a Phone Booth - 1/21/2021 1:33:37 AM   
Rory Noonan

 

Posts: 2743
Joined: 12/18/2014
From: Brooklyn, NY
Status: offline

quote:

ORIGINAL: Tom Konczal

I have played this battle several times. There doesn’t seem to be a defeat/ victory/triumph notation at the end of the scenario.
Another question, when I have a submarine with a towed array and I spot a goblin, is it better to approach head-on or perpendicular to gain an identification?

I haven't tinkered with this scenario, but Submarine Tutorial 2.1: Submarine ASW covers approaching a distant towed array contact. For closer in stuff, towed arrays do not perform very well for contacts directly ahead of their ownship: a modern spherical array is much more suitable.

_____________________________


(in reply to Tom Konczal)
Post #: 8
RE: Quick Battle: Knife Fight in a Phone Booth - 2/19/2021 5:46:37 AM   
boogabooga

 

Posts: 221
Joined: 7/18/2018
Status: online
Excellent job!

Question, why do the allied submarines show up as neutral? Is that the keep them from sharing contact info?

What would happen if you consider your allies as friendly, but they consider you as neutral?

Also, I think OPFOR can all be on one side rather than three.

(in reply to Rory Noonan)
Post #: 9
RE: Quick Battle: Knife Fight in a Phone Booth - 2/19/2021 6:18:33 PM   
musurca

 

Posts: 46
Joined: 7/16/2020
Status: offline
Thanks, glad you liked it!

quote:

Question, why do the allied submarines show up as neutral? Is that the keep them from sharing contact info?


Yeah, that was the idea. I think if you were to consider allies friendly but they consider you as neutral, then the AI would be able to see your position and contacts at all times, which wouldn't be right either. But what I COULD do is mark everyone as out-of-comms so they'll appear friendly if you ID them, but there won't be any information sharing in any direction. I'll try that for the next version.

If I did that for the OPFOR as well, then you're right--I could also move them to the same side, which would simplify things. Thanks!

(in reply to boogabooga)
Post #: 10
RE: Quick Battle: Knife Fight in a Phone Booth - 2/20/2021 3:20:45 PM   
BDukes

 

Posts: 1052
Joined: 12/27/2017
Status: offline
This one is very good. Got to witness a great sub battle south of me.

The only issue is the neutral thing. In my case an LA sub's focus was trying attempting to ID me (Virginia). See test file.

Mike

Attachment (1)

(in reply to musurca)
Post #: 11
RE: Quick Battle: Knife Fight in a Phone Booth - 2/20/2021 10:52:02 PM   
boogabooga

 

Posts: 221
Joined: 7/18/2018
Status: online
I would like to use a late Cold War (1970s-1980s) unit selection. Would it work to just edit the html file, or is your script looking for something specific?

What would happen if I changed to the CWDB? I assume that I would have to change the unit numbers of the neutrals in the script, at least.

P.S. the time of day setting seems a little off...


< Message edited by boogabooga -- 2/20/2021 11:29:35 PM >

(in reply to BDukes)
Post #: 12
RE: Quick Battle: Knife Fight in a Phone Booth - 2/21/2021 9:44:54 PM   
musurca

 

Posts: 46
Joined: 7/16/2020
Status: offline
New version up -- I've updated the attachment at the top of this thread. See notes below:

quote:

The only issue is the neutral thing. In my case an LA sub's focus was trying attempting to ID me (Virginia). See test file.

Thanks for the save file, Mike. This is now fixed.

FYI the apparently simple solutions (changing the side postures or marking units as out of comms) did not work and I had to implement a rather elaborate workaround. All allied sides are still neutral to each other, but when a submarine gets within 3nm of a contact on an allied side, it will mark that contact as friendly and therefore drop it as a target.

As far as I can tell after a lot of testing (and someone please let me know if I've missed something), there is unfortunately no way to mark two sides as friendly (either unidirectionally, or otherwise) without getting position sharing at least. Marking units "out of comms" doesn't help because that setting apparently only applies to units within a side, not to other sides. I may report this in the Tech Support forum because I think there SHOULD be an easy way to get the desired results: sides that are friendly to each other but do not share either positions or contacts.

quote:

I would like to use a late Cold War (1970s-1980s) unit selection. Would it work to just edit the html file, or is your script looking for something specific? What would happen if I changed to the CWDB? I assume that I would have to change the unit numbers of the neutrals in the script, at least.

P.S. the time of day setting seems a little off...

As far as I know, you can't change the DB within a Quick Battle because there's no Lua function to do that. You could definitely adapt the underlying code for a standalone scenario, though. However, aren't most Cold War submarines also in the modern DB since many of them are still in use somewhere (aside from the U-Boats)? If you can find what you want in the modern DB, it would be easy enough to edit the script. (Note that the actual DBIDs are NOT defined in the HTML-- for this scenario they're in a table in the Script.lua. Look for "subDBIDs" and "factionDBIDs'.)

Fixed the time of day setting -- thanks for catching that! BTW the time of day code was originally copied from the standard Submarine 1v1 QB included with CMO, so I think that means that the setting is broken there too.

< Message edited by musurca -- 2/22/2021 7:56:30 AM >

(in reply to boogabooga)
Post #: 13
RE: Quick Battle: Knife Fight in a Phone Booth - 2/22/2021 5:36:27 AM   
boogabooga

 

Posts: 221
Joined: 7/18/2018
Status: online
Lua script execution error: [string "?"]:614: attempt to concatenate a nil value (local 'factionbase')

(in reply to musurca)
Post #: 14
RE: Quick Battle: Knife Fight in a Phone Booth - 2/22/2021 5:50:23 AM   
musurca

 

Posts: 46
Joined: 7/16/2020
Status: offline

quote:

Lua script execution error: [string "?"]:614: attempt to concatenate a nil value (local 'factionbase')


I'm not getting that error. Can you tell me what steps you did to get that so I can reproduce it?

(in reply to boogabooga)
Post #: 15
RE: Quick Battle: Knife Fight in a Phone Booth - 2/22/2021 7:11:40 AM   
boogabooga

 

Posts: 221
Joined: 7/18/2018
Status: online
So far, any 2-vs-2 battle

(in reply to musurca)
Post #: 16
RE: Quick Battle: Knife Fight in a Phone Booth - 2/22/2021 7:27:29 AM   
musurca

 

Posts: 46
Joined: 7/16/2020
Status: offline
EDIT: Never mind, I see the issue now-- weird it wasn't throwing an error for me, but I see where it would. Will update shortly.

< Message edited by musurca -- 2/22/2021 7:35:46 AM >

(in reply to boogabooga)
Post #: 17
RE: Quick Battle: Knife Fight in a Phone Booth - 2/22/2021 7:44:42 AM   
musurca

 

Posts: 46
Joined: 7/16/2020
Status: offline
Okay! Should be fixed now -- updated attachment at the top of the thread.

Let me know if that works for you now. Thanks for catching that.

(in reply to boogabooga)
Post #: 18
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Quick Battle: Knife Fight in a Phone Booth 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.234