Jump to content

GRF: GRF Editor


Tokei

Recommended Posts


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  01/22/20
  • Last Seen:  

6 hours ago, Tokei said:

Only one error will be displayed even if there are more; in your case, the maps are simply encrypted so it's skipping all of them. Hence the 1kb maps.grf output file.

So, i cant turn this grf to gray?. okay, thank you Tokei.

Link to comment
Share on other sites

  • 2 weeks later...

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

After enabling grf encryption all my linux players can not play the game anymore. It works on mac and windows.

[string "buf"]:1: unexpected symbol

The program itself running on linux and wine fails to perform any of the encryption tasks. It throws uninplemented method error and other issues that don't expose what's the missing dependency.

I have confirmed other servers also suffer from the same problem. Nothing on wine logs that can help debug it's completely silent so it must be something the program is catching.

 

@Tokei

--------------          Message          --------------
The method or operation is not implemented.
--------------        Stack trace        --------------
   at GrfToWpfBridge.Application.DefaultErrorHandler._reportAnyManagedExceptions(String message, Exception exception, ErrorLevel errorLevel)
   at GrfToWpfBridge.Application.DefaultErrorHandler.Handle(Exception exception, ErrorLevel errorLevel)
   at GRFEditor.WPF.EncryptorDialog._grfSavedFinished(Object state)
   at GRF.Threading.GrfThread.GrfThreadEventHandler.Invoke(Object state)
   at GRF.Threading.GrfThread.<Start>b__2()
   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.NotImplementedException: The method or operation is not implemented.
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Utilities.Services.OpeningService.FileOrFolder(String path, Boolean edit)
   at GRFEditor.WPF.EncryptorDialog._grfSavedFinished(Object state)


Edit: it seems that encryption and decryption works when running the GRF Editor on Wine but it fails to finish the operation. If you go to appdata /GRF Editor/Encryption you will find the file there working perfectly. So in conclusion the problem is when the ragnarok client running on Wine attempts to decrypt the file or a similar call.

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  12/07/16
  • Last Seen:  

windows 10 GRF Editor v1.8.3.4

Capture.PNG

Link to comment
Share on other sites


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

3 hours ago, onlineteam said:

windows 10 GRF Editor v1.8.3.4

Capture.PNG

Try installing all VC++ redistributables from 2010 to 2015, x86. Should do the trick.

Edited by Tokei
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

@onlineteam

Microsoft Visual C++ 2005-2008-2010-2012-2013-2019 Redistributable Package x86

https://mega.nz/#!cZ9izABA!pRQXohWNwN-0DLXQAoDqlCVXyESeEYh3xD3ck7_Ccf0

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  12/07/16
  • Last Seen:  

@Tokei     @Functor

Thank you so much.

Edited by onlineteam
Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  7
  • Reputation:   1
  • Joined:  07/31/12
  • Last Seen:  

On 5/23/2020 at 2:18 PM, onlineteam said:

windows 10 GRF Editor v1.8.3.4

Capture.PNG

Install this one to be more precise: https://www.microsoft.com/en-us/download/details.aspx?id=5555

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  07/27/20
  • Last Seen:  

so good

 

Link to comment
Share on other sites

  • 5 weeks later...

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   1
  • Joined:  08/26/20
  • Last Seen:  

EUNpTgH.jpg

 

Do you guys know how to make flatmaps with original textures but the walls and non walkable cells turned to black?

  • Upvote 1
Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.06
  • Content Count:  241
  • Reputation:   11
  • Joined:  08/12/20
  • Last Seen:  

Hi @Tokei

I need to fix this item or delete for me to extract to a folder for AndRO.
Can you please help me determine how to locate this korean in english?
I gave it a shot by typing 뮜?. in the collection tab but I can't locate it. (or maybe because my raw folder is in english)

image.png.473f0535ea724354505fd7fdd97c9f86.png
 

Link to comment
Share on other sites


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

5 hours ago, Almond Snicker said:

Hi @Tokei

I need to fix this item or delete for me to extract to a folder for AndRO.
Can you please help me determine how to locate this korean in english?
I gave it a shot by typing 뮜?. in the collection tab but I can't locate it. (or maybe because my raw folder is in english)

