[TOOL] CWTools - a mod validating extension for VS Code

  • Crusader Kings II Expansion Subscription

    Subscribe to the CK II Expansion and enjoy unlimited access to 13 major expansions and more!


  • Crusader Kings III Available Now!

    The realm rejoices as Paradox Interactive announces the launch of Crusader Kings III, the latest entry in the publisher’s grand strategy role-playing game franchise. Advisors may now jockey for positions of influence and adversaries should save their schemes for another day, because on this day Crusader Kings III can be purchased on Steam, the Paradox Store, and other major online retailers.


    Real Strategy Requires Cunning

KainAudron

Recruit
95 Badges
Mar 17, 2012
8
0
  • Stellaris: Necroids
  • Cities: Skylines - Campus
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings III
  • Battle for Bosporus
  • Europa Universalis IV
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Rights of Man
  • Stellaris: Federations
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Reapers Due
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Conclave
  • Stellaris: Distant Stars
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Europa Universalis IV: Golden Century
  • Stellaris: Megacorp
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Horse Lords
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Cossacks
  • Stellaris
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Legacy of Rome
  • Hearts of Iron IV: La Resistance
  • Crusader Kings II: Rajas of India
Quick Question:

Is this still being worked on? The last update of CWTools was in september and with the new Stellaris version/dlc I seem to be getting more errors when importing the same vanilla files before making any changes to them than before the new version/dlc.
 

Caligula Caesar

Stellaris Technical Scripter
64 Badges
Nov 1, 2014
703
873
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Third Rome
  • Heir to the Throne
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Europa Universalis III
  • Europa Universalis IV: Pre-order
  • Hearts of Iron IV: Cadet
  • Stellaris: Lithoids
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Common Sense
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Distant Stars
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Crusader Kings III
  • Stellaris: Federations
  • Age of Wonders: Planetfall
  • Imperator: Rome Deluxe Edition
  • Crusader Kings II: Holy Fury
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
It is, but I don't really care that much about some lines being red, so I haven't put as much effort into making sure none are than I might have done.

Though there have been updates since September, it automatically updates the rules without having to update the extension. (I can't remember, maybe you need to install git for that, though)
 

17blue17

Field Marshal
68 Badges
Nov 9, 2003
6.215
260
Visit site
  • Stellaris: Galaxy Edition
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • 500k Club
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Necroids
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Heir to the Throne
  • Europa Universalis III Complete
  • Leviathan: Warships
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
Any chance it could be updated for EU4 1.30.4? :D
I already updated cw_tools for eu4 1.30.4 Please read post 18 in the eu4 cwtools forum thread for known issues. If you have any false positives for eu4 please report them in the eu4 cw tools thread.:D
 
Last edited:

KINGYOLOSWAG

Corporal
71 Badges
Mar 30, 2017
26
0
  • Stellaris: Necroids
  • Europa Universalis IV: Cossacks
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Third Rome
  • Stellaris - Path to Destruction bundle
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Europa Universalis IV: Golden Century
  • Europa Universalis 4: Emperor
  • Battle for Bosporus
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Stellaris: Federations
  • Hearts of Iron IV: La Resistance
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Dharma
  • Stellaris: Distant Stars
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Common Sense
  • Victoria 2
  • Europa Universalis III: Collection
  • Europa Universalis IV
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome
  • Stellaris: Megacorp
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Res Publica
I think I'm stupid, I spent like 2 hours trying to figure out why it's not giving me any auto completion choices, tooltips, or letting me go to any definition or references.
The only thing it seems to be doing is coloring, I also seem to have generate options for various event types. Other than that, nothing works.

I'm trying to work on a Stellaris mod, so I thought that this mod has support for it.
 

17blue17

Field Marshal
68 Badges
Nov 9, 2003
6.215
260
Visit site
  • Stellaris: Galaxy Edition
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • 500k Club
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Necroids
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Heir to the Throne
  • Europa Universalis III Complete
  • Leviathan: Warships
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
I think I'm stupid, I spent like 2 hours trying to figure out why it's not giving me any auto completion choices, tooltips, or letting me go to any definition or references.
The only thing it seems to be doing is coloring, I also seem to have generate options for various event types. Other than that, nothing works.

I'm trying to work on a Stellaris mod, so I thought that this mod has support for it.
I understand that it can be frustrating. I had trouble myself. :) I see you have both stellaris and eu4 for games and the instructions for cw tools is the same for both. So please go over to the cw tools thread on the eu4 forum and read posts 1, 15, and 18. I spent a lot of time trying to get the instructions in the eu4 cw_tools thread to be helpful.

:)
 

CommonAnts

Recruit
14 Badges
Sep 18, 2018
2
1
  • Europa Universalis IV
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Crusader Kings II
Hello. I'm using CWTools for EU4 modding, but I find that CWTools never loaded keys in my mod. For example, I added a new tag XXX, but CWTools still tells me "Expecting a country_tags value" when I use "tag = XXX". It also warns me for localisations and sends error for me when I use global flags, new religions etc. Even though I created them in my mod.
WHY DID CWTools NEVER READ MY MOD's NEW DECLARATIONS?

By the way, it's said that "tree view cwtools-files never registered", and I don't know how to do with this.
 
  • 1
Reactions:

17blue17

Field Marshal
68 Badges
Nov 9, 2003
6.215
260
Visit site
  • Stellaris: Galaxy Edition
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • 500k Club
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Necroids
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Heir to the Throne
  • Europa Universalis III Complete
  • Leviathan: Warships
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
Hello. I'm using CWTools for EU4 modding, but I find that CWTools never loaded keys in my mod. For example, I added a new tag XXX, but CWTools still tells me "Expecting a country_tags value" when I use "tag = XXX". It also warns me for localisations and sends error for me when I use global flags, new religions etc. Even though I created them in my mod.
WHY DID CWTools NEVER READ MY MOD's NEW DECLARATIONS?

By the way, it's said that "tree view cwtools-files never registered", and I don't know how to do with this.
In the future please post eu4 questions in the eu4 forum cw tools thread as I check there more often :)

There could be several reasons why cw tools is not finding your new tag or localizations etc including:

1) vs code is not very good at noticing changed files so you often need to close vscode and then reopen vscode and then have cw_tools load the project and validate the files again. This can be required frequently when editing your files. This is a known problem with vscode and there is no known fix other than closing and reopening from time to time.

2) your mod is located in the wrong place like the mod folder under steam rather than the mod folder in my documents. Never use the mod folder under steam.

3) your mod is zipped or is a steam mod. Cw_tools only works with local mod ( not steam mods ) and they must be unzipped.

4) if your mod is a local non steam mod in your documents then please delete any descriptor file for the mod and make sure the .mod file uses a short path like path="mod/Fred" and not a long path with program files etc.

If things are still not working please zip up your mod and .mod file ( need both) and upload to someplace like mediafire and then post a download link in the cw_tools thread on the eu4 Paradox forum and I will take a look. I need it zipped up so it is easy to download the whole thing.

As far as your tree error I have never seen this. Can you look at posts 1, 15, and 18 in the eu4 forum cw tools thread and make sure you have things installed correctly? I will also ask the author of cw_tools Dayshine about that error.

:)
 

17blue17

Field Marshal
68 Badges
Nov 9, 2003
6.215
260
Visit site
  • Stellaris: Galaxy Edition
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • 500k Club
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Necroids
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Heir to the Throne
  • Europa Universalis III Complete
  • Leviathan: Warships
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
Hello. I'm using CWTools for EU4 modding, but I find that CWTools never loaded keys in my mod. For example, I added a new tag XXX, but CWTools still tells me "Expecting a country_tags value" when I use "tag = XXX". It also warns me for localisations and sends error for me when I use global flags, new religions etc. Even though I created them in my mod.
WHY DID CWTools NEVER READ MY MOD's NEW DECLARATIONS?

By the way, it's said that "tree view cwtools-files never registered", and I don't know how to do with this.
The author does not understand why the tree view error happened. I has happened to a couple other people and they got it to work by deleting a strange file in the mod directory. Usually happens when cw_tools opens and shows paradox language instead of stellaris or eu4 then changes to stellaris or eu4. Maybe something new that is vscode related. If you have any strange non game files ( also not .cwtools ) in the mod directory then back it up and delete it and see if error goes away. You will need to restart vscode.
 
Last edited: