gml_fmt icon indicating copy to clipboard operation
gml_fmt copied to clipboard

GM:S 1.4 support

Open nkrapivin opened this issue 5 years ago • 6 comments
trafficstars

Hello, I really liked your program!

But too sad that it can't support GMX project files.... (only .gml files from "scripts" directory)

Is it possible to make GMX support?

nkrapivin avatar Dec 15 '19 12:12 nkrapivin

Can you tell me more about .gmx files? I apologize!

sanbox-irl avatar Feb 18 '20 07:02 sanbox-irl

GMX is the format for GMS1.4 - its an XML format as opposed to the GMS2's .yy JSON files.

RobQuistNL avatar Feb 18 '20 15:02 RobQuistNL

Do the .gmx files contain some code? Otherwise I'm not exactly following. We essentially do a glob for .gml files, so even loose files can be formatted. We in no way track project structure

sanbox-irl avatar Feb 18 '20 16:02 sanbox-irl

I think GMX files could contain GML code inside of some nodes, yeah. But to make it work perfect you'd need some XML parser and grab out the contents, apply GML_FMT on that and put the XML back together. Maybe a proper regex would work good too?

RobQuistNL avatar Feb 20 '20 15:02 RobQuistNL

Neither would be hard, but to be honest, not supporting GMS1.4 is also something good. It's deprecated software, and giving it more legs isn't a good idea, imo

sanbox-irl avatar Feb 20 '20 17:02 sanbox-irl

I completely agree :+1:

RobQuistNL avatar Feb 21 '20 11:02 RobQuistNL