double "" when exporting dialogue with sound Hi.
I found a strange bug. With lassieAS I wanted to export a -*test*-('")game wiith some dialogue with sound. So I wrote the filename of the mp3 file next to dialogue field in the room editor. This does work. But when I exported the as file. And tried to compile _data.fla I recieved an error. Because lassie put double quotes ("") befor and after the soundfiles name. I did then replace them with only one " and it worked.
The strange thing about is, when I put a wrong filename in the field. The error didn't occur. Hope you get what I mean...
Thank you
bigmac- 09-05-2007
weird... double and single quotes made a difference? Can you post the snippit of offending AS?
phwhitfield- 09-06-2007
I think I misunderstood the meaning of double quotes what I meant are two " like that: ""something"".
Here is a snippet. I think that will explain what I mean:
{title:"Use", tim:[["playDia"], ["changePhase", "this", "this", 2], ["playSequence", "-*test*-('")Seq"]], dia:[""diaTest""]}]},
should be
{title:"Use", tim:[["playDia"], ["changePhase", "this", "this", 2], ["playSequence", "-*test*-('")Seq"]], dia:["diaTest"]}]},
and
d4:{char:"_char", exp:0, text:"hallo", voice:""},
"diaTest":{char:"_char", exp:0, text:"", voice:"diaTest"},
should be:
d4:{char:"_char", exp:0, text:"hallo", voice:""},
diaTest:{char:"_char", exp:0, text:"", voice:"diaTest"},
If anybody encounters this problem and doesn't know how to solve it. Here is a little workaround:
You can execute a regex search and replace. Therefor you should search for "(<^",:>*)": and replace with \1:
and search for "("<^",:>*")" and replace with \1
Most code editors support regex search and replace. I use smultron for OS X. I don't know about windows.
Bigmac: Maybe you could use this for a quick'n'dirty solution?
NigeC- 11-17-2007
I'm getting the same issue..
If you try editing the demo game you get the fault
**Error** ,.......\lassieas_demo\LassieAS_demo_v065a\library\_system\_data.as: Line 18: ']' or ',' expected
[""def_look""],
**Error** ...........\lassieas_demo\LassieAS_demo_v065a\library\_system\_data.as: Line 19: Identifier expected
[""def_talk""],
**Error** C:\Documents and Settings\Administrator\Desktop\lassieas_demo\LassieAS_demo_v065a\library\_system\_data.as: Line 20: ']' expected
[""def_use""],
Total ActionScript Errors: 3 Reported Errors: 3
bigmac- 11-18-2007
Weird... it looks like the quotes were somehow rendered into the string. Dunno why that would happen and I've never seen it before. Is this new? (as in, since the new Lassie version was posted on the website last week?).
Also, what is this regex search that you speak of. I'm not familiar with the concept. Sounds interesting. In the meantime, is everyone at least clear on how to scrub their gamedata to weed out this compiler error?
bigmac- 11-18-2007
Actually though, I can make an educated guess as to where those quotes are coming from. Director has really sucky 90's datatyping which has massive error potential. All property array keys are supposed to be added as symbols, however it will not throw errors if a string is used instead. So, you can potentially get results that look like:
myPropArray = <#prop1:"okay", #prop2:"also okay", "prop3":"this is not right!">
So, something must be getting keyed as a string rather than a symbol somewhere, at which time the compiler is grabbing the key with quotes in tact and writing it out as a quoted string... hence, double quotes.
NigeC- 11-18-2007
no its not new.. i got the error a while back when i first used the demo for the tutorial.. I think i did mention it, i thought it was just an issue updating the demo which was v65 i believe
But in NOTH as soon as you enter any sound file speech into the editor it'll screw up on publish
its a bit of a bugger really! the room has all the sequences, convo's etc set up
it does it everytime so its not random
bigmac- 11-18-2007
Ah... so entering a speech sound file name is the instigator? Sounds like that's being logged incorrectly.
bigmac- 11-18-2007
BTW: I'll repost this stuff as open source if anyone knows Lingo and would be willing to jump in to fix bugs. Unfortunately, in my little free time that I have for Lassie these days, I'd much prefer to focus on moving the engine forward than fix holes in an outdated build.
JohnGreenArt- 11-20-2007
I can't get the new LassieAS .82 version to work for me. I can't edit any of my projects (get a Director error when trying to edit or duplicate them.)
Is there something I'm missing?
bigmac- 11-20-2007
Nope... You're seeing the expiration of a stable product. I lost versioning so had to throw together a bunch of pieces that I thought went together. Didn't work. Can you send me the last stable build that you have of the Editor and player?
Thank you!
perfect, thank you. John Green sent me his Mac version of this as well. I'll get those posted, though probably not until after the holiday. (Happy Thanksgiving!)
Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.