-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bondagejs omits \n from text results #62
Comments
A possible way to solve this is have yarn communicate to the wrapper the line number it got it's result from. We have data.body, why not also add data.lineNumber |
The end of line token is a null |
I submitted a PR to add the line coordinates data to text and command results. That should enable me to fix this on gdevelop, without resorting to hacky code |
the fix was merged now, so closing this issue |
Basically this becomes a problem when you want
Case1 where you want the command to happen in the middle of a line, without breaking the line into two lines
1.my dialogue <<command>> happened\n
Case2 where the command happens between two lines
At the moment everyone trying to write a wrapper for bondagejs has no way of distinguishing between the two use cases, so we are forced to break dialogue lines when using a command in the middle of the dialogue or replace the command with a space.
We can't have predictable behaviour for both Case1 and Case2 input.
if bondagejs didn't omit the
\n
, the wrapper would at least know how to detect if the previous line ended with a \n and the wrapper to distinguish between case1 and case2People using it in gdevelop keep filing bugs about it and there is no patchy way to fix it in the wrapper. It needs to be addressed here first to be fixed :/
We need some sort of a mechanic to detect if a text result starts at a new line or is continuing after a command on the same line
The text was updated successfully, but these errors were encountered: