-
Notifications
You must be signed in to change notification settings - Fork 494
Fix quick start range override handling #6269
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
base: master
Are you sure you want to change the base?
Fix quick start range override handling #6269
Conversation
|
I can see how my mod option here was kind of silly for not letting you set it back to zero after changing it. It is really important that there is enough space for a base to be built around the commander. I want you to do Declare CONSTANTS and use the real variable names as necessary. At ranges below 200, the base layouts are just too tight to spawn anything with the other factors involved. Even 200 might be too tight, you should test that. Especially look at AI generated bases. |
|
Using |
|
Good point, update the description. |
|
Maybe a Boolean modoption to show and enable the override and leave the min in the modoption? |
|
I see two options:
Rationale: the gadget uses INSTANT_BUILD_RANGE = override > 0 and override or 600 while base generation is tuned for ~500–600 (for example BASE_GENERATION_RANGE = 500, COMMANDER_NO_GO_DISTANCE = 100, BUILD_SPACING = 64), so ranges under ~200 cannot lay out a viable base, especially for AI, so coercing <200 protects lobbies.
Given the code paths, I think (1) is the safer default despite the slight WYSIWYG hit for 1–199; we can call out the clamp in the modoption text and note that <200 will act as 200. If that direction sounds good, I will clamp and update the description, then sanity-check AI bases at 200–250. |
|
I would want:
If enableQuickStartOverrides == true then use the overrides. Else, use the string-matched table entries for budget. And default quick start build range. All of these options hidden, I don't want the average player to discover and use them. It's for debugging or modding purposes. |
|
@SethDGamre ok, I implemented hidden quick start overrides per your request: added enable_quickstart_overrides (default false) as the gate, plus override_quick_start_range (default 600, min 200, max 2000) and override_quick_start_budget (default 1200, min 100). When the flag is off I use the normal quick_start_amount table and default 600 range; when on we use the override values. All options are hidden and the headless test suite passes. |
Summary
Testing