Announcement: Be excellent to each other.


Caravel Forum : DROD Boards : Bugs : scripting bug
New Topic New Poll Post Reply
Poster Message
vinheim
Level: Smiter
Rank Points: 300
Registered: 05-31-2007
IP: Logged
icon scripting bug (0)  
I've noticed a couple times that when you ctrl-b a piece of code and crtl-shift-b it somewhere else the 'player role' scripting command doesn't carry over, which is a big problem for long scripts based on player role
02-03-2008 at 08:27 AM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
Tahnan
Level: Smitemaster
Avatar
Rank Points: 2460
Registered: 11-14-2005
IP: Logged
icon Re: scripting bug (+1)  
Hey, while we're discussing ctrl-shift-B errors: when I copy out of my code a line of speech with a ms delay, e.g.

Speech Beethro, 10, "Jeebus."

it enters the clipboard as

Speech "Jeebus.",Normal,Beethro,10,.

But when I paste this line back in, it's lost the ms delay.
02-22-2008 at 06:53 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5106
Registered: 02-04-2003
IP: Logged
icon Re: scripting bug (0)  
Tahnan wrote:
Hey, while we're discussing ctrl-shift-B errors: when I copy out of my code a line of speech with a ms delay, e.g.

Speech Beethro, 10, "Jeebus."

it enters the clipboard as

Speech "Jeebus.",Normal,Beethro,10,.

But when I paste this line back in, it's lost the ms delay.
E-gad! You're right. The delay was not being read back in. I've fixed this for build 58.

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
02-29-2008 at 01:05 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5106
Registered: 02-04-2003
IP: Logged
icon Re: scripting bug (0)  
vinheim wrote:
I've noticed a couple times that when you ctrl-b a piece of code and crtl-shift-b it somewhere else the 'player role' scripting command doesn't carry over, which is a big problem for long scripts based on player role
Copy-and-pasting Player Role commands to and from the clipboard is working for me. Would you give a simple concrete example of a command that wouldn't work for me if I tried it?

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
02-29-2008 at 01:10 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
vinheim
Level: Smiter
Rank Points: 300
Registered: 05-31-2007
IP: Logged
icon Re: scripting bug (0)  
I know it can't just be my hold so maybe the bug is produced by copying a bigger pile of scripting
02-29-2008 at 10:55 AM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5106
Registered: 02-04-2003
IP: Logged
icon Re: scripting bug (0)  
vinheim wrote:
I know it can't just be my hold so maybe the bug is produced by copying a bigger pile of scripting
You're probably right. If you can identify some script text that makes this happen, please post it here and I can fix the bug.

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
02-29-2008 at 05:06 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
vinheim
Level: Smiter
Rank Points: 300
Registered: 05-31-2007
IP: Logged
icon Re: scripting bug (+1)  
The exact pieces of code that I'm always copying is:

Wait for entity player at (x,y)
End on room exit
Cut scene 200
Player role None
Wait 5 turn(s)
Go to level entrance (Skip entrance screen("some level entrance")

Also, if this helps, I'm just copying the script from one NPC to another, not exporting it to some notepad file.
03-01-2008 at 01:04 AM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5106
Registered: 02-04-2003
IP: Logged
icon Re: scripting bug (0)  
vinheim wrote:
The exact pieces of code that I'm always copying is:

Wait for entity player at (x,y)
End on room exit
Cut scene 200
Player role None
Wait 5 turn(s)
Go to level entrance (Skip entrance screen("some level entrance")

Also, if this helps, I'm just copying the script from one NPC to another, not exporting it to some notepad file.
Thanks for the example. It's the "None" role that was part of the problem. It's a special value that happened to be thrown out by the command pasting code. I've fixed it for build 60.

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
03-01-2008 at 03:30 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Bugs : scripting bug
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.