Cradle
Cradle copied to clipboard
Cradle timeouts when trying to extract Clockwork.html story data with Unity 2020.3.22f1
The example in the project isn't being imported properly.
When I install the package, it adds an example. Cradle is supposed to read the html file, but it doesn't work properly with newer versions of Unity. The errors shown upon import are as follows:
Timeout while trying to extract the story data.
UnityEngine.Debug:LogErrorFormat (string,object[])
Cradle.Editor.Utils.PhantomJS:Run<Cradle.Editor.StoryFormats.Harlowe.HarloweStoryData> (string,string,bool) (at C:/Projects/(external)/Cradle/unity/Cradle/Assets/Cradle/.src/Cradle.Editor/Editor/Utils/PhantomJS.cs:64)
Cradle.Editor.StoryFormats.Harlowe.HarloweTranscoder:Init () (at C:/Projects/(external)/Cradle/unity/Cradle/Assets/Cradle/.src/Cradle.Editor/Editor/StoryFormats/Harlowe/HarloweTranscoder.cs:114)
Cradle.Editor.StoryImporter:Transcode () (at C:/Projects/(external)/Cradle/unity/Cradle/Assets/Cradle/.src/Cradle.Editor/Editor/StoryImporter.cs:44)
Cradle.Editor.CradleAssetProcessor:OnPostprocessAllAssets (string[],string[],string[],string[]) (at C:/Projects/(external)/Cradle/unity/Cradle/Assets/Cradle/.src/Cradle.Editor/Editor/CradleAssetProcessor.cs:83)
UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets (string[],string[],string[],string[],string[])
StoryImportException: HTML or JavaScript errors encountered in the Harlowe story. Does it load properly in a browser?
Cradle.Editor.StoryFormats.Harlowe.HarloweTranscoder.Init () (at C:/Projects/(external)/Cradle/unity/Cradle/Assets/Cradle/.src/Cradle.Editor/Editor/StoryFormats/Harlowe/HarloweTranscoder.cs:121)
Cradle.Editor.StoryImporter.Transcode () (at C:/Projects/(external)/Cradle/unity/Cradle/Assets/Cradle/.src/Cradle.Editor/Editor/StoryImporter.cs:44)
Cradle.Editor.CradleAssetProcessor.OnPostprocessAllAssets (System.String[] importedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromAssetPaths) (at C:/Projects/(external)/Cradle/unity/Cradle/Assets/Cradle/.src/Cradle.Editor/Editor/CradleAssetProcessor.cs:83)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <695d1cc93cca45069c528c15c9fdd749>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <695d1cc93cca45069c528c15c9fdd749>:0)
UnityEditor.AssetPostprocessingInternal.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) (at <2cd7ebc9c2ef4276a8edbc7de85c89ce>:0)
UnityEditor.AssetPostprocessingInternal.PostprocessAllAssets (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromPathAssets) (at <2cd7ebc9c2ef4276a8edbc7de85c89ce>:0)
I often forget to export from Twine before loading it. Try exporting into your asset and Unity should load them properly.
From: Edward Luo @.> Sent: November 6, 2021 5:41 AM To: daterre/Cradle @.> Cc: Subscribed @.***> Subject: [daterre/Cradle] Cradle timeouts when trying to extract Clockwork.html story data with Unity 2020.3.22f1 (Issue #93)
The example in the project isn't being imported properly.
When I install the package, it adds an example. Cradle is supposed to read the html file, but it doesn't work properly with newer versions of Unity. The errors shown upon import are as follows:
Timeout while trying to extract the story data.
UnityEngine.Debug:LogErrorFormat (string,object[]) Cradle.Editor.Utils.PhantomJS:Run<Cradle.Editor.StoryFormats.Harlowe.HarloweStoryData> (string,string,bool) (at C:/Projects/(external)/Cradle/unity/Cradle/Assets/Cradle/.src/Cradle.Editor/Editor/Utils/PhantomJS.cs:64) Cradle.Editor.StoryFormats.Harlowe.HarloweTranscoder:Init () (at C:/Projects/(external)/Cradle/unity/Cradle/Assets/Cradle/.src/Cradle.Editor/Editor/StoryFormats/Harlowe/HarloweTranscoder.cs:114) Cradle.Editor.StoryImporter:Transcode () (at C:/Projects/(external)/Cradle/unity/Cradle/Assets/Cradle/.src/Cradle.Editor/Editor/StoryImporter.cs:44) Cradle.Editor.CradleAssetProcessor:OnPostprocessAllAssets (string[],string[],string[],string[]) (at C:/Projects/(external)/Cradle/unity/Cradle/Assets/Cradle/.src/Cradle.Editor/Editor/CradleAssetProcessor.cs:83) UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets (string[],string[],string[],string[],string[])
StoryImportException: HTML or JavaScript errors encountered in the Harlowe story. Does it load properly in a browser? Cradle.Editor.StoryFormats.Harlowe.HarloweTranscoder.Init () (at C:/Projects/(external)/Cradle/unity/Cradle/Assets/Cradle/.src/Cradle.Editor/Editor/StoryFormats/Harlowe/HarloweTranscoder.cs:121) Cradle.Editor.StoryImporter.Transcode () (at C:/Projects/(external)/Cradle/unity/Cradle/Assets/Cradle/.src/Cradle.Editor/Editor/StoryImporter.cs:44) Cradle.Editor.CradleAssetProcessor.OnPostprocessAllAssets (System.String[] importedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromAssetPaths) (at C:/Projects/(external)/Cradle/unity/Cradle/Assets/Cradle/.src/Cradle.Editor/Editor/CradleAssetProcessor.cs:83) System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <695d1cc93cca45069c528c15c9fdd749>:0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <695d1cc93cca45069c528c15c9fdd749>:0) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <695d1cc93cca45069c528c15c9fdd749>:0) UnityEditor.AssetPostprocessingInternal.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) (at <2cd7ebc9c2ef4276a8edbc7de85c89ce>:0) UnityEditor.AssetPostprocessingInternal.PostprocessAllAssets (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromPathAssets) (at <2cd7ebc9c2ef4276a8edbc7de85c89ce>:0)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/daterre/Cradle/issues/93__;!!AQdq3sQhfUj4q8uUguY!0RiHf3pZ5rdQ9e9xScWrhHb6V6mIpQxb1XM_ut4DdFWg78Y1PV3yiysZ1pso60TT1BCyFTsMIA$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AKH5KYOKJJYVYMJFI2GTM3TUKUA43ANCNFSM5HPNK44Q__;!!AQdq3sQhfUj4q8uUguY!0RiHf3pZ5rdQ9e9xScWrhHb6V6mIpQxb1XM_ut4DdFWg78Y1PV3yiysZ1pso60TT1BDwWqXlGw$. Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.com/v3/__https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!AQdq3sQhfUj4q8uUguY!0RiHf3pZ5rdQ9e9xScWrhHb6V6mIpQxb1XM_ut4DdFWg78Y1PV3yiysZ1pso60TT1BCGe5QJ-g$ or Androidhttps://urldefense.com/v3/__https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!AQdq3sQhfUj4q8uUguY!0RiHf3pZ5rdQ9e9xScWrhHb6V6mIpQxb1XM_ut4DdFWg78Y1PV3yiysZ1pso60TT1BB-WADUPw$.