|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Sun Dec 26, 2010 11:40 am
[3.33] Blanks Lines after Print and Command Entered |
The following continually happens:
Quote: |
04:31:092 | 2674h, 2393m ckdb- concentrate
04:31:482 |
04:31:482 | Sticky strands of webbing spray out from Jerk to cover you.
04:31:482 | 2674h, 2393m ckdb- |
On a #PRINT or command entered from command line it continually addes a blank line screwing up triggers and getting my character killed because the triggers aren't firing. What's the point of making a multistate trigger when I end up defeating my own triggers by simply entering a command or printing something. Some things need to be triggered precisely within 1 line and so on.
The reason this is so important is because of this:
Quote: |
04:36:764 | 3809h, 2436m cxkdb-
04:36:779 | You have writhed free of your entanglement by ropes.
04:36:779 | Sticky strands of webbing spray out from Jerk to cover you. [**ILLUSION**]
04:36:795 | 3809h, 2436m cxkdb- |
Here it is impossible for this to occur and easy to tell it is an illusion, but when blank lines are thrown in by Cmud it screws up everything. I MUST be able to trigger the correct line only if it immediately follows the prompt within 1.
I don't understand WHY it would even add blank lines or the necessity of it. |
|
|
|
Fizgar Magician
Joined: 07 Feb 2002 Posts: 333 Location: Central Virginia
|
Posted: Sun Dec 26, 2010 3:32 pm |
I'm not seeing any extra blank lines after I enter a command or do a #print in my copy of 3.33a. Does this happen for new sessions on other MUDs too?
|
|
_________________ Windows Vista Home Premium SP2 32-bit
AMD Athlon Dual Core 4400+ 2.31 GHz
3 GB RAM
CMUD 3.34 |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Sun Dec 26, 2010 7:43 pm |
If extra blank lines are being put in, it is probably because of something in your scripts. #print does not do that.
|
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Mon Dec 27, 2010 2:02 am |
It happens randomly. It's not all the time. It's not something I do and YES #print does too do that. Just like when I print expandlist it logs it like 3 times in a row but people claim that doesn't happen either even though I have repeatedly shown the logs.
I just changed my prints to #sayadd and made tons of aliases and use #sendraw to fix the problem. It actually is much smoother than printing messages...except everything expands to the right horizontally, which sucks.
The commands cause a blank line ALL THE TIME, but randomly. Here all I did was enter the word "concentrate" on the command line. Most of the time it is entering a direction. Sometimes I actually get stuff like this:
1234h, 1234m cexdb- command
1234h, 1234m cexdb-
A line of text from the Mud.
1234h, 1234m cexdb-
There is absolutely nothing in my scripts causing this.
Also the other day I had the GMCP data print to the screen once. Yes unrelated to this topic I know, but again there is Nothing I am doing to cause it. |
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Mon Dec 27, 2010 2:24 am |
Example of #print causing blank line.
Code: |
35:48:170 | 3783h, 3540m cexkdb- TARGET RESET
35:50:217 |
35:50:467 | There are no venoms on that item at present.
35:50:467 | 3783h, 3540m cexkdb-
35:50:686 | There are no venoms on that item at present.
35:50:701 | 3783h, 3540m cexkdb-sw
35:54:779 | Upon the southern ocean. |
Here I entered to target something. The targeting alias has this:
Code: |
target = %proper( $targ)
ResetTarget
WB |
The ResetTarget alias simply sets some variables to 0 and then calls this:
Code: |
#call @PrintReset("Target") |
which has this code:
Code: |
#print {<color khaki>%upper(%concat($msg," Reset"))</color>} |
The WB alias sends to wipe off my blades.
Code: |
#call @SendImmediate(%concat("wipe ",@weapons.lefthand))
#call @SendImmediate(%concat("wipe ",@weapons.righthand)) |
The SendImmediate function is what I send all my commands through so I can enable and disable printing of commands that use sendraw.
Code: |
#sendraw {$action}
#if (@debugMode) {#print {<color aqua>$action</color>}} |
So where exactly in that code do I cause a blank line? |
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Mon Dec 27, 2010 2:37 am |
Example #print screwing up in logging:
Code: |
32:25:795 | Your last login was from domain: XXXXXXXXXXXXXXX
32:25:795 |
32:25:811 | *** You have new messages ***
32:25:811 | Your moss tattoo tingles slightly.
32:25:811 | Your boar tattoo tingles slightly.
32:25:811 | Your moon tattoo tingles slightly.
32:25:826 | *------------------( Announcements from the Administration )------------------*
32:25:826 | -> Logosmas treats are now for sale in New Thera! See HELP LOGOSMAS!
32:25:826 | -> Log in 21 days over December and receive a Logosmas gift!
32:25:857 | -> Iron Lotteries will be running every Tuesday this month!
32:25:857 | -> Hermes shines upon you all! Receive a bonus to critical hit chances on
32:25:873 | Thursdays throughout December.
32:25:873 | -> Help us take the #1 spot - http://www.achaea.com/vote - every 12 hours!
32:25:889 | *-----------------------------------------------------------------------------*
32:25:889 | (Type ADMINMESSAGE to view this again at any time.)
32:25:889 |
32:25:904 | You are blind and can see nothing but darkness.
32:25:904 | 3783h, 3540m exdb- (3783 h) (3540 m) (PAUSED) DEFENSES RESET
32:26:998 |
32:27:232 | -=[ Help us grow by voting for us at TopMudSites! http://www.achaea.com/vote ]=-
32:27:686 | You have the following defences:
32:27:686 | You are blind.
32:27:701 | You are deaf.
32:27:701 | You have accepted a blessing for aid in times of need.
32:27:701 | You are walking with the grace of the stars.
32:27:717 | You are protected by 4 defences.
32:27:717 | 3783h, 3540m xdb- (PAUSED)
32:27:748 | ----[ XXXXXX House announcement ]----
32:27:764 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
32:27:764 | ---------------------------------------
32:27:779 | 3783h, 3540m xdb- (PAUSED)
32:28:014 | <[====================== EQUILIBRIUM ======================]>
32:28:029 |
32:28:029 | ============================================================================================
32:28:029 | You are missing the following defs:
32:28:029 | ============================================================================================
32:28:029 | alertness, caloric, cloak, constitution, curseward, deathsight, fitness, frost, gripping, hypersight, insomnia, kola, levitation, mass, metawake, mindseye, mounted, myrrh, nightsight, parried, rebounding, resistance, selfishness, shield, sileris, skywatch, softfocus, speed, telesense, thirdeye, toughskin, treewatch, venom, vigilance, weathering
32:28:029 | alertness, caloric, cloak, constitution, curseward, deathsight, fitness, frost, gripping, hypersight, insomnia, kola, levitation, mass, metawake, mindseye, mounted, myrrh, nightsight, parried, rebounding, resistance, selfishness, shield, sileris, skywatch, softfocus, speed, telesense, thirdeye, toughskin, treewatch, venom, vigilance, weathering
32:28:029 | alertness, caloric, cloak, constitution, curseward, deathsight, fitness, frost, gripping, hypersight, insomnia, kola, levitation, mass, metawake, mindseye, mounted, myrrh, nightsight, parried, rebounding, resistance, selfishness, shield, sileris, skywatch, softfocus, speed, telesense, thirdeye, toughskin, treewatch, venom, vigilance, weathering
32:28:029 | ============================================================================================
32:28:045 | 3783h, 3540m exdb- |
The main code that prints those missing defenses:
Code: |
$count = 0
$list = ""
#forall @DEFLIST {
#if (!@{%i}) {
$count = $count + 1
#additem $list %i
}
}
#if ($count > 0) {
#print ""
#print {<color brown>%repeat("=",92)</color>}
#print {<color red><strong>You are missing the following defs:</strong></color>}
#print {<color brown>%repeat("=",92)</color>}
#print {<color khaki> %expandlist($list, ", ") </color>}
#print {<color brown>%repeat("=",92)</color>}
} |
Oh also you can see in this part of this log that it caused a blank line after printing DEFENSES RESET. The (PAUSED) part is a #sayadd.
And NO it isn't called more than once. It is called ONE time upon regaining equilibrium by an event. |
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Mon Dec 27, 2010 2:52 am |
What I did discover about the repeating expanded list is that when I commented out the %repeat lines
Code: |
#print ""
//#print {<color brown>%repeat("=",92)</color>}
#print {<color red><strong>You are missing the following defs:</strong></color>}
//#print {<color brown>%repeat("=",92)</color>}
#print {<color khaki> %expandlist($list, ", ") </color>}
//#print {<color brown>%repeat("=",92)</color>} |
Then it printed normally:
Code: |
17:37:014 | <[====================== EQUILIBRIUM ======================]>
17:37:029 |
17:37:029 | You are missing the following defs:
17:37:029 | mass, metawake, mounted, myrrh, parried, shield, softfocus, telesense, toughskin, treewatch
17:37:045 | 3580h, 3440m cexkdb |
|
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Mon Dec 27, 2010 3:04 am |
Another example of command causing a blank line:
Code: |
48:18:561 | 3580h, 3521m cexkdb-ct shall we have another game?
48:21:279 |
48:21:279 | XXXX's mouth turns up as his face breaks into a smile.
48:21:279 | 3580h, 3580m cexkdb-
48:21:686 | (XXXXXX): You say, "Shall we have another game?"
48:21:686 | 3580h, 3580m cexkdb- |
|
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Mon Dec 27, 2010 3:06 am |
And again:
Code: |
49:05:936 | 3580h, 3525m cexkdb-cwho
49:06:357 |
49:06:357 | XXXX clenches his fists and grits his teeth.
49:06:373 | 3580h, 3525m cexkdb-
49:06:373 | XXXX takes a drink from a purple heartwood vial.
49:06:389 | 3580h, 3525m cexkdb-
49:06:529 | Citizen Rank CT Class
49:06:545 | ------- ---- -- ----- |
|
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Fri Dec 31, 2010 12:31 pm |
It seems like, by looking at the time stamps, it happened after a delay in activity.
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot 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
|
|