lachjames

KotOR Level Editor - 0.0.1 Alpha Release

Recommended Posts

1 hour ago, Magnetiicz said:

Id like to know the secret can't get it to load

I believe there is an issue with the current version and you might want to revert to a previous version in order to get it working.

29/01/2021 02:51 is the date & time of the commit that somebody else is using regularly and I believe works fairly well.

https://drive.google.com/file/d/1UUPOz1bqTkj7sxoTC81IhxbiTtmLglz7/view

Here is a link of the version mentioned from google drive.

Edited by Thor110
Google Drive Link
  • Like 1

Share this post


Link to post
Share on other sites

Hello! When i tries run KLE i cant find in project settings menu line with Aurora preferences. Can you help me to solve that problem?

 

KLEproblem.PNG

Edited by Black Show

Share this post


Link to post
Share on other sites
14 hours ago, Black Show said:

Hello! When i tries run KLE i cant find in project settings menu line with Aurora preferences. Can you help me to solve that problem?

 

KLEproblem.PNG

It seems your image is not showing, I would suggest trying the version I linked to for now until any existing issues are fixed.

Share this post


Link to post
Share on other sites
7 hours ago, Thor110 said:

It seems your image is not showing, I would suggest trying the version I linked to for now until any existing issues are fixed.

I have already solved that problem, but thanks. I don` understand that i should to do to load level, Ebon Hawk fir example. I write level's name in loading system, but id didn'not work and  i see what error. Can you help me with that problem or say that i did wrong?

 

KLELEvelProblem.PNG

Edited by Black Show

Share this post


Link to post
Share on other sites
16 hours ago, Black Show said:

I have already solved that problem, but thanks. I don` understand that i should to do to load level, Ebon Hawk fir example. I write level's name in loading system, but id didn'not work and  i see what error. Can you help me with that problem or say that i did wrong?

 

KLELEvelProblem.PNG

I believe you should refer to my earlier instructions to another user in the first page of this topic regarding opening the KotOR Unity Scene in order to load KotOR or TSL after setting up your Aurora Preferences for KLE to work properly.

Thor110

Share this post


Link to post
Share on other sites
On 4/5/2021 at 4:25 AM, Thor110 said:

I believe you should refer to my earlier instructions to another user in the first page of this topic regarding opening the KotOR Unity Scene in order to load KotOR or TSL after setting up your Aurora Preferences for KLE to work properly.

Thor110

I followed you advices. It is working , but if i tries to load level i see that error. Sometimes its working, but what does this error mean? And besides sometimes i can see ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: chunkLength

Spoiler

XmlException: Unexpected end of file has occurred. The following elements are not closed: tlk. Line 86141, position 1.
System.Xml.XmlTextReaderImpl.Throw (System.Exception e) (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
System.Xml.XmlTextReaderImpl.Throw (System.String res, System.String arg) (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
System.Xml.XmlTextReaderImpl.Throw (System.Int32 pos, System.String res, System.String arg) (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
System.Xml.XmlTextReaderImpl.ThrowUnclosedElements () (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
System.Xml.XmlTextReaderImpl.ParseElementContent () (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
System.Xml.XmlTextReaderImpl.Read () (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
System.Xml.XmlLoader.LoadNode (System.Boolean skipOverWhitespace) (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
System.Xml.XmlLoader.LoadDocSequence (System.Xml.XmlDocument parentDoc) (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
System.Xml.XmlLoader.Load (System.Xml.XmlDocument doc, System.Xml.XmlReader reader, System.Boolean preserveWhitespace) (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
System.Xml.XmlDocument.Load (System.Xml.XmlReader reader) (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
System.Xml.XmlDocument.LoadXml (System.String xml) (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
AuroraEngine.TLKObject..ctor (System.String xml) (at C:/Users/thoma/Documents/GitHub/NorthernLights/Assets/Scripts/FileObjects/TLKObject.cs:30)
AuroraData.LoadBase () (at C:/Users/thoma/Documents/GitHub/NorthernLights/Assets/Scripts/GameData.cs:145)
AuroraData..ctor (AuroraEngine.Game game, System.String moduleName, System.Boolean instantiateModule) (at C:/Users/thoma/Documents/GitHub/NorthernLights/Assets/Scripts/GameData.cs:80)
AuroraEngine.Resources.Load (System.String moduleName, System.Boolean instantiateModule) (at C:/Users/thoma/Documents/GitHub/NorthernLights/Assets/Scripts/ResourceLoader/Resources.cs:385)
LoadingSystem.Load (System.String levelName) (at C:/Users/thoma/Documents/GitHub/NorthernLights/Assets/Scripts/Systems/LoadingSystem.cs:84)
KLE.LoadModule () (at C:/Users/thoma/Documents/GitHub/NorthernLights/Assets/Editor/KLE/KLE.cs:100)
KLE.OnGUI () (at C:/Users/thoma/Documents/GitHub/NorthernLights/Assets/Editor/KLE/KLE.cs:55)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
UnityEditor.DockArea.OldOnGUI () (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <a8eb1be68acb4659af00824c7808e2c0>:0)
 

 

Edited by Black Show

Share this post


Link to post
Share on other sites
1 hour ago, Black Show said:

I followed you advices. It is working , but if i tries to load level i see that error. Sometimes its working, but what does this error mean? And besides sometimes i can see ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: chunkLength

  Hide contents

XmlException: Unexpected end of file has occurred. The following elements are not closed: tlk. Line 86141, position 1.
System.Xml.XmlTextReaderImpl.Throw (System.Exception e) (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
System.Xml.XmlTextReaderImpl.Throw (System.String res, System.String arg) (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
System.Xml.XmlTextReaderImpl.Throw (System.Int32 pos, System.String res, System.String arg) (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
System.Xml.XmlTextReaderImpl.ThrowUnclosedElements () (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
System.Xml.XmlTextReaderImpl.ParseElementContent () (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
System.Xml.XmlTextReaderImpl.Read () (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
System.Xml.XmlLoader.LoadNode (System.Boolean skipOverWhitespace) (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
System.Xml.XmlLoader.LoadDocSequence (System.Xml.XmlDocument parentDoc) (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
System.Xml.XmlLoader.Load (System.Xml.XmlDocument doc, System.Xml.XmlReader reader, System.Boolean preserveWhitespace) (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
System.Xml.XmlDocument.Load (System.Xml.XmlReader reader) (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
System.Xml.XmlDocument.LoadXml (System.String xml) (at <1d98d70bb7d8453b80c25aa561fdecd1>:0)
AuroraEngine.TLKObject..ctor (System.String xml) (at C:/Users/thoma/Documents/GitHub/NorthernLights/Assets/Scripts/FileObjects/TLKObject.cs:30)
AuroraData.LoadBase () (at C:/Users/thoma/Documents/GitHub/NorthernLights/Assets/Scripts/GameData.cs:145)
AuroraData..ctor (AuroraEngine.Game game, System.String moduleName, System.Boolean instantiateModule) (at C:/Users/thoma/Documents/GitHub/NorthernLights/Assets/Scripts/GameData.cs:80)
AuroraEngine.Resources.Load (System.String moduleName, System.Boolean instantiateModule) (at C:/Users/thoma/Documents/GitHub/NorthernLights/Assets/Scripts/ResourceLoader/Resources.cs:385)
LoadingSystem.Load (System.String levelName) (at C:/Users/thoma/Documents/GitHub/NorthernLights/Assets/Scripts/Systems/LoadingSystem.cs:84)
KLE.LoadModule () (at C:/Users/thoma/Documents/GitHub/NorthernLights/Assets/Editor/KLE/KLE.cs:100)
KLE.OnGUI () (at C:/Users/thoma/Documents/GitHub/NorthernLights/Assets/Editor/KLE/KLE.cs:55)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
UnityEditor.DockArea.OldOnGUI () (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <a8eb1be68acb4659af00824c7808e2c0>:0)
 

 

I believe this is an issue with dialog.tlk files that are missing end of line information "The following elements are not closed: tlk. Line 86141" so for some reason a line or more in your dialog.tlk file isn't properly formatted.

Unfortunately I do not know of a quick solution to this other than using Xoreos Tools to convert to XML, figuring out which lines are wrong and why and either manually fixing them, or writing a script to repair any broken lines for you, however if any of the lines are broken in different ways to one another, then any logic you write for a script might only repair some broken lines and not others. ( Not An Easy Solution, But A Possible Solution )

I came across this issue myself early on, strangely my dialog.tlk still has this problem but doesn't throw an error when loading TSL for me. ( I am using the same version that I linked to above )

Sorry I can't be of any more help, hopefully somebody else can help clear up this issue.

Edited by Thor110

Share this post


Link to post
Share on other sites
7 minutes ago, Thor110 said:

I believe this is an issue with dialog.tlk files that are missing end of line information "The following elements are not closed: tlk. Line 86141" so for some reason a line or more in your dialog.tlk file isn't properly formatted.

Unfortunately I do not know of a quick solution to this other than using Xoreos Tools to convert to XML, figuring out which lines are wrong and why and either manually fixing them, or writing a script to repair any broken lines for you, however if any of the lines are broken in different ways to one another, then any logic you write for a script might only repair some broken lines and not others. ( Not An Easy Solution, But A Possible Solution )

I came across this issue myself early on, strangely my dialog.tlk still has this problem but doesn't throw an error when loading TSL for me. ( I am using the same version that I linked to above )

Sorry I can't be of any more help, hopefully somebody else can help clear up this issue.

Could the problem be that I don't have the English version of the game?

Share this post


Link to post
Share on other sites
5 minutes ago, Black Show said:

Could the problem be that I don't have the English version of the game?

Quite possibly but I can't say for sure.

Share this post


Link to post
Share on other sites
2 hours ago, Thor110 said:

Quite possibly but I can't say for sure.

I have installed english version of TSL but problem still exist. For others everything works well and it's strange. I have one idea. Can you send me your TSL in email? I really dont know what to do with what.

Share this post


Link to post
Share on other sites
8 hours ago, Black Show said:

I have installed english version of TSL but problem still exist. For others everything works well and it's strange. I have one idea. Can you send me your TSL in email? I really dont know what to do with what.

I cannot and will not send a copy of the game in email.

Do you have any mods installed to the game? This could be the cause.
My currently installed mods are TSLRCM/M478EP/Coruscant and my own mods.

  • Haha 1

Share this post


Link to post
Share on other sites
8 hours ago, Thor110 said:

I cannot and will not send a copy of the game in email.

Do you have any mods installed to the game? This could be the cause.
My currently installed mods are TSLRCM/M478EP/Coruscant and my own mods.

No, i haven't any installed mods. I have clear english version of TSL. And in my opinion mods can' be cause because you have installed a lot of mods and haven't problems. Your KLE is working very well. I just installed the latest drivers for my graphics card , but problem still exist.

Share this post


Link to post
Share on other sites

Is it working for K1 at its current state? I set it as preferred game via Aurora Preferences but when the game's loaded from Instance Editor nothing happens after period time of loading, and there was an error message on the console mentioned about "missing root" amongst other things. I believe have followed every instructions carefully, though not sure why it didn't worked for me. Granted, didn't check for TSL at time this was written just in case the error's on my end as it's mentioned that K1's not fully supported currently.

Also, if anyone can provide a quick-simple step on loading an existing module to the program that'd be awesome and be much appreciated.

Many thanks for considering this. Cheers.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.