For some reason, during one of my procs, certain messages are skipped, and the command bar actually fails.
*When I say command bar fails, I actually mean the input bar at the bottom of the screen. You can type verb names (such as Say) into it and it won't execute them. It may be connected to my winset(src,"Main.Input","command = null") line, but that doesn't explain why messages don't show up.
Because I figure it's easier to just have you look at the source itself as a whole, I've posted it
here
Messages Not Being Displayed:
Creation.dm Line 73
Creation.dm Line 80
Command Bar (and overall game) Failure after:
Creation.dm Line 6
Any ideas? FA suggested I remove the apostrophes and quotation marks, it didn't work. He thinks that something is causing the JavaScript to crash.
Here's the command it's trying to run:
/*addHTML('<p>Little by little, the room comes into focus. You seem to be in a room without exits. It is shaped
like a dome. There are torches lining the wall, providing sufficient light in the room. In front of you there is a woman.
She has very pale skin, and silver hair. Her long light-blue dress lightly brushes the gournd. On her back you can see a longbow
and a quiver of arrows. You look down at your own body, and it seems to be in the process of forming. It is mostly a strange mist,
solidifying slowly to create your being. You look back at the woman. She greets you with a smile.</p>',{Alignment:50,OP:'[0x21000000]',NewScreen:0,Roll:0,Lastmsg:4,type:'/mob',name:'Guest-2225838256',text:'m',dir:2,visibility:1,luminosity:0,opacity:0,density:1,layer:4,gender:'neuter',mouse_drop_pointer:1,mouse_drop_zone:0,verbs:['/mob/verb/Help','/mob/verb/Say','/mob/verb/Sex','/mob/verb/Name','/mob/verb/Age','/mob/verb/Memory','/mob/verb/Creation','/mob/verb/InterfaceEvent'],invisibility:0,infra_luminosity:0,pixel_x:0,pixel_y:0,mouse_opacity:1,pixel_z:0,override:0,maptext_width:0,maptext_height:0,x:0,y:0,z:0,sight:0,client:'[0x5000000]',ckey:'guest2225838256',key:'Guest-2225838256',see_in_dark:2,see_invisible:0,see_infrared:0,pixel_step_size:0,animate_movement:1,bounds:'32,32',step_x:0,step_y:0,step_size:32,bound_x:0,bound_y:0,bound_width:32,bound_height:32,glide_size:0,toString:function(){return"[0x3000000]"},call_JavaScript:function(){call_proc('[0x3000000]','call_JavaScript',arguments)},Creation2:function(){call_proc('[0x3000000]','Creation2',arguments)},Roll:function(){call_proc('[0x3000000]','Roll',arguments)},Interact:function(){call_proc('[0x3000000]','Interact',arguments)},ReverseLastDir:function(){call_proc('[0x3000000]','ReverseLastDir',arguments)}});
*/
But it's not valid JavaScript because the line breaks interrupt the string.
It looks like FA's library actually passes the error back to you:
/*
runtime error: JavaScript Error: SyntaxError: Unterminated string constant
proc name: Topic (/client/Topic)
usr: Guest-2225838256 (/mob)
src: Guest-2225838256 (/client)
call stack:
Guest-2225838256 (/client): Topic("js_error&name=SyntaxError&mess...", /list (/list))
Guest-2225838256 (/client): Topic("js_error&name=SyntaxError&mess...", /list (/list))
*/
Also, the rest of the code seems to be working fine, you just can't see any of the output because of the problem above.
However, I would suggest surrounding winset parameters in escaped quotes and avoiding extra spaces: