# Thread: Dei Gratia for DW

1. @keinwyn
if you make an update, plz correct an other small bug:
history/provinces/202 - avignon.txt
should be added a line "discovered_by = ottoman"

its only a small one, the ottoman-techgroup was newly added with DW for TUR and only visible playing The Ottomans.

EDIT:
and the next i found - DW renames the heretico comburendo decision and modifier. so all entries of that in DG_religion (not only the decision, also an effect of the secular_government decision) and the modifier-def in the event_modifiers must be changed.
i did that (and the avi-change) at attached file:

EDIT: attachement removed - see next post

2. after a new betapatch came out, some adaptions are necessary. i did that and put all my changes from the download-version in post #1 into the attached file. overwrite the files from the download with the attachement and DG should work better.

EDIT: just uploaded a new version (DG_fixes_0622b) with an additional fix for white flags of hussite rebels. if you use the fix after starting a game with unfixed Dei Gratia, it is necessary to remove the following files from ../mod/Dei Gratia/gfx/flags/: flagfiles.dds and flagfiles.txt to come into effect. the game will create new ones on next gamestart.

@keinwyn:
- the attached file includes all changes from post #27, #38 and #41
- also i add a fix for white flags of hussite_rebels
- for adaption to new betapatch only the cb_types.txt get a changed line 758 and after my changes of comquest-missions-file are included in the patch, i removed that from the fix.

EDIT: attachment removed -> new version @post #1

3. Would it be possible to remove the bug that spams Jewish nations from the True Faith Event?
Thanks for the update.

4. Originally Posted by starwarsfan541
Would it be possible to remove the bug that spams Jewish nations from the True Faith Event?
Thanks for the update.
should be possible, but i have it never seen. i´ll take a look next days...

6. Originally Posted by Calipah
have keywin informed and hope, he correct that ASAP.

7. Eh? They shouldn't die... anyone want to recommend a RELIABLE file host? *growls and mutters incoherently*

EDIT: tried uploading the new one and that didn't work. I guess there is a problem with their site. For the moment I'll just upload it to the forum.

@mate - FYI your inbox is full.

8. You can upload the mod directly here to the forum. It's not so large, after all. Or, get dropbox. It's a nifty filesharing, free for the first 1GB (I think), and you can set single files as "public download" and get a link.

EDIT: If you want, I can upload it to my dropbox account and paste the public link into the first post.

9. Originally Posted by Keinwyn
@mate - FYI your inbox is full.
oops, thx for info. going to delete old stuff now...

10. FIXED SETUP

- now it is also possible to play countries with zoroastrian or jewish religion from start without spamming "True Faith" -> wasn´t implemented at original DG
- wrong modifier de_heretico_comburendo fixed -> name was changed in DW, so it became buggy.

to use, replace DG_Setup.txt in .../mod/Dei Gratia/events/ with the file from the attached zip

EDIT: attachment removed, see post #52

11. I would like to use this in my personal mod that I plan to release within the next two weeks, how do I credit/ ask permission from?

12. Adaption to Betapatch 5.1 (12th July 2011)

some small changes to play DG with the newest betapatch. the changed SETUP from post #50 is also included.

for installation expand the attached zip-file to your mod-folder and replace the original DG-files.

Edit: changed static_modifiers and added religion.txt to attachement. my first idea goes wrong and so i changed the colonists values.

changelog:
 - common/rebell_types.txt, common/static_modifiers.txt: inserted new values from the last 2 beta-patches. REMOVED: - common/static_modifiers.txt: adding a basevalue of 1.0 colonist to all to modell the changes from the patch for basevalues for colonists at religion.txt - common/religion.txt: added small colonist-bonus for some christians, added annex = yes to primitive pagans as vanilla does - events/DG_SETUP.txt: see post 50 - localisation/DG_religion.csv: replace a wrong \$ with § for dharmic havens desc to make it correct shown ingame.

EDIT: attachment removed -> for new version see post #1

13. 
-Included mate's changes.
-new domestic panel with more space for advisor info.
-new event gfx to fit in the longer descriptions (note: didn't bother to find out how long the longest was, so might be too short still...)
-setup is now called from the history files so it will fire immediately upon starting a new game.
[/Edit]

Edit2: dammit you edited just before me... i'll add those and reupload in a min, but i'm gonna go make myself some food right now.
E3: OK, uploaded including the changes of mate's edit.

Originally Posted by starwarsfan541
I would like to use this in my personal mod that I plan to release within the next two weeks, how do I credit/ ask permission from?
As stated in the first post all credit goes to dharper.

For asking permission: it isn't necessary, however it is subject to dharper's approval (as is this conversion) should he ever decide to express it.

Originally Posted by safferli
You can upload the mod directly here to the forum. It's not so large, after all. Or, get dropbox. It's a nifty filesharing, free for the first 1GB (I think), and you can set single files as "public download" and get a link.

EDIT: If you want, I can upload it to my dropbox account and paste the public link into the first post.
Thanks for the offer, It seems they were just updating their site, so I'll stick with them for the moment. I'll take a look at dropbox for the future though.

14. Would it be possible to upload the mod to the forum as well? I much prefer to download from the forum than from these file-sharing site (I use script blockers).

15. The problem with uploading it to the forum is that there will come a time when I need the space, and I don't want to mess around deleting DG and uploading it to a file share at a random future date when i'min the middle of something else.

If it is a real problem I can provide patch versions as well in the same way mate does.

Edit:
Here it is... Attachment 38059

Edit: now included in the main version.

Also fixed a minor bug with setup events firing twice. (haven't added to the main upload, if it really bothers you just download this and replace the file decisions/religion.txt)

16. The problem with uploading it to the forum is that there will come a time when I need the space, and I don't want to mess around deleting DG and uploading it to a file share at a random future date when i'min the middle of something else.

If it is a real problem I can provide patch versions as well in the same way mate does.

Edit:
Here it is... Dei Gratia.rar

Also fixed a minor bug with setup events firing twice. (haven't added to the main upload, if it really bothers you just download this and replace the file decisions/religion.txt)
Keinwyn, I have to replace all the files in this update, with the 1st post, right?

17. Originally Posted by ChristianMolina
Keinwyn, I have to replace all the files in this update, with the 1st post, right?
no its not necessary. the difference between both versions is only the religion.txt at /mod/Dei Gratia/decisions/.
and its only a fix, if you have problems with firing the setup-event twice on gamestart. if that not happens for you, the version from post #1 will be fine.

18. I don't know if it is the place to say so, but this is an awesome mod! I no longer feel ashamed when I try to convert provinces, now that I assume I'm not killing the heretics, but just converting them by predication. I think PI should add it, and that wouldn't be so difficult.

Also, I proposed in the forum few weeks ago to make the relation decreased linked with the force-conversion rather than with a fixed modifier which harm relations with countries of other faiths. You went more far than me by putting events which decrease relations with other faith neighbors, which I like, but I still think it should be possible to put at 0 the relation modifier for having another religion and just give a possibility to force convert, which could lead to a drop in relationship with every countries of the religion you are harming.

Combined with a lesser chance of soft conversion when the province you are trying to convert is not of your culture, I see it as a way to solve many problems:
• Ottoman Empire would be unable to convert the Balkans unless by being hated by all the Europeans countries.
• An historical Austria would be hated by the protestant countries until it forced converted all its non-accepted culture provinces (same for Spain against Netherland, in fact).
• The natives would not hate Europeans at the discovery of America, but later.
• Relations would return to normal once the countries would be religiously unified or tolerant of other religions (as for France with Nante edict, as for Prussia-Russia-Austria agaisnt Poland, as for the coalitions against Napoleon, etc.)

19. @Keinwyn;

I made the changes necessary to use the Dei Gratia artwork for the Curia & HRE windows.

the College of Cardinals;Sacra Romanum Imperium;The actual artwork is included in your package but it was unreferenced and needed configuration.

All four files below should be added to the mod\Dei Gratia\interface directory.

First the papacy.gfx file...
Code:
spriteTypes = {

spriteType = {
name = "GFX_papacy_bg"
texturefile = "mod\\Dei Gratia\\gfx\\interface\\vatican_bg.tga"
}

spriteType = {
name = "GFX_cardinal_banner"
texturefile = "gfx\\interface\\cardinal_banner.tga"
}

}

}
...and now the papacy.gui file.
Code:
guiTypes = {

windowType = {
name = "papacy_window"
backGround = ""
position = { x = 0 y = 0 }
size = { x = 1024 y = 100 }
moveable = 0
dontRender = ""
horizontalBorder = ""
verticalBorder = ""
fullScreen = yes

iconType = {
name = "papacy_bg"
spriteType = "GFX_papacy_bg"
position = { x = -271 y = -295 }
Orientation = "CENTER"
}

textBoxType = {
name = "papacy_label"
position = { x = 0 y = -274 }
format = centre
textureFile = ""
font = "Main_24"
borderSize = { x = 4 y = 4 }
text = "PAPACY_THE_HOLY_SEE"
maxWidth = 400
maxHeight = 32
Orientation = "CENTER"
}

textBoxType = {
name = "curia_label"
position = { x = 5 y = -134 }
textureFile = ""
font = "Main_16"
borderSize = { x = 4 y = 4 }
text = ""
maxWidth = 400
maxHeight = 32
format = centre
Orientation = "CENTER"
}

guiButtonType = {
name = "sort_name"
position = { x = -143 y = -113 }
tooltip = ""
tooltipText = ""
delayedTooltipText = ""
buttonText = "PAPACY_CARDINALS"
buttonFont = "Main_14_black"
Orientation = "CENTER"
}

guiButtonType = {
name = "sort_loyalty"
position = { x = 70 y = -113 }
tooltip = ""
tooltipText = ""
delayedTooltipText = ""
buttonText = "PAPACY_LOYALTY"
buttonFont = "Main_14_black"
Orientation = "CENTER"
}

instantTextBoxType = {
position = { x = 333 y = 313 }
textureFile = ""
borderSize = { x = 1 y = 1 }
text = ""
maxWidth = 150
maxHeight = 30
Orientation = "UPPER_LEFT"
format = left
}

guiButtonType = {
name = "candidate_shield_1"
position = { x = 61 y = -182 }
Orientation = "CENTER"
}

textBoxType = {
name = "candidate_value_1"
position = { x = 77 y = -152 }
textureFile = ""
font = "Main_14"
borderSize = { x = 0 y = 0 }
text = "100%"
maxWidth = 36
maxHeight = 32
format = centre
Orientation = "CENTER"
}

guiButtonType = {
name = "candidate_shield_2"
position = { x = 92 y = -182 }
Orientation = "CENTER"
}

textBoxType = {
name = "candidate_value_2"
position = { x = 108 y = -152 }
textureFile = ""
font = "Main_14"
borderSize = { x = 0 y = 0 }
text = "100%"
maxWidth = 36
maxHeight = 32
format = centre
Orientation = "CENTER"
}

guiButtonType = {
name = "candidate_shield_3"
position = { x = 123 y = -182 }
Orientation = "CENTER"
}

textBoxType = {
name = "candidate_value_3"
position = { x = 139 y = -152 }
textureFile = ""
font = "Main_14"
borderSize = { x = 0 y = 0 }
text = "100%"
maxWidth = 36
maxHeight = 32
format = centre
Orientation = "CENTER"
}

guiButtonType = {
name = "candidate_shield_4"
position = { x = 154 y = -182 }
Orientation = "CENTER"
}

textBoxType = {
name = "candidate_value_4"
position = { x = 170 y = -152 }
textureFile = ""
font = "Main_14"
borderSize = { x = 0 y = 0 }
text = "100%"
maxWidth = 36
maxHeight = 32
format = centre
Orientation = "CENTER"
}

guiButtonType = {
name = "candidate_shield_5"
position = { x = 183 y = -182 }
Orientation = "CENTER"
}

textBoxType = {
name = "candidate_value_5"
position = { x = 199 y = -152 }
textureFile = ""
font = "Main_14"
borderSize = { x = 0 y = 0 }
text = "100%"
maxWidth = 36
maxHeight = 32
format = centre
Orientation = "CENTER"
}

listboxType = {
name = "cardinal_list"
position = { x = -225 y = -110 }
backGround= ""
size = { x = 460  y = 420 }
Orientation = "CENTER"
spacing = 2
scrollbartype = "standardlistbox_slider"
borderSize = { x = 0 y = 0 }
}

textBoxType = {
name = "influence_label"
position = { x = -126 y = -235 }
textureFile = ""
font = "Main_16"
borderSize = { x = 4 y = 4 }
text = "PAPAL_INFLUENCE"
maxWidth = 190
maxHeight = 32
format = centre
Orientation = "CENTER"
}

textBoxType = {
name = "influence_value"
position = { x = -126 y = -215 }
textureFile = ""
font = "Main_24"
borderSize = { x = 4 y = 4 }
text = ""
maxWidth = 190
maxHeight = 32
format = centre
Orientation = "CENTER"
}

### OUR CHANCE

textBoxType = {
name = "our_chance_label"
position = { x = -126 y = -186 }
textureFile = ""
font = "Main_16"
borderSize = { x = 4 y = 4 }
text = "CARDINAL_CHANCE"
maxWidth = 190
maxHeight = 32
format = centre
Orientation = "CENTER"
}

textBoxType = {
name = "our_chance_value"
position = { x = -126 y = -166 }
textureFile = ""
font = "Main_24"
borderSize = { x = 4 y = 4 }
text = "100%"
maxWidth = 190
maxHeight = 32
format = centre
Orientation = "CENTER"
}

#####

guiButtonType = {
name = "controller_shield"
position = { x = -31 y = -199 }
tooltip = ""
tooltipText = ""
delayedTooltipText = ""
buttonText = ""
buttonFont = "Main_14_black"
Orientation = "CENTER"
}

guiButtonType = {
position = { x = 115 y = -253 }
tooltip = ""
tooltipText = ""
delayedTooltipText = ""
buttonText = ""
buttonFont = "Main_14_black"
Orientation = "CENTER"
}

guiButtonType = {
name = "close_button"
position = { x = -40 y = 284 }
tooltip = ""
tooltipText = ""
delayedTooltipText = ""
buttonText = "PAPACY_CLOSE"
buttonFont = "Main_14_black"
Orientation = "CENTER"
clicksound = close_window
shortcut = "ESCAPE"
}
}

positionType = {
name = "cardinal_shield_position"
position = { x = -230 y = -70 }
}

positionType = {
name = "cardinal_shield_offset"
position = { x = 0 y = 32 }
}

windowType = {
name = "cardinal_window"
backGround = ""
position = { x = -200 y = 0 }
size = { x = 400 y = 26 }
moveable = 0
dontRender = ""
horizontalBorder = ""
verticalBorder = ""
fullScreen = no

iconType = {
name = "cardinal_banner"
spriteType = "GFX_cardinal_banner"
position = { x = -5 y = 16 }
Orientation = "UPPER_LEFT"
}

textBoxType = {
name = "cardinal_title"
position = { x = 20 y = 16 }
textureFile = ""
font = "Main_14"
borderSize = { x = 4 y = 2}
text = "PAPACY_MEMBER_STATES"
maxWidth = 180
maxHeight = 100
format = left
Orientation = "UPPER_LEFT"
}

textBoxType = {
name = "cardinal_name"
position = { x = 80 y = 16 }
textureFile = ""
font = "Main_16"
borderSize = { x = 4 y = 2}
text = "PAPACY_MEMBER_STATES"
maxWidth = 300
maxHeight = 100
format = left
Orientation = "UPPER_LEFT"
}

textBoxType = {
name = "cardinal_location"
position = { x = 270 y = 16 }
textureFile = ""
font = "Main_14"
borderSize = { x = 4 y = 2}
text = "PAPACY_MEMBER_STATES"
maxWidth = 300
maxHeight = 100
format = left
Orientation = "UPPER_LEFT"
}

guiButtonType = {
name = "cardinal_vote_shield"
position = { x = 400 y = 12 }
tooltip = ""
tooltipText = ""
delayedTooltipText = ""
buttonText = ""
buttonFont = "Main_14_black"
Orientation = "UPPER_LEFT"
}
}

windowType = {
name = "candidate_type"
backGround = ""
position = { x = 0 y = 0 }
size = { x = 36 y = 32 }
moveable = 0
dontRender = ""
horizontalBorder = ""
verticalBorder = ""
fullScreen = no

guiButtonType = {
name = "shield_button"
position = { x = 0 y = 0 }
}

textBoxType = {
name = "chance_value"
position = { x = 0 y = 15 }
textureFile = ""
font = "Main_14"
borderSize = { x = 0 y = 0 }
text = "100%"
maxWidth = 36
maxHeight = 32
format = centre
Orientation = "CENTER"
}
}

}
Third, the hre.gfx file...
Code:
spriteTypes = {

spriteType = {
name = "GFX_hre_bg"
texturefile = "mod\\Dei Gratia\\gfx\\interface\\hre_bg.tga"
}

spriteType = {
name = "GFX_hre_vote_bg"
texturefile = "gfx\\interface\\in_nomine_interface\\hre_vote_bg.tga"
transparencecheck = yes
}

spriteType = {
name = "GFX_we_are_hre_elector"
texturefile = "gfx\\interface\\in_nomine_interface\\we_are_hre_elector.tga"
}
spriteType = {
name = "GFX_hre_decision_banner"
texturefile = "gfx\\interface\\httt_interface\\hre_decision_banner.tga"
}

}
...and last the hre.gui file.
Code:
guiTypes = {

windowType = {
name = "hre_window"
backGround = ""
position = { x = 0 y = 0 }
size = { x = 1024 y = 100 }
moveable = 0
dontRender = ""
horizontalBorder = ""
verticalBorder = ""
fullScreen = yes

iconType = {
name = "hre_bg"
spriteType = "GFX_hre_bg"
position = { x = -324 y = -300 }
Orientation = "CENTER"
}

textBoxType = {
name = "emperor_label"
position = { x = 0 y = -217 }
textureFile = ""
font = "Main_16"
borderSize = { x = 4 y = 4 }
text = "HRE_EMPEROR"
maxWidth = 400
maxHeight = 32
format = centre
Orientation = "CENTER"
}

textBoxType = {
name = "electors_label"
position = { x = 0 y = -111 }
textureFile = ""
font = "Main_16"
borderSize = { x = 4 y = 4 }
text = "HRE_ELECTORS"
maxWidth = 400
maxHeight = 32
format = centre
Orientation = "CENTER"
}

textBoxType = {
name = "members_label"
position = { x = 0 y = -15 }
textureFile = ""
font = "Main_16"
borderSize = { x = 4 y = 4 }
text = "HRE_MEMBER_STAT"
maxWidth = 400
maxHeight = 32
format = centre
Orientation = "CENTER"
}

#### AUTHORITY

textBoxType = {
name = "influence_label"
position = { x = -147 y = -197 }
textureFile = ""
font = "Main_16"
borderSize = { x = 4 y = 0 }
text = "HRE_INFLUENCE"
maxWidth = 400
maxHeight = 32
format = centre
Orientation = "CENTER"
}

textBoxType = {
name = "influence_value"
position = { x = -148 y = -185 }
textureFile = ""
font = "Main_24"
borderSize = { x = 4 y = 4 }
text = ""
maxWidth = 100
maxHeight = 32
format = centre
Orientation = "CENTER"
}

OverlappingElementsBoxType = {
name = "emperor_mods_box"
position = { x = -245 y = -140 }
size = { x = 288 y = 48 }
Orientation = "CENTER"
format = left
spacing = 1
}

guiButtonType = {
name = "emperor_shield"
position = { x = -30 y = -197 } #-30x -216y
tooltip = ""
tooltipText = ""
delayedTooltipText = ""
buttonText = ""
buttonFont = "Main_14_black"
Orientation = "CENTER"
}

#### REFORM DECISIONS

instantTextBoxType = {
name = "decisions_label"
position = { x = 48 y = -197 }
format = centre
textureFile = ""
font = "Main_16"
borderSize = { x = 4 y = 0 }
text = "HRE_DECISIONS"
maxWidth = 320
maxHeight = 16
Orientation = "CENTER"
}

listboxType =  {
name = "decisions_listbox"
position = { x = 60 y = -177 }
backGround = ""
size = { x = 185 y = 80 }
Orientation = "CENTER"
horisontal = 0
spacing = 1
scrollbartype = "standardlistbox_slider"
borderSize = { x = 10 y = 10 }
}

guiButtonType = {
name = "close_button"
position = { x = -35 y = 134 }
tooltip = ""
tooltipText = ""
delayedTooltipText = ""
buttonText = "HRE_CLOSE"
buttonFont = "Main_14_black"
Orientation = "CENTER"
clicksound = close_window
shortcut = "ESCAPE"
}

guiButtonType = {
name = "dismantel_button"
position = { x = -223 y = 134 }
buttonText = "HRE_DISMANTLE"
buttonFont = "Main_14_black"
Orientation = "CENTER"
}

guiButtonType = {
name = "leave_button"
position = { x = 148 y = 134 }
buttonText = "HRE_LEAVE"
buttonFont = "Main_14_black"
Orientation = "CENTER"
}
}

guiButtonType = {
name = "elector_shield"
position = { x = -32 y = -90 }
tooltip = ""
tooltipText = ""
delayedTooltipText = ""
buttonText = ""
buttonFont = "Main_14_black"
Orientation = "CENTER"
}

guiButtonType = {
name = "elector_vote_shield"
position = { x = 0 y = -58 }
tooltip = ""
tooltipText = ""
delayedTooltipText = ""
buttonText = ""
buttonFont = "Main_14_black"
Orientation = "CENTER"
}

guiButtonType = {
name = "member_shield"
position = { x = -16 y = 15 }
tooltip = ""
tooltipText = ""
delayedTooltipText = ""
buttonText = ""
buttonFont = "Main_14_black"
Orientation = "CENTER"
}

guiButtonType = {
name = "we_are_elector_button"
position = { x = 0 y = 0 }
tooltip = ""
tooltipText = ""
delayedTooltipText = ""
buttonText = ""
buttonFont = "Main_14_black"
Orientation = "CENTER"
}

positionType = {
name = "elector_shield_position"
position = { x = -32 y = -90 }
}

positionType = {
name = "elector_vote_position"
position = { x = 0 y = -39 }
}

positionType = {
name = "member_shield_position"
position = { x = -16 y = 3 }
}

positionType = {
name = "we_are_elector_position"
position = { x = -39 y = -149 }
}

positionType = {
name = "elector_shield_offset"
position = { x = 55 y = 0 }
}

positionType = {
name = "member_shield_offset"
position = { x = 30 y = 0 }
}

positionType = {
name = "elector_relation_position"
position = { x = 28 y = -30 }
}

textBoxType = {
name = "relation"
position = { x = 0 y = 0 }
textureFile = ""
font = "Main_16"
borderSize = { x = 4 y = 4 }
text = "HRE_MEMBER_STATES"
maxWidth = 48
maxHeight = 32
format = centre
Orientation = "CENTER"
}

#### EMPEROR MODIFIER ENTRY

windowType = {
name = "emperor_mod_entry"
backGround = ""
position = { x = 0 y = 0 }
size = { x = 48 y = 48 }
moveable = 0
dontRender = ""
horizontalBorder = "0"
verticalBorder = ""
fullScreen = no

iconType = {
name = "strip_temp_mods"
spriteType = "GFX_modifier_icons"
position = { x = 0 y = 0 }
Orientation = "UPPER_LEFT"
frame = 1
}
}

#### REFORMS ENTRY

windowType = {
name = "hre_decision_entry"
backGround = ""
position = { x = 0 y = 0 }
size = { x = 300 y = 20 }
moveable = 0
dontRender = ""
horizontalBorder = ""
verticalBorder = ""
fullScreen = no

iconType = {
name = "nation_decisions_banner"
spriteType = "GFX_hre_decision_banner"
position = { x = -26 y = -21 }
orientation = "UPPER_LEFT"
}

instantTextBoxType= {
position = { x = -10 y = -10 }
name = "name"
font = "Main_14"
borderSize = { x = 0 y = 0 }
maxWidth = 230
maxHeight = 20
text = ""
orientation = "UPPER_LEFT"
format = left
}

iconType = {
name = "info_icon"
spriteType = "GFX_info_decision"
position = { x = 126 y = -13 }
orientation = "UPPER_LEFT"
}

guiButtonType = {
name = "select_button"
position = { x = 149 y = -14 }
tooltip = ""
tooltipText = ""
delayedTooltipText = ""
buttonText = ""
buttonFont = ""
}
}

}
Use it or don't, either way is fine by me! (but I hope you do because it took 4 hours ;-)

Cheers

20. You can not use vanilla DW, Scocou?

Okay, I managed to put it to the DW vanilla.