lampe-games / godot-open-rts

Open Source RTS game made in Godot 4
https://lampe-games.itch.io/open-rts
MIT License
593 stars 79 forks source link

Broken Dependencies on Fresh Imports #108

Open surapuramakhil opened 4 months ago

surapuramakhil commented 4 months ago

image

Scony commented 4 months ago

What godot version it is? and what os?

ahodgins commented 2 months ago

I could replicate the error on my windows 11 machine.

This error occurs when you open it from directly inside of it's folder when downloaded. It will open up in 4.0.

If you import and edit from 4.2.1 or 4.2.2 that error goes away for me but I am experiencing another issue.

In 4.2.2 the load errors issue is resolved but when running the game I get this error attached. This error is not present and runs fine in 4.0. error

Scony commented 2 months ago

Thanks for info.

As for 4.2.2 - this looks to be not supported yet, as I'm still on 4.2. As for using 4.1 or 4.0 - those are not supported. If you want to use those Godot versions, you need to use this project with legacy branch such as https://github.com/lampe-games/godot-open-rts/tree/godot-4.1-support or https://github.com/lampe-games/godot-open-rts/tree/godot-4.0-support

medovina commented 2 months ago

I'm running Ubuntu 24.04.

I cloned godot-open-rts from the repository and attempted to open the project using Godot versions 4.2-stable, 4.2.1-stable and 4.2.2-stable. Unfortunately it failed in every case.

With Godot 4.2 and 4.2.1 I saw these errors:

Failed to load script "res://source/match/units/non-player/ResourceA.gd" with error "Parse error".
Failed to load script "res://source/match/units/non-player/ResourceB.gd" with error "Parse error".
Failed to load script "res://source/match/AirNavigation.gd" with error "Parse error".
Failed to load script "res://source/match/Navigation.gd" with error "Parse error".
Failed to load script "res://source/match/TerrainNavigation.gd" with error "Parse error".

Load failed due to missing dependencies:
res://source/Logos.tscn

With Godot 4.2.2 the errors were similar, but it displayed more information about the missing dependencies in Logos.tscn, as visible in the screenshot at the top of this page.

medovina commented 2 months ago

In Godot 4.2.2, after all those errors that occur while opening the project, if I try to run the project I see this error:

Parser Error: Could not preload resource file "res://assets/voice/english/battle_control_online.ogg"

However, if I cancel the run, and then run the game a second time, it works fine!

Scony commented 1 month ago

Ok, looks like I need to check this, thanks!

Scony commented 1 month ago

Ok, I can confirm this problem myself. Interestingly, if I quit the project and enter again, the errors are gone. Therefore it must be something related to initial project loading... I'll cross check with Godot 4.3.