|
Post by sauronthenecromancer on Jun 11, 2019 7:35:49 GMT -6
Hi all,
Once again, I've got back into 'Lords of Magic' recently and, thanks to the fantastic mod, I'm enjoying the game more than ever.
I was wondering though, if it's at all possible to remove the 'unit limit' the game imposes on you which disallows you from having too many of a particular unit at any one time. To put it another way, I've got in play 18 skeletons at the moment and I can't hire any more because the game states that you can't have more than 18 of those at a time (obviously this rings true of all other units in the game - no more than nine sorceresses or nine necromancers and so on). I'd love it if all faiths would be able to hire as many units as they like without this imposed limit being forced on them. I know you can add units by typing in the appropriate cheat but this will allow you an unfair advantage over the other faiths. Anyone got any ideas if this as at all possible?
Cheers!
|
|
|
Post by Boaster on Jun 20, 2019 11:28:10 GMT -6
The limits were included into the mod with multiplayer in mind. I know not many multiplayer games happen, but it keeps the game from getting over cluttered by players and unit spamming.
Limits can be removed from 'gs/dlg/NEWBUILD5.gs' file, I think.
At some point in the future, this may be changed to another file for localization of some added configurations (i.e. potion limits).
|
|
|
Post by Boaster on Jun 20, 2019 11:40:24 GMT -6
/max_unittype 18 selected_unit UNITTYPE_SPECIAL_UNIT_TYPE getunittypedata -1 gt{pop 9}if selected_unit UNITTYPE_CODE getunittypedata CR3 eq{pop 9}if ; selected_unit UNITTYPE_CODE getunittypedata CR5 eq{selected_unit UNITTYPE_FAITH getunittypedata WATER eq{pop 6}{pop 1}ifelse}if def /minimum_units_allowed? 18 def /maximum_units_allowed? city_count 99 mul minimum_units_allowed? min def
Look for this.
Change the min and max units allowed to 9999, and max type to 99. You should be good.
|
|
Skarn
Member LVL 7
Posts: 113
|
Post by Skarn on Jan 3, 2020 12:32:53 GMT -6
I'm bumping this because I've been looking into getting rid of the limits as well since I'm not playing multiplayer either but changing the given code doesn't work anymore. Was the configuration file talked about here made at some point? Because the code inside the 'gs/dlg/NEWBUILD5.gs' isn't the same as the one that's been posted in this thread, for example the /max_unittype value was changed to /old_max_unittype so I take it there's a new value somewhere to change instead of this one, but I can't find any similar code inside the same file (besides another max_unittype but changing it doesn't do anything).
|
|
Skarn
Member LVL 7
Posts: 113
|
Post by Skarn on Jan 12, 2020 19:30:37 GMT -6
Updating this thread with the bit of knowledge I've gathered from the GS5R3 "general", unit limits are stored in 'gs/scenario/default.gs' The values you are looking for are right below '/maximum_build_unittypes? ', at the very least, There are a couple to modify there, noticeable by the 'pop' tag. Feel free to screw around if that doesn't work out for you, but don't forget to backup if you do!
|
|
|
Post by sauronthenecromancer on Apr 19, 2022 5:09:33 GMT -6
Hi Mantera,
Sorry for bumping this back up but after having to reinstall the game, I can no longer find the line of code needed to remove the limit of units a faith can have.
Any help would be most appreciated.
Kindest regards!
|
|
|
Post by Boaster on Apr 19, 2022 6:04:45 GMT -6
Updating this thread with the bit of knowledge I've gathered from the GS5R3 "general", unit limits are stored in 'gs/scenario/default.gs' The values you are looking for are right below '/maximum_build_unittypes? ', at the very least, There are a couple to modify there, noticeable by the 'pop' tag. Feel free to screw around if that doesn't work out for you, but don't forget to backup if you do! This is as good as it gets.
|
|
|
Post by lemminkainen on Apr 21, 2022 2:52:35 GMT -6
Have you guys tried to play the game in hardest difficulty settings with those limits removed? I'd be curious whether the AI is littering the map with tons of units or not. It could be used to make the game even harder (if it doesn't crash).
|
|
|
Post by Boaster on Apr 21, 2022 5:52:10 GMT -6
Have you guys tried to play the game in hardest difficulty settings with those limits removed? I'd be curious whether the AI is littering the map with tons of units or not. It could be used to make the game even harder (if it doesn't crash). Unit limits apply to human players only. AI has no such limits on units.
|
|