UnicycleBloke / yagl

Yet Another GRF Language - a tool for working with NewGRF mod files for OpenTTD
GNU General Public License v3.0
5 stars 3 forks source link

Supporting Newer Features? #5

Open WenSimEHRP opened 10 months ago

WenSimEHRP commented 10 months ago

I noticed that YAGL is a very good tool for doing translations, especially for those that are originally coded in NFO. I tried using YAGL to translate several old GRFs, and surprisingly, they all worked, even for bridge GRFs. However, currently the software doesn't support newer features, and sometimes causes errors while decoding. So, maybe... To update the project?

UnicycleBloke commented 10 months ago

Hi,

I'm very grateful for your interest, and glad it appears to work.

I wrote YAGL a few years ago because I was curious about the ridiculously complicated and ambiguous specifications. It was a weird project because I have no interest in actually writing GRFs, and I don't play OTTD much. I got a bit carried away with my curiosity. :)

I did put a lot of effort into capturing and testing the complete spec at the time, but I haven't touched it since. There was so very little interest in it: you are perhaps the fourth person to contact me. As far as I know Kamnet is my only regular user.

My understanding is that all new GRFs use NML so it is simpler to modify the NML source and recompile. YAGL scores with older GRFs which are in NFO, for which the original code may have been lost.

I haven't been keeping up with spec changes. What are the newer features it is missing? It might be fun to update the code here and there.

Al

On Thu, 2 Nov 2023, 06:21 WenSim, @.***> wrote:

I noticed that YAGL is a very good tool for doing translations, especially for those that are originally coded in NFO. I tried using YAGL to translate several old GRFs, and surprisingly, they all worked, even for bridge GRFs. However, currently the software doesn't support newer features, and sometimes causes errors while decoding. So, maybe... To update the project?

— Reply to this email directly, view it on GitHub https://github.com/UnicycleBloke/yagl/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/AILIUXU3LISOO3AJTUOZ5ETYCM3YPAVCNFSM6AAAAAA62LRZJCVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE3TGNJYGY2TEMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

UnicycleBloke commented 10 months ago

I have posted in the OTTD graphics forum to see how much demand there is for maintenance.

Silly question: why is it surprising that YAGL supports bridges?

WenSimEHRP commented 10 months ago

Silly question: why is it surprising that YAGL supports bridges?

As what I know so far there aren't a bridge grf that supports multiple-language; usually only English is supported. I guess that is because of the limitation of NFO, which, creating translations is hard, especially for non-latin languages, e.g. Chinese and Japanese. When I was playing around with several bridge GRFs I noticed that the string inside was seperated, and I could easily create translations--in Chinese. In addition, NML doesn't support bridges currently.

Or maybe I am wrong. :-)