29-03-17, 14:34 | #251 | |||
Moderator
Joined: Dec 2011
Posts: 4,881
|
You asked this:
Quote:
Quote:
Quote:
And okay, a descriptive name would be fine. |
|||
31-03-17, 14:08 | #252 | ||
Moderator
Joined: Dec 2011
Posts: 4,881
|
Else:
I can't find any pointer or what to get in the StrSoundInfos structure. Quote:
Quote:
GET_CALLBACK(CB_PROGR_ACTION_MINE, 0, 0, cbProgrActionMine); GET_CALLBACK(CB_INIT_OBJECTS, 0, 0, cbInitObjects); GET_CALLBACK(enumCB.ACTION, CBT_FIRST, 14, cbHandleAction14); return true; Code:
int cbHandleAction14 (WORD ActionIndex, int ItemIndex, WORD Extra, WORD ActivationMode, WORD CBType) { switch (ActionIndex) { case 14: if (Extra == 4) { MyData.Save.Local.ExpCreature = ItemIndex; } break; } return enumTRET.EXECUTE_ORIGINAL; } That should be Extra again, here as well, what I also said above with my own Actions. I mean, if I remove Extra parameter from this setup (the solution is not the one I want, naturally, though), the callback will work. (The same experience for trng.dll Flipeffect callbacks!) Last edited by AkyV; 14-04-17 at 11:37. |
||
22-04-17, 19:36 | #253 | ||
Member
Joined: Jul 2007
Posts: 4,183
|
Quote:
Hitting Build (former "Generate" but still F7) gives me this: error LNK1117: syntax error in option 'VERSION:1.0.0' C:\NG\plugin_sdk_store\Plugin\plugin_trng_start_vc 2010_sources\LINK PlugIn_trng ^ The second line isn't visible in the compiler but appeared when I pasted the error here. In the "Output" tab view, not much more info: 1> PlugIn_trng.cpp 1> Generating Code... 1>LINK : fatal error LNK1117: syntax error in option 'VERSION:1.0.0' Thankfully I have just 4 months to chase up... Anybody had this already? What can it mean, did I mess up the directories? I triple-checked the config... |
||
06-05-17, 07:42 | #254 |
Member
Joined: Jul 2007
Posts: 288
|
Hi! I don't remember if it has already been asked: how can i spawn a new object by code in runtime?
I'm sorry but i have very few time lately, not enaugh to properly look for this info EDIT: Nevermind, found it Last edited by Delta; 07-05-17 at 13:37. |
06-05-17, 08:37 | #255 | |
Member
Joined: Sep 2007
Posts: 1,684
|
Quote:
|
|
19-06-17, 12:34 | #256 |
Moderator
Joined: Dec 2011
Posts: 4,881
|
When I want a vector in my plugin, then what is the connection between the variable and the vector size?
For example: BYTE VetIndex [3]; VetIndex [0] = 70; VetIndex [1] = 210; VetIndex [2] = 42; Let's suppose, I use all the three indices at the same time, so 70+210+42 = 322 => bigger than BYTE = 255. Or does the BYTE size matter only for each single value of the variable, so it is not a problem now? Or is the BYTE size for the vector size now (as well), I mean, the biggest size is BYTE VetIndex [255] now? |
19-06-17, 12:51 | #257 | |
Member
Joined: Mar 2012
Posts: 3,741
|
Quote:
The number of values in the array is not limited by the type of values it stores either. |
|
19-06-17, 12:56 | #258 |
Moderator
Joined: Dec 2011
Posts: 4,881
|
You confirmed what I thought. Exactly what I hoped. Thanks!
|
20-06-17, 12:01 | #259 | |
Moderator
Joined: Dec 2011
Posts: 4,881
|
Else (almost):
Quote:
for (i=0 ; i < 100; i++) means first I check i=1 (= i0+ i++), then i=2 (=i1+ i++) etc. But then what about MyVector[0]? And this also checks MyVector[100] which doesn't exist... Isn't the proper code NowValue=MyVector[i-1]? Last edited by AkyV; 20-06-17 at 12:03. |
|
20-06-17, 12:15 | #260 |
Member
Joined: Mar 2012
Posts: 3,741
|
Absolutely not.
Code:
for (i=0 ; i < 100; i++) It will loop as long as i is still under 100. Once this condition gets false (so once i is not under 100 anymore), it stops looping, meaning the code won't be read anymore. So the last time the code is read, i = 99. It would have been 100 if the condition was i <= 100. |
Thread Tools | |
|
|