Removing Objects?

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Crazy-Host
Newcomer
Posts: 17
Joined: February 12th, 2011, 8:02 pm
Title: Just Another Newbie
Location: Behind You

Removing Objects?

Post by Crazy-Host »

I was wondering this time.... if you can remove all the custom created units in a map a faster way than pressing DELETE all the time or right clicking. It lags when you try to delete a map with a lot of custom units or abilities. Is there a way to remove all of it faster?
You do not have the required permissions to view my awesome signature.
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm

Re: Removing Objects?

Post by owner123 »

I don't believe so.
GeorgeMots
Crusader
Posts: 4236
Joined: January 27th, 2007, 4:46 pm
Location: Greece, Veria

Re: Removing Objects?

Post by GeorgeMots »

You can widgetize them.
http://slowbro.org/
`·.,¸,.·*¯`·.,¸,.·*¯[;::;(。◕‿‿­­​­­­­­◕。)
Image
Image
Image
Spoiler:
(03:36:55) xkiska: im too much of a dumbass to understand this
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm

Re: Removing Objects?

Post by owner123 »

Doesn't delete. It just stores them in a different file.
But if you want them all just not visible, then yes that would work.
GeorgeMots
Crusader
Posts: 4236
Joined: January 27th, 2007, 4:46 pm
Location: Greece, Veria

Re: Removing Objects?

Post by GeorgeMots »

Well that process makes the map lag free.
http://slowbro.org/
`·.,¸,.·*¯`·.,¸,.·*¯[;::;(。◕‿‿­­​­­­­­◕。)
Image
Image
Image
Spoiler:
(03:36:55) xkiska: im too much of a dumbass to understand this
User avatar
Ken
Spice Pirate
Posts: 862
Joined: January 29th, 2009, 5:35 pm
Title: LHC
Location: Canada

Re: Removing Objects?

Post by Ken »

http://www.eeve.org/board/viewtopic.php?f=23&t=1102

Use that, create this script:

Code: Select all

Map map = loadMap(...);
for(string s: map.objects){
	Wc3obj obj = map.objects[s];
	if(!(obj instanceof Unit)) continue;
	if(isIdPredefined(s)) continue;		//Object is not custom but predefined? then skip!
	unset(map.objects[s]);
}
You'll have to change ... to the file name of the map, but that script should remove all custom units from the map.
Spoiler:
xkiska wrote:BARTIMEAUS is more understandable then u
Senethior459 wrote:Wow, Dream Theatre reminds me of Dragonforce, but with real skill.
Ozzapoo wrote:We laughed, we cried. Trashed.
FatherSpace: You don't find smart chicks hawt?
GeorgeMots: not anymore, im fed up with that kind of girls
FatherSpace: lol
FatherSpace: What happened?
GeorgeMots: most smart girls find out that i date/do/see other girls....
FatherSpace: ...
FatherSpace: So monogamy is your enemy?
Bartimaeus: Hmm, well, I hope my sister hasn't been kidnapped.
FatherSpace: What happened, Bart?
Bartimaeus: She walked out of the house saying that she was going over to some friends, and it's been like two hours, and my mom is trying to get a hold of her, which she's been unable to.
Bartimaeus: I can also hear three car alarms going off.
GeorgeMots: how old is she?
Bartimaeus: I haven't a clue. Probably 17.
UndeadxAssassin: wut
AbusivePie: You don't know how old your sister is?
Bartimaeus: Nope.
UndeadxAssassin: Epic fail
GeorgeMots: is she cute??
Bartimaeus: So, uh, how about you get into the Christmas spirit and put that avatar on before I do it myself and take away your bloody avatar-changin' rights?
UndeadxAssassin: If I thought of a random one...
UndeadxAssassin: Like....
UndeadxAssassin: I'll get back to you on that