A late guide to DoP modding

By scragar

Well, if your interested read on, otherwise skip it, I’m offering you the choice here.

ok, before you can start your going to need a few things:

  • Good text editor that handles txt format
  • A program that can extract and make zip files, I recommend archive-manager for linux, it let’s you edit the contents without needing to extract and re-compress it, it’s all done as required
  • A copy of the game

So where do you start? Let’s start by assuming we are going to make a fairly common mod, say edit the default bag size.

Now then, you need to find your Assets directory inside the DoP directory.
Inside are 3 zip files, extract the 3rd(it’s name ends in 003 work it out) to a nice safe location(desktop recomended).
Delete everything other than the database directory, you don’t need them for most mods.
Now navigate to the Database directory, inside are a few files, but most importantly, another directory(actualy 3 of them, but we only need 1) called Items.
Let’s look in there, a few more files, including one called bags.gdb open this in your text editor.

Well, you should be able to spot an entry for the Backpack:


Backpack
{
	Base		BaseBag

	Name		$$StartingBackpack$$
	Desc		$$StartingBackpackDesc$$

	TextureName	Textures/icons/items/bags_backpack.tga

	ItemLevel	1

	Size		12

	SpawnChance	0.0

	NoDrop		1
}

You see the bit in bold? That’s telling the game what size to make the bag, now we could edit this file, zip it again and save it, but then, where’s the fun in that, instead we’ll take a different approach, using the overrides keyword, let’s see it in action as a demo


ModBigBackpack overrides Backpack
{
	Size		16
}

see how simple that is? The problem, is then getting this file in a new archive, you need the the archive to contain a directory called Database and the file inside of this directory, so the contents of the zip file should be something like:
Database/yourMod.gdb
few last things to note, the zip files name should start with a lower case letter, as should your text file inside the archive(although your choice of name other than that is in no way important as long as it ends in .gdb )

I know the sounds like a lot to take in, but it’s really simple once you give it a try.

End of lesson 1, I’ll post lesson 2 soon.

Tags: ,

Leave a Reply