CnCNet / xna-cncnet-client

XNA / MonoGame based client for playing classic Command & Conquer games both online and offline with a CnCNet game spawner.
Other
226 stars 87 forks source link

Set CampaignID= when launching missions + don't load multiple Battle*.ini files anymore #384

Closed Rampastring closed 1 year ago

Rampastring commented 1 year ago

https://github.com/CnCNet/ts-patches/commit/8632b2dc257b97ac43c66a8b6d0a73cb34165f68

A recent change made to CnCNet ts-patches requires the client to write CampaignID= to spawn.ini when launching singleplayer missions, with the ID depending on the index of the entry in Battle*.ini.

Because handling indexes can get messy with multiple Battle.ini and I haven't seen many mods using multiple Battle.ini files, this PR also makes the client not load multiple Battle.ini files anymore. Only the first one that contains missions is read.

github-actions[bot] commented 1 year ago

Nightly build for this pull request: