Is unit type hard-coded?

Strategic Command is back, and this time it is bringing you the Great War!

Moderator: MOD_Strategic_Command_3

Post Reply
FOARP
Posts: 707
Joined: Sun Dec 23, 2012 10:05 pm

Is unit type hard-coded?

Post by FOARP »

Some of the unit slots are presently filled with "N/A", the editor shows a drop-down selection interface for selecting unit-type but it looks like at present it is greyed out and not selectable.

I assume this is a hard-coded feature? If so, can I just set N/A to have the same stats as "soft" somehow?
American Front: a Work-in-progress CSA v USA Turtledove mod for SC:WW1 can be seen here.
User avatar
Hubert Cater
Posts: 6052
Joined: Mon Jul 22, 2013 11:42 am
Contact:

RE: Is unit type hard-coded?

Post by Hubert Cater »

Hi FOARP,

I see what you mean here and unfortunately the types are hard coded, sort of.

All this means is that at one time I had it in mind where you could possibly change the unit type from a number of selected types, e.g. if you wanted the Battleship slot to suddenly work like a Soft target, you could do that. This is why that drop down list is there as that was the original intention to make the game that much more flexible and powerful.

Turned out in the end it was going to be a bit more complicated and this is why it is now greyed out. Changing the types is easy enough, but the rules for how a unit behaves is now tied into the unit ID as some unit IDs just behave differently than other IDs despite having the same type. e.g. engineers, paratroops, partisans, amphibious transports and so on.

In the future I would have to expand the types so that everything could indeed be tied into the unit types instead of the IDs.

So long story short, I see what you are after, but no it just won't work with how things are currently set up.

Sorry about this,
Hubert
FOARP
Posts: 707
Joined: Sun Dec 23, 2012 10:05 pm

RE: Is unit type hard-coded?

Post by FOARP »

Thanks Hubert, OK - guess I'll just overwrite the ANZAC/colonial units.
American Front: a Work-in-progress CSA v USA Turtledove mod for SC:WW1 can be seen here.
Post Reply

Return to “Strategic Command: World War I”