soul4soul / ot-monster-converter

C# .NET 5 program for converting OpenTibia (OT) monsters between commonly used formats
10 stars 12 forks source link

Add [revscriptsys][input] support #81

Open soul4soul opened 2 years ago

soul4soul commented 2 years ago

Add support for revscriptsys input. I have received two requests from people wishing to convert from the revscriptsys lua format back to XML.

Nottinghster commented 1 year ago

Also with a option to convert from clientId to serverId ;)

soul4soul commented 1 year ago

Also with a option to convert from clientId to serverId ;)

Already exists ;)

Nottinghster commented 1 year ago

@soul4soul any news about that feature? It would be great to convert Canary (lua) monsters to TFS XML, they have a nice monsters datapack

soul4soul commented 1 year ago

Not yet, I have been really into improving the wiki converter and improving wiki data myself as it has the most editors.

I did think about it a bit so I'll document that here. There is the naive way to support this by reading the files and using string parsing but that is brittle. While it would be extra dependencies I would rather go the route of adding lua support. Calling into luajit or similar dll directly its annoying and makes it harder to ship the binary for non windows systems. Quick searching shows moonsharp-devs/moonsharp/ which is written entirely in c# could be used or NLua/NLua. Next step would be to some degree porting https://github.com/otland/forgottenserver/pull/2558 at least for TFS which would be similar for otservbr