FAForever / FAForever/Neroxis-Map-Generator
Add reclaim information to `_scenario.lua
- Dominant language
- Java
- Stars
- 22
- Forks
- 12
- Avg merge
- 9d 12h
- Merged PRs (30d)
- 2
Description
The [FAForever map editor](https://github.com/FAForever/FAForeverMapEditor) adds a table to the scenario file that represents the amount of reclaim on the map. The entire scenario file is included in the replay, see also:
- https://github.com/FAForever/faf-java-commons/blob/develop/faf-commons-data/src/main/java/com/faforever/commons/replay/header/ReplayHeaderParser.java#L99
I'd like to show this information in the detailed replay viewer, but generated maps do not populate the field in the scenario file. It would be nice if it did 😃 !
```lua
version = 3 -- Lua Version. Dont touch this
ScenarioInfo = {
name = "Lost Lands",
description = "20 km x 20 km 4v4 - Made By Penguin",
preview = '',
map_version = 5,
type = 'skirmish',
starts = true,
size = {1024, 1024},
reclaim = {24980.59, 58608}, -- <-- this particular field, which is {mass, energy}
map = '/maps/lost_lands.v0005/Lost_Lands.scmap',
save = '/maps/lost_lands.v0005/Lost_Lands_save.lua',
script = '/maps/lost_lands.v0005/Lost_Lands_script.lua',
norushradius = 50,
Configurations = {
['standard'] = {
teams = {
{
name = 'FFA',
armies = {'ARMY_1', 'ARMY_2', 'ARMY_3', 'ARMY_4', 'ARMY_5', 'ARMY_6', 'ARMY_7', 'ARMY_8'}
},
},
customprops = {
['ExtraArmies'] = STRING( 'ARMY_17 NEUTRAL_CIVILIAN' ),
},
},
},
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.