Potions in dreams?
Friends Beyond 3: Legend of Tenjin
I have read the walkthrough & it said that if you bought the bonca doll & sleep at inns, there is a chance that you might encounter a potion.
I have done so & tried sleeping at an inn. However when a potion pops up in the dream (some lost forest?), I am unable to get it. Dink just walks by & misses the potion (I can't move Dink too during the dream). When the dream sequence ends, my stats are still the same. Is there a way to get the potion?
I have done so & tried sleeping at an inn. However when a potion pops up in the dream (some lost forest?), I am unable to get it. Dink just walks by & misses the potion (I can't move Dink too during the dream). When the dream sequence ends, my stats are still the same. Is there a way to get the potion?
May 29th, 11:12 AM

Kickling
It's 2026 and I'm playing this... Same problem. I think the line of his walk needs to be edited by the developer to pass over the potion.
May 29th, 11:46 AM

Kickling
... also adding that when Dink tries to stay at the hotel to sleep, three things happen. But it depends on the hotel.
Beach Hotel - Either (a) the screen stays black and does not return back to a playable mode, or (b) Dink has a dream and then wakes up, and you can control Dink and leave the hotel. But You cannot exit the screen to the adjacent side map pages. Or (c) Dink sleeps, no dream, wakes up and gains full health but you cannot control him and he is stuck on the spot.
Southtown Hotel - Either (a) Dink sleeps with no dream and you can play on normally, or (b) Dink has a dream and wakes up but you cannot control him and he is stuck on the spot.
Citra Hotel - Either (a) Dink sleeps, no dream, the screen stays black and does not return back to a playable mode, or (b) dream (with collectable potion finally) but wakes up and you cannot control him.
Have tried playing with Dfarc and also dinkHD. No change to outcomes.
Also after sleep, if you are holding the ribbon, the game forgets to make you speedy and you need to re-equip it.
Beach Hotel - Either (a) the screen stays black and does not return back to a playable mode, or (b) Dink has a dream and then wakes up, and you can control Dink and leave the hotel. But You cannot exit the screen to the adjacent side map pages. Or (c) Dink sleeps, no dream, wakes up and gains full health but you cannot control him and he is stuck on the spot.
Southtown Hotel - Either (a) Dink sleeps with no dream and you can play on normally, or (b) Dink has a dream and wakes up but you cannot control him and he is stuck on the spot.
Citra Hotel - Either (a) Dink sleeps, no dream, the screen stays black and does not return back to a playable mode, or (b) dream (with collectable potion finally) but wakes up and you cannot control him.
Have tried playing with Dfarc and also dinkHD. No change to outcomes.
Also after sleep, if you are holding the ribbon, the game forgets to make you speedy and you need to re-equip it.
Well, I doubt the original author is still around. So the only likely way any of these gets fixed if Rob decides to help out and find the buggy scripts and fixes them for the community.
Or maybe someone else is willing IDK. Others don't tend to fix someone else's D-Mod, only their own. Or they're engine developers and focus on the issues on engine bugs. Or they can't script.
Anyway, I guess after my thought dump, I'd like to thank the people who still contribute to this community. Whether they be engine updates, fixes for D-Mods or just testing to find stuff.
Or maybe someone else is willing IDK. Others don't tend to fix someone else's D-Mod, only their own. Or they're engine developers and focus on the issues on engine bugs. Or they can't script.
Anyway, I guess after my thought dump, I'd like to thank the people who still contribute to this community. Whether they be engine updates, fixes for D-Mods or just testing to find stuff.
>release date February 7th 2001
Whew, Tenjin is old. I think you'd have to play it on v1.06 to play it on the engine version it was developed on, which may or may not have the same problem.
I'm actually a little bit curious to see what the problem is, @Kickling could you upload a save file somewhere with the doll near an inn, so that I can check it out without having to figure out how to get to that point first?
Whew, Tenjin is old. I think you'd have to play it on v1.06 to play it on the engine version it was developed on, which may or may not have the same problem.
I'm actually a little bit curious to see what the problem is, @Kickling could you upload a save file somewhere with the doll near an inn, so that I can check it out without having to figure out how to get to that point first?
I have snooped a bit and I have found the problem. It was probably an oversight from the author when writing the code for that scene and there's nothing you can do in game to fix it.
It is on screen 309. Dink is taken there by the script "dream4" which moves him around the screen a bit but moves him a bit too much to the left at one point making him miss the potion by just a few pixels.
Idk if you are familiar with script/code editing @Kickling, but you could go to your dmods folder, access the game's code folder "fb3/story" and open the game file "dream4.c" on Notepad to fix the code.
All you need is to do is change one number on line 23:
Where it says:
move_stop(1, 4, 300, 1);
Change it to:
move_stop(1, 4, 325, 1);
That will make it so Dink doesn't move too much to the left and aligns correctly with the potion.
If you don't want to mess with the code, unfortunately you cannot get that potion as it really is an error, but at least now you know that.
It is on screen 309. Dink is taken there by the script "dream4" which moves him around the screen a bit but moves him a bit too much to the left at one point making him miss the potion by just a few pixels.
Idk if you are familiar with script/code editing @Kickling, but you could go to your dmods folder, access the game's code folder "fb3/story" and open the game file "dream4.c" on Notepad to fix the code.
All you need is to do is change one number on line 23:
Where it says:
move_stop(1, 4, 300, 1);
Change it to:
move_stop(1, 4, 325, 1);
That will make it so Dink doesn't move too much to the left and aligns correctly with the potion.
If you don't want to mess with the code, unfortunately you cannot get that potion as it really is an error, but at least now you know that.
May 30th, 10:52 AM

Kickling
Here's a Drive folder with share access. Save file and Dream4.c file.
https://drive.google.com/drive/folders/1ERbQ7G6seZNgYqSp_0bhQ68ksgLh1U4r?usp=drive_link
Yup, I can edit and code a bit.
I can't get it to reflect my changes whatsoever. As a secondary test, I even changed his text/speech part to have "aaa" in front so that I know the test distinctly works when he goes into the dream and speaks, but it doesn't change. I even deleted the dream4.d file (compiled d file) to force it to pickup my new dream4.c file but even then it doesn't change.
So somehow, for both DFARC and DinkHD, it is keeping an original copy of all the core dmod game files somewhere/elsewhere and ignoring what is in the "story" folder. Restarting DFARC and DinkHD doesn't change anything.
Do I need to recompile (however you do that) and reinstall the dmod with the updated dream4.c and dream4.d files? ie a game update? Is there a cache somewhere in Windows that is keeping these files?
https://drive.google.com/drive/folders/1ERbQ7G6seZNgYqSp_0bhQ68ksgLh1U4r?usp=drive_link
Yup, I can edit and code a bit.
I can't get it to reflect my changes whatsoever. As a secondary test, I even changed his text/speech part to have "aaa" in front so that I know the test distinctly works when he goes into the dream and speaks, but it doesn't change. I even deleted the dream4.d file (compiled d file) to force it to pickup my new dream4.c file but even then it doesn't change.
So somehow, for both DFARC and DinkHD, it is keeping an original copy of all the core dmod game files somewhere/elsewhere and ignoring what is in the "story" folder. Restarting DFARC and DinkHD doesn't change anything.
Do I need to recompile (however you do that) and reinstall the dmod with the updated dream4.c and dream4.d files? ie a game update? Is there a cache somewhere in Windows that is keeping these files?
Here's a Drive folder with share access. Save file and Dream4.c file.
Thanks! That's helpful.
It is on screen 309. Dink is taken there by the script "dream4" which moves him around the screen a bit but moves him a bit too much to the left at one point making him miss the potion by just a few pixels.
I think you should actually edit s3-inn.c, it has the same dream sequence inside it but the script doesn't just end with the following:
Also I feel like I'm taking crazy pills, but Dink doesn't unfreeze at the end of that script even though it's moving him with move_stop. 100% that should unfreeze Dink, but it doesn't either on Yeoldedink or some ancient version of Freedink I tried it on... (on Dink HD he doesn't even unfreeze at the end of the whole script, which I'm guessing is because the script hangs up on say_stop("`3Thank you, come again.", ¤t_sprite), while the Freedink engine family just skips over that faulty command and still runs the unfreeze later in the script)
I can't get it to reflect my changes whatsoever. As a secondary test, I even changed his text/speech part to have "aaa" in front so that I know the test distinctly works when he goes into the dream and speaks, but it doesn't change. I even deleted the dream4.d file (compiled d file) to force it to pickup my new dream4.c file but even then it doesn't change.
See above, you should actually edit the innkeeper's script. I think the dreamX.c scripts are just placeholders Wesley wrote the dream sequences in, then copied them into other scripts. You should also change the last dink_can_walk_off_screen(1) into dink_can_walk_off_screen(0), otherwise he can walk past screen borders after that dream.
No need to compile anything, I'm not sure if it defaults to reading the .D files instead of .C files if they're in the same folder, but if the .D folders are in a subfolder they're harmless. (Also completely useless, I'm not sure why the dmod still has those.
)
I also took a look at a few of the other inn scripts, and they're just shoddily scripted and never would've worked correctly on any version:
s4-inn plays some parts twice if you have the doll (although the script should still generally work)
s6-inn only does script_attach(1000) if you have the bonca doll, but it reloads the screen regardless so without the correct doll the script dies prematurely.
Thanks! That's helpful.
It is on screen 309. Dink is taken there by the script "dream4" which moves him around the screen a bit but moves him a bit too much to the left at one point making him miss the potion by just a few pixels.
I think you should actually edit s3-inn.c, it has the same dream sequence inside it but the script doesn't just end with the following:
move_stop(1, 2, 100, 1);
say("?", 1);
dink_can_walk_off_screen(0);
}
Also I feel like I'm taking crazy pills, but Dink doesn't unfreeze at the end of that script even though it's moving him with move_stop. 100% that should unfreeze Dink, but it doesn't either on Yeoldedink or some ancient version of Freedink I tried it on... (on Dink HD he doesn't even unfreeze at the end of the whole script, which I'm guessing is because the script hangs up on say_stop("`3Thank you, come again.", ¤t_sprite), while the Freedink engine family just skips over that faulty command and still runs the unfreeze later in the script)
I can't get it to reflect my changes whatsoever. As a secondary test, I even changed his text/speech part to have "aaa" in front so that I know the test distinctly works when he goes into the dream and speaks, but it doesn't change. I even deleted the dream4.d file (compiled d file) to force it to pickup my new dream4.c file but even then it doesn't change.
See above, you should actually edit the innkeeper's script. I think the dreamX.c scripts are just placeholders Wesley wrote the dream sequences in, then copied them into other scripts. You should also change the last dink_can_walk_off_screen(1) into dink_can_walk_off_screen(0), otherwise he can walk past screen borders after that dream.
No need to compile anything, I'm not sure if it defaults to reading the .D files instead of .C files if they're in the same folder, but if the .D folders are in a subfolder they're harmless. (Also completely useless, I'm not sure why the dmod still has those.
I also took a look at a few of the other inn scripts, and they're just shoddily scripted and never would've worked correctly on any version:
s4-inn plays some parts twice if you have the doll (although the script should still generally work)
s6-inn only does script_attach(1000) if you have the bonca doll, but it reloads the screen regardless so without the correct doll the script dies prematurely.
May 30th, 12:40 PM

Kickling
Super. All fixed (for Beach inn) by editing s3-inn.c file. Thanks mate.
Line 70 changed to : move_stop(1, 4, 325, 1); // to get walking line to go over red potion
Line 75 changed to : dink_can_walk_off_screen(0); // to allow movement into next screens
Line 92 added : unfreeze(1); // to unfreeze his control after walking into the middle of the hotel room
Didn't figure out how to fix the blackout (missing fade up somewhere) if you don't dream at all...
Line 70 changed to : move_stop(1, 4, 325, 1); // to get walking line to go over red potion
Line 75 changed to : dink_can_walk_off_screen(0); // to allow movement into next screens
Line 92 added : unfreeze(1); // to unfreeze his control after walking into the middle of the hotel room
Didn't figure out how to fix the blackout (missing fade up somewhere) if you don't dream at all...
You know, this gives me an idea about a collective community project that fixes still existing issues in old D-Mods. It's just an idea, and frankly, I wouldn't be much help, as I suck at the scripting part. What I can do is test stuff. Maybe it'd be a time to end my Dink break.










