wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Warcraft Editing Tools
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 07-02-2009, 08:09 PM   #2026
Dark_Dragon
User
 
Dark_Dragon's Avatar
 
Join Date: Apr 2008
Posts: 191

Dark_Dragon has little to show at this moment (9)

Default

Quote:
Originally Posted by Vexorian
I.1

so with this hooks i cant make fully leakless trigger works ~via hook triggeraddaction and destroytrigger? or if it can, help would be great!

anyway thanks for your hard work and adding the feature!

Greets!
~Dark Dragon
__________________
Undefined shadow...

Last edited by Dark_Dragon : 07-02-2009 at 08:11 PM.
Dark_Dragon is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 07-02-2009, 10:20 PM   #2027
seraph1991
User
 
Join Date: Aug 2007
Posts: 5

seraph1991 has little to show at this moment (0)

Default

i dont know whats wrong!
i downloaded 0.9.I.1 extracted the files to ...\wc3\jassnewgenpack5c\jasshelper\
and startet the JassNewGen
but at JassHelper -> About JassHelper is Version: 0.9.G.1

now i have reinstalled wc3, downloaded the newest JassNewGen version
and extractet the files again .... and the same.... my jass helper version wouldt update!

why ?
seraph1991 is offline   Reply With Quote
Old 07-02-2009, 10:23 PM   #2028
Joker
User
 
Joker's Avatar
 
Join Date: Sep 2006
Posts: 687

Joker will become famous soon enough (32)Joker will become famous soon enough (32)

Default

just replace the executables
Joker is offline   Reply With Quote
Old 07-02-2009, 10:25 PM   #2029
seraph1991
User
 
Join Date: Aug 2007
Posts: 5

seraph1991 has little to show at this moment (0)

Default

thanks it works *happy*
seraph1991 is offline   Reply With Quote
Old 07-02-2009, 11:11 PM   #2030
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

I.2

Ever heard of release early - release often?
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 07-03-2009, 12:10 AM   #2031
cohadar
master of fugue
 
cohadar's Avatar
 
Join Date: Jun 2007
Posts: 2,453

Submissions (5)

cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)

Default

hook?

When did vJass became a hacking tool?

Is this thing only for debugging?
__________________
Omg database crash deleted my signature, as a side effect this immensely improved wc3c.
cohadar is offline   Reply With Quote
Old 07-03-2009, 12:27 AM   #2032
grim001
requires vJass
 
grim001's Avatar


Code Moderator
 
Join Date: Nov 2006
Posts: 1,540

Submissions (10)

grim001 is just really nice (277)grim001 is just really nice (277)

Send a message via AIM to grim001
Default

It's for getting around some of the inherent limitations of JASS.

Like the impossibility of detecting RemoveUnit.
grim001 is offline   Reply With Quote
Old 07-03-2009, 12:41 AM   #2033
ToukoAozaki
extends net.wc3c.Jasser
 
Join Date: Jun 2008
Posts: 336

Submissions (5)

ToukoAozaki will become famous soon enough (60)ToukoAozaki will become famous soon enough (60)ToukoAozaki will become famous soon enough (60)

Send a message via MSN to ToukoAozaki
Default

Quote:
Originally Posted by cohadar
hook?

When did vJass became a hacking tool?

Is this thing only for debugging?

All it does is notifying callbacks before the function is called. This is done via preprocessing Jass2 code and has nothing to do with hacking.
ToukoAozaki is offline   Reply With Quote
Old 07-03-2009, 01:38 AM   #2034
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

Quote:
Originally Posted by cohadar
hook?

When did vJass became a hacking tool?

Is this thing only for debugging?
It's not much more than a native usage event.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 07-03-2009, 03:43 AM   #2035
ToukoAozaki
extends net.wc3c.Jasser
 
Join Date: Jun 2008
Posts: 336

Submissions (5)

ToukoAozaki will become famous soon enough (60)ToukoAozaki will become famous soon enough (60)ToukoAozaki will become famous soon enough (60)

Send a message via MSN to ToukoAozaki
Default

Quote:
Originally Posted by Vexorian
hook DoNothing MakeGUIUsersCrash

Awesome idea! ROFL

Last edited by ToukoAozaki : 07-03-2009 at 03:43 AM.
ToukoAozaki is offline   Reply With Quote
Old 07-03-2009, 04:14 AM
Litany
This message has been deleted by Litany.
Old 07-03-2009, 04:48 AM   #2036
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

bjs are supported already
not sure about return values. If I think of a good syntax maybe.

hook CreateTrigger funcname return?

supporting the native's usage in blizzard.j sounds a little hard may either take more than a couple of versions or be right next in the list. Depends on whether I think of good syntax for optional code or not before starting work on the next version,
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 07-03-2009, 04:56 AM   #2037
ToukoAozaki
extends net.wc3c.Jasser
 
Join Date: Jun 2008
Posts: 336

Submissions (5)

ToukoAozaki will become famous soon enough (60)ToukoAozaki will become famous soon enough (60)ToukoAozaki will become famous soon enough (60)

Send a message via MSN to ToukoAozaki
Default

Quote:
Originally Posted by Vexorian
bjs are supported already
not sure about return values. If I think of a good syntax maybe.

hook CreateTrigger funcname return?

supporting the native's usage in blizzard.j sounds a little hard may either take more than a couple of versions or be right next in the list. Depends on whether I think of good syntax for optional code or not before starting work on the next version,

Well, we should be able to catch before and after the function is called. The latter should be able to get return values.
ToukoAozaki is offline   Reply With Quote
Old 07-03-2009, 05:07 AM
Litany
This message has been deleted by Litany.
Old 07-03-2009, 07:49 AM   #2038
cohadar
master of fugue
 
cohadar's Avatar
 
Join Date: Jun 2007
Posts: 2,453

Submissions (5)

cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)

Default

Quote:
Originally Posted by ToukoAozaki
preprocessing Jass2 code
The only way that would work is if you checked all BJ functions to see if any of them calls any native function you wanna hook, ouch.

It would also break after every patch that changes wc3 API.

This sounds like a good debug tool, i.e. attaching a BJDebugMsg to all kinds of stuff just to see when they happen.

But when it comes to release versions? I mean why would you wanna have an event for a function? Nightmares of spagetti code...

PS: hooking RemoveUnit is pointless because noone uses it, and if someone does and it is a problem that your problem is that you use unit attaching or your indexing system sux.

hook ListOfVJassFeaturesIDontUse
__________________
Omg database crash deleted my signature, as a side effect this immensely improved wc3c.

Last edited by cohadar : 07-03-2009 at 07:49 AM.
cohadar is offline   Reply With Quote
Old 07-03-2009, 08:16 AM   #2039
grim001
requires vJass
 
grim001's Avatar


Code Moderator
 
Join Date: Nov 2006
Posts: 1,540

Submissions (10)

grim001 is just really nice (277)grim001 is just really nice (277)

Send a message via AIM to grim001
Default

I point to this post about "return hooks": http://www.wc3c.net/showpost.php?p=1...postcount=2030
grim001 is offline   Reply With Quote
Old 07-03-2009, 08:24 AM   #2040
cohadar
master of fugue
 
cohadar's Avatar
 
Join Date: Jun 2007
Posts: 2,453

Submissions (5)

cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)

Default

Quote:
Originally Posted by grim001
I guess it is not necessary to replace natives.

What is needed is a way to get access to the thing the hooked function returns. For example, if you hook CreateUnit, you would need to somehow be able to get a reference to the unit after it's created.

use bj_lastCreatedUnit?
I mean really people, that is the reason blizzard made all those BJ's, they are not pointless, they are perfecty normal programming technique, the problem with them is speed not logic.

Using a hook to CreateUnit instead of CreateUnitBJ zuhahahahhaa

EDIT:
@Vex, how about actually making functions like CreateUnitBJ inline instead of making this stupid hook?
The job overload seems to be exactly the same in both cases.
__________________
Omg database crash deleted my signature, as a side effect this immensely improved wc3c.

Last edited by cohadar : 07-03-2009 at 08:28 AM.
cohadar is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 04:18 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services