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

Problem with installing GUT plugin for Godot 4.2 #604

Open
SpiritIV opened this issue May 13, 2024 · 12 comments
Open

Problem with installing GUT plugin for Godot 4.2 #604

SpiritIV opened this issue May 13, 2024 · 12 comments

Comments

@SpiritIV
Copy link

Versions

(list all versions where you have replicated the bug)

  • Godot: 4.2
  • GUT: GUT 9.2.1
  • OS: Ubuntu 22.04 LTS

The Bug

I got some strange bug with installing GUT plugin. After installing it from official AssetLib, I can't add it to scene like a node.

You can see that it is not a scene or a node

Screenshot from 2024-05-06 15-03-56

Steps To Reproduce

I tried to delete folder ".godot" and reinstall godot project.

@SpiritIV SpiritIV changed the title Problem with thr installing GUT plugin for Godot 4.2 Problem with installing GUT plugin for Godot 4.2 May 13, 2024
@bitwes
Copy link
Owner

bitwes commented May 13, 2024

Did you activate the plugin in project settings, add-ons tab? Also you don't need to make a scene anymore unless you want to run tests in an exported project. You should see "Gut" in as a bottom tab, down by debug and output.

@SpiritIV
Copy link
Author

Yes, I activated it in setting (checked "Enable" field).

@SpiritIV
Copy link
Author

Did you activate the plugin in project settings, add-ons tab? Also you don't need to make a scene anymore unless you want to run tests in an exported project. You should see "Gut" in as a bottom tab, down by debug and output.

I would like to implement tests during the start of project than I need a Gut node (

@bitwes
Copy link
Owner

bitwes commented May 13, 2024

The new name for that node is GutControl.

https://gut.readthedocs.io/en/latest/Running-On-Devices.html

@bitwes
Copy link
Owner

bitwes commented May 14, 2024

I noticed you are using Add Node, you should be using the "instantiate child scene" button:
image

@SpiritIV
Copy link
Author

Thank you for your comments! It works =)

@SpiritIV
Copy link
Author

SpiritIV commented May 15, 2024

What does it mean?
Screenshot from 2024-05-15 12-23-42

@bitwes
Copy link
Owner

bitwes commented May 15, 2024

Based on the screenshot it looks like you attached a script to the GutControl node instead of the UnitTests node. The error message is telling you that a script has the line extends Node2D but is attached to a Control node. You should not be attaching scripts to the GutControl node, replacing the script on it will break it.

Can I ask why you are trying to get tests to run when the game is launched? It's much easier/faster to develop your tests/game using the Gut Panel (see screenshot below). Running tests through a scene is usually not needed until much later.

image

@SpiritIV
Copy link
Author

I tried to implement it to my product crew and run automatic during the start. It will be easier to implement scene with tests but not to teach my teammates to use GUT.

@bitwes
Copy link
Owner

bitwes commented May 16, 2024

Gotcha. Were you able to get it working?

@SpiritIV
Copy link
Author

I'm on the way) Try to run it

@SpiritIV
Copy link
Author

It works! I added scene with tests before game's start.
Thank you for your answer and support =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants