woodtortiose Posted May 2, 2017 Share Posted May 2, 2017 (edited) Hi, I am working on editing dialogue files, particularly spouse dialogue, and there are a few snippets I cant find. A few examples: 1. Your spouse says to you: Hun, I filed our adoption papers today... ..I watered the crops and filled cats water bowl... ...what are we putting in our grange display tomorrow... a few others I cant remember now These few bits of dialogue seem to be realted to certain events or festivals, yet they arent in any of the marriage dialogue, festival days, or any other files I could find. I've opened every file in the dialogue and festival folders with no luck. Any suggestions? Second Question: Along with editing spouse dialog, I'm also editing inlaw dialogues, so they acknowledge the marriage more. Specifically, I'm trying to edit Pierre and Carolines dialogue at the fall grange festival. I'd like to add lines that are conditional to being married to Abigail, without altering their vanilla dialogue. For example Pierre dialogue line in the Fall16(?) xnb looks like this: Pierre: "My shop has all the best...." #!String I'd like to add: Pierre_inlaw_Abigail: "You and Abby are giving me a ...." #!String So Pierre will use the alternate dialogue if hes your inlaw, but _inlaw_Abigail extension isnt working. Anyone know the code to get this to work? Incidently, Pierre has additional dialogue dependent on whether he wins or loses the grange display contest, but it isnt in the Fall16.xnb, and I cant find it anywhere. Sorry if this is unclear, I'm not sure I explained myself very well. Oh, I want to edit the event at the community center between Pierre and Morris When you've finished all the bundles. I've played through this event twice, once egging on a fight and once urging restraint. However when I open the Data/event/communitycenter.xnb, the dialogue reflecting the fight choice is there, but the dialogue that goes with the peaceful option isn't? WTF? Anyone know where that is? Edited May 2, 2017 by woodtortiose Link to comment Share on other sites More sharing options...
bmarquismarkail Posted May 3, 2017 Share Posted May 3, 2017 (edited) 1: The spousal lines that all spouses share are located in Strings/StringsFromCSFiles.xnb2: The xnb files where the game is attempting to load inlaw dialogue are located in Characters/Dialogue/<Character>.xnbThe pseudocode for the method used to determine what the character will say is this: public StardewValley.Dialogue tryToRetrieveDialogue(string preface, int heartLevel, string appendToEnd = "")First, it calculates the game year. if it's greater than 2, then the value is 2.Then, if the appendToEnd string is empty, it tries to find inlaw dialogue recursively by making "_inlaw_" + the spouse's name the appendToEnd string and invoking tryToRetrieveDialogue again.Then it tries to find dialogue in this order (by checking if the string is exactly equal to the preface value and:The Day of the Month + appendToEnd stringThe Day of the Month + "_" + year value +appendToEnd stringThe Day of the week + heartLevel + "_" + year value + appendToEnd stringThe Day of the week + heartLevel + "_" + appendToEnd stringThe Day of the week + "_" + year value + appendToEnd stringThe Day of the week + appendToEnd string To better understand: for any NPC, given the farmer is married to Abigail, this is all it searches for, given the day is the 1st of the season:1_inlaw_Abigail : Dialog from an inlaw of Abigail every 1st of the season1_2_inlaw_Abigail : Dialog from an inlaw of Abigail every 1st of the season for year 2 onwardsMon10_2_inlaw_Abigail : Dialog from an inlaw of Abigail every monday with a heart level of 10 for year 2 onwardsMon10_inlaw_Abigail : Dialog from an inlaw of Abigail every monday with a heart level of 10Mon_2_inlaw_Abigail : Dialog from an inlaw of Abigail every monday for year 2 onwardsMon_inlaw_Abigail : Dialog from an inlaw of Abigail every monday1 : Dialog for every 1st of the season1_2 : Dialog for every 1st of the season for year 2 onwardsMon10_2 : Dialog for an NPC every monday with a heart level of 10 for year 2 onwardsMon10 : Dialog for an NPC every monday with a heart level of 10Mon_2 : Dialog for an NPC every monday for year 2 onwardsMon : Dialog for an NPC every mondayOh, and for the last question? Data/Events/Town.xnb Edited May 3, 2017 by bmarquismarkail Link to comment Share on other sites More sharing options...
woodtortiose Posted May 4, 2017 Author Share Posted May 4, 2017 Wow, thats a ton of info, and I'm not sure I understand it all. Thanks! I'll try to figure it out tonight and see how it goes. One thing though, I'm pretty sure there isn't a StringFromCSFiles.xnb in my strings folder. Are they hidden maybe? Link to comment Share on other sites More sharing options...
bmarquismarkail Posted May 4, 2017 Share Posted May 4, 2017 StringsFromCSFiles.xnb should not be hidden. Link to comment Share on other sites More sharing options...
woodtortiose Posted May 5, 2017 Author Share Posted May 5, 2017 Ok, I'm still playing ver 1.1, and that file isn't there for some reason. I have the 1.2 update, just hadnt installed it yet because I didn't want to update all my mods. I unpacked it though, and sure enough the file is there. Wonder why it isnt there with 1.1? Any way, you've been a ton of help bmarquis, thanks! Link to comment Share on other sites More sharing options...
Sakorona Posted May 6, 2017 Share Posted May 6, 2017 Because it's been moved out of the program files (hence why StringsFromCSFiles) into .xnbs for translations in 1.2 Link to comment Share on other sites More sharing options...
Recommended Posts