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 04-04-2010, 05:04 PM   #16
Element of Water
User
 
Element of Water's Avatar
 
Join Date: Mar 2009
Posts: 147

Submissions (2)

Element of Water is on a distinguished road (18)

Default

Something that would be very useful is a list of constants for all the keycodes. I compiled one myself, but it's not all-inclusive:
Collapse JASS:
constant integer KEY_BACKSPACE       = 8
constant integer KEY_TAB             = 9
constant integer KEY_ENTER           = 13
constant integer KEY_SHIFT           = 16
constant integer KEY_CTRL            = 17
constant integer KEY_ALT             = 18
constant integer KEY_PAUSE_BREAK     = 19
constant integer KEY_CAPS_LOCK       = 20
constant integer KEY_ESC             = 27
constant integer KEY_PAGE_UP         = 33
constant integer KEY_PAGE_DOWN       = 34
constant integer KEY_END             = 35
constant integer KEY_HOME            = 36
constant integer KEY_ARROW_LEFT      = 37
constant integer KEY_ARROW_UP        = 38
constant integer KEY_ARROW_RIGHT     = 39
constant integer KEY_ARROW_DOWN      = 40
constant integer KEY_INSERT          = 45
constant integer KEY_DELETE          = 46
constant integer KEY_NUM_0           = 48
constant integer KEY_NUM_1           = 49
constant integer KEY_NUM_2           = 50
constant integer KEY_NUM_3           = 51
constant integer KEY_NUM_4           = 52
constant integer KEY_NUM_5           = 53
constant integer KEY_NUM_6           = 54
constant integer KEY_NUM_7           = 55
constant integer KEY_NUM_8           = 56
constant integer KEY_NUM_9           = 57
constant integer KEY_A               = 65
constant integer KEY_B               = 66
constant integer KEY_C               = 67
constant integer KEY_D               = 68
constant integer KEY_E               = 69
constant integer KEY_F               = 70
constant integer KEY_G               = 71
constant integer KEY_H               = 72
constant integer KEY_I               = 73
constant integer KEY_J               = 74
constant integer KEY_K               = 75
constant integer KEY_L               = 76
constant integer KEY_M               = 77
constant integer KEY_N               = 78
constant integer KEY_O               = 79
constant integer KEY_P               = 80
constant integer KEY_Q               = 81
constant integer KEY_R               = 82
constant integer KEY_S               = 83
constant integer KEY_T               = 84
constant integer KEY_U               = 85
constant integer KEY_V               = 86
constant integer KEY_W               = 87
constant integer KEY_X               = 88
constant integer KEY_Y               = 89
constant integer KEY_Z               = 90
constant integer KEY_LEFT_WINDOW     = 91
constant integer KEY_RIGHT_WINDOW    = 92
constant integer KEY_SELECT          = 93
constant integer KEY_NUMPAD_0        = 96
constant integer KEY_NUMPAD_1        = 97
constant integer KEY_NUMPAD_2        = 98
constant integer KEY_NUMPAD_3        = 99
constant integer KEY_NUMPAD_4        = 100
constant integer KEY_NUMPAD_5        = 101
constant integer KEY_NUMPAD_6        = 102
constant integer KEY_NUMPAD_7        = 103
constant integer KEY_NUMPAD_8        = 104
constant integer KEY_NUMPAD_9        = 105
constant integer KEY_NUMPAD_MULTIPLY = 106
constant integer KEY_NUMPAD_ADD      = 107
constant integer KEY_NUMPAD_SUBTRACT = 109
constant integer KEY_NUMPAD_POINT    = 110
constant integer KEY_NUMPAD_DIVIDE   = 111
constant integer KEY_F1              = 112
constant integer KEY_F2              = 113
constant integer KEY_F3              = 114
constant integer KEY_F4              = 115
constant integer KEY_F5              = 116
constant integer KEY_F6              = 117
constant integer KEY_F7              = 118
constant integer KEY_F8              = 119
constant integer KEY_F9              = 120
constant integer KEY_F10             = 121
constant integer KEY_F11             = 122
constant integer KEY_F12             = 123
constant integer KEY_NUM_LOCK        = 124
constant integer KEY_SCROLL_LOCK     = 145
constant integer KEY_SEMI_COLON      = 186
constant integer KEY_EQUAL_SIGN      = 187
constant integer KEY_COMMA           = 188
constant integer KEY_HYPHEN          = 189
constant integer KEY_PERIOD          = 190
constant integer KEY_FORWARD_SLASH   = 191
constant integer KEY_GRAVE_ACCENT    = 192
constant integer KEY_OPEN_BRACKET    = 219
constant integer KEY_BACK_SLASH      = 220
constant integer KEY_CLOSE_BRACKET   = 221
constant integer KEY_SINGLE_QUOTE    = 222
Element of Water is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 04-04-2010, 05:07 PM   #17
TriggerHappy
 
Join Date: Feb 2008
Posts: 405

Submissions (2)

TriggerHappy will become famous soon enough (43)TriggerHappy will become famous soon enough (43)

Default

If anyone has ideas for natives, I'd be glad to give it a shot.
TriggerHappy is offline   Reply With Quote
Old 04-04-2010, 05:09 PM   #18
Element of Water
User
 
Element of Water's Avatar
 
Join Date: Mar 2009
Posts: 147

Submissions (2)

Element of Water is on a distinguished road (18)

Default

CHANGING TOOLTIPS INGAME YES PLEASE

And also more ways to manipulate units, like pitch and roll angles, maybe even changing the names.

I don't know if these are currently possible -- I haven't checked out the API fully...
Element of Water is offline   Reply With Quote
Old 04-04-2010, 05:39 PM   #19
SFilip
reenignE
 
SFilip's Avatar
 
Join Date: Mar 2006
Posts: 321

SFilip has a spectacular aura about (111)SFilip has a spectacular aura about (111)SFilip has a spectacular aura about (111)SFilip has a spectacular aura about (111)

Send a message via MSN to SFilip
Default

Thanks for the key constants, Element of Water.

I made "SetUnitName" and "SetHeroProperName" natives at some point, but haven't included them in this release. And tooltips are possible, Mindy was working on that. They can't be (easily) made with the current nAPI though, but you can expect them both in the next RtC release.
Pitch and roll angles are not possible (unlikely they ever will be) since the game doesn't seem to support that.
__________________
Want to create your own natives for Jass? Try RtC project's nAPI
SFilip is offline   Reply With Quote
Old 04-04-2010, 05:39 PM   #20
Vestras
User


Project Member: LoC
 
Join Date: Dec 2007
Posts: 756

Submissions (4)

Vestras will become famous soon enough (40)Vestras will become famous soon enough (40)

Default

I would like to help on Jass.NET. I actually already started making a C# of RtC, but then I read that you already started, so... Anyways, these are some of my past works:
http://www.thehelper.net/forums/showthread.php?t=146456
http://www.thehelper.net/forums/showthread.php?t=140572

I hope I can help you.
Vestras is offline   Reply With Quote
Old 04-04-2010, 05:57 PM   #21
thehellman
User
 
Join Date: Jan 2006
Posts: 158

Submissions (2)

thehellman has little to show at this moment (4)

Default

Mine is freezing on startup as well.

I'm running as Administrator, Compatibility Mode for Windows XP SP2.

(I'm on Windows 7).

Quote:
Debug Log

[13:56:48] Event 1
[13:56:48] Event 2
[13:56:48] Event 3
[13:56:48] Event 4
[13:56:48] Event 5 (value1=6F3D4B60, value2=6F3D4B61)
[13:56:48] VirtualProtect(6F3D4B61, 4, PAGE_READONLY) failed, error 487!
[13:56:48] Event 6
[13:56:48] VirtualProtect(6F3D4B75, 4, PAGE_READONLY) failed, error 487!
[13:56:48] Event 7
[13:56:48] Event 8
[13:56:48] VirtualProtect(6F45DB9F, 4, PAGE_READONLY) failed, error 487!
[13:56:48] Event 9
[13:56:48] Event 10
[13:56:48] Event 11
[13:56:48] Event 12
[13:56:48] Event 13
[13:56:48] Event 14
[13:56:48] Event 15
[13:56:48] Event 16
[13:56:48] Event 17
[13:56:48] Event 18
[13:56:48] Event 19
[13:56:48] Event 20
[13:56:48] Event 21
[13:56:48] Event 22
[13:56:48] Event 23
[13:56:48] Event 24
[13:56:48] Event 25
[13:56:48] Event 26
[13:56:48] Event 27
[13:56:48] Event 28
[13:56:48] Event 29
[13:56:48] Event 30
[13:56:48] Event 31
thehellman is offline   Reply With Quote
Old 04-04-2010, 05:59 PM   #22
TriggerHappy
 
Join Date: Feb 2008
Posts: 405

Submissions (2)

TriggerHappy will become famous soon enough (43)TriggerHappy will become famous soon enough (43)

Default

Here are some natives.

EDIT: Made an official thread.

Last edited by TriggerHappy : 04-04-2010 at 07:17 PM.
TriggerHappy is offline   Reply With Quote
Old 04-04-2010, 06:18 PM   #23
Troll-Brain
User
 
Join Date: Oct 2006
Posts: 1,490

Submissions (1)

Troll-Brain has a spectacular aura about (134)

Default

Will this be applied for all players ? (well ofc all players needs to launch rtc in order to play)
__________________
Cool != Useful
Troll-Brain is offline   Reply With Quote
Old 04-04-2010, 06:20 PM   #24
TriggerHappy
 
Join Date: Feb 2008
Posts: 405

Submissions (2)

TriggerHappy will become famous soon enough (43)TriggerHappy will become famous soon enough (43)

Default

I'm wondering the same thing.
Will everything be synced when playing online?
TriggerHappy is offline   Reply With Quote
Old 04-04-2010, 06:39 PM   #25
Deaod
User
 
Join Date: Jan 2007
Posts: 542

Submissions (11)

Deaod is a jewel in the rough (192)Deaod is a jewel in the rough (192)Deaod is a jewel in the rough (192)

Default

if the code is executed for every player, then yes. If youre basing it off a new trigger event (mouse or key), it wont be synchronized, or at least thats the current state.
__________________
Deaod is offline   Reply With Quote
Old 04-04-2010, 06:46 PM   #26
MindWorX
Level 1 Neothelid


Tools Moderator
 
Join Date: Mar 2004
Posts: 254

Submissions (2)

MindWorX has a spectacular aura about (147)

Default

Here's a more extensive keycode list.
http://www.wc3c.net/pastebint.php?t=...b5709e06e52b58
It should have opposite constants like Element of Water did tho. This is just an array of strings, that you can use with GetTriggerKey().
MindWorX is offline   Reply With Quote
Old 04-04-2010, 07:08 PM   #27
Element of Water
User
 
Element of Water's Avatar
 
Join Date: Mar 2009
Posts: 147

Submissions (2)

Element of Water is on a distinguished road (18)

Default

Thanks for that list, MindWorX!

@TriggerHappy

Those new natives crash the game as soon as they are run -- did you test them?
Element of Water is offline   Reply With Quote
Old 04-04-2010, 07:09 PM   #28
TriggerHappy
 
Join Date: Feb 2008
Posts: 405

Submissions (2)

TriggerHappy will become famous soon enough (43)TriggerHappy will become famous soon enough (43)

Default

Of course I tested them.
Show me what you are doing.
TriggerHappy is offline   Reply With Quote
Old 04-04-2010, 07:17 PM   #29
Element of Water
User
 
Element of Water's Avatar
 
Join Date: Mar 2009
Posts: 147

Submissions (2)

Element of Water is on a distinguished road (18)

Default

Collapse Zinc:
//! zinc
library Test requires RtC
{
    function onTimer ()
    {
        SetAbilityTooltip('A000', "Awesome Ability");
    }
    
    function onInit ()
    {
        unit u = CreateUnit(Player(0), 'hpea', 0., 0., 0.);
        TimerStart(CreateTimer(), 0, false, function onTimer);
    }
}
//! endzinc

The RtC library is the list of natives, I can't seem to get that imported common.j to work O.o

EDIT: And yes, there is an ability with the id 'A000'

EDIT: Posted this in your 'official thread', you can answer there

Last edited by Element of Water : 04-04-2010 at 07:24 PM.
Element of Water is offline   Reply With Quote
Old 04-04-2010, 07:22 PM   #30
TriggerHappy
 
Join Date: Feb 2008
Posts: 405

Submissions (2)

TriggerHappy will become famous soon enough (43)TriggerHappy will become famous soon enough (43)

Default

That code worked for me (on a different ability).
I haven't tested custom abilities.

Also, just import the modified common.j with the path scripts\common.j.
And redownload NativeX here.
TriggerHappy 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:33 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