Go Back   The Palace Avatar Chat Community Forums. > Palace Builders Palace Users > Scripting Help

Scripting Help Iptscrae et omni potentum, Scripting is all powerfull. So here you can ask for Help with your scripting problems.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-03-2006, 04:02 PM
Cor Cor is offline
Palace User
 
Join Date: May 2006
Posts: 23
Rep Power: 0
Cor is on a distinguished road
LOCALMSG in door

Hi,

I have a Music Room.
And I have door into the Music Room with this script
Code:
ON ENTER
{ 
   "Welcome in to the Music Box. For a list with track titles typ "songlist". The list appears in you log." LOCALMSG
   "To control the Music Box you use the >> "Forward" en << "Backward" buttons to cycle through the list." LOCALMSG
   "Use the Stop and Play buttons to Start or Stop the music." LOCALMSG
   0 6 SETSPOTSTATELOCAL
   1 7 SETSPOTSTATELOCAL
   songList GLOBAL
   songNumber GLOBAL
   1 songNumber =
   2 ARRAY songList =
   ["nummer2.wav" "***.wav" ] songList =
   songNumber tempNumber =
   tempNumber --
   songList tempNumber GET tempStr =
   }
ON OUTCHAT {
   { 
      { LOGMSG } [ "1- test" "2 - ***" ] FOREACH
      } CHATSTR "^songlist" GREPSTR IF
   }
The problem is after a while hte LOCALMSG gets corrupt.
A couple of days it goes fine, but then it only shows half sentences.
Instead of "Welcome in to the Music Box. For a list with track titles typ "songlist". The list appears in you log."
It only says "The list appears in you log."

LOCALMSG 2 says,
"buttons to cycle through the list." instead of "To control the Music Box you use the >> "Forward" en << "Backward" buttons to cycle through the list."

Only LOCALMSG 3 goes correct.

What is this?

Greetings Cor
Reply With Quote
  #2 (permalink)  
Old 06-03-2006, 04:41 PM
Palace User
 
Join Date: Feb 2003
Posts: 17
Rep Power: 0
Hunter_Eric is on a distinguished road
RE: LOCALMSG in door

Does it happen like that in the log window, too?
Reply With Quote
  #3 (permalink)  
Old 06-03-2006, 04:44 PM
maarten's Avatar
Palace Planet Founder
 
Join Date: Oct 2002
Location: DiGiLaNd
Posts: 1,169
Rep Power: 10
maarten is on a distinguished road
RE: LOCALMSG in door

You should remove the " " from the "songlist" and other text, you can only use " at the beginning and the end of a sentense when using LOCALMSG

It also sounds like your using the windows server and have perhaps the same script in several rooms? It might be possible memory leaks in the Palace server trash the script and write it back the wrong way. Do you ever edit with more then one person on your server? Perhaps you edited a script while having a bad connection?

A lot of things can influence a Palace server, its very sensitive to
properly closed doors and author mode.

Anyway, make sure your not using the " in the middle of any text and you should be fine.
Reply With Quote
  #4 (permalink)  
Old 06-03-2006, 05:58 PM
Cor Cor is offline
Palace User
 
Join Date: May 2006
Posts: 23
Rep Power: 0
Cor is on a distinguished road
RE: LOCALMSG in door

I removed it and it works fine again.

Now I watched in the backup and I see I first had \"songlist\".
This works also fine, but it looks like the palace sever just deleted the \.
Very odd.

(Why you thought I was using a windows server? because I use a linux server :) , did I do something wrong?)
Reply With Quote
  #5 (permalink)  
Old 06-03-2006, 09:41 PM
maarten's Avatar
Palace Planet Founder
 
Join Date: Oct 2002
Location: DiGiLaNd
Posts: 1,169
Rep Power: 10
maarten is on a distinguished road
RE: LOCALMSG in door

Yep you need the \ in front of any " if its withing any message text.

Actually I figured if you where just starting and you might build at home first then waste money on hosting :)

windows servers are known for messing scripts and rooms up if you get regular traffic on them.
Reply With Quote
Reply
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


The Latest Posts
Title, Username, & Date Last Post Forum
download
03-21-2011 11:20 AM
by maarten
User Questions
Palace for Mac OS 10.6?
03-13-2011 09:39 AM
by pawnipt
User Questions
Server
03-07-2011 04:52 PM
by satinrose
User Questions
Return room Script
02-24-2011 12:07 AM
by jaela
Room Scripts
Releasing source code
02-17-2011 09:19 AM
by Sman™
Developers Forum
Website spammers
01-26-2011 08:48 PM
by maarten
The Planet: Palace News
Online Users: 67
1 members and 66 guests
VeraFlorsewal
Most users ever online was 1,010, 06-27-2007 at 11:45 PM.
Stats
Members: 5,112
Threads: 1,141
Posts: 4,004
Top Poster: maarten (1,169)
Welcome to our newest member, cliffymayers


All times are GMT +2. The time now is 02:58 PM.


Powered by vBulletin
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0