View Issue Details

Category
SSPBT:本体(SSP)
SeveritymajorReproducibilityalways 
Status closed 
Fixed in Version2.5 (リリース) 
Summary0000462: Odd behavior in OnTranslate
DescriptionI use string expansion in script input very frequently to run functions and check variables. Since the last SSP update (or maybe the previous one?), there has been some trouble with this. It seems that if I click on a menu option to close out the menu (runs no script, just closes the balloon), reference2 in OnTranslate will have the name of the empty function in it, preceded by a #
This interrupts the code in OnTranslate that does the string expansion, and makes it display as plain text instead.

This is the code:

OnTranslate
{
    _talk = reference0
    --
    if reference1 == "" && reference2 == ""
    //send input box : no event (ref2) , no special flag (ref1)
    {
        EVAL('"' + REPLACE(_talk,'"','""') + '"')
    }
    else
    //event result from ghost
    {
        TOSTR(_talk)
    }
}


And this is the result in Tama, after closing out of a balloon and then trying to run %(OnSurfaceMenu) through script input:

// request
GET SHIORI/3.0
ID: OnTranslate
Charset: UTF-8
Sender: SSP
SenderType: internal
SecurityLevel: local
Reference0: %(OnSurfaceMenu)\e
Reference1:
Reference2: #OnCancel
Reference3:


// response (Execution time : 0[ms])
SHIORI/3.0 200 OK
Sender: AYA
Charset: UTF-8
Value: %(OnSurfaceMenu)\e


If I click on a menu option that does *not* close the balloon, such as going back to the main menu, then there will be nothing in reference2 and the code will work just fine.
TagsNo tags attached.
Attach Tags

Activities

ponapalt

2022-04-01 04:47

administrator   ~0001194

2.5.88

Issue History

Date Modified Username Field Change
2022-03-28 15:47 guest New Issue
2022-04-01 04:47 ponapalt Assigned To => ponapalt
2022-04-01 04:47 ponapalt Status new => closed
2022-04-01 04:47 ponapalt Resolution open => fixed
2022-04-01 04:47 ponapalt Fixed in Version => 2.5 (リリース)
2022-04-01 04:47 ponapalt Note Added: 0001194