Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

String Command causes custom to crash

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
NeoSpade
Of course!




Joined: 23 Sep 2008
Posts: 249
Location: Wales GB

PostPosted: Tue Oct 27, 2009 1:33 am    Post subject: String Command causes custom to crash Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Thu Oct 29, 2009 7:38 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
NeoSpade
Of course!




Joined: 23 Sep 2008
Posts: 249
Location: Wales GB

PostPosted: Thu Oct 29, 2009 8:48 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Thu Oct 29, 2009 8:54 am    Post subject: Reply with quote

Right. if it crashes, it is *definitely* a bug, even if you were making a mistake.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group