Lenora Rose
Farmer
So after successfully remaking my flower and hat mods (flower mod published, hat mod personal), I started working on a dialogue and event mod. I've been noodling at the dialogue for weeks, but events are scary, yo. So finally, I started writing them, realised the one I was starting with (chronologically the earliest) had stupidly complicated coding for one item,. So I backed up, identified 2 events which ought to be simpler, and started work.
I had 3 days in a row of writing, testing, fixing, testing; days 1 and 3 were the first event, day 2 was the second, which took less time to fix. I thought my error list might be A: hilarious and B: useful for others going "WTH?!?"when trying to move around the villagers (since at least twice, it wasn't the move that went wrong that was causing the error).
Also of note, I skipped past all of the event crashes that happened before getting the mod to load and play in the first place. though there were several, because they're more boring than watching the farmer suddenly walk through walls.
Event 1: Jodi's kitchen. In vicinity: Jodi, Vincent, farmer, Evelyn, Kent.
Errors:
Issue 0: Event starts and crashes
Cause: warps don’t require facing direction (anymore). Remove all facing directions from all warp instructions.
Issue 1: First few lines of dialogue work fine, then 5th dialogue box comes up as translation not found, and whole thing freezes.
Cause: Forgot one \” at start of one line of dialogue in the main file.
Issue 2: Event actually plays through, but ALL character dialogue comes up as “translation not found”, albeit without freezing event.
Cause: Despite actively reloading the entire mod after fixing the first error, the game didn’t read the translation file. Fix is to completely exit and restart SDV.
Issue 3: Farmer is supposed to walk one step at the same time Evelyn is moving. Farmer walks about 6, which puts her inside a wall, only her feet sticking out.
Cause: wasn’t sure. Distance travelled did indeed say 1.
Issue 4: Tried a different direction command. Farmer walks about 6 steps in new direction even though instruction says 1. Now she’s in a new wall.
Cause: wasn’t sure. Distance travelled did indeed say 1.
Issue 5: Revert to walking 1 step in original direction to get out of the way of Evelyn. Farmer is supposed to walk one step. Walks about 6, which puts her inside a wall, only her feet sticking out.
Cause: After shifting direction a few times, re-reading all the troubleshooting options and move instructions, finally figure it out. Other character’s simultaneous move Boolean slot says “true” (Because they ARE supposed to move at the same time for the first move). This causes farmer’s move, if not *actively* marked false, to repeat on loop until other character finishes their whole move (…6 steps). (Normally Boolean slot defaults to false so you don’t need to put anything in at all.) Cure is to fill farmer’s Boolean slot with “false”.
Issue 6: Stopped above testing on the alternate direction command. Farmer walks 1 step, but Evelyn, moving 6 steps, walks through her.
Cause: …Obviously don’t do that move first. Fix is to switch order of farmer’s moves back to original now that they work at all.
Issue 7: Astonishingly, first attempt at writing in an advancedMove worked perfectly to have Kent run into the room. Except that he goes 1 step too far. This means on Kent’s next move down one choice thread, he runs back out the wall instead of out the doorway.
Cause: needed 9 steps, not 10. Really easy fix. Yay!
Issue 8: On one of 2 question forks, Vincent, who’s supposed to walk up to his mom and hug her, walks up and kind of vaguely shifts in her direction, then pops back in place.
Cause: Need more and further position offsets. Refining these takes me dozens of tries (at least) but I won’t mention it again unless the fix is something ELSE.
Issue 9: When Jodi moves forward a step to where she’s supposed to be standing when Vincent hugs her, she’s actually a few pixels higher on the screen than other characters even though this is BEFORE the position offsets. This makes the hug look weird, like she's floating, while he's standing.
Cause: ... I still have no idea. She’s on the right square, and characters are supposed to move full squares when directed. Solution: Sneak in a warp to the *same* square right after she moves to that square, which places her correctly. (!?!? It worked and it’s not obvious, but I still don’t get why she wasn’t correctly placed in the first place?)
Issue 10: in second question fork, Vincent is supposed to run up via advancedMove and hug Kent instead. Apparently this bothered him, because instead he wanders offscreen in a direction he was not told to go during the move, and doesn't stop walking. Since the event won't continue until he stops moving, the action can't progress and I have to hit skip to exit.
Cause: as above, sometimes different move instructions affect each other. After sneaking in 10-millisecond pauses between some moves, and testing warping a character to the exact spot they're standing, which are the suggested cures in all the troubleshooting guides… it still happens. So despite the other advancedMove working perfectly, I change this one to 3 much shorter moves.
Issue 11: Vincent now runs as instructed… and ends up a square above his dad, both kind of making vague hug motions at air.
Cause: Despite checking and writing down every single character position and location for this event in advance, I still screwed up positioning. Thankfully, this reduces 3 moves to 1 single move.
Issue 12: With both hugs, the characters jerk weirdly back to position afterwards.
Cause: used a warp to reset, which you ARE supposed to do, but apparently I needed to write a few position offsets reverting the characters to their original place first, to make it look natural.
Issue 13: despite sitting there counting position offsets, Vincent still end ups backing into Evelyn at the end and kind of jitters back forwards into location at the warp. (Jodi is fine).
Cause: Either I am *that* bad at math or, as with the mom earlier, characters moving into a spot don’t actually centre themselves on their new square when they arrive. I *think* it’s the latter but by this time, don’t quote me.
Issue 14: All this while, the music cues have not been working. While fixing other things, moved them a few times, triple-checked they were written correctly. Sound effects seem to be working okay…
Cause: They’ve been working fine. At some point during actual game play on another day entirely, I had turned the music volume off but left sound effects on, which meant I couldn’t hear them, but because I did hear sound effects, it didn’t twig right away.
Event 2: Pierre's Store. Present: Just Pierre, farmer, George.
Errors:
Issue 1: George steers himself directly into (as in inside) a box of fruit.
Cause: Miscounted squares when looking at a map, because I didn’t actually check the location and count squares before writing the event, I just looked at a map and guessed. This works out okay for the farmer, who ended up looking at the wrong shelf but was still standing in an aisle browsing for groceries, and I decided to leave her as is.
Issue 2: Event proceeds as planned up to the question fork, skips that entirely, and jumps to the closing fadeout.
Cause: Put a space in the command quickQuestion so it said quick Question.
Issue 3: in first question fork, the farmer is supposed to walk (in a slight zig-zag to go around George) out the door, warp away, warp back, and walk in a completely straight line up back to George and stop. Instead, the farmer warps away immediately, reappears in doorway, and proceeds to walk in a diagonal line out the wall of the building and into deep space, not stopping. Event is stuck.
Cause: *something* inexplicable went wrong with using an advancedMove for the zig-zag route out, causing it not to happen; which then also messes up the next move after it for reasons that must exist in the deep code somewhere. Solved by turning the single advanced move into 4 separate short move actions. (Note I did not actually have to correct the move where the farmer walked into space; once the advancedMove was gone, that move command did what it was supposed to.)
Issue 4: In other question fork, George is supposed to bend his head slowly then raise it again. Instead he bobs it several times, quickly, and doesn’t stop.
Cause: Put true and false in the wrong two Boolean slots, one for other actions being allowed during animation (should have been “true”) and one for looping (should have been “false). Also misjudged speed of animation and had to increase the number of milliseconds.
Issue 5: First dialogue line keeps reopening, event won’t continue.
Cause: Self-inflicted injury in testing. Forced the event to start while I had the inventory menu open. Which I was warned would freeze the event. Not actually anything inside the event written incorrectly. Anymore.
I had 3 days in a row of writing, testing, fixing, testing; days 1 and 3 were the first event, day 2 was the second, which took less time to fix. I thought my error list might be A: hilarious and B: useful for others going "WTH?!?"when trying to move around the villagers (since at least twice, it wasn't the move that went wrong that was causing the error).
Also of note, I skipped past all of the event crashes that happened before getting the mod to load and play in the first place. though there were several, because they're more boring than watching the farmer suddenly walk through walls.
Event 1: Jodi's kitchen. In vicinity: Jodi, Vincent, farmer, Evelyn, Kent.
Errors:
Issue 0: Event starts and crashes
Cause: warps don’t require facing direction (anymore). Remove all facing directions from all warp instructions.
Issue 1: First few lines of dialogue work fine, then 5th dialogue box comes up as translation not found, and whole thing freezes.
Cause: Forgot one \” at start of one line of dialogue in the main file.
Issue 2: Event actually plays through, but ALL character dialogue comes up as “translation not found”, albeit without freezing event.
Cause: Despite actively reloading the entire mod after fixing the first error, the game didn’t read the translation file. Fix is to completely exit and restart SDV.
Issue 3: Farmer is supposed to walk one step at the same time Evelyn is moving. Farmer walks about 6, which puts her inside a wall, only her feet sticking out.
Cause: wasn’t sure. Distance travelled did indeed say 1.
Issue 4: Tried a different direction command. Farmer walks about 6 steps in new direction even though instruction says 1. Now she’s in a new wall.
Cause: wasn’t sure. Distance travelled did indeed say 1.
Issue 5: Revert to walking 1 step in original direction to get out of the way of Evelyn. Farmer is supposed to walk one step. Walks about 6, which puts her inside a wall, only her feet sticking out.
Cause: After shifting direction a few times, re-reading all the troubleshooting options and move instructions, finally figure it out. Other character’s simultaneous move Boolean slot says “true” (Because they ARE supposed to move at the same time for the first move). This causes farmer’s move, if not *actively* marked false, to repeat on loop until other character finishes their whole move (…6 steps). (Normally Boolean slot defaults to false so you don’t need to put anything in at all.) Cure is to fill farmer’s Boolean slot with “false”.
Issue 6: Stopped above testing on the alternate direction command. Farmer walks 1 step, but Evelyn, moving 6 steps, walks through her.
Cause: …Obviously don’t do that move first. Fix is to switch order of farmer’s moves back to original now that they work at all.
Issue 7: Astonishingly, first attempt at writing in an advancedMove worked perfectly to have Kent run into the room. Except that he goes 1 step too far. This means on Kent’s next move down one choice thread, he runs back out the wall instead of out the doorway.
Cause: needed 9 steps, not 10. Really easy fix. Yay!
Issue 8: On one of 2 question forks, Vincent, who’s supposed to walk up to his mom and hug her, walks up and kind of vaguely shifts in her direction, then pops back in place.
Cause: Need more and further position offsets. Refining these takes me dozens of tries (at least) but I won’t mention it again unless the fix is something ELSE.
Issue 9: When Jodi moves forward a step to where she’s supposed to be standing when Vincent hugs her, she’s actually a few pixels higher on the screen than other characters even though this is BEFORE the position offsets. This makes the hug look weird, like she's floating, while he's standing.
Cause: ... I still have no idea. She’s on the right square, and characters are supposed to move full squares when directed. Solution: Sneak in a warp to the *same* square right after she moves to that square, which places her correctly. (!?!? It worked and it’s not obvious, but I still don’t get why she wasn’t correctly placed in the first place?)
Issue 10: in second question fork, Vincent is supposed to run up via advancedMove and hug Kent instead. Apparently this bothered him, because instead he wanders offscreen in a direction he was not told to go during the move, and doesn't stop walking. Since the event won't continue until he stops moving, the action can't progress and I have to hit skip to exit.
Cause: as above, sometimes different move instructions affect each other. After sneaking in 10-millisecond pauses between some moves, and testing warping a character to the exact spot they're standing, which are the suggested cures in all the troubleshooting guides… it still happens. So despite the other advancedMove working perfectly, I change this one to 3 much shorter moves.
Issue 11: Vincent now runs as instructed… and ends up a square above his dad, both kind of making vague hug motions at air.
Cause: Despite checking and writing down every single character position and location for this event in advance, I still screwed up positioning. Thankfully, this reduces 3 moves to 1 single move.
Issue 12: With both hugs, the characters jerk weirdly back to position afterwards.
Cause: used a warp to reset, which you ARE supposed to do, but apparently I needed to write a few position offsets reverting the characters to their original place first, to make it look natural.
Issue 13: despite sitting there counting position offsets, Vincent still end ups backing into Evelyn at the end and kind of jitters back forwards into location at the warp. (Jodi is fine).
Cause: Either I am *that* bad at math or, as with the mom earlier, characters moving into a spot don’t actually centre themselves on their new square when they arrive. I *think* it’s the latter but by this time, don’t quote me.
Issue 14: All this while, the music cues have not been working. While fixing other things, moved them a few times, triple-checked they were written correctly. Sound effects seem to be working okay…
Cause: They’ve been working fine. At some point during actual game play on another day entirely, I had turned the music volume off but left sound effects on, which meant I couldn’t hear them, but because I did hear sound effects, it didn’t twig right away.
Event 2: Pierre's Store. Present: Just Pierre, farmer, George.
Errors:
Issue 1: George steers himself directly into (as in inside) a box of fruit.
Cause: Miscounted squares when looking at a map, because I didn’t actually check the location and count squares before writing the event, I just looked at a map and guessed. This works out okay for the farmer, who ended up looking at the wrong shelf but was still standing in an aisle browsing for groceries, and I decided to leave her as is.
Issue 2: Event proceeds as planned up to the question fork, skips that entirely, and jumps to the closing fadeout.
Cause: Put a space in the command quickQuestion so it said quick Question.
Issue 3: in first question fork, the farmer is supposed to walk (in a slight zig-zag to go around George) out the door, warp away, warp back, and walk in a completely straight line up back to George and stop. Instead, the farmer warps away immediately, reappears in doorway, and proceeds to walk in a diagonal line out the wall of the building and into deep space, not stopping. Event is stuck.
Cause: *something* inexplicable went wrong with using an advancedMove for the zig-zag route out, causing it not to happen; which then also messes up the next move after it for reasons that must exist in the deep code somewhere. Solved by turning the single advanced move into 4 separate short move actions. (Note I did not actually have to correct the move where the farmer walked into space; once the advancedMove was gone, that move command did what it was supposed to.)
Issue 4: In other question fork, George is supposed to bend his head slowly then raise it again. Instead he bobs it several times, quickly, and doesn’t stop.
Cause: Put true and false in the wrong two Boolean slots, one for other actions being allowed during animation (should have been “true”) and one for looping (should have been “false). Also misjudged speed of animation and had to increase the number of milliseconds.
Issue 5: First dialogue line keeps reopening, event won’t continue.
Cause: Self-inflicted injury in testing. Forced the event to start while I had the inventory menu open. Which I was warned would freeze the event. Not actually anything inside the event written incorrectly. Anymore.