DECtoZSC - Patch 1.1 - Basic DECORATE to ZScript converter

Any utility that assists in the creation of mods, assets, etc, go here. For example: Ultimate Doom Builder, Slade, WadSmoosh, Oblige, etc.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
User avatar
RockstarRaccoon
Posts: 598
Joined: Sun Jul 31, 2016 2:43 pm

Re: DECtoZSC - Patch 1.1 - Basic DECORATE to ZScript convert

Post by RockstarRaccoon »

Major Cooke wrote:adding semi-colons to the end of everything
Well, you literally just described the kinds of things I made it to handle in the first place. :P

And by that, I mean the original project here just went through every line and gave it a semicolon if it didn't already have something like a bracket precluding that. It's just a time saver when you are trying to take a bunch of DECORATE and turn it into ZScript, made because that was something I was doing a lot of at the time.
User avatar
Major Cooke
Posts: 8197
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: DECtoZSC - Patch 1.1 - Basic DECORATE to ZScript convert

Post by Major Cooke »

Of course I figured that was already done, but I am curious about how you plan on handling A_SetUserVar/Array.
User avatar
RockstarRaccoon
Posts: 598
Joined: Sun Jul 31, 2016 2:43 pm

Re: DECtoZSC - Patch 1.1 - Basic DECORATE to ZScript convert

Post by RockstarRaccoon »

Major Cooke wrote:I am curious about how you plan on handling A_SetUserVar/Array.
Honestly, if it hasn't been handled already, I don't have any plans on going back and handling it. This was just a quick little program I threw together to simplify the process when ZScript first came out, simply because I had a lot of code that needed to be converted. My method was this was just having it do the bulk of the work for me, and then trying to get GZDoom to load it over and over and using the bug reports to fix things. The things which came up in the bug Reports most often are the things which I focused on fixing.

If you want, you're welcome to download the Java code and write in a change, or simply make another one that converts the DECORATE into an intermediary data structure and then outputs correct ZScript. As it stands though, this pretty much does 95% of the work for you, so I'd say it's a great time saver as is.

At this point, I've kind of abandoned this project, as it does what I wanted it to, and I don't have the time (lots of paid work right now) or active interest in GZDoom to make things for it. If I did, I'd probably be screwing around with the game code again, like with the automap changes I made...

Return to “Creation, Conversion, and Editing”