Closed insilications closed 3 months ago
Yes, I have the same problem, the language suggestion inside on_action/effect is missing. Without language suggestion is quite painful while work inside the on actions.
I can't reproduce the issue, it should've been fixed in https://github.com/cwtools/cwtools-hoi4-config/commit/98113cb1bf43812d5753f9ea937b31d3a483ce3a
Please report hoi4 issues here https://github.com/cwtools/cwtools-hoi4-config/issues
Yes, it seems it should've been fixed. I can't test it right now.
Everything else is working perfectly. It seems that https://github.com/cwtools/cwtools-hoi4-config/blob/master/Config/on_actions.cwt is wrong. I've managed to fix it by changing some aspects of it. I've read the wiki for CWTools (.cwt config file format guidance and architecture). I'm a C/C++ programmer primarily and I like FP, but I'm having a hard time understanding the F# that parses and generates the config rules used by the language server. So I have no idea what is really going on behind my "fix".
As an example of my changes, my modified on_actions.cwt:
Config/on_actions.cwt:
The on_actions used inside my mod:
It is even registering the save_event_target_as = the_nuke in the model for proper usage in localisation. In the latest upstream
cwtools-hoi4-config
, that also was not working properly.In the attached screenshots you can see the the Scope Context information inside on_actions being successfully provided inside both
on_nuke_drop
andon_new_term_election
.I have no idea what is really going on behind my "fix".