Skip to content
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

Unused mission headers? #33

Closed
hafometh88 opened this issue Dec 11, 2023 · 2 comments
Closed

Unused mission headers? #33

hafometh88 opened this issue Dec 11, 2023 · 2 comments

Comments

@hafometh88
Copy link
Contributor

hafometh88 commented Dec 11, 2023

Describe the bug
I was wondering, what is the purpose of setting these in the config:

"missionHeader": {
	"m_iPlayerCount": 40,
	"m_eEditableGameFlags": 6,
	"m_eDefaultGameFlags": 6
}

Expected behavior
The BI docs metion that missionHeader property is used to overwrite the scenario's SCR_MissionHeaderCampaign, but everything inside the default server config is actually from SCR_MissionHeader.

When I try to override any of the properties from SCR_MissionHeader (e.g. m_bRandomWeatherChanges), it does not reflect the change when the server reboots.

But when I override something from SCR_MissionHeaderCampaign (e.g. m_iMinimumBaseSupplies), it does work after a restart.

Additional context
Am I misunderstanding something?

@hafometh88
Copy link
Contributor Author

hafometh88 commented Dec 30, 2023

When I try to override any of the properties from SCR_MissionHeader (e.g. m_bRandomWeatherChanges), it does not reflect the change when the server reboots.

Turns out I did misunderstand it.

You have to set m_bOverrideScenarioTimeAndWeather to 1 in order for these to have any effect.

m_iStartingHours
m_iStartingMinutes
m_bRandomStartingDaytime
m_fDayTimeAcceleration
m_fNightTimeAcceleration
m_bRandomStartingWeather
m_bRandomWeatherChanges

@hafometh88
Copy link
Contributor Author

As for the other headers...

IDK why, but from my testing, not all mission headers can be overridden by the server config. For example:

m_sName
m_sAuthor
m_sPath
m_sDescription
m_sDetails
m_sIcon
m_sLoadingScreen
m_sPreviewImage
m_sGameMode
m_eEditableGameFlags
m_eDefaultGameFlags
m_sGameMode
m_iPlayerCount
m_bLoadOnStart           // I presume this one is supposed to load the latest save?

Some headers I have no idea how to test or what they do

m_sOwner
m_sBriefingConfig
m_bCustomBaseWhitelist           // Should be used to allow only some of the conflict bases, but I did not test it

And finally, these work just fine

m_bIsSavingEnabled
m_sSaveFileName
m_iControlPointsCap
m_fVictoryTimeout
m_iMaximumRespawnRadios
m_iStartingHQSupplies
m_iMinimumBaseSupplies
m_iMaximumBaseSupplies
m_bIgnoreMinimumVehicleRank

@hafometh88 hafometh88 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant