Jump to content

GRF: GRF Editor


Tokei

Recommended Posts


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  05/07/22
  • Last Seen:  

Hello sir anyone who have this problem?

--------------          Message          --------------
The main UI thread has thrown an exception.

The invocation of the constructor on type 'GRFEditor.EditorMainWindow' that matches the specified binding constraints threw an exception.
--------------        Stack trace        --------------
   at GrfToWpfBridge.Application.DefaultErrorHandler._reportAnyManagedExceptions(String message, Exception exception, ErrorLevel errorLevel)
   at GrfToWpfBridge.Application.DefaultErrorHandler.Handle(Exception exception, ErrorLevel errorLevel)
   at TokeiLibrary.ApplicationManager._current_DispatcherUnhandledException(Object sender, DispatcherUnhandledExceptionEventArgs e)
   at System.Windows.Threading.Dispatcher.CatchException(Exception e)
   at System.Windows.Threading.Dispatcher.CatchExceptionStatic(Object source, Exception e)
   at System.Windows.Threading.ExceptionWrapper.CatchException(Object source, Exception e, Delegate catchHandler)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at GRFEditor.GRFEditorMain.Main(String[] args)

--------------         Exception         --------------
System.Exception: The main UI thread has thrown an exception.

The invocation of the constructor on type 'GRFEditor.EditorMainWindow' that matches the specified binding constraints threw an exception. ---> System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'GRFEditor.EditorMainWindow' that matches the specified binding constraints threw an exception. ---> System.OverflowException: The image data generated an overflow during processing. ---> System.ArithmeticException: Overflow or underflow in the arithmetic operation.
   --- End of inner exception stack trace ---
   at System.Windows.Media.Imaging.ColorConvertedBitmap.FinalizeCreation()
   at System.Windows.Media.Imaging.ColorConvertedBitmap..ctor(BitmapSource source, ColorContext sourceColorContext, ColorContext destinationColorContext, PixelFormat format)
   at System.Windows.Media.Imaging.BitmapSource.CreateCachedBitmap(BitmapFrame frame, BitmapSourceSafeMILHandle wicSource, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapPalette palette)
   at System.Windows.Media.Imaging.BitmapFrameDecode.FinalizeCreation()
   at System.Windows.Media.Imaging.BitmapFrameDecode..ctor(Int32 frameNumber, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapDecoder decoder)
   at System.Windows.Media.Imaging.BitmapDecoder.SetupFrames(BitmapDecoder decoder, ReadOnlyCollection`1 frames)
   at System.Windows.Media.Imaging.BitmapDecoder.get_Frames()
   at GrfToWpfBridge.Application.DefaultImageConverter._readAsCommonFormat(GrfImage image)
   at GrfToWpfBridge.Application.DefaultImageConverter.ConvertToSelf(GrfImage image)
   at GRF.Image.ImageConverterManager.SelfAny(GrfImage image)
   at GRF.Image.GrfImage.SelfAny()
   at GRF.Image.GrfImage..ctor(MultiType data)
   at GRFEditor.EditorMainWindow..ctor()
   at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.InvokeDelegate(Action`1 action, Object argument)
   at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.CallCtorDelegate(XamlTypeInvoker type)
   at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.CreateInstance(XamlTypeInvoker type)
   at System.Xaml.Schema.XamlTypeInvoker.CreateInstance(Object[] arguments)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstanceWithCtor(XamlType xamlType, Object[] args)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstance(XamlType xamlType, Object[] args)
   --- End of inner exception stack trace ---
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
   at System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties)
   at System.Windows.Application.DoStartup()
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   --- End of inner exception stack trace ---
--------------          Message          --------------
The invocation of the constructor on type 'GRFEditor.EditorMainWindow' that matches the specified binding constraints threw an exception.
--------------      Inner exception      --------------
System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'GRFEditor.EditorMainWindow' that matches the specified binding constraints threw an exception. ---> System.OverflowException: The image data generated an overflow during processing. ---> System.ArithmeticException: Overflow or underflow in the arithmetic operation.
   --- End of inner exception stack trace ---
   at System.Windows.Media.Imaging.ColorConvertedBitmap.FinalizeCreation()
   at System.Windows.Media.Imaging.ColorConvertedBitmap..ctor(BitmapSource source, ColorContext sourceColorContext, ColorContext destinationColorContext, PixelFormat format)
   at System.Windows.Media.Imaging.BitmapSource.CreateCachedBitmap(BitmapFrame frame, BitmapSourceSafeMILHandle wicSource, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapPalette palette)
   at System.Windows.Media.Imaging.BitmapFrameDecode.FinalizeCreation()
   at System.Windows.Media.Imaging.BitmapFrameDecode..ctor(Int32 frameNumber, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapDecoder decoder)
   at System.Windows.Media.Imaging.BitmapDecoder.SetupFrames(BitmapDecoder decoder, ReadOnlyCollection`1 frames)
   at System.Windows.Media.Imaging.BitmapDecoder.get_Frames()
   at GrfToWpfBridge.Application.DefaultImageConverter._readAsCommonFormat(GrfImage image)
   at GrfToWpfBridge.Application.DefaultImageConverter.ConvertToSelf(GrfImage image)
   at GRF.Image.ImageConverterManager.SelfAny(GrfImage image)
   at GRF.Image.GrfImage.SelfAny()
   at GRF.Image.GrfImage..ctor(MultiType data)
   at GRFEditor.EditorMainWindow..ctor()
   at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.InvokeDelegate(Action`1 action, Object argument)
   at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.CallCtorDelegate(XamlTypeInvoker type)
   at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.CreateInstance(XamlTypeInvoker type)
   at System.Xaml.Schema.XamlTypeInvoker.CreateInstance(Object[] arguments)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstanceWithCtor(XamlType xamlType, Object[] args)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstance(XamlType xamlType, Object[] args)
   --- End of inner exception stack trace ---
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
   at System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties)
   at System.Windows.Application.DoStartup()
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
--------------          Message          --------------
The image data generated an overflow during processing.
--------------      Inner exception      --------------
System.OverflowException: The image data generated an overflow during processing. ---> System.ArithmeticException: Overflow or underflow in the arithmetic operation.
   --- End of inner exception stack trace ---
   at System.Windows.Media.Imaging.ColorConvertedBitmap.FinalizeCreation()
   at System.Windows.Media.Imaging.ColorConvertedBitmap..ctor(BitmapSource source, ColorContext sourceColorContext, ColorContext destinationColorContext, PixelFormat format)
   at System.Windows.Media.Imaging.BitmapSource.CreateCachedBitmap(BitmapFrame frame, BitmapSourceSafeMILHandle wicSource, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapPalette palette)
   at System.Windows.Media.Imaging.BitmapFrameDecode.FinalizeCreation()
   at System.Windows.Media.Imaging.BitmapFrameDecode..ctor(Int32 frameNumber, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapDecoder decoder)
   at System.Windows.Media.Imaging.BitmapDecoder.SetupFrames(BitmapDecoder decoder, ReadOnlyCollection`1 frames)
   at System.Windows.Media.Imaging.BitmapDecoder.get_Frames()
   at GrfToWpfBridge.Application.DefaultImageConverter._readAsCommonFormat(GrfImage image)
   at GrfToWpfBridge.Application.DefaultImageConverter.ConvertToSelf(GrfImage image)
   at GRF.Image.ImageConverterManager.SelfAny(GrfImage image)
   at GRF.Image.GrfImage.SelfAny()
   at GRF.Image.GrfImage..ctor(MultiType data)
   at GRFEditor.EditorMainWindow..ctor()
   at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.InvokeDelegate(Action`1 action, Object argument)
   at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.CallCtorDelegate(XamlTypeInvoker type)
   at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.CreateInstance(XamlTypeInvoker type)
   at System.Xaml.Schema.XamlTypeInvoker.CreateInstance(Object[] arguments)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstanceWithCtor(XamlType xamlType, Object[] args)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstance(XamlType xamlType, Object[] args)
--------------          Message          --------------
Overflow or underflow in the arithmetic operation.
--------------      Inner exception      --------------
System.ArithmeticException: Overflow or underflow in the arithmetic operation.
 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  662
  • Reputation:   671
  • Joined:  11/12/12
  • Last Seen:  

On 3/26/2023 at 12:54 PM, jaymarkova said:

Hello sir anyone who have this problem?

Well, it looks like there are more than one error there...? Your output is very confusing. I'd probably recommend you make sure .net 3.5 and .net 4.0 are installed for starter.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  05/07/22
  • Last Seen:  

2 hours ago, Tokei said:

Well, it looks like there are more than one error there...? Your output is very confusing. I'd probably recommend you make sure .net 3.5 and .net 4.0 are installed for starter.

Thank you sir for the reply. Fixed it by reinstalling windows 10. 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  3
  • Reputation:   0
  • Joined:  02/09/23
  • Last Seen:  

Hello,I am using the GrfCL and in the "Readme.txt" file you said that "This tool can be further customized with your own commands if you wish; the software is open source and you can therefore edit any function you want. Simply download the GRF Editor sources and look for the project named "GrfCL" ", but where are this GRF Editor sources? Thanks, you've done an awesome job with the GRF Editor.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  662
  • Reputation:   671
  • Joined:  11/12/12
  • Last Seen:  

1 hour ago, marcosfelipe3322 said:

Hello,I am using the GrfCL and in the "Readme.txt" file you said that "This tool can be further customized with your own commands if you wish; the software is open source and you can therefore edit any function you want. Simply download the GRF Editor sources and look for the project named "GrfCL" ", but where are this GRF Editor sources? Thanks, you've done an awesome job with the GRF Editor.

Heya,

I've removed the GRF Editor sources from public view a long time ago, but I don't mind adding them back now. You'll have to set the startup project to GrfCL, you can find the project here:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  3
  • Reputation:   0
  • Joined:  02/09/23
  • Last Seen:  

4 minutes ago, Tokei said:

Heya,

I've removed the GRF Editor sources from public view a long time ago, but I don't mind adding them back now. You'll have to set the startup project to GrfCL, you can find the project here:

Wow, thats amazing,Thank you very much, it will help me a lot in my project. By the way, is there any function to generate the complete map, in 3D with all the assets, like we can see in the GRF Editor UI? I used the "-rQuad" command to generate the QuadTree from the .rsw files, but I have no idea how to open them or convert them to some format that I can open in Blender for example or display it with Three. js. If there is no such function, can you tell me how or with which tool I can do this?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  662
  • Reputation:   671
  • Joined:  11/12/12
  • Last Seen:  

1 hour ago, marcosfelipe3322 said:

Wow, thats amazing,Thank you very much, it will help me a lot in my project. By the way, is there any function to generate the complete map, in 3D with all the assets, like we can see in the GRF Editor UI? I used the "-rQuad" command to generate the QuadTree from the .rsw files, but I have no idea how to open them or convert them to some format that I can open in Blender for example or display it with Three. js. If there is no such function, can you tell me how or with which tool I can do this?

The quadtree isn't meant for something like that; it's a bandaid for BrowEdit 1 that didn't build the quadtree properly (related to black square issues). Though that's long been fixed by now. There's no such feature to convert to Blender or other common 3D formats from GRF Editor. Your best bet would be to look at BrowEdit 3 (https://github.com/Borf/BrowEdit3/releases), though... I don't think such a feature is available there either? Either way, GRF Editor is quite bare-bone and unoptimized as far as managing 3D assets goes.

You may want to look into these projects:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  3
  • Reputation:   0
  • Joined:  02/09/23
  • Last Seen:  

10 hours ago, Tokei said:

The quadtree isn't meant for something like that; it's a bandaid for BrowEdit 1 that didn't build the quadtree properly (related to black square issues). Though that's long been fixed by now. There's no such feature to convert to Blender or other common 3D formats from GRF Editor. Your best bet would be to look at BrowEdit 3 (https://github.com/Borf/BrowEdit3/releases), though... I don't think such a feature is available there either? Either way, GRF Editor is quite bare-bone and unoptimized as far as managing 3D assets goes.

You may want to look into these projects:

Thanks, I'll take a look at those projects. But how did you manage to display these 3d models in the GRF Editor UI? Was it using some specific C# library or something?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

Error when try to see new map maybe same issue like STREDITOR

image.thumb.png.4e3c1751aa0095b1c06db3005691afd5.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  662
  • Reputation:   671
  • Joined:  11/12/12
  • Last Seen:  

Just now, LearningRO said:

Error when try to see new map maybe same issue like STREDITOR

image.thumb.png.4e3c1751aa0095b1c06db3005691afd5.png

Fixed a couple months ago; please update to the latest version.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

ahh right now GRF editor have github?
https://github.com/Tokeiburu/GRFEditor

okay thank you

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

Btw @Tokei
already used last from github still get the same issue sir

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  04/13/23
  • Last Seen:  

thanks!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  04/15/23
  • Last Seen:  

Thxs for awesome work!

BTW I can't make flat maps for ep19 map (ex. jor_dun) It always make my client crash. Any suggest please

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  662
  • Reputation:   671
  • Joined:  11/12/12
  • Last Seen:  

5 hours ago, castorage said:

Thxs for awesome work!

BTW I can't make flat maps for ep19 map (ex. jor_dun) It always make my client crash. Any suggest please

These use a new GND format, weird. I've added support for those maps in 1.8.4.8. (There may be more problematic maps? Hopefully not, but let me know if there still are.)

Edited by Tokei
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   10
  • Joined:  06/22/20
  • Last Seen:  

This might be the better place to report issues. Now (with 1.8.4.8) the EP 19 maps (and other new maps) can be generated, but wrongly.

Here's an example of clock_01. The middle area is not accessible, but the flat map maker generates them as cell type 0

image.png.b27b1538223a953dfad9d770318ed988.png

Edited by munkrej
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  662
  • Reputation:   671
  • Joined:  11/12/12
  • Last Seen:  

7 hours ago, munkrej said:

This might be the better place to report issues. Now (with 1.8.4.8) the EP 19 maps (and other new maps) can be generated, but wrongly.

Here's an example of clock_01. The middle area is not accessible, but the flat map maker generates them as cell type 0

Alright, I see what Gravity did there... Updated with 1.8.4.9, should fix the gat type problems.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  04/15/23
  • Last Seen:  

On 4/16/2023 at 4:36 AM, Tokei said:

These use a new GND format, weird. I've added support for those maps in 1.8.4.8. (There may be more problematic maps? Hopefully not, but let me know if there still are.)

Working so far so good with 1.8.4.9
Many Thanks for that hard work!

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  13
  • Reputation:   0
  • Joined:  04/11/23
  • Last Seen:  

Hi @Tokei just a question, I have installed the GRF Editor 1.8.4.9. After done editing my accname.lub, accessoryid.lub and added the costume items sprite, I am ready to create .thor with Encryption as well to secure my item sprite. But I realized that every time I do encryption on the .thor the sources inside will become failed to decompress data. 

May I know which part/ step Im doing it wrongly? Please guide me the correct way, because Im novice rank on this. ?

P/S: Before this I am using the older version GRF Editor it works fine to me. As I saw on rAthena there is an update version so I take a try on it. 

Please refer to the attachment below.

Thank you


error.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  662
  • Reputation:   671
  • Joined:  11/12/12
  • Last Seen:  

5 hours ago, MrNobody said:

Hi @Tokei just a question, I have installed the GRF Editor 1.8.4.9. After done editing my accname.lub, accessoryid.lub and added the costume items sprite, I am ready to create .thor with Encryption as well to secure my item sprite. But I realized that every time I do encryption on the .thor the sources inside will become failed to decompress data. 

May I know which part/ step Im doing it wrongly? Please guide me the correct way, because Im novice rank on this. ?

P/S: Before this I am using the older version GRF Editor it works fine to me. As I saw on rAthena there is an update version so I take a try on it. 

Please refer to the attachment below.

Thank you

 

error.png

The error says: "The entry is either corrupted or encrypted". If you want to read the file, decrypt the content first.

image.png.e006df5e91a517f359e657acb766764c.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  03/29/23
  • Last Seen:  

Someone can help me with some errors?

 

Trying to edit some edited grf from a random ragnarok client, dunno if its possible post this but...

 

 

 

error.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  662
  • Reputation:   671
  • Joined:  11/12/12
  • Last Seen:  

5 hours ago, Vinasxz said:

Someone can help me with some errors?

 

Trying to edit some edited grf from a random ragnarok client, dunno if its possible post this but...

Well, it looks like it managed to read the GRF fine so someone probably just changed the header for whatever reason. It gives you that error because that's not what is expected at all from the GRF format. You can hex the file manually and change the start to "Master of Magic\0". You might be able to just save the GRF again as well and it will fix the issue...? It managed to load it anyway, so you could just keep using the GRF normally.

image.png.7d23ddf3248e5b2a1d590f2cf9d052d7.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   18
  • Joined:  10/09/14
  • Last Seen:  

4 hours ago, Tokei said:

Well, it looks like it managed to read the GRF fine so someone probably just changed the header for whatever reason. It gives you that error because that's not what is expected at all from the GRF format. You can hex the file manually and change the start to "Master of Magic\0". You might be able to just save the GRF again as well and it will fix the issue...? It managed to load it anyway, so you could just keep using the GRF normally.

image.png.7d23ddf3248e5b2a1d590f2cf9d052d7.png

 

Actually just changing the header he won't be able to edit the grf in arkaik. There are many locks, and this one in the header is just one to prevent players from editing grf. 
My advice is to play like everyone else and stop trying to edit the grf ?

  • Upvote 1
Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  08/31/14
  • Last Seen:  

Found an error when Im trying to merge 2 grf's. Not sure what to do, the texture file is 800mb alone and when I tried to merge it says that it went over the limit.

 

EDIT*** So I guess I didn't need to merge it as I just learned that I can use multiple grf files. 

 

Quote

--------------          Message          --------------
Couldn't save the container file.
--------------        Stack trace        --------------
   at GrfToWpfBridge.Application.DefaultErrorHandler._reportAnyManagedExceptions(String message, Exception exception, ErrorLevel errorLevel)
   at GrfToWpfBridge.Application.DefaultErrorHandler.Handle(Exception exception, ErrorLevel errorLevel)
   at ErrorManager.ErrorHandler.HandleException(String message, Exception exception, ErrorLevel errorLevel)
   at GRF.Core.Container._internalSave(String fileName, Container mergeGrf, SavingMode mode)
   at GRF.Core.Container._save(String fileName, Container mergeGrf, SavingMode mode)
   at GRF.Core.Container.Save(String fileName, Container mergeGrf, SavingMode mode, SyncMode syncMode)
   at GRF.Core.GrfWriter.WriteDataQuick(Container grf, Stream originalStream, Container grfAdd)
   at GRF.Core.Container._internalSave(String fileName, Container mergeGrf, SavingMode mode)
   at GRF.Core.Container._save(String fileName, Container mergeGrf, SavingMode mode)
   at GRF.Core.Container.Save(String fileName, Container mergeGrf, SavingMode mode, SyncMode syncMode)
   at GRF.Core.GrfHolder.QuickSave()
   at GRFEditor.EditorMainWindow.<_menuItemSave_Click>b__1()
   at GRF.Threading.GrfThread.<>c__DisplayClass4.<Start>b__3()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

--------------         Exception         --------------
System.Exception: Couldn't save the container file. ---> GRF.ContainerFormat.GrfException: Failed to save the GRF, size limit reached (4,294,967,295 bytes).
   at GRF.Threading.GrfThreadPool`1.Dump(Stream grfStream, Int64 offset, Int64 grfAddTotalSize)
   at GRF.Core.GrfWriter._newFilesCopy(Container grf, Int32 numberOfFilesToCopy, Stream grfStream, Int64 currentOffset, Int64 grfAddTotalSize)
   at GRF.Core.GrfWriter.WriteData(Container grf, Stream originalStream, Stream grfStream, Container grfAdd)
   at GRF.Core.Container._internalSave(String fileName, Container mergeGrf, SavingMode mode)
   --- End of inner exception stack trace ---
--------------          Message          --------------
Failed to save the GRF, size limit reached (4,294,967,295 bytes).
--------------      Inner exception      --------------
GRF.ContainerFormat.GrfException: Failed to save the GRF, size limit reached (4,294,967,295 bytes).
   at GRF.Threading.GrfThreadPool`1.Dump(Stream grfStream, Int64 offset, Int64 grfAddTotalSize)
   at GRF.Core.GrfWriter._newFilesCopy(Container grf, Int32 numberOfFilesToCopy, Stream grfStream, Int64 currentOffset, Int64 grfAddTotalSize)
   at GRF.Core.GrfWriter.WriteData(Container grf, Stream originalStream, Stream grfStream, Container grfAdd)
   at GRF.Core.Container._internalSave(String fileName, Container mergeGrf, SavingMode mode)
 

 

Edited by andong012
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  662
  • Reputation:   671
  • Joined:  11/12/12
  • Last Seen:  

23 minutes ago, andong012 said:

Found an error when Im trying to merge 2 grf's. Not sure what to do, the texture file is 800mb alone and when I tried to merge it says that it went over the limit.

Hello, the final GRF size is the problem here and your texture GRF being 800MB on its own doesn't mean much without knowing the size of the base GRF. That error is shown if the file table offset in the final GRF goes past the 4GB size limit. There's not much I can tell without more information on your end though.

Perhaps your GRFs are compacted using the "redirect indexes" option, which makes them seem smaller than they really are. When merging, if the conditions aren't perfect, the GRFs will be unpacted first and then merged together which can trigger the 4GB limit more easily.

It's either that or the base GRF size is near 3.4+GB.

None of that is helpful at the end of the day though, it seems like you will have to make a new GRF alongside instead of trying to keep compressing/removing stuff in it. There's really not much to do once you reach the size limit and the obvious solution is simply to have another GRF in your RO folder to save a lot of future headaches.

  • Love 1
Link to comment
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.

×
×
  • Create New...