Does anyone want to make a trigger restorer?

Talk about anything you want, but keep it within the rules, please.
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm

Does anyone want to make a trigger restorer?

Post by owner123 »

Does anyone want to create a wc3 trigger restorer? Pretty much how this would work is you deobfuscate map + xdep it then run this application on it. It would remove the large unreadable trigger and divide it into multiple triggers (Preferably GUI if we can get it working).

I need help understanding the weird .wtg files that store trigger and GUI information.
I tried to understand their structure so I could reverse engineer it earlier, but it seems pretty weird. If anyone has any info on how the .wtg file is created, I would appreciate it if you tell me.
Kyoshiro
Forum Staff
Posts: 762
Joined: October 27th, 2009, 12:18 pm
Location: Australia, GMT+8

Re: Does anyone want to make a trigger restorer?

Post by Kyoshiro »

The big problem with this is the maps that barely use GUI and use straight Jass functions that GUI can't do.
If you have any questions drop in by chat sometime, chances are there'll be someone who can help you that's afking there, so the next best thing is to click the link on UndeadxAssassin's Sig and ask your question there.
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm

Re: Does anyone want to make a trigger restorer?

Post by owner123 »

Those can be left in custom script.

GUI has a custom script function where you can type a line of JASS.
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4423
Joined: November 19th, 2007, 5:05 am

Re: Does anyone want to make a trigger restorer?

Post by Bartimaeus »

Or you could find analogues that are GUI compatible and convert the triggering to it. But I imagine that could be hard. lol
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm

Re: Does anyone want to make a trigger restorer?

Post by owner123 »

Some JASS stuff doesn't have GUI equivalents.

Local variables, for example. That needs to be left in custom-script. There's nothing like it in GUI.
User avatar
Vegas
Shopping Maul USA Creator
Posts: 1729
Joined: January 18th, 2007, 11:07 am
Title: No Comment
Location: Calgary Canada

Re: Does anyone want to make a trigger restorer?

Post by Vegas »

I cant code programs or jass, so I cant really help. But I would really be interested in finally seeing a program to restore GUI. Of all the programs that have been made and/or sold, I think this one would be the most coveted.
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm

Re: Does anyone want to make a trigger restorer?

Post by owner123 »

You don't need to know how to program. I just need info on the .wtg file. I've been looking at the structure for a while, but every time I think I understand it, something happens that throws me off.
User avatar
Vegas
Shopping Maul USA Creator
Posts: 1729
Joined: January 18th, 2007, 11:07 am
Title: No Comment
Location: Calgary Canada

Re: Does anyone want to make a trigger restorer?

Post by Vegas »

I dont think I have ever seen info on the wtg anywhere. If you wanted to edit the wtg, what program would work?

I have guests until Tuesday night, so I wont be on the computer for any amount of time to play with it until then.
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm

Re: Does anyone want to make a trigger restorer?

Post by owner123 »

JASScraft opens it fine. But new lines appear as the little square, which makes it nearly impossible for me to read. Still, I think I can kind of understand the structure. There are just tons of squares inbetween every action, it gives me a headache if I read it too long.

I won't be messing around with it today or Tuesday, I have work + a baseball game + behind the wheel drivers ed. I still can moderate though :D

Edit: I lied, I worked on it a bit. Got the GUI and a few small functions done at least!
JustANewbie
Forum Spammer
Posts: 510
Joined: August 18th, 2012, 2:32 am

Re: Does anyone want to make a trigger restorer?

Post by JustANewbie »

finally nobody want to make it haiz....
Post Reply