KeyNotFoundException when creating new airstrike power
Posted: Tue Jun 10, 2014 5:42 pm
I'm trying to recreate the spy-plane dropping a parabomb nuke from one of the red alert aftermath missions.
So I copied and mutilated the airstrike power, U2 plane and mininuke weapon.
But I keep getting a KeyNotFoundException whenever I try and use the airstrike.
Exception and code information can be found at: http://pastebin.com/iTVgZN1s
Any help at spotting what exactly is causing the error would be appreciated.
EDIT:
Never mind, I found my problem.
I was under the impression than the period in UBERU2.paranuke was trivial (i.e. simply part of the name with no special parsing attached), but I was wrong. Once I defined UBERU2 it worked without a hitch.
EDIT2:
After playing around with the period syntax some more, I realised I don't actually understand what it does. (Surprise, surprise.)
I though it does the same as "Inherits:", but that doesn't appear to be the case.
I failed to find an explanation of it on the Github Wiki.
Could anyone explain to me what the function of a period in a unit/structure actor is?
Ex: BADR.bomber:
Also, what is the function of the ^ in front of the actor name in the defaults.yaml?
Ex: ^Vehicle:
So I copied and mutilated the airstrike power, U2 plane and mininuke weapon.
But I keep getting a KeyNotFoundException whenever I try and use the airstrike.
Exception and code information can be found at: http://pastebin.com/iTVgZN1s
Any help at spotting what exactly is causing the error would be appreciated.
EDIT:
Never mind, I found my problem.
I was under the impression than the period in UBERU2.paranuke was trivial (i.e. simply part of the name with no special parsing attached), but I was wrong. Once I defined UBERU2 it worked without a hitch.
EDIT2:
After playing around with the period syntax some more, I realised I don't actually understand what it does. (Surprise, surprise.)
I though it does the same as "Inherits:", but that doesn't appear to be the case.
I failed to find an explanation of it on the Github Wiki.
Could anyone explain to me what the function of a period in a unit/structure actor is?
Ex: BADR.bomber:
Also, what is the function of the ^ in front of the actor name in the defaults.yaml?
Ex: ^Vehicle: