BUG - abilty to copy/paste name with spaces into script names

Started by Rui 'Trovatore' Pires, Wed 14/03/2007 11:19:29

Previous topic - Next topic

Rui 'Trovatore' Pires

Maybe this is moot, maybe it wouldn't happen anyway in 2.8, but I guess I might as well let CJ know just in case.

It's a little thing, but it's inconvenient. I copy-pasted, without thinking, an hotspot's NAME into its SCRIPT NAME field. The name was "Wine book", and I managed to paste it into the SCRIPT NAME just like that, with the space. Naturally, it screwed up when I tried to save:

---------------------------
Compile Error
---------------------------
There was an error compiling your script. The problem was:

In: 'Internal character defines'

Error (line 28): Expected ',' or ';', not 'Books'

Do you want to fix the script now? (Your room has not been saved).
---------------------------
Sim   Não   
---------------------------


---------------------------
AGS Editor Warning
---------------------------
The error occured in an internal AGS script. This should never happen; try re-installing the latest version of AGS.
---------------------------
OK   
---------------------------

Of course, after only minimal head-scratching I understood what had happened. Hardly a big thing, but it could bear fixing, don't you think?
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Pumaman

I won't fix this in the 2.72 editor, but I'll bear it in mind whilst developing 2.8.

SMF spam blocked by CleanTalk