• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Get your art tools and paintbrushes ready and enter Hive's 34th Texturing Contest: Void! Click here to enter!

Any help with Variables

Status
Not open for further replies.
Level 8
Joined
Nov 27, 2015
Messages
157
I know how to use them.I know how to create them.I know everything what i need about them only one thing i dont know.How to reduce the time for the mass group of variables to be deleated.Whne i delete one or two variaables and click ok it finishes in 2 or 3 secs but when i delete multiple variables from 10 to 50 or more it usualy takes about an hour.What can i do to reduce the time for it to procced?
 

Dr Super Good

Spell Reviewer
Level 65
Joined
Jan 18, 2005
Messages
27,296
I know how to use them.I know how to create them.I know everything what i need about them only one thing i dont know.How to reduce the time for the mass group of variables to be deleated.Whne i delete one or two variaables and click ok it finishes in 2 or 3 secs but when i delete multiple variables from 10 to 50 or more it usualy takes about an hour.What can i do to reduce the time for it to procced?
By not using GUI? Use vJASS where it is done practically instantly.

Seriously, this is probably a limitation with how the variable window is built. It probably deletes variables 1 by 1 causing a long delay each time due to inefficient algorithms.

As far as I am aware: nothing. Just do less at a time. You could probably edit the war3map.j and delete them from the globals block but idk if that would stick once you opened the map in the editor again.
It will not be present as the editor never parses that file.

However he could edit the GUI trigger data binary file. The variables are probably declared in there somewhere. Might take longer then using the editor though, especially if one factors in having to write the necessary tools.

Why are you needing to delete so many variables?
Revisions, optimizations or cleanup. It is fairly common when programming to delete code during those activities.
 
Level 8
Joined
Nov 27, 2015
Messages
157
Why are you needing to delete so many variables?
I asked eagleman for copy of unprotected AWLR.Luckuly he allowed me and gave me link.Now i only need to clear triggers and variables.Triggers got cleared and variables take longer to clear when they are a massed.nd by some miracle when i tried today in the morning they just got deleted without any delay nor time cost.After that i just looked at the variable bar and all of them suddenly gone without any delay.I was like "lol" is this possible because when i tried to do that with my own maked maps it would take an hour or more to delete them.
 
Level 8
Joined
Nov 27, 2015
Messages
157
By not using GUI? Use vJASS where it is done practically instantly.

Seriously, this is probably a limitation with how the variable window is built. It probably deletes variables 1 by 1 causing a long delay each time due to inefficient algorithms.


It will not be present as the editor never parses that file.

However he could edit the GUI trigger data binary file. The variables are probably declared in there somewhere. Might take longer then using the editor though, especially if one factors in having to write the necessary tools.


Revisions, optimizations or cleanup. It is fairly common when programming to delete code during those activities.
Sorry but how to delete variables with vJASS or GUI can you send me tutorial or link where i can learn because i am new when it comes to coding?
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
In vJass you define variables by typing them out. ie.
JASS:
local unit u = GetTriggerUnit()
JASS:
globals
player Host = Player(0)
endglobals
To delete these you would backspace.

In GUI you go to the interface and create a variable. And then to delete you have to go to the interface and press the delete key or click the delete variable button.
 

Dr Super Good

Spell Reviewer
Level 65
Joined
Jan 18, 2005
Messages
27,296
Sorry but how to delete variables with vJASS or GUI can you send me tutorial or link where i can learn because i am new when it comes to coding?
In vJASS you just delete the declaration line, or lines.

To delete these you would backspace.
Or drag select and backspace/delete.

The gist of the story here is that GUI in WC3 is very poorly implemented. This is not SC2 GUI.
 
Level 8
Joined
Nov 27, 2015
Messages
157
In vJASS you just delete the declaration line, or lines.


Or drag select and backspace/delete.

The gist of the story here is that GUI in WC3 is very poorly implemented. This is not SC2 GUI.
I see.So the gui is the one written by triggers while vJASS is written by code.It seems it will be hard to delete them though i use GUI not vJASS.
 
Status
Not open for further replies.
Top