Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Page 1 of 2 1 2
Joined: Sep 2016
Location: Ireland
apprentice
OP Offline
apprentice
Joined: Sep 2016
Location: Ireland
In this thread I will be asking questions relating to modding, and hopefully I will be able to get some answers

So on to the first question:

1. How do I create a new human NPC for use in all campaigns?, I have created the NPC itself, but dont know how to edit his equipment or spells and stats

Joined: Sep 2016
Location: Ireland
apprentice
OP Offline
apprentice
Joined: Sep 2016
Location: Ireland
Right, I have created some new npcs, added them, into a custom faction, right now i want to make sure he shows up in specific gear.

How do I do that

Joined: Jun 2013
old hand
Offline
old hand
Joined: Jun 2013
On the side bar you'll find a listing called "equipment". Pick something from the list and the NPC will get the gear after you reload the level/stats.


You can make custom equipment entries as well but that's a tad more complicated. Make sure to mind the racial component of the equipment entries as well. If you pick something for a dwarf on a lizard the lizard might have missing bodyparts due to wearing the wrong armor.

Joined: Sep 2016
Location: Ireland
apprentice
OP Offline
apprentice
Joined: Sep 2016
Location: Ireland
Created the Custom entries, now I just need the NPCs to show up in game like: https://s26.postimg.org/hx5m6nn5l/20170916203223_1.jpg

Last edited by GeneralKong; 16/09/17 07:40 PM.
Joined: Jun 2013
old hand
Offline
old hand
Joined: Jun 2013
The equipment.txt file goes in:
\Divinity Original Sin 2\Data\Public\YOUR MOD HERE\Stats\Generated

Once in there you should be able to select on the side bar the entries you created.

Last edited by SniperHF; 16/09/17 08:09 PM.
Joined: Sep 2016
Location: Ireland
apprentice
OP Offline
apprentice
Joined: Sep 2016
Location: Ireland
Done that:

https://s26.postimg.org/4uxf3gws9/Untitled.png

But they still look like:

https://s26.postimg.org/veq05lxbt/20170916202914_1.jpg

I have restarted the tools, and the look isnt updated

Last edited by GeneralKong; 16/09/17 08:26 PM.
Joined: Jun 2013
old hand
Offline
old hand
Joined: Jun 2013
Have you checked to see if the items are on the characters regardless of the visual?

To do that on the side bar just make one of them as "IsPlayer" and then press the game mode button on the top left. Then check the inventory.




Joined: Sep 2016
Location: Ireland
apprentice
OP Offline
apprentice
Joined: Sep 2016
Location: Ireland
Yep checked and his inventory was empty, and he is still wearing the same uniform

https://s26.postimg.org/tqvg4p8u1/Untitled.png

Joined: Jun 2013
old hand
Offline
old hand
Joined: Jun 2013
Can you post the syntax of your equipment.txt file entries in a code block like this
Code
STUFF GOES HERE


[code][/code]

Only the ones you made.

Last edited by SniperHF; 16/09/17 09:03 PM.
Joined: Sep 2016
Location: Ireland
apprentice
OP Offline
apprentice
Joined: Sep 2016
Location: Ireland
Code
new equipment "BrethrenZealot"
add equipmentgroup
new equipment entry "ARM_Light_Helmet"
add equipmentgroup
new equipment entry "ARM_Light_UpperBody"
add equipmentgroup
new equipment entry "ARM_Light_LowerBody"
add equipmentgroup
new equipment entry "ARM_Light_Gloves"
add equipmentgroup
new equipment entry "ARM_Light_Boots"
add equipmentgroup
new equipment entry "WPN_Sword_1H"

new equipment "BrethrenSentry"
add equipmentgroup
new equipment entry "ARM_Light_Helmet"
add equipmentgroup
new equipment entry "ARM_Light_UpperBody"
add equipmentgroup
new equipment entry "ARM_Light_LowerBody"
add equipmentgroup
new equipment entry "ARM_Light_Gloves"
add equipmentgroup
new equipment entry "ARM_Light_Boots"
add equipmentgroup
new equipment entry "WPN_Bow"

new equipment "BrethrenScout"
add equipmentgroup
new equipment entry "ARM_Light_Helmet"
add equipmentgroup
new equipment entry "ARM_Light_UpperBody"
add equipmentgroup
new equipment entry "ARM_Light_LowerBody"
add equipmentgroup
new equipment entry "ARM_Light_Gloves"
add equipmentgroup
new equipment entry "ARM_Light_Boots"
add equipmentgroup
new equipment entry "WPN_Dagger"

new equipment "BrethrenAcolyte"
add equipmentgroup
new equipment entry "ARM_Light_Helmet"
add equipmentgroup
new equipment entry "ARM_Mage_UpperBody"
add equipmentgroup
new equipment entry "ARM_Mage_LowerBody"
add equipmentgroup
new equipment entry "ARM_Mage_Gloves"
add equipmentgroup
new equipment entry "ARM_Mage_Boots"
add equipmentgroup
new equipment entry "WPN_Staff_Poison"

Joined: Jun 2013
old hand
Offline
old hand
Joined: Jun 2013
Back in the early access version of the editor you couldn't edit equipment entries in the stats editor.

But it appears you can now.

So try doing it that way. Move the .txt file out of the folder.

Open up the stats editor and try it in there. Stats editor is on the top bar toward the right.

Click the + sign next to equipment and try adding it.

Last edited by SniperHF; 16/09/17 11:39 PM.
Joined: Sep 2016
Location: Ireland
apprentice
OP Offline
apprentice
Joined: Sep 2016
Location: Ireland
I was actually originally using the Stats Editor for it, not creating a text file and then putting it in

Joined: Sep 2016
Location: Ireland
apprentice
OP Offline
apprentice
Joined: Sep 2016
Location: Ireland
I have it all sorted out now :), thanks for the help SniperHF

In case anyone else is wondering how I fixed my issue, Caiden's Twitch stream video was what showed me the way, So thank you to Caiden as well laugh

Last edited by GeneralKong; 17/09/17 10:27 PM.
Joined: Sep 2016
Location: Ireland
apprentice
OP Offline
apprentice
Joined: Sep 2016
Location: Ireland
Oh yay, a new problem has decided to rear its ugly head, in this case, my stuff wont save in the editor, everytime I click on 'Save All' the message box either only says 'saving palette' or nothing at all

I have tried running it both as Admin and not, neither works

Last edited by GeneralKong; 18/09/17 02:00 AM.
Joined: Sep 2017
Location: Belgium, Ghent
addict
Offline
addict
Joined: Sep 2017
Location: Belgium, Ghent
Hey GeneralKong,

glad the first issue got resolved! Could you explain what exactly was going wrong? The stats editor is rather new and we'd love to improve the workflow as much as possible!

We'll take a look at the saving issue, what exactly are you trying to save?


CTRL+K the elf
Joined: Sep 2016
Location: Ireland
apprentice
OP Offline
apprentice
Joined: Sep 2016
Location: Ireland
On the First Issue: I was trying to insure that the armor that my custom NPC's were wearing would show up in game in a certain way, I was under the mistaken impression that this was governed by the 'Equipment' slot in the Sidebar under the Character Tab, but in fact it was set by the 'Visual Set Indices'.

Once I realized that thanks to the video I mentioned, my problem was sorted.

On the Saving Issue: I am trying to save said custom NPCs, and deleting some previous ones that were no longer needed, however, whenever I save, it only saves palette, and once I load it again, it does not show any of my changes

Last edited by GeneralKong; 18/09/17 11:49 AM.
Joined: Sep 2016
Location: Ireland
apprentice
OP Offline
apprentice
Joined: Sep 2016
Location: Ireland
I can make additional Custom NPC's, and they save, but then after wards they dont save then, and cant be deleted

Joined: Sep 2016
Location: Ireland
apprentice
OP Offline
apprentice
Joined: Sep 2016
Location: Ireland
I think its possible that I found the culprit, I created a new project, after uninstalling and reinstalling The toolkit, once created, I made some changes, saved, and then it showed that it saved my characters.

Then I clicked on 'render character portraits' and it is no longer saving, so I think I have just been impatient, can anyone confirm how long it would take for the rendering to be done?

EDIT: It seems that (for me at least) render character portraits makes it where I cannot save at all, so I guess either it is broken or something

Last edited by GeneralKong; 18/09/17 05:17 PM.
Joined: Sep 2016
Location: Ireland
apprentice
OP Offline
apprentice
Joined: Sep 2016
Location: Ireland
This is the Message I get when using render character portraits

Code: No photobooth level for this mod?
Timestamp: 18-09-2017 18:09:27:597
Function: EoCPlugin::MPortraitManager::RenderPortraits
Location: ..\MPortraitManager.cpp (147)

Joined: Sep 2016
M
apprentice
Offline
apprentice
M
Joined: Sep 2016
Have you been editing in the sandbox? When I try to edit characters in the sandbox their look doesn't save, even though my newly created entries are saved. I was also having a problem deleting old characters in the sandbox. I just created a new editable level to work with.

I too have been having problems with the portrait manager. You can assign a photobooth level in the Project Settings menu and avoid the problem you mentioned, but that's not a final solution. My newly created characters' portraits are always still linked to whichever root template I copied initially to create my new character. I'm not sure how to change the "Icon" line in the properties window (or what to change it to) or if the portraits are maybe somehow linked to the "Portrait Generation Trigger" line.

When I generate the portraits, have I created a new file, form or template somewhere that I can use when assigning portraits? Or should it just work like magic or something? I might create a separate thread about this issue, as well.

Last edited by Melgrimm; 18/09/17 09:15 PM.
Page 1 of 2 1 2

Moderated by  Larian_KVN 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5