Code: Select all
17:34:12.876545 {0x00005aa8} [error] client : reportparseerror.cpp:92 : C:/Users/Geoff/Desktop/FOSDK11/FreeOrion/default\scripting/ship_parts\Stealth\ST_COATING.focs.txt:4:18: Parse error. Expected string here:
Part
name = "ST_COATING_GG"
description = "ST_COATING_GG_DESC"
exclusions = [[ST_COATING_GG]]
^
mountableSlotTypes = Internal
buildcost = 2 * (1 +
(1 - (GameRule name = "RULE_SHIP_PART_BASED_UPKEEP")) * (
(0.01 * ShipDesignsOwned empire = Source.Owner) +
(0.01 * ShipDesignsInProduction empire = Source.Owner)) +
17:34:12.881049 {0x00005aa8} [warn] client : parse.cpp:526 : A parser failed while parsing "C:/Users/Geoff/Desktop/FOSDK11/FreeOrion/default\scripting/ship_parts\Stealth\ST_COATING.focs.txt"
Code: Select all
17:39:57.330146 {0x0000603c} [error] client : reportparseerror.cpp:92 : C:/Users/Geoff/Desktop/FOSDK11/FreeOrion/default\scripting/ship_parts\Stealth\ST_COATING.focs.txt:5:4: Parse error. Expected unnamed-rule here:
Part
name = "ST_COATING_GG"
description = "ST_COATING_GG_DESC"
exclusions = "ST_COATING_GG"
mountableSlotTypes = Internal
^
buildcost = 2 * (1 +
(1 - (GameRule name = "RULE_SHIP_PART_BASED_UPKEEP")) * (
(0.01 * ShipDesignsOwned empire = Source.Owner) +
(0.01 * ShipDesignsInProduction empire = Source.Owner)) +
(GameRule name = "RULE_SHIP_PART_BASED_UPKEEP") * (
Code: Select all
class = Stealth
capacity = 20
Code: Select all
17:42:36.764861 {0x00003d18} [error] client : reportparseerror.cpp:92 : C:/Users/Geoff/Desktop/FOSDK11/FreeOrion/default\scripting/ship_parts\Stealth\ST_COATING.focs.txt:31:39: Parse error. Expected unnamed-rule here:
effectsgroups = [
EffectsGroup
scope = Source
activation = ContainedBy And [
System
Contains Planet type = Gas_Giant
^
]
accountinglabel = "GAS_GIANT_FIELD_STEALTH"
effects = SetStealth value = Value + 20
stackinggroup = "STEALTH_GG_STACK"
Another error complains about stackinggroup being in the wrong place, so I move it before effects =. Then another search to realize it should be before accountinglabel.
Then there are no errors in the log and it shows up in the pedia.