image.png.473f0535ea724354505fd7fdd97c9f86.png
 

? is used for regex searches, such as 

*col??ction*

That's why you can't do a search for this symbol. Try searching for this instead:

뮜*

Or

*collection\뮜*

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  25
  • Reputation:   6
  • Joined:  06/22/15
  • Last Seen:  

It seem 2020-09-02ragexeRE can't read encrypted cps.dll that make from grf editor.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

I confirm it. I checked it on the version "2020-09-02aRagexeRE". Decryption is failed due to changed EXE's code of new versions.

@Tokei I sent details in PM.

Edited by Functor
  • Upvote 3
  • Love 2
Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1507
  • Reputation:   227
  • Joined:  08/03/12
  • Last Seen:  

Hello, is it only me or GRF Editor current version cannot decrypt data client 20200403 RE ?

--------------          Message          --------------
Failed to decompress data.
--------------        Stack trace        --------------
   at GrfToWpfBridge.Application.DefaultErrorHandler._reportAnyManagedExceptions(String message, Exception exception, ErrorLevel errorLevel)
   at GrfToWpfBridge.Application.DefaultErrorHandler.Handle(Exception exception, ErrorLevel errorLevel)
   at GRFEditor.WPF.PreviewTabs.FilePreviewTab._baseLoad(FileEntry entry)
   at GRFEditor.WPF.PreviewTabs.FilePreviewTab.<Update>b__2()
   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         --------------
GRF.ContainerFormat.GrfException: Failed to decompress data.
   at GRF.ContainerFormat.GrfExceptions.ThrowFailedToDecompressData()
   at GRF.Core.GrfCompression.CustomCompression.Decompress(Byte[] compressed, Int64 uncompressedLength)
   at GRF.Core.FileEntry._getDecompressedData()
   at GRF.ContainerFormat.ContainerEntry.GetDecompressedData()
   at GRFEditor.WPF.PreviewTabs.PreviewImage._load(FileEntry entry)
   at GRFEditor.WPF.PreviewTabs.FilePreviewTab._baseLoad(FileEntry entry)

Theres no error about key/key file invalid.

Link to comment
Share on other sites

  • 3 weeks later...

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

Updated to 1.8.3.7:

  • Fixed an issue where directory/uncompressed data files would not be visible when loading a GPF file.
  • Upvote 4
  • Love 1
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  12/14/20
  • Last Seen:  

Hi. I can't the application.  I've successfully installed the file multiple times. Please help me with this.

image.png.aa9926eb08d7ce22f2726f33c81148fc.png

Link to comment
Share on other sites


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

3 hours ago, SpaghettiMan said:

Hi. I can't the application.  I've successfully installed the file multiple times. Please help me with this.

image.png.aa9926eb08d7ce22f2726f33c81148fc.png

Hello,

This can happen if you have mixed DLLs where the executable is. GRF Editor uses embedded DLLs, so you can delete all other DLLs in the same folder as where you installed GRF Editor.

If that doesn't solve the issue... I'd suggest to make sure you're at the latest version (currently at 1.8.3.7) and have both .NET 3.5 and 4.0 installed.

Edited by Tokei
Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  623
  • Reputation:   94
  • Joined:  05/11/12
  • Last Seen:  

Link to comment
Share on other sites

  • 1 month later...

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

Updated to 1.8.4.0:

  • Added proper support for previewing RSM2 file format up to version 0x203.
  • Enabled animations for RSM2 models.
    • Support translation animations.
    • Support texture animations.
  • Love 2
  • MVP 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.01
  • Content Count:  134
  • Reputation:   115
  • Joined:  10/20/17
  • Last Seen:  

6 hours ago, Tokei said:

Updated to 1.8.4.0:

  • Added proper support for previewing RSM2 file format up to version 0x203.
  • Enabled animations for RSM2 models.
    • Support translation animations.
    • Support texture animations.

hi Tokei! Thank you so much for this update! it's a pleasant surprise to be able to see the animations of rsm2 models! /ok
But now, I found a bug. Under "Extract Resources", some of the rsm2 models don't show the texture to be extracted. Rather, this is what happens:
the textures don't appear, and upon choosing the rsm2, this message appears

Copied exception:
 

Spoiler

 

--------------          Message          --------------
La clave proporcionada no se encontró en el diccionario.
--------------        Stack trace        --------------
   en GrfToWpfBridge.Application.DefaultErrorHandler._reportAnyManagedExceptions(String message, Exception exception, ErrorLevel errorLevel)
   en GrfToWpfBridge.Application.DefaultErrorHandler.Handle(Exception exception, ErrorLevel errorLevel)
   en GRFEditor.Tools.MapExtractor.MapExtractor._treeViewMapExtractor_SelectedItemChanged(Object sender, RoutedPropertyChangedEventArgs`1 e)
   en TokeiLibrary.WPF.TkView.OnSelectedItemChanged(RoutedPropertyChangedEventArgs`1 e)
   en TokeiLibrary.WPF.SelectedItemsList.Add(Object item, TkView parent)
   en TokeiLibrary.WPF.TkTreeViewItem.set_IsSelected(Boolean value)
   en TokeiLibrary.WPF.TkTreeViewItem._tkTreeViewItem_MouseLeftButtonDown(Object sender, MouseButtonEventArgs e)
   en System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   en System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   en System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   en System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   en System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   en System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
   en System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   en System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   en System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   en System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   en System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   en System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   en System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   en System.Windows.Input.InputManager.ProcessStagingArea()
   en System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   en System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   en System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   en System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   en System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   en MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   en MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   en System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   en MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   en MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   en System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   en System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   en System.Windows.Application.RunDispatcher(Object ignore)
   en System.Windows.Application.RunInternal(Window window)
   en System.Windows.Application.Run(Window window)
   en GRFEditor.GRFEditorMain.Main(String[] args)

--------------         Exception         --------------
System.Collections.Generic.KeyNotFoundException: La clave proporcionada no se encontró en el diccionario.
   en System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   en GRF.FileFormats.RsmFormat.Mesh._generateMesh_Smooth(Vertex[] vert, Dictionary`2 shadeGroup, Dictionary`2 mesh)
   en GRF.FileFormats.RsmFormat.Mesh.Compile(Rsm rsm, Matrix4 instance, Int32 forceShader, Int32 flag)
   en GRF.FileFormats.RsmFormat.Rsm.Compile(Matrix4 matrix, Int32 shader, Int32 flag)
   en GRFEditor.WPF.QuickPreview.Update(String file)
   en GRFEditor.Tools.MapExtractor.MapExtractor._treeViewMapExtractor_SelectedItemChanged(Object sender, RoutedPropertyChangedEventArgs`1 e)

 


 

image.png

Edited by Mina-chan
Link to comment
Share on other sites


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

8 hours ago, Mina-chan said:

hi Tokei! Thank you so much for this update! it's a pleasant surprise to be able to see the animations of rsm2 models! /ok
But now, I found a bug. Under "Extract Resources", some of the rsm2 models don't show the texture to be extracted. Rather, this is what happens:
the textures don't appear, and upon choosing the rsm2, this message appears

Heya, fixed just now, in 1.8.4.1.

  • Love 1
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.01
  • Content Count:  134
  • Reputation:   115
  • Joined:  10/20/17
  • Last Seen:  

On 3/2/2021 at 1:19 PM, Tokei said:

Heya, fixed just now, in 1.8.4.1.

!!!
Thank you sooo much!! I'm going to test it now x3
Edit: It's working perfectly fine!

Edited by Mina-chan
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  09/24/18
  • Last Seen:  

On 8/26/2020 at 6:23 PM, Mart123 said:

EUNpTgH.jpg

 

Do you guys know how to make flatmaps with original textures but the walls and non walkable cells turned to black?

 

Same question. Hoping to get answer ?

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

Hey @Tokei how are you doing?

Im just having issues with encrypted files atm while using a 2018-06-20eRagexeRE client date exe

What im getting is queryRegionInfo or the client cant read when its encrypted i tried running it without encryption and its working fine.

I made new GRF's change the cpp.dll name into something else, create new patch of client and still not working. Any idea what mistake i made on encrypting it?

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...