GitHub says that 32.3% of the codebase is in "Witcher Script." What the heck is that?
Witcher Script (.ws) is the primary scripting language for The Witcher 3: Wild Hunt. A very large chunk of the game's logic is written in Witcher Script. Mods can override scripts and thus can drastically change game behavior. Witcher Script is either based on or identical to ActionScript 3 (and very similar to UnrealScript).
nip2 has `.ws` files for storing workspaces (just a big chunk of XML), and `.def` files for its own scripting language.
The nip2 scripting language is also very odd: it's something like dynamically typed Haskell, but with classes. You can see roughly what it looks like here:
You can use a linguist directive in your .gitattributes file if you're interested in fixing GitHub's language identification for those files. A line like the following would hide these files from GitHub's language meter bar.
Bit of a tangent, but I don't think that's true. It's just ActionScript with a cute file extension - just like .docx is .xml with a cute file extension.
Comments
GitHub says that 32.3% of the codebase is in "Witcher Script." What the heck is that?
https://witcher-games.fandom.com/wiki/Witcher_Script
Interesting. CDPR had a NIH problem. At any rate I'm guessing GitHub is misidentifying something.
If you hit `T` to open the file searcher and look for `.ws` it brings up a bunch of "Workspace" XML files. So it's misidentifying a config file.
nip2 has `.ws` files for storing workspaces (just a big chunk of XML), and `.def` files for its own scripting language.
The nip2 scripting language is also very odd: it's something like dynamically typed Haskell, but with classes. You can see roughly what it looks like here:
https://github.com/libvips/nip2/blob/master/share/nip2/start...
All of the menus are implemented in this thing.
You can use a linguist directive in your .gitattributes file if you're interested in fixing GitHub's language identification for those files. A line like the following would hide these files from GitHub's language meter bar.
Hi electroly, thanks for the tip!
Bit of a tangent, but I don't think that's true. It's just ActionScript with a cute file extension - just like .docx is .xml with a cute file extension.