View Single Post
  #98  
Old Today, 11:05 AM
MarkSheppard's Avatar

MarkSheppard MarkSheppard is online now
Lieutenant Colonel
 
Join Date: Jun 2005
Posts: 1,482
Thanks: 107
Thanked 723 Times in 479 Posts
MarkSheppard is on a distinguished road
Disk Re: Blitzkrieg Banzai? (SP1 Conversion)

Fixed unit facing errors during importation:

For SP1, I forgot to put in remap codes for N and S facings for SP1 scenarios; so they all remapped these units to 0 = East instead of the correct 270 = North.

For SP2, SSI went wonky; I found this out while quality checking SP2 Scenario "Good Day My Brother" in an actual SP2 install in DOSBOX.

Code:
//   Direction | SP2 value | SPCAMO value | Note
//   ──────────┼───────────┼──────────────┼─────────────────────────────
//   E         |     0     |      0       | identical — no translation needed
//   SE        |    63     |     63       | identical
//   S         |    90     |     90       | identical
//   SW        |   117     |    117       | identical
//   W         |   180     |    180       | identical
//   NW        |   243     |    243       | identical
//   N         |    14     |    270       | ← DIFFERS — must be translated
//   NE        |    41     |    290       | ← DIFFERS — must be translated
Some more unit import refinements:



I added "fallback" alternate translated unit as an option, along with commentary to explain why.

Code:
  [/\bJS-III\b/gi, 'IS-2', 'T-55AM',
    'note: SP2\'s DDR OOB incorrectly lists the JS-III (IS-3). ' +
          'The DDR only ever received the IS-2, which was retired around 1978. ' +
          'Pre-1978 scenarios map to IS-2; post-1978 fall back to T-55AM.'],
This was my prompt that I used to add that support:

Quote:
I just realized something; sorry to bother you on this; but we also need to add some sort of interactive "note" in the unitimport system -- we need to consider the POV of the "Average" user who just wants a simple click and done system.

He's going to see JS-3 (or T-10) translated to either IS-2 or T-55; and go "what? Why is this wrong?"

Thus, we need to add support for descriptor lines:

[/\bSomeUnit\b/gi, 'PrimaryName', 'FallbackName', 'Commentary on Why'],

So that a user hitting the user import button will see in the list of possible units available for T-10, a comment at the top of the list going:

"DDR never bought IS-3"

'DDR planned to buy T-10, but canceled, IS-2 became only heavy tank. This falls back to T-55 in case scenario is after DDR retires IS-2 in 1978'

to explain things to them, so they don't have to dig into the SPCAMO_UnitImport_Names.js and read the comments (nobody ever reads the manual, ever).

We also need to figure out how to add commentary for both use cases (a single primary name + primary and fallback); perhaps with comment: note?
From the above, you can see that "vibe coding" still requires you to think and explain what you want.

EDIT:

Some commentary from the translation lists for W.Germany:

Quote:
[/\bLeopard 1A6\b/gi, 'Leopard 1A1A1', 'note: The Leopard 1A6 was a proposed variant that would have combined the Leopard 1A1A1 chassis with the 120mm L44 from the Leopard 2.'],

[/\bLeopard 2 \(Imp\)\b/gi, 'Leopard 2A6', 'note: At the time of SP2, this model designation [2A6] had not yet been announced.'],

[/\bMLRS Section\b/gi, 'MARS Section', 'note: Euro Name for MLRS.'],

[/\bF-4E Phantom II\b/gi, 'MBB F-4F', 'note: West German F-4Es were for training in the USA only.'],

Last edited by MarkSheppard; Today at 11:54 AM..
Reply With Quote
The Following User Says Thank You to MarkSheppard For This Useful Post: