Let me just preamble this by saying I'm not even sure I'm using the correct terminology here, seemingly a variable can still be called a global variable even if it's localized to a single file, that's not really what I'm talking about here, rather a central location to store variables from where other files can also draw from.
I've been looking at files, wanting to get into modding and thought I'd modify an already existing character, changing the name among other things. What I found was that the dialogue mentioning the names is just written as is, there's no calls being made to a central variable string containing the name, meaning that instead of editing the name in a single place, you'd have to go through an unknown number of files just to change the name of one character! And I still haven't found the one correlating to the actual Name box being displayed. Now I've heard rumoured that SDV wasn't all that modder friendly, but c'mon!
What I'm wondering is; does such a thing not exist in Json (global variables stored in a central location able to be accessed from outside), or is ConcernedApe just that bad at programming?
I'm pretty much an amateur myself, I only learned the basics of Python and C# way back when, but even I know that that's like the very very basics right there.
Has noone told him about this? Is he going to fix this? It would be like a world of difference, I mean the dialogue isn't even all kept in one place, you've got a separate dialogue file for rainy weather even, all of which I have to go through and unpack each xnb file just to get to the json file. You have a file named NpcNames in the string folder, but it only contains SOME Npcs. There's no order to anything it seems. Like how am I supposed to know how many of these random files contains a reference, in plain text no less, to the character which I'm trying to rename. I have to edit every single family member's dialogue files for starters, the rainy dialogues, the related events, and who knows what else.
Or is there a better way of doing this?
Edit: I just realised I know the answer to parts of this question, because the farmer's name is one such global variable that I've been talking about (or at least a call to a function fetching the variable), referenced throughout as @. Meaning that they do exist in json, they're just heavily underutilized by ConcernedApe it seems.
Edited by UnmotivatedCheddar, 26 April 2020 - 12:51 PM.