HDIAndrew / EFS

12 stars 0 forks source link

New Owner Number #106

Closed Luxor70 closed 1 year ago

Luxor70 commented 1 year ago

Description:

Add an owner number for AI and another for Human Player

Commit hash:

Vanilla 1.5

Why is it good for the game?:

Modders could better shape AI-unique units, increasing game playability.

Matt-Caspermeyer commented 1 year ago

I'm not certain exactly what you mean here - do you want to increase the total number of players or something else?

Luxor70 commented 1 year ago

No, I mean that we need two new owner IDs, one for any AI-controlled faction and another for any Human-controlled faction

Matt-Caspermeyer commented 1 year ago

So do you mean like this:

ID#1 (Houses):

  1. Li Halan
  2. Hazat
  3. Decados
  4. Hawkwood
  5. al-Malik

ID#2 (Everyone else):

  1. League
  2. Church
  3. Symbiot
  4. Vau
  5. Imperial Guard
  6. Imperial Fleet
  7. Stigmata Garrison
  8. Imperial Eye
  9. Neutral

I still might not be following what you're thinking here - can you expand your idea more as to how you see it being implemented / used?

Luxor70 commented 1 year ago

No, that is not what I meant. Let me explain better. Let's suppose we can end up with this (IDs 14 and 15):

// * New Owner column (the player that can build this unit): // & -1: Any owner // & 0 - 4: Li Halan - al-Malik // & 5: League // & 6: The Church // & 7: Symbiot // & 8: Vau // & 9: Imperial Guard // & 10: Imperial Fleet // & 11: Stigmata Garrison // & 12: Imperial Eye // & 13: Rebels // & 14: Human Player (NEW ID) // & 15: AI Player (NEW ID) // & 22: The League or Church // & 33: Ministries (excluding the Imperial Guard) // & 44: Any Ministry (includes Imperial Guard) // & 55: Any House // & 77: Non-House Humans (The League, Church, or Rebels) // & 88: All Alien (Symbiot or Vau) // & 99: All Human (all but Symbiot / Vau)

So let's consider two scenarios, just as an example.

Scenario 1: I am playing a SP game with Hawkwood House. If a unit has 14 in the owner column of UNIT.DAT file, only Hawkwood can build it but any other faction (AI) cannot.

Scenario 2: I am playing a MP game with Hawkwood House and a friend of mine is playing as Hazat. If a unit has 14 in the owner column of UNIT.DAT file, only Hawkwood and Hazat can build it but any other faction (AI) cannot.

Same thing would be with 15 ID, but in a reversed logic, ie only AI-controlled factions can build that specific unit.

Matt-Caspermeyer commented 1 year ago

Okay, I get it now - a human controlled ID and an AI controlled ID.

I probably wouldn't use 14 and 15, since that could be the Vuldrok and Kurgans, but I now understand your idea.

This seems like it could be easy enough to implement in V1.51 so I'll start thinking about how to implement it...

Matt-Caspermeyer commented 1 year ago

I have an update on this request.

I have implemented this feature and it is currently undergoing our testing, review, approval, and merging process.

Once this is complete we will add this to a future update - we hope to have this in V1.51...