"Virus Maps"

All discussion relating to WC3 on the whole should be posted in this forum. If you are looking for beta testers or would like to advertise your map, do so here. All sub-forums created for specific maps over the duration of this website's existence are located in this forum.
User avatar
2-P
Revenent of the Replies
Posts: 328
Joined: Wed Feb 13, 2008 11:18 am

"Virus Maps"

Post by 2-P » Fri May 01, 2009 12:48 pm

Eh, not sure how many of you visit other WC3 sites, so in case you missed it:
http://www.thehelper.net/forums/announcement.php?f=42

If you want to know more:
http://www.wc3c.net/showthread.php?t=105677

So yeah, be careful which new custom maps you play. rawr!
Humans don't have the patience to wait even ten minutes for something!

User avatar
Fledermaus
Keeper of the Keys
Posts: 354
Joined: Fri Feb 01, 2008 9:55 am
Location: New Zealand
Contact:

Re: "Virus Maps"

Post by Fledermaus » Fri May 01, 2009 9:11 pm

I'm really hoping blizz do 2 patches, the first that fixes the return bug, thus shutting down dota for like a week and then the second which reinstates it but also fixes the potential abuse.

User avatar
Oxygen
Grandmaster of Grammar
Posts: 1281
Joined: Thu Jan 17, 2008 6:14 pm

Re: "Virus Maps"

Post by Oxygen » Fri May 01, 2009 9:34 pm

Knew that was comming

User avatar
SetaSoujirou
Letter Linguist
Posts: 614
Joined: Sun Feb 24, 2008 11:47 pm

Re: "Virus Maps"

Post by SetaSoujirou » Fri May 01, 2009 9:37 pm

Are there any good games that are updated regularly anyway?
A wild §eta has appeared!
*Twinkle* Lv. 1337
No I'm not a troll.

User avatar
Loki
Gypsy
Posts: 1416
Joined: Tue Jan 15, 2008 12:16 am
Location: In a sea of paper cranes and a sky of paper planes.
Contact:

Re: "Virus Maps"

Post by Loki » Fri May 01, 2009 11:21 pm

Now that's an arbitrary question.
Let's do what comes naturally
ImageImageImageImage
I'll be waiting in Haven.

User avatar
Rising_Dusk
Chosen of the Intargweeb
Posts: 4031
Joined: Sat Dec 15, 2007 1:50 pm
Contact:

Re: "Virus Maps"

Post by Rising_Dusk » Sat May 02, 2009 9:13 am

We all knew this was coming, but it doesn't really matter. The real scary thing is how integral H2I is to the way WC3 works on the whole right now. DotA would get hit really hard as they are still living with code from 2004 abusing H2I and I2H to kingdom-come. My maps would be salvageable, but it'd be an ugly month to fix them all. No fun.
SetaSoujirou wrote:Are there any good games that are updated regularly anyway?
Depends how needy you are, really. "Updated regularly" means that they are updated every few months, in which case there are plenty of them around. I can't speak for you, though.
"I'll come to Florida one day and make you look like a damn princess." ~Hep

User avatar
Kurogamon
Keeper of the Keys
Posts: 395
Joined: Tue Jan 13, 2009 11:09 pm
Location: Blinded in the dark.

Re: "Virus Maps"

Post by Kurogamon » Tue May 05, 2009 9:56 pm

Damn... They sure find new holes every day. This just makes me more glad I've been playing it on a mac. So now you have to go through the code for your maps and fix what exactly?

And how hard would DotA be hit, assuming the second patch fled mentioned doesn't come?
Can you hear them?

User avatar
Rising_Dusk
Chosen of the Intargweeb
Posts: 4031
Joined: Sat Dec 15, 2007 1:50 pm
Contact:

Re: "Virus Maps"

Post by Rising_Dusk » Wed May 06, 2009 7:24 am

If H2I is removed, nearly all of DotA's triggered spells would need to be remade as well as a substantial chunk of their systems. It would basically be like recoding the entire map, something I'll be honest in saying DotA could use.
"I'll come to Florida one day and make you look like a damn princess." ~Hep

User avatar
Kurogamon
Keeper of the Keys
Posts: 395
Joined: Tue Jan 13, 2009 11:09 pm
Location: Blinded in the dark.

Re: "Virus Maps"

Post by Kurogamon » Wed May 06, 2009 6:33 pm

About goddamned time. It might be worth playing if it actually had more than 20% scripted spells... Inhouse.
Can you hear them?

Soul_Reaver
Revenent of the Replies
Posts: 332
Joined: Thu Feb 14, 2008 3:27 pm
Location: Hungary
Contact:

Re: "Virus Maps"

Post by Soul_Reaver » Tue May 19, 2009 8:16 am

Would someone tell me - as I'm quite unaware of stuff concerning JASS - what H2I and I2H are?

User avatar
Fledermaus
Keeper of the Keys
Posts: 354
Joined: Fri Feb 01, 2008 9:55 am
Location: New Zealand
Contact:

Re: "Virus Maps"

Post by Fledermaus » Tue May 19, 2009 9:09 am

Abusing the return "bug" in the jass compiler. It will only check if the last return statement in a function is correct.

Code: Select all

function H2I takes handle h returns integer
    return h
endfunction
^ This would give an error when you try to save the map because the handle, h, is not an integer and the function returns an integer.

Code: Select all

function H2I takes handle h returns integer
    return h
    return 0
endfunction
^ This however, will compile because the last return statement is returning 0, an integer.

When the function is called, it will use the first return statement, essentially typecasting the handle, h, into an integer.

This can be useful for unit indexing and a world of other things but I wont go into that..

Soul_Reaver
Revenent of the Replies
Posts: 332
Joined: Thu Feb 14, 2008 3:27 pm
Location: Hungary
Contact:

Re: "Virus Maps"

Post by Soul_Reaver » Tue May 19, 2009 9:15 am

So basically you fool the map into believing the code is correct, while it's not and use it to do whatever you please and this leads to the abuse.

Is that the case?

Rectifier
Revenent of the Replies
Posts: 259
Joined: Sun Mar 23, 2008 4:47 pm

Re: "Virus Maps"

Post by Rectifier » Tue May 19, 2009 4:27 pm

I suck at syntax and even I can tell that it fails. :roll:

Soul_Reaver
Revenent of the Replies
Posts: 332
Joined: Thu Feb 14, 2008 3:27 pm
Location: Hungary
Contact:

Re: "Virus Maps"

Post by Soul_Reaver » Wed May 20, 2009 9:55 am

Not at all.

Actually, this is brilliant. It's not the code's fault that it can be abused like this.

Rectifier
Revenent of the Replies
Posts: 259
Joined: Sun Mar 23, 2008 4:47 pm

Re: "Virus Maps"

Post by Rectifier » Wed May 20, 2009 1:58 pm

So if a murderer gets off scot free because of a legal loophole, does describing that scenario as a brilliant maneuver justify the travesty? Nay I say, NAY!

Post Reply

Return to “Generic Warcraft 3 Chat”