naninovel integration error

The engine is not working as expected? Documentation is wrong or out of date? Let us know here!
Forum rules
We are not providing support via this forum; it's community-driven. For official support see https://naninovel.com/support/#naninovel-support
Post Reply
curom
Posts: 5
Joined: 08 Nov 2020 13:51

naninovel integration error

Post by curom »

I'm sorry I'm not good at English.

I was creating a project according to the integration of the guide, but I got a script error.

What error is this?

ArgumentException: The Object you want to instantiate is null.
UnityEngine.Object.CheckNullArgument (System.Object arg, System.String message) (at <526469d5a48c43eebd9af19f8745afa1>:0)
UnityEngine.Object.Instantiate[T] (T original) (at <526469d5a48c43eebd9af19f8745afa1>:0)
Naninovel.RuntimeInitializer+<InitializeAsync>d4.MoveNext () (at Assets/Naninovel/Runtime/Engine/RuntimeInitializer.cs:63)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <9577ac7a62ef43179789031239ba8798>:0)
UniRx.Async.UniTaskCompletionSource.UniRx.Async.IAwaiter.GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTaskCompletionSource.cs:112)
UniRx.Async.UniTask.GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTask.cs:59)
UniRx.Async.UniTask+Awaiter.GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTask.cs:226)
SetupGame+<Start>d
1.MoveNext () (at Assets/Script/SetupGame.cs:11)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <9577ac7a62ef43179789031239ba8798>:0)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) (at <9577ac7a62ef43179789031239ba8798>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <526469d5a48c43eebd9af19f8745afa1>:0)
UnityEngine.UnitySynchronizationContext:ExecuteTasks()

Elringus
admin
Posts: 538
Joined: 11 May 2020 18:03

Re: naninovel integration error

Post by Elringus »

curom
Posts: 5
Joined: 08 Nov 2020 13:51

Re: naninovel integration error

Post by curom »

I can do it. thanks.

curom
Posts: 5
Joined: 08 Nov 2020 13:51

Re: naninovel integration error

Post by curom »

In the integration tutorial, when I select ”go to novel mode” in the Test naniscript choices, it stops with the error below.

Exception: Failed to load Adventure UI text printer resource object. Make sure the printer is correctly configured.
Naninovel.UITextPrinter+<InitializeAsync>d34.MoveNext () (at Assets/Naninovel/Runtime/Actor/TextPrinter/UITextPrinter.cs:52)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <9577ac7a62ef43179789031239ba8798>:0)
UniRx.Async.UniTaskCompletionSource.UniRx.Async.IAwaiter.GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTaskCompletionSource.cs:112)
UniRx.Async.UniTask.GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTask.cs:59)
UniRx.Async.UniTask+Awaiter.GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTask.cs:226)
Naninovel.ActorManager4+<ConstructActorAsync>d__34[TActor,TState,TMeta,TConfig].MoveNext () (at Assets/Naninovel/Runtime/Actor/ActorManager.cs:218)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <9577ac7a62ef43179789031239ba8798>:0)
UniRx.Async.UniTaskCompletionSource
1[T].UniRx.Async.IAwaiter<T>.GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTaskCompletionSource.cs:281)
UniRx.Async.UniTask1[T].get_Result () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTask.cs:315)
UniRx.Async.UniTask
1+Awaiter[T].GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTask.cs:449)
Naninovel.OrthoActorManager4+<ConstructActorAsync>d__11[TActor,TState,TMeta,TConfig].MoveNext () (at Assets/Naninovel/Runtime/Actor/OrthoActorManager.cs:49)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <9577ac7a62ef43179789031239ba8798>:0)
UniRx.Async.UniTaskCompletionSource
1[T].UniRx.Async.IAwaiter<T>.GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTaskCompletionSource.cs:281)
UniRx.Async.UniTask1[T].get_Result () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTask.cs:315)
UniRx.Async.UniTask
1+Awaiter[T].GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTask.cs:449)
Naninovel.ActorManager4+<AddActorAsync>d__22[TActor,TState,TMeta,TConfig].MoveNext () (at Assets/Naninovel/Runtime/Actor/ActorManager.cs:132)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <9577ac7a62ef43179789031239ba8798>:0)
UniRx.Async.UniTaskCompletionSource
1[T].UniRx.Async.IAwaiter<T>.GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTaskCompletionSource.cs:281)
UniRx.Async.UniTask1[T].get_Result () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTask.cs:315)
UniRx.Async.UniTask
1+Awaiter[T].GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTask.cs:449)
Naninovel.ActorManagerExtensions+<GetOrAddActorAsync>d
14[TActor,TState,TMeta,TConfig].MoveNext () (at Assets/Naninovel/Runtime/Actor/ActorManagerExtensions.cs:29)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <9577ac7a62ef43179789031239ba8798>:0)
UniRx.Async.UniTaskCompletionSource
1[T].UniRx.Async.IAwaiter<T>.GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTaskCompletionSource.cs:281)
UniRx.Async.UniTask1[T].get_Result () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTask.cs:315)
UniRx.Async.UniTask
1+Awaiter[T].GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTask.cs:449)
Naninovel.Commands.PrinterCommand+<GetOrAddPrinterAsync>d13.MoveNext () (at Assets/Naninovel/Runtime/Command/Printer/PrinterCommand.cs:39)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <9577ac7a62ef43179789031239ba8798>:0)
UniRx.Async.UniTaskCompletionSource1[T].UniRx.Async.IAwaiter<T>.GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTaskCompletionSource.cs:281)
UniRx.Async.UniTask
1[T].get_Result () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTask.cs:315)
UniRx.Async.UniTask`1+Awaiter[T].GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTask.cs:449)
Naninovel.Commands.PrinterCommand+<PreloadResourcesAsync>d
11.MoveNext () (at Assets/Naninovel/Runtime/Command/Printer/PrinterCommand.cs:20)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <9577ac7a62ef43179789031239ba8798>:0)
UniRx.Async.UniTaskCompletionSource.UniRx.Async.IAwaiter.GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTaskCompletionSource.cs:112)
UniRx.Async.UniTask.GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTask.cs:59)
UniRx.Async.UniTask+WhenAllPromise..ctor (U

Elringus
admin
Posts: 538
Joined: 11 May 2020 18:03

Re: naninovel integration error

Post by Elringus »

Just as it's mentioned in the message, you're missing Adventure printer. Please contact the support for further questions: https://naninovel.com/support/#developer-support (we're not providing support on the forum)

curom
Posts: 5
Joined: 08 Nov 2020 13:51

Re: naninovel integration error

Post by curom »

I understand. Thank you.

Post Reply