Skip to content

Commit

Permalink
Clear [0](and others) indices in save files (FAForever#4787)
Browse files Browse the repository at this point in the history
  • Loading branch information
4z0t authored Mar 19, 2023
1 parent 1378eee commit 384b9b2
Show file tree
Hide file tree
Showing 10 changed files with 624 additions and 624 deletions.
300 changes: 150 additions & 150 deletions lua/AI/OpAI/AirAttacks_save.lua

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions lua/AI/OpAI/AirScout_save.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,19 @@ Scenario = {
{'default_platoon'}
},
BuildConditions = {
[0] = {'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'default_brain','OSB_Master_AirScout'},
{'default_brain','OSB_Master_AirScout'}
},
},
PlatoonBuildCallbacks = {
[0] = {'/lua/ai/opai/airscout_editorfunctions.lua', 'AirScoutDeath',
{'/lua/ai/opai/airscout_editorfunctions.lua', 'AirScoutDeath',
{'default_brain','default_platoon'},
{'default_brain','default_platoon'}
},
},
PlatoonAddFunctions = {
[0] = {'/lua/editor/amplatoonhelperfunctions.lua', 'AMLockPlatoon',
{'/lua/editor/amplatoonhelperfunctions.lua', 'AMLockPlatoon',
{'default_platoon'},
{'default_platoon'}
},
Expand All @@ -136,7 +136,7 @@ Scenario = {
PlatoonType = 'Air',
RequiresConstruction = true,
BuildConditions = {
[0] = {'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'default_brain','default_master'},
{'default_brain','default_master'}
},
Expand All @@ -156,7 +156,7 @@ Scenario = {
PlatoonType = 'Air',
RequiresConstruction = true,
BuildConditions = {
[0] = {'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'default_brain','default_master'},
{'default_brain','default_master'}
},
Expand Down
290 changes: 145 additions & 145 deletions lua/AI/OpAI/BasicLandAttack_save.lua

Large diffs are not rendered by default.

54 changes: 27 additions & 27 deletions lua/AI/OpAI/BomberEscort_save.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@ Scenario = {
{'default_platoon'}
},
BuildConditions = {
[0] = {'/lua/ai/opai/bomberescort_editorfunctions.lua', 'BomberEscortChildBomberCountDifficulty',
{'/lua/ai/opai/bomberescort_editorfunctions.lua', 'BomberEscortChildBomberCountDifficulty',
{'default_brain','default_master'},
{'default_brain','default_master'}
},
[1] = {'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'default_brain','default_master'},
{'default_brain','default_master'}
},
[2] = {'/lua/editor/platooncountbuildconditions.lua', 'NumBuildersLessThanOSCounter',
{'/lua/editor/platooncountbuildconditions.lua', 'NumBuildersLessThanOSCounter',
{'default_brain','default_builder_name', 2 },
{'default_brain','default_builder_name','2'}
},
Expand All @@ -163,19 +163,19 @@ Scenario = {
{'default_platoon'}
},
BuildConditions = {
[0] = {'/lua/ai/opai/bomberescort_editorfunctions.lua', 'BomberEscortChildBomberCountDifficulty',
{'/lua/ai/opai/bomberescort_editorfunctions.lua', 'BomberEscortChildBomberCountDifficulty',
{'default_brain','default_master'},
{'default_brain','default_master'}
},
[1] = {'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'default_brain','default_master'},
{'default_brain','default_master'}
},
[2] = {'/lua/editor/platooncountbuildconditions.lua', 'NumBuildersLessThanOSCounter',
{'/lua/editor/platooncountbuildconditions.lua', 'NumBuildersLessThanOSCounter',
{'default_brain','default_builder_name', 1 },
{'default_brain','default_builder_name','1'}
},
[3] = {'/lua/editor/miscbuildconditions.lua', 'FactionIndex',
{'/lua/editor/miscbuildconditions.lua', 'FactionIndex',
{'default_brain', 1 , 0 },
{'default_brain','1','0'}
},
Expand All @@ -200,15 +200,15 @@ Scenario = {
{'default_platoon'}
},
BuildConditions = {
[0] = {'/lua/ai/opai/bomberescort_editorfunctions.lua', 'BomberEscortChildEscortCountDifficulty',
{'/lua/ai/opai/bomberescort_editorfunctions.lua', 'BomberEscortChildEscortCountDifficulty',
{'default_brain','default_master'},
{'default_brain','default_master'}
},
[1] = {'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'default_brain','default_master'},
{'default_brain','default_master'}
},
[2] = {'/lua/editor/platooncountbuildconditions.lua', 'NumBuildersLessThanOSCounter',
{'/lua/editor/platooncountbuildconditions.lua', 'NumBuildersLessThanOSCounter',
{'default_brain','default_builder_name', 2 },
{'default_brain','default_builder_name','2'}
},
Expand All @@ -233,15 +233,15 @@ Scenario = {
{'default_platoon'}
},
BuildConditions = {
[0] = {'/lua/ai/opai/bomberescort_editorfunctions.lua', 'BomberEscortChildBomberCountDifficulty',
{'/lua/ai/opai/bomberescort_editorfunctions.lua', 'BomberEscortChildBomberCountDifficulty',
{'default_brain','default_master'},
{'default_brain','default_master'}
},
[1] = {'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'default_brain','default_master'},
{'default_brain','default_master'}
},
[2] = {'/lua/editor/platooncountbuildconditions.lua', 'NumBuildersLessThanOSCounter',
{'/lua/editor/platooncountbuildconditions.lua', 'NumBuildersLessThanOSCounter',
{'default_brain','default_builder_name', 1 },
{'default_brain','default_builder_name','1'}
},
Expand All @@ -266,23 +266,23 @@ Scenario = {
{'default_platoon'}
},
BuildConditions = {
[0] = {'/lua/ai/opai/bomberescort_editorfunctions.lua', 'BomberEscortMasterCountDifficulty',
{'/lua/ai/opai/bomberescort_editorfunctions.lua', 'BomberEscortMasterCountDifficulty',
{'default_brain','default_master'},
{'default_brain','default_master'}
},
[1] = {'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'default_brain','default_master'},
{'default_brain','default_master'}
},
},
PlatoonBuildCallbacks = {
[0] = {'/lua/editor/amplatoonhelperfunctions.lua', 'AMUnlockPlatoon',
{'/lua/editor/amplatoonhelperfunctions.lua', 'AMUnlockPlatoon',
{'default_brain','default_platoon'},
{'default_brain','default_platoon'}
},
},
PlatoonAddFunctions = {
[0] = {'/lua/editor/amplatoonhelperfunctions.lua', 'AMLockPlatoon',
{'/lua/editor/amplatoonhelperfunctions.lua', 'AMLockPlatoon',
{'default_platoon'},
{'default_platoon'}
},
Expand All @@ -305,15 +305,15 @@ Scenario = {
{'default_platoon'}
},
BuildConditions = {
[0] = {'/lua/ai/opai/bomberescort_editorfunctions.lua', 'BomberEscortChildBomberCountDifficulty',
{'/lua/ai/opai/bomberescort_editorfunctions.lua', 'BomberEscortChildBomberCountDifficulty',
{'default_brain','default_master'},
{'default_brain','default_master'}
},
[1] = {'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'default_brain','default_master'},
{'default_brain','default_master'}
},
[2] = {'/lua/editor/platooncountbuildconditions.lua', 'NumBuildersLessThanOSCounter',
{'/lua/editor/platooncountbuildconditions.lua', 'NumBuildersLessThanOSCounter',
{'default_brain','default_builder_name', 2 },
{'default_brain','default_builder_name','2'}
},
Expand All @@ -338,19 +338,19 @@ Scenario = {
{'default_platoon'}
},
BuildConditions = {
[0] = {'/lua/ai/opai/bomberescort_editorfunctions.lua', 'BomberEscortChildBomberCountDifficulty',
{'/lua/ai/opai/bomberescort_editorfunctions.lua', 'BomberEscortChildBomberCountDifficulty',
{'default_brain','default_master'},
{'default_brain','default_master'}
},
[1] = {'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'default_brain','default_master'},
{'default_brain','default_master'}
},
[2] = {'/lua/editor/platooncountbuildconditions.lua', 'NumBuildersLessThanOSCounter',
{'/lua/editor/platooncountbuildconditions.lua', 'NumBuildersLessThanOSCounter',
{'default_brain','default_builder_name', 2 },
{'default_brain','default_builder_name','2'}
},
[3] = {'/lua/editor/otherarmyunitcountbuildconditions.lua', 'BrainGreaterThanNumCategory',
{'/lua/editor/otherarmyunitcountbuildconditions.lua', 'BrainGreaterThanNumCategory',
{'default_brain','Player', 5 , categories.NAVAL * categories.MOBILE },
{'default_brain','Player','5','categories.NAVAL * categories.MOBILE'}
},
Expand All @@ -375,15 +375,15 @@ Scenario = {
{'default_platoon'}
},
BuildConditions = {
[0] = {'/lua/ai/opai/bomberescort_editorfunctions.lua', 'BomberEscortChildEscortCountDifficulty',
{'/lua/ai/opai/bomberescort_editorfunctions.lua', 'BomberEscortChildEscortCountDifficulty',
{'default_brain','default_master'},
{'default_brain','default_master'}
},
[1] = {'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
{'default_brain','default_master'},
{'default_brain','default_master'}
},
[2] = {'/lua/editor/platooncountbuildconditions.lua', 'NumBuildersLessThanOSCounter',
{'/lua/editor/platooncountbuildconditions.lua', 'NumBuildersLessThanOSCounter',
{'default_brain','default_builder_name', 2 },
{'default_brain','default_builder_name','2'}
},
Expand Down
Loading

0 comments on commit 384b9b2

Please sign in to comment.