View previous topic :: View next topic |
Author |
Message |
NeoSpade Of course!

Joined: 23 Sep 2008 Posts: 249 Location: Wales GB
|
Posted: Tue Oct 27, 2009 1:33 am Post subject: String Command causes custom to crash |
|
|
I'm not sure why, but on a recent update to my script file uppon importing the scripts it crashed, luckily I found out what was causing the crash; however this has posed to be a bit of a problem. Here is the exact line of code that caused the crash:
Code: | $0="General"
$1="Connla"
set hero name (0,7) |
now, it compiles fine, but crashes custom uppon load, have I declared the strings too late on in the script? Or something like that? *please note that this piece of code is towards the bottom of the script it is in*
EDIT:...problem solved, being stupid I thought that I could use the heroes ID (which is 7), but infact I needed to use the find hero(hero:Connla). This wiki entry caused the confusion: How do I "Automatically" rename heroes?
And this one fixed it: How do I enter names through strings? |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Thu Oct 29, 2009 7:38 am Post subject: |
|
|
That's not problem-solved, you discovered a bug in HSpeak or Custom! Could you please file a bug report and attach your scripts; or if you want, email PM to me privately. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
NeoSpade Of course!

Joined: 23 Sep 2008 Posts: 249 Location: Wales GB
|
Posted: Thu Oct 29, 2009 8:48 am Post subject: |
|
|
I can't seem to emulate the bug again, maybe it was just a one off, if it ever happens again I'll say something about it, sorry about that. |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Thu Oct 29, 2009 8:54 am Post subject: |
|
|
Right. if it crashes, it is *definitely* a bug, even if you were making a mistake. |
|
Back to top |
|
 |
|