-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(validation): on uploading map/mods add validation for version range
- Loading branch information
1 parent
ef26b9c
commit 118b7a4
Showing
6 changed files
with
86 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/test/resources/maps/scenario/invalid_lua_map_version_scenario.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version = 3 -- Lua Version. Dont touch this | ||
ScenarioInfo = { | ||
name = "Mirage", | ||
description = "Map By: Morax", | ||
preview = '', | ||
map_version = 10123, | ||
type = 'skirmish', | ||
starts = true, | ||
size = {256, 256}, | ||
map = '/maps/mirage/mirage.scmap', | ||
save = '/maps/mirage/mirage_save.lua', | ||
script = '/maps/mirage/mirage_script.lua', | ||
norushradius = 40, | ||
Configurations = { | ||
['standard'] = { | ||
teams = { | ||
{ | ||
name = 'FFA', | ||
armies = {'ARMY_1', 'ARMY_2'} | ||
}, | ||
}, | ||
customprops = { | ||
['ExtraArmies'] = STRING( 'ARMY_17 NEUTRAL_CIVILIAN' ), | ||
}, | ||
}, | ||
}, | ||
} |