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

There are errors and missing imports after initial download. #6

Open
cwheelen opened this issue Apr 20, 2023 · 3 comments
Open

There are errors and missing imports after initial download. #6

cwheelen opened this issue Apr 20, 2023 · 3 comments

Comments

@cwheelen
Copy link

I am new to using Github to download things, and even more new to creating bullet hells but have experience with unity. I followed the instructions on the set up website and when I loaded the project up there were errors as well as things saying they were not imported. I downloaded the textMeshPro and made sure I was running 2022.2.13, but there were still errors. An example would be when I try to run SiMP the menu loads and plays perfectly fine but when it tries to load the stage it throws this error:

"Frame 543: Exceptions occured within a task continuation. If this continuation is awaited by the main thread, then this error may be repeated.
One or more errors occurred. (Failed to load stage 1 for campaign simp.main)
Aggregate exception #1/1:
Failed to load stage 1 for campaign simp.main

at Danmokou.Scriptables.BaseCampaignConfig.LoadStageSceneOrThrow (Danmokou.GameInstance.InstanceRequest req, System.Int32 index) [0x00028] in D:\Unity\pls\Assets\Danmokou\Plugins\Danmokou\Danmaku\Scriptables\CampaignConfig.cs:62
"
And when I try to run the generic scene in Danmokou there are six errors preventing anything from being playing.

"NullReferenceException: Object reference not set to an instance of an object
Danmokou.UI.UIManager.Awake () (at Assets/Danmokou/Plugins/Danmokou/Danmaku/UI/UIManager.cs:122)

NullReferenceException: Object reference not set to an instance of an object
Danmokou.Player.PlayerController.Awake () (at Assets/Danmokou/Plugins/Danmokou/Danmaku/Player/PlayerController.cs:183)

NullReferenceException: Object reference not set to an instance of an object
Danmokou.VN.DMKVNWrapper.Awake () (at Assets/Danmokou/Plugins/Danmokou/Danmaku/VN/DMKVNWrapper.cs:25)

NullReferenceException: Object reference not set to an instance of an object
Danmokou.UI.XML.XMLPracticeSuccessMenu+<>c.b__2_0 (Danmokou.GameInstance.InstanceData i) (at Assets/Danmokou/Plugins/Danmokou/Danmaku/UI/XML/XMLPracticeSuccessMenu.cs:43)
BagoumLib.Extensions+<>c__DisplayClass13_02[T,U].<BindSubscribe>b__0 (T o) (at E:/Workspace/Suzunoya/BagoumLib/Extensions.cs:195) System.Reactive.AnonymousObserver1[T].OnNextCore (T value) (at /_/Rx.NET/Source/src/System.Reactive/AnonymousObserver.cs:67)
System.Reactive.ObserverBase1[T].OnNext (T value) (at /_/Rx.NET/Source/src/System.Reactive/ObserverBase.cs:34) BagoumLib.Events.Evented1[T].Subscribe (System.IObserver1[T] observer) (at E:/Workspace/Suzunoya/BagoumLib/Events/Evented.cs:39) System.ObservableExtensions.Subscribe[T] (System.IObservable1[T] source, System.Action1[T] onNext) (at /_/Rx.NET/Source/src/System.Reactive/Observable.Extensions.cs:63) BagoumLib.Extensions.BindSubscribe[T,U] (System.IObservable1[T] obj, System.Func2[T,TResult] element, System.Action1[T] cb) (at E:/Workspace/Suzunoya/BagoumLib/Extensions.cs:194)
Danmokou.Behavior.RegularUpdater.Listen[T,E] (System.IObservable1[T] obj, System.Func2[T,TResult] ev, System.Action`1[T] sub) (at Assets/Danmokou/Plugins/Danmokou/Core/Behavior/RegularUpdater.cs:31)
Danmokou.UI.XML.XMLPracticeSuccessMenu.BindListeners () (at Assets/Danmokou/Plugins/Danmokou/Danmaku/UI/XML/XMLPracticeSuccessMenu.cs:43)
Danmokou.Behavior.RegularUpdater.EnableUpdates () (at Assets/Danmokou/Plugins/Danmokou/Core/Behavior/RegularUpdater.cs:21)
Danmokou.Behavior.RegularUpdater.OnEnable () (at Assets/Danmokou/Plugins/Danmokou/Core/Behavior/RegularUpdater.cs:46)

NullReferenceException: Object reference not set to an instance of an object
Danmokou.Behavior.Items.PoC.Awake () (at Assets/Danmokou/Plugins/Danmokou/Danmaku/Behavior/Items/PoC.cs:17)"

I am guessing something did not get downloaded and I may have overlooked it in the set up, but I have done it twice and tried to make sure I did everything right, but I am not sure where to go from here.

@Bagoum
Copy link
Owner

Bagoum commented Apr 20, 2023

It seems to me that GameManagement is not starting up properly. I created a new repo and opened BasicSceneOPENME, producing the following messages:

Unity_4udKgl2Jkj

The important one is the "Frame 0: Danmokou v10.1.0, Default v1.0.0,...". If you see any errors before that message, it means that GameManagement hasn't initialized properly, which might have two causes:

  • The GameManagement object is disabled, or the GameManagement script on the GameManagement object is disabled
  • GameManagement does not have script execution priority in Project Settings > Script Execution Order (it should be -102)

If the script execution order isn't setup, then that means you might have deleted the .meta files from the repository, for example, this file.

@cwheelen
Copy link
Author

Surprisingly BasicSceneOPENME works without any problems (that I can notice anyway) that seems to be the only one working as intended though. And the WorkingScene in LuA works. How would I check the GameManagement object?

@Bagoum
Copy link
Owner

Bagoum commented Apr 24, 2023

If BasicSceneOPENME works, then that means there aren't any real issues. In the case of the SiMP main menu not working, make sure that the SiMP scenes are all enabled in the build settings. Other than BasicSceneOPENME, only the various WorkingScenes and the MainMenu scenes can be directly run. Scenes for levels, including Scenes/Generic/BaseLevel and everything else in Scenes/Generic, can only be run after starting the game on the main menu and loading into the scene.

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