cwtools / cwtools-vscode

A VS Code extension providing language server support for paradox script files using cwtools
Other
88 stars 12 forks source link

CW241 Unexpected Node #4

Closed juliemars closed 5 years ago

juliemars commented 5 years ago

Hi

I am working on a Mod, and I am getting a message [CW241] Unexpected Node heir_title_female in ruler [CW241]

I have checked by creating an empire in game and this is the correct name to use for Female heir's. heir_title_female ="Princess Royal"

Any ideas? I know I can safely ignore this but wanted to check if it's something obvious.

tboby commented 5 years ago

Is this in a prescripted country? The rules for that block are defined here: https://github.com/tboby/cwtools-stellaris-config/blob/37acbf18ddb1a9e38de0cc121d6bb349c9ca9f23/config/prescripted_countries/prescripted_countries.cwt#L102

It looks like it's only got heir_title not female. If it works feel free to make a pull request with the change, or I can update the rules :)

Is there anywhere else you can specify that?

juliemars commented 5 years ago

Hi yes it's a prescripted country I am working on, this is the only place for it from what I can see on the Wiki and how the game handles it if you manually create a ruler for an empire.

I think I have created a pull request for this :)

tboby commented 5 years ago

Merged your pull request. You can get that update straight away if you change the setting "rules_version" to "latest". Otherwise it'll be in the next "stable" release :)