5 ms·
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
by Cyberdog 4y ago
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).
https://witcher-games.fandom.com/wiki/Witcher_Script https://witcher-games.fandom.com/wiki/Witcher_Script
Interesting. CDPR had a NIH problem. At any rate I'm guessing GitHub is misidentifying something.
- dljsjr 4y agoIf 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.
- jcupitt 4y agonip2 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/_list.def#L339-L363 https://github.com/libvips/nip2/blob/master/share/nip2/start... All of the menus are implemented in this thing.
- electroly 4y agoYou 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. *.ws linguist-documentation
- jcupitt 4y agoHi electroly, thanks for the tip!
- game-of-throws 4y ago> CDPR had a NIH problem. 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.