GUI - How do I put things into WTS file...

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

qwertz111
Senior Member
Posts: 113
Joined: March 1st, 2007, 8:22 pm

GUI - How do I put things into WTS file...

Post by qwertz111 »

Instead of the war3map.j file when making a trigger to move specific player names to war3map.wts file
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm
Been thanked: 1 time

Re: GUI - How do I put things into WTS file...

Post by owner123 »

Wait - What do you mean?
You want to edit the .wts file from a GUI trigger?
Pretty sure theres no way to do that.
qwertz111
Senior Member
Posts: 113
Joined: March 1st, 2007, 8:22 pm

Re: GUI - How do I put things into WTS file...

Post by qwertz111 »

No... I mean to move the player names to the wts file ( since those are the conditions )

like if playername == some string instead of the playername
User avatar
UndeadxAssassin
Grammar King
Posts: 2117
Joined: June 22nd, 2008, 10:11 pm
Title: Worst human for 4eva
Location: Mostly USEast

Re: GUI - How do I put things into WTS file...

Post by UndeadxAssassin »

As far as I know, there isn't a way.
(20:53:52) Bartimaeus: Thank you, Jen.
(20:53:56) Bartimaeus: Truly, you are wise.
(23:44:12) Bartimaeus: I was in pubic school until middle school...
Learn how to extract and read RAW Codes here!

Need help? Click here and ask your question!
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm
Been thanked: 1 time

Re: GUI - How do I put things into WTS file...

Post by owner123 »

Yeah.
Besides, why would you need to add it to the wts?
In GUI, you can just check a certain player, and do conditions if they match the name.
initialD
Some Honorary Title
Posts: 1713
Joined: June 8th, 2007, 5:08 am
Title: Angry Bird

Re: GUI - How do I put things into WTS file...

Post by initialD »

just extract the wts file. It's in the notepad form. So just edit it in the notepad, save, then insert it back to the map.
p/s I think you want to hide the player name in the J file so that it won't be found, right?
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm
Been thanked: 1 time

Re: GUI - How do I put things into WTS file...

Post by owner123 »

He means through a trigger.
Thats why he put GUI ;)
User avatar
Vegas
Shopping Maul USA Creator
Posts: 1788
Joined: January 18th, 2007, 11:07 am
Title: No Comment
Location: Calgary Canada
Has thanked: 70 times
Been thanked: 8 times

Re: GUI - How do I put things into WTS file...

Post by Vegas »

Sometime maps can have the "activator" in the wts file. Shopping mall used to have a couple of check words in the wts which I always changed to suit my needs. Well actually they were in the Jass, but pointed it to a string in the wts like this:

Code: Select all

"TRIGSTR_2725"

That was easy enough for me to edit in the wts and chage as I needed it:

Code: Select all

STRING 2275
{
|cffFF9900-Gold 500 
}
It could be possible to add strings back to back and scrambled throughout the wts to make it hard to figure out the activator. It would only take a little time and patience to follow the "trigstr" path to find the activator. Still, a deterrent for lazy peeps.
YellowAfterlife
Senior Member
Posts: 127
Joined: March 27th, 2010, 2:32 pm

Re: GUI - How do I put things into WTS file...

Post by YellowAfterlife »

How about...(StringIdentity takes string returns string)?
Its avaible since one of 1.24 updates, and gets strings properly. Argument is noramlly like "TRIGSTR_002". Value returned is string if found in .wts, or (null) if not found.