04042010, 05:04 PM  #16 
User
Join Date: Mar 2009
Posts: 147

Something that would be very useful is a list of constants for all the keycodes. I compiled one myself, but it's not allinclusive:
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 
Sponsored Links  Login to hide this ad! 

04042010, 05:07 PM  #17 
￼
Join Date: Feb 2008
Posts: 405

If anyone has ideas for natives, I'd be glad to give it a shot.

04042010, 05:09 PM  #18 
User
Join Date: Mar 2009
Posts: 147

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... 
04042010, 05:39 PM  #19 
reenignE

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. 
04042010, 05:39 PM  #20 
User
Project Member: LoC
Join Date: Dec 2007
Posts: 756

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. 
04042010, 05:57 PM  #21  
User
Join Date: Jan 2006
Posts: 158

Mine is freezing on startup as well.
I'm running as Administrator, Compatibility Mode for Windows XP SP2. (I'm on Windows 7). Quote:


04042010, 06:18 PM  #23 
User
Join Date: Oct 2006
Posts: 1,490

Will this be applied for all players ? (well ofc all players needs to launch rtc in order to play)
__________________ 
04042010, 06:20 PM  #24 
￼
Join Date: Feb 2008
Posts: 405

I'm wondering the same thing.
Will everything be synced when playing online? 
04042010, 06:39 PM  #25 
User
Join Date: Jan 2007
Posts: 542

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.
__________________ 
04042010, 06:46 PM  #26 
Level 1 Neothelid
Tools Moderator
Join Date: Mar 2004
Posts: 254

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(). 
04042010, 07:08 PM  #27 
User
Join Date: Mar 2009
Posts: 147

Thanks for that list, MindWorX!
@TriggerHappy Those new natives crash the game as soon as they are run  did you test them? 
04042010, 07:09 PM  #28 
￼
Join Date: Feb 2008
Posts: 405

Of course I tested them.
Show me what you are doing. 
04042010, 07:17 PM  #29 
User
Join Date: Mar 2009
Posts: 147

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 : 04042010 at 07:24 PM. 
Thread Tools  Search this Thread 

