-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: add "CustomMissionID" for saved games #18
Comments
In CnCNet/cncnet-yr-client-package#288 you said "At the moment, the client does not have a mechanism for processing saves from different game modes."
This design should be better than the current workaround. |
|
@SadPencil Maybe it's worth using the meta information that already exists? It seems to me that it is quite enough: What really needs to be done is to force the spawner to correctly write the |
According to @chaserli 's investigation, Besides, now I start questioning what should happen if a player wins a campaign and then the next campaign starts. Should the |
A
.sav
file is an OLE document that can be considered as a "dictionary". For example, the OLE keyScenario Description
refers to a UTF-16 LE string corresponds to the title of a saved game file.I am currently working on a feature to let
xna-cncnet-client
support loading custom missions. In order to support this feature,xna-cncnet-client
must have a way to identify which mission corresponds to a saved game file, along with other restrictions to prevent user loads a different mission (to prevent potential conflicts; as supplemental files are copied by the client)Thus, I request an addtional data field, described as below.
CustomMissionID
This value will be specified via the
spawn.ini
file, given when the spawner is launchered.CustomMissionID
is anint32
integer. If this value is omitted, consider it 0.In a
.sav
file, the OLE keyCustomMissionID
should corresponds with 4 byte-values that contains such anint32
integer in little-endian order. The number is untouched, saved as-is.Rename of missionmd.ini file
When
CustomMissionID
is specified and not 0, the access ofmissionmd.ini
shall be redirct tospawn.ini
file. This enables the client automatically generates the corresponding mission info without interrupting the game.Full example of a
spawn.ini
file:Saved games list filter
When
CustomMissionID
is specified and it is not 0, only saved game files with the sameCustomMissionID
shall be displayed.Otherwise, when
CustomMissionID
is not specified or is 0, only saved game files withoutCustomMissionID
or with a zero-valuedCustomMissionID
shall be displayed.Reading CustomMissionID from saved game file
When loading a saved game, the spawner loads
CustomMissionID
based on the OLE keyCustomMissionID
in a .sav file.CustomMissionID
will not be specified inspawn.ini
in this case.The text was updated successfully, but these errors were encountered: