Loading...
  OR  Zero-K Name:    Password:   

Disable Units/Striders?

18 posts, 4884 views
Post comment
Filter:    Player:  
sort
10 years ago
How do I disable Striders and the Special buildings, like Big Bertha, Zenith, and Starlight? I tried using !setoptions disabledunits=etc, but it doesn't work at all. I know that there used to be a setting to just completely disable them, but I can't find it.
+0 / -0
FIrankFFC
10 years ago
Disable units wont work anymore because there is no locked units anymore, so you cant disable any unit.(why you want to disable them anyway)
+0 / -0
There's an option to disable a list of arbitrary units. I'm not sure if you can enter it via GUI or you can only issue it as a command for online hosts.

EDIT: the option i'm talking about is
quote:
disabledunits (Prevents specified units from being built ingame. Specify multiple units by using +.


An example would be:
quote:
!setoptions disabledunits=cafus+mahlazer+armorco

Which would disable Singularity Reactor, Starlight, Detriment.
+0 / -0
10 years ago
Where can one find these unit names? (not the name shown ingame, but the name the game uses e.g. 'corak' for bandit)
+0 / -0
FIrankFFC
10 years ago
you can go to manual and move your mouse over unit icons!
+3 / -0
quote:
Where can one find these unit names

option a)
1) go to https://github.com/ZeroK-RTS/Zero-K -> hit search -> type unit human name (e.g. Bandit)
2) note any files in /units/ among the results, omit the .lua part. E.g. /units/corak.lua -> corak.

option b)
1) checkout or download ZK onto local drive
2) use any tool you're comfortable with to find a file in /units/ with human name in its body (example: `grep -sirl bandit ~/.spring/games/zk.sdd/units`)

option c)
1) What killer said
2) but beware inaccuracies (e.g. unitguide has rapier -> CORAPE.jpg while unitname of rapier is currently "gunshipsupport")
+1 / -0
FIrankFFC
10 years ago
you can also dowload mission editor to find stuff...
+0 / -0
Just wondering, why do the filenames for the units not match the actual names for the units?

EDIT: Thanks autowar for deh response!
+0 / -0
10 years ago
USrankMiixus you can disable units, but only if you are hosting with the Spring Web Lobby. It has a dedicated window tab that allows you to determine alloweand disallowed units.


CAranksanyc the filenames are what are called by the Spring engineand by all Spring widgets that want to do something with that unit. Changing the filename of a unit would mean tracking down every instance of that filename and replacing it.
+1 / -0


10 years ago
So in short: EZ PZ
+0 / -0


10 years ago
Renaming all the files would not make filenames match unit names. Our consistent naming scheme does not use the names of the units because they can be hard to recall and may change.

What you really want is the relatively simple task of fixing the input format for the lobby option. The disabledunits option looks as if it was implemented lazily as it would just be an extra step to take input in the form of the units names.
+2 / -0


10 years ago
quote:
the disabledunits option looks as if it was implemented lazily as it would just be an extra step to take input in the form of the units names.

Two extra steps at least. One to disambiguate between Scorcher the antiswarm turret and Scorcher the heatray vehicle.
+0 / -0


10 years ago
Just disable both. Name two units which are actually used and share names.
+0 / -0
Two glaives. :P

On a (slightly) more serious note: Chicken Queen. Flying and landed version share the same name.
+0 / -0


10 years ago
Well, as "used" would imply "buildable" in this case, so i don't think the queen counts.

Though maybe having an UI option to use Spring's own restricted units option would be better.
+0 / -0

10 years ago
If anyone's thinking of reworking the disabled units, consider autogenerating a boolean option for each unit. This might not be possible depending on whether the unit defs list is available in the mod options phase, and maybe the author already considered it.
+0 / -0
but chickenq is completely diffrent from chickenflyerqueen and chickenlandqueen
+0 / -0
2 years ago
We've been testing disabling various factories and units as fun variations of the game. I made a Google Sheets spreadsheet that makes it a lot easier to select which units you want disabled for a match. Check it out.

Zero K Disabled Units:
https://docs.google.com/spreadsheets/d/1EaXf7aOit9uEZEsmsgvFiVEtfR67KvA0Lo5JRY25aRY/edit#gid=0
+3 / -0