cwtools / cwtools-hoi4-config

.cwt config for Hearts of Iron IV
MIT License
16 stars 20 forks source link

Logging issue in decisions #59

Closed hiddengearz closed 4 years ago

hiddengearz commented 4 years ago

The decission below creates the following error: Localisation key inline uses command GetDateText which does not exist in data type Country.\nor\nLocalisation key inline uses command Root which does not exist in data type Country.

SOV_CHE = {
    sov_CHE = {
        allowed = { tag = SOV }

        available = {
            tag = SOV
            CHE = {
                NOT = {
                    controls_state = 672
                }
            }
        }

        activation = {
        }

        Is_good = yes

        fire_only_once = yes

        timeout_effect = {
            log = "[GetDateText]: [Root.GetName]: Decision timeout sov_CHE"
        }

        cost = 50
        complete_effect = {
            log = "[GetDateText]: [Root.GetName]: Decision sov_CHE"
            country_event = russia.1
        }

        ai_will_do = {
            factor = 1
        }
    }
}

I'm not sure what's the best way to go on about this as the following allows localisation which is correct

https://github.com/cwtools/cwtools-hoi4-config/blob/ab362fe5336fc3eaded3a75541e7a41bfb3fcc91/Config/effects.cwt#L386-L388

and localisation allows GetDateText & GetName

https://github.com/cwtools/cwtools-hoi4-config/blob/ab362fe5336fc3eaded3a75541e7a41bfb3fcc91/Config/localisation.cwt#L22

What would be the best way to resolve this?

hiddengearz commented 4 years ago

Has been resolved in one of the updates since this issue was created.