Hastwell / Omukade.Cheyenne

Pokemon TCG Live (Rainier) 3rd Party Server
GNU Affero General Public License v3.0
10 stars 2 forks source link

Compile problem #2

Closed Hill-98 closed 7 months ago

Hill-98 commented 7 months ago

Error: 'GameStateOmukade.CopyState()': Inherited member 'GameState.CopyState()' is not marked virtual, abstract or override and cannot be overridden

Is it possible to change public override GameState CopyState() to public new GameState CopyState()?

Hastwell commented 7 months ago

It looks like I had made an update to ManualPAR to apply specific patches for Live, but didn't update that documentation.

If you rerun ManualPAR with the (undocumented) flags --fetch-update --rainier-specific, it should produce assemblies where CopyState is virtual and can be overridden by GameStateOmukade.

I cannot update GameStateOmukade.CopyState to be new; it has to be a virtual/overridden method so the game code will call the GameStateOmukade version instead of the normal GameState.

Hill-98 commented 7 months ago

Good! The problem is solved!

Hastwell commented 7 months ago

Documentation has been updated. Thank you for reporting this!