| AMIA ARCHIVE https://www.amiaworld.net/phpBB3/ |
|
| Scripting bugs https://www.amiaworld.net/phpBB3/viewtopic.php?f=2&t=52038 |
Page 1 of 1 |
| Author: | Selvec Darkon [ Sat, Oct 23 2010, 0:31 AM ] |
| Post subject: | Scripting bugs |
Is it quite common for NWN toolset to pick up annoying compiling errors in the script that make no sense? For example. This. Code: sVarName = "MK_DISABLE_CRAFT_" + MK_IntToString(i, 2, "0"); It comes up with mk_cond_09.nss(42): ERROR: NO SEMICOLON AFTER EXPRESSION Now, either I'm going blind, or NWN is playing the dumbshit. As I swear there is a semi-colon after that expression. Furthermore, when I switch it around like so Code: sVarName = "MK_DISABLE_CRAFT_"; sVarName = "MK_IntToString(i, 2, "0")"; It still wants a freakin' Semi-Colon on the end of MK_IntToString(i, 2, "0"), despite one already being there. MK_IntToString(i,2,"0") is a required piece of code that I can't get rid of without screwing the entire system I'm editing. Any idea's? Is NWN Toolset just bonkers or am I missing something here? |
|
| Author: | Fabian [ Sat, Oct 23 2010, 1:43 AM ] |
| Post subject: | Re: Scripting bugs |
Can you post the full script? Particularly the function MK_IntToString(). It's likely the error is in this function definition. |
|
| Author: | Selvec Darkon [ Sat, Oct 23 2010, 1:52 AM ] |
| Post subject: | Re: Scripting bugs |
I'll see if I can find it. I'm attempting to edit someone elses work (with permission), so its a little complicated. |
|
| Author: | Selvec Darkon [ Sat, Oct 23 2010, 2:52 AM ] |
| Post subject: | Re: Scripting bugs |
Afraid I can't find it, but its clearly doing something, just not sure what. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|