Expansion+: Difference between revisions

From Warzone Wiki
Jump to navigation Jump to search
DanWL60 (talk | contribs)
DanWL60 (talk | contribs)
Line 19: Line 19:


== Potential game-breaking bugs ==
== Potential game-breaking bugs ==
This mod will crash on [https://github.com/JackoMillar/Warzone-Lua/blob/c65b6dfdd83562dc68875f64d7903b609e151738/FreeExpansion%2B/Server_AdvanceTurn.lua#L41 lines 41, 88 of Server_AdvanceTurn.lua] (<code>if randomNeutralTerr == nill then break; end</code>), (<code>if randomNeutralTerr == nill then break; end</code>). <code>nill</code> is not a Lua keyword and not a defined variable. The keyword <code>nil</code> is likely meant.
This mod will crash on [https://github.com/JackoMillar/Warzone-Lua/blob/c65b6dfdd83562dc68875f64d7903b609e151738/FreeExpansion%2B/Server_AdvanceTurn.lua#L41 lines 41, 88 of Server_AdvanceTurn.lua]. <code>nill</code> is not a Lua keyword and not a defined variable. The keyword <code>nil</code> is likely meant.


The amount of armies on territories players receive is not validated. There may be negative armies on territories and this may cause the game to crash, similar for very large army numbers on territories.
The amount of armies on territories players receive is not validated. There may be negative armies on territories and this may cause the game to crash, similar for very large army numbers on territories.

Revision as of 17:24, 6 October 2024

Mod nameExpansion+
CreatorUnFairerOrb76
Made public on2022-10-06
CategoryExperimental
Tags#Strategic
Requires Warzone version4.14.2+
Source codeGitHub

This mod enables players to earn neutrals without needing to expand. At the end of each turn, players will be given random neutral territories that border their own. The amount of armies of the territory will be set to the number in the mod's settings.

Settings

Game creators can customize:

  • If only neutrals of size non-distribution neutrals or less will be given to players (defaults to disabled, any neutral will be given in this case).
  • The maximum number neutrals a player will gain each turn (defaults to 2, min 1, max 10).
  • The amount of armies that territories will have on them when given to players (defaults to 2, min 1, max 10).

Potential game-breaking bugs

This mod will crash on lines 41, 88 of Server_AdvanceTurn.lua. nill is not a Lua keyword and not a defined variable. The keyword nil is likely meant.

The amount of armies on territories players receive is not validated. There may be negative armies on territories and this may cause the game to crash, similar for very large army numbers on territories.