- Apr 19, 2018
- 705
- 1,658
That is because the text in 'hardChanged' isn't EXACTLY the same as the text in the original game file, you even admitted this yourself, you "found" or "deleted" spare spaces the dev left. It is not working because they are not identical. The text you put in 'hardChanged' that you want to change has to be identical to the text in the game, spaces and everything, not close, identical. Do not change the text in the original game files, it will make the patch you are making irrelevant for anyone else but you, other people will not have the 'edited' game files to make it work.Now I rearranged the code the way you suggested in pic 2, but it doesn't have any effect - the code I mentioned above is still not displayed correctly.
Still haven't figured out why.
I managed to get some code to work simply by deleting some spare spaces "left" by the game dev like:
The code rearrangement is so they game recognizes it correctly and for visual cues, like I said, it probably isn't affecting hardChanged, but will affect other things. This is just good coding form.
In the little demo I made for you I replaced the 'start' label in the game with the 'start_p' label in my patch. By doing this I skipped, or deleted all of the code in the 'start' label of the game. This is how you use this, like I said in the demo, if there is a bunch of lines of dialog you want to remove in a label of the game, you copy it into the patch, rename it with a '_p' like I did, make your changes to the code in the patch, removing multiple lines etc., then in config.label_overrides you put the 'original label' with the 'new label name' and it will substitute the label in your patch file with the label in the game, like my demo did for you.However, I still don't understand how to utilise this code to skip text.
This is for changing large blocks of code, not one line here or there. The way Anne said is for removing one line here or there, I'll let him explain how to do that in the patch. 'screen say' is part of the core of the game engine for making the dialog box work. I don't know how to override it with a new function or block of code.
An example of this is the patch for Freeloading Family, the patch that Bossapplesauces makes substitutes labels for labels in the original game. Look at it to see a working example of what it does, look at both of the labels, the original and the one with _p in the patch.