Soldak Home   Drox Operative   Din's Curse   Depths of Peril   Zombasite  

Go Back   Soldak Entertainment Forums > Din's Curse > Din's Curse modding
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 01-10-2019, 05:18 PM
Anotheragain's Avatar
Anotheragain Anotheragain is offline
Amateur
 
Join Date: Oct 2016
Posts: 17
Default Mod to always drop 16 slot bags?

I recently got back into playing Din's Curse and I'm trying to make a mod where every monster I kill always drops a bag but I'm having trouble:

So I made modBags.gdb in /Database/Items

Code:
modBags overrides BaseBag
{
	Base		BaseItem

	ItemType	Bag

	BaseOnly	1

	ModifiersAllowed	0

	LevelRequirement	1

	ModelName	Models/Items/bag.mdl
	UseModelName	Models/Items/Items/bag.mdl
	DropSoundName	Sounds/Items/bag.wav
}

modBags overrides Bag7
{
	ItemLevel	1

	Size		16

	SpawnChance	100.0
}
Then I made modBags.gdb in /Database

Code:
modBags overrides SpawnSystem
{
	

ItemNormalChance 100
ItemCommonChance 15
ItemUncommonChance 100
ItemRareChance 100
ItemVeryRareChance 100
ItemSetChance 100
ItemUniqueChance 70
ItemArtifactChance 25
ItemLegendaryChance 25


}
I understand that for those particular bags to drop I'd have to mod the drop rate of normal items in general too but that's about it.

Not sure what I'm doing wrong? I would just like the monsters to drop bags without affecting the drop rates of anything else (I'm not looking for more Legendaries or for it to suddenly get in the way of Legendaries dropping for example).

Last edited by Anotheragain : 01-10-2019 at 05:20 PM.
Reply With Quote
  #2  
Old 01-10-2019, 06:02 PM
Shadow's Avatar
Shadow Shadow is offline
Super Moderator
 
Join Date: Jun 2007
Location: Dallas, TX
Posts: 10,091
Default

I don't know if it is the only problem, but you can't make all 3 overrides use the name modBags, they each need to be unique names.
__________________
Steven Peeler
Designer/programmer
Depths of Peril, Kivi's Underworld, Din's Curse, Drox Operative, Zombasite, Din's Legacy, Drox Operative 2, & Din's Champion
Wishlist Din's Champion
Reply With Quote
  #3  
Old 01-10-2019, 08:12 PM
Anotheragain's Avatar
Anotheragain Anotheragain is offline
Amateur
 
Join Date: Oct 2016
Posts: 17
Default

Ok I tried again:

modBags.zip/Directory/Items/modBags1.gdb

Code:
modBags1 overrides BaseBag
{
	Base		BaseItem

	ItemType	Bag

	BaseOnly	1

	ModifiersAllowed	0

	LevelRequirement	1

	ModelName	Models/Items/bag.mdl
	UseModelName	Models/Items/Items/bag.mdl
	DropSoundName	Sounds/Items/bag.wav
}
modBags.zip/Directory/Items/modBags2.gdb

Code:
modBags2 overrides Bag7
{
	ItemLevel	1

	Size		16

	SpawnChance	100.0
}
modBags.zip/Directory/modBags3.gdb

Code:
modBags3 overrides SpawnSystem
{
	

ItemNormalChance 100


}
But it still doesn't work

Last edited by Anotheragain : 01-10-2019 at 08:40 PM.
Reply With Quote
  #4  
Old 01-11-2019, 12:33 AM
joku joku is offline
Champion
 
Join Date: Jul 2010
Posts: 193
Default

All files in your mod should be structured as follows:
Quote:
modBags.zip/Database/modBags1.gdb
Even if the file you're overriding is in "Database/Items", your override file should still be in the "Database" folder.
Reply With Quote
  #5  
Old 08-13-2019, 02:47 AM
Anotheragain's Avatar
Anotheragain Anotheragain is offline
Amateur
 
Join Date: Oct 2016
Posts: 17
Default

Sorry, this is a really late reply, but I'm still trying to finish this. I started a new job that prevented me from working on this.

Code:
modBags overrides SpawnSystem
{
	MonsterNormalItemChance	100

	ItemNormalChance 100
}

modBags overrides Bag7
{
	ItemLevel	1
	
	SpawnChance	100
}
I put it all in one file and it worked. It doesn't do exactly what I wanted to do, drop a bag with every enemy, but the drop rate has increased so much that it's basically the same thing.

At this point, I'm just trying to know more about what I did and learn from this. With SpawnChance, I think almost every bag that spawns is a 16 slot bag? (I still run across some Pouches and such.) MonsterNormalItemChance means that every item that drops is at least normal so that bags will always drop? I'm not sure what the difference between MonsterNormalItemChance and ItemNormalChance is.
Reply With Quote
  #6  
Old 08-13-2019, 10:53 AM
Shadow's Avatar
Shadow Shadow is offline
Super Moderator
 
Join Date: Jun 2007
Location: Dallas, TX
Posts: 10,091
Default

You want each of those modBags parts to be unique.

ItemNormalChance is the chance when an item drops that it is at least a normal rarity.

MonsterNormalItemChance is the chance that a normal monster drops an item.
__________________
Steven Peeler
Designer/programmer
Depths of Peril, Kivi's Underworld, Din's Curse, Drox Operative, Zombasite, Din's Legacy, Drox Operative 2, & Din's Champion
Wishlist Din's Champion
Reply With Quote
  #7  
Old 08-14-2019, 10:39 PM
Anotheragain's Avatar
Anotheragain Anotheragain is offline
Amateur
 
Join Date: Oct 2016
Posts: 17
Default

Ok, so following what you said (and I know you said it in your first post too), I think I ended up doing what I did before. Sorry, I don't understand what you said:

modBags.zip/database/modBags

Code:
modBags overrides Bag7
{
	ItemLevel	1
	
	SpawnChance	100
}
modBags.zip/database/modBags1

Code:
modBags1 overrides SpawnSystem
{

// ItemNormalChance is the chance when an item drops that it is at least a normal rarity.

	ItemNormalChance 100

// MonsterNormalItemChance is the chance that a normal monster drops an item.

	MonsterNormalItemChance	100

}
(I included your explanations as comments so that I would know what I was doing in the future.)

I'm not sure I know what I'm doing anymore though. After testing this version it seems to work the same as the other version. I've basically accomplished what I want to do, but it's not perfect? I guess one problem I have with it is that it seems to be affecting chest drops too. I'd like to solve that.
Reply With Quote
  #8  
Old 08-15-2019, 10:58 AM
Shadow's Avatar
Shadow Shadow is offline
Super Moderator
 
Join Date: Jun 2007
Location: Dallas, TX
Posts: 10,091
Default

Well now everything looks correct from syntax level. You can't really affect what monsters drop without also affecting what chests drop though.
__________________
Steven Peeler
Designer/programmer
Depths of Peril, Kivi's Underworld, Din's Curse, Drox Operative, Zombasite, Din's Legacy, Drox Operative 2, & Din's Champion
Wishlist Din's Champion
Reply With Quote
  #9  
Old 08-16-2019, 10:31 PM
Anotheragain's Avatar
Anotheragain Anotheragain is offline
Amateur
 
Join Date: Oct 2016
Posts: 17
Default

Thanks! Can I ask why they need to be named differently and in 2 different files?
Reply With Quote
  #10  
Old 08-17-2019, 03:07 PM
Shadow's Avatar
Shadow Shadow is offline
Super Moderator
 
Join Date: Jun 2007
Location: Dallas, TX
Posts: 10,091
Default

They don't need to be in 2 different files. Usually database entries need to have unique names or only 1 of them will be used, although with overrides it is possible they would both be fine.
__________________
Steven Peeler
Designer/programmer
Depths of Peril, Kivi's Underworld, Din's Curse, Drox Operative, Zombasite, Din's Legacy, Drox Operative 2, & Din's Champion
Wishlist Din's Champion
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 08:09 AM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2007 - 2024 Soldak Entertainment, Inc.