A Noob's Guide to Assets, Plugins and Scripts (or, What Does This Bit Do?)

I posted this as a comment in someone else's thread earlier today, but I thought others might find it useful as a primer on what you're actually *doing* when you shimmy that load order around and why removing some mods can break your game.

ASSETS

Let's say you make a mod that puts a big red and white target on every armour piece in the game. All you need to do is make the new textures and put them in an archive file, and bish bash bosh, job's a good'un. It's just replacing assets, so no scripting needed and no plugins needed.

PLUGINS

Now let's say you're doing a mod to add the Black Knight from Monty Python into the game. He's not gonna do anything interesting, just hang around in Whiterun like the guards do. So you make your nice new meshes and textures, and you can load those in, but you still need to make a .esp plugin that basically tells the game "Okay, I'd like you to add a new NPC, use this mesh and texture, use the guard AI, in this location" and so forth. So then you've got a mod that loads in assets and loads a plugin, but still doesn't use scripts.

SCRIPTS

But you're sitting there and thinking "OK, that looks cool, but I'd love to reenact that scene from Holy Grail." Good plan. But that involves hacking the arms and legs off an NPC, and the Skyrim engine doesn't let you do that. BUT if you're a good enough coder, you might be able to write a script that lets you do that. That runs using Papyrus, and that is what it means by a Papyrus script.

WHY LOAD ORDER IS IMPORTANT

So it becomes obvious now why the load order is so important. Because things get loaded in one by one, and the things that get added later override stuff that was added earlier. So if you've got a mod that puts a painting of a bunch of flowers on every armour and you load it after the one that gives you a big red target, then you'll never see the target in game because it's loading in those textures with the target on, and then when the flowers mod comes along it forgets about all the armour textures it's already put in and loads the flowers ones instead.

The same goes for plugins. If you've got a plugin that changes a NPC's name to to Jeff and you load it after another plugin that changes the same NPC's name to Mr. Fartworthy and gives him a cool hat, then the one you load second will overwrite everything else in that NPC's file and you'll just see Jeff ingame - without the hat. That's what patches do - in this case the mod developer might release a patch which renames him to Jeff Fartworthy and gives him the hat, making a new file which has both the changes made by the first mod and the changes made by the second.

HOW THEY CAN GO WRONG

So you can get mods that have the three elements above - assets, plugins and scripts - in any combination, it's not like a stack 1-2-3. But the order they're listed here is kinda increasing order of "likely to break your game". If an assets mod doesn't work, what usually happens is that those new assets won't show up in the game. Plugins, especially those that change locations, NPCs and quests, might break your savegame in terms of you not being able to carry on a quest, because for example they've killed off a character who you need to talk to to continue a quest or something like that. Scripts are the ones that cause crashes, though. Because if you remove the script, your save game might well have little bits of the code from the script left in it. So when you get to something that accesses that code, it might go "Oh, okay, access the code from Realistic and Immersive Farts. Wait- where is it? I can't find Realistic and Immersive Farts! Oh gods! What do I do? What do I CRASH CRASH CRASH CRASH"

Of course, that doesn't mean mods will do the above if you remove them - it's just that if they do go wrong, that's most likely how they'll go wrong.

Hope all that makes sense - that's what I've gleaned from my couple of weeks modding. If any actual mod developers want to chime in where I've got bits wrong, please please please do!

Posted Jun 25, 2018, 6:47 PM UTC · edited

249
Loading comments…