Skip to content
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

Unable to properly invoke variables in Dialogic. #2224

Open
NoaIce opened this issue May 10, 2024 · 11 comments
Open

Unable to properly invoke variables in Dialogic. #2224

NoaIce opened this issue May 10, 2024 · 11 comments
Labels
Bug 🐞 Something isn't working

Comments

@NoaIce
Copy link

NoaIce commented May 10, 2024

Describe the bug

After setting up variables as float and int in Dialogic, when attempting to increase or decrease values in the timeline, all options become "="

To Reproduce

1.Setting up the label to display variables.
2.Pre-set variables to 20.
3.In the timeline, set options and specify "set {Variables} += 5".
4.Press F6, Variables = 20.
5.Execute the timeline, press the option, and Variables = 5.

System (please complete the following information):

  • OS: [ Windows ]
  • Godot Version: [4.2.2]
  • Dialogic Version: [2.0 Alpha-13] ->[(Main)2.0 Alpha-13]
@CakeVR CakeVR added the Bug 🐞 Something isn't working label May 10, 2024
@CakeVR
Copy link
Collaborator

CakeVR commented May 10, 2024

Hello, please try the latest commit on the main branch!

Take a look how to, if you need help: https://docs.dialogic.pro/getting-started.html#-how-to-install-the-latest-wip-version-

@NoaIce
Copy link
Author

NoaIce commented May 10, 2024

Sorry, I don't understand what you mean by "in the latest commit on the main branch."
I only set up three variables in Dialogic.
In the root directory, like
Under Miya_var, HaveLike and HavePT
Because these variables were originally set for the character Miya
But during testing, I found that executing the timeline would overwrite existing values.
Later attempts revealed that
"+="
"-="
"*="
"/="
All these functionalities only execute the effect of "="

This is my setup.
001
002

And this is the scene I used for testing.
At the beginning, the preset values are correct.

003

When Option 1 is used, havelike +1, but the value of havelike becomes 1 instead of 21.
004

When Option 2 is used, like +5, but like becomes 5 instead of 25.
005
image

Here is the appearance of the timeline text editor.
image

@CakeVR
Copy link
Collaborator

CakeVR commented May 10, 2024

What I meant by my previous post, is to update your Dialogic 2 version to the one you can find on the main branch on this repository. I provided the link on how you can achieve this in that post.

@NoaIce
Copy link
Author

NoaIce commented May 10, 2024

Oh, I see. My apologies.
I downloaded Dialogic for the first time yesterday,
and this version is what I downloaded. I put all the data into res://. Is this the correct approach?

As shown in the picture
image
image

@CakeVR
Copy link
Collaborator

CakeVR commented May 10, 2024

No, now you have two Dialogics installed.

The link I sent you has a previous category that walks you through the entire process: https://docs.dialogic.pro/getting-started.html#1-installation--activation

@NoaIce
Copy link
Author

NoaIce commented May 10, 2024

Oh, sorry for the confusion.
The "Dialogic" folder under assets is where I put the Dialogic character data... Wait, could this be the reason?

I've been working on this project for the past couple of days to test some addons. Before Dialogic, I was testing the Dialogue Manager. To distinguish between file types, I used the name "Dialogic."

I'm really sorry about that.

@CakeVR
Copy link
Collaborator

CakeVR commented May 10, 2024

You also have the Tests folder installed, if you followed the link, this should not have been added to the root or anywhere in the project.

Please cleanly remove Dialogic and install it again.

@NoaIce
Copy link
Author

NoaIce commented May 10, 2024

I created a new Godot project, installed Dialogic 2.0Alpha-13, and restarted.
Then I reconfigured the variables and modified them in the options.
However, the result remains the same.
This is the only code I'm using to display variables and activate the Timeline.
image

Below are other settings

image
image
image
image
image

@CakeVR
Copy link
Collaborator

CakeVR commented May 10, 2024

If you have installed Alpha 13, you may have not followed my instruction to install the main branch on this repository.
Please ensure you have installed that version. You can verify this by showing the version at the bottom-left of the Dialogic tab window.

@NoaIce
Copy link
Author

NoaIce commented May 11, 2024

You mean this one, right?

image

But I downloaded it from here......

image

Sorry, let me look again.

By the way, just to clarify, what should be displayed in the version number if it's correctly installed?

@NoaIce
Copy link
Author

NoaIce commented May 11, 2024

Ah... it seems like the issue might be with the Main file.
I couldn't find any other versions,
so this time I went ahead and downloaded the file for version 2.0 Alpha-13. After testing it,
everything seems to be working fine.

image

Do I need to change the version number at the top? But it also displays 2.0 Alpha-13.

image

Sorry for asking another unrelated question, but how do I safely uninstall plugins?
Although I'm currently testing issues by creating a new project directly, it's because when I deleted the plugin files earlier,
the entire project encountered errors, so I did it this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐞 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants