View Issue Details

Category
整備班:YAYA
SeverityminorReproducibilityalways 
Status new 
Summary0000087: runtime LOADVAR error when has non-engilsh-name-var in file
Description

it will be error when you have a var like this:
一个变量=1
although we can bypass this bug like build a temp shiori&change descript.txt&restart ssp
(i don't know why '\![reload,ghost]' can't reload the changes on descript.txt so i have to restart ssp.)
but obviously, it's better to fix this
XD

ps:
this kinds of variable name is not what i want to use, but there is such a stupid thing in the code from others
what's more stupid is that this kind of naming is not the only standard,i have seen at least five kinds of naming methods in this piece of code
草.

Activities

guest

2020-05-13 10:04

reporter   ~0000172

also my charset is:
charset, UTF-8
charset.dic, UTF-8
charset.file, UTF-8
charset.extension, default

ponapalt

2020-06-14 21:16

administrator   ~0000181

Hmm... I had tried to reproduce this problem, but I can't.
Perhaps this is also locale issue?

guest

2020-06-24 17:17

reporter   ~0000182

i'm sorry i've been at school for half a month, so i didn't reply to you
i tried RESTOREVAR again.
maybe because i put charset variable in the file that the non english variable name would not be load in the previous time
orz
BBBBBBBBut here's a new question
i've tried this
a=1
SAVEVAR('a.cfg')
a=2
LOADVAR('a.cfg')
when the code is complete, a is 2
should this be so?

ponapalt

2020-06-24 21:49

administrator   ~0000183

I've tried same code on my ghost, but I can't reproduce bug.

my code:

a=1
SAVEVAR('a.cfg')
a=2
RESTOREVAR('a.cfg')

a=1 after RESTOREVAR executed.

Are you confusing RESTOREVAR and LOADVAR?

guest

2020-06-26 09:53

reporter   ~0000184

In my ghost, LOADVAR is the abbreviation of RESTOREVAR, sorry to bother you
I'll update yaya.dll when I back home Then try that code again. It'll take about a week
PS: is there any way to run ghost on smart phone? I can only use my phone secretly in school, but there seems to be no wine package for termux.

ponapalt

2020-06-26 10:06

administrator   ~0000185

I think you can use this, if you are using Android smartphone.
https://play.google.com/store/apps/details?id=com.dendenfactory.ukagakaforandroid&hl=ja

guest

2020-06-26 20:31

reporter   ~0000186

Thank you for introducing this app
But my ghost can't run on this
I turned on the iolog function of yaya, but there was no log output
The screen record is here:https://raw.githubusercontent.com/steve02081504/pan/master/ES%E6%96%87%E4%BB%B6%E6%B5%8F%E8%A7%88%E5%99%A8.mp4

guest

2020-06-29 23:33

reporter   ~0000188

error code here:
OnTest{
_save_dir=GETENV('USERPROFILE')
a=1
SAVEVAR(_save_dir+'\a.cfg')
a=2
LOADVAR(_save_dir+'\a.cfg')
a
}
the OnTest returns 2
GETENV's def:
RUNCMD{
EXECUTE_WAIT('cmd','/D /C chcp 65001 '+'&& cd .\ghost\Taromati2\ghost\master '+'&& '+_argv[0])
}
GETENV{
_temp=MKDIR('var')
_temp=RUNCMD('echo %'+_argv[0]+'% > var\ENV.tmp')
_temp=FOPEN('var\ENV.tmp','r')
_t=FREAD('var\ENV.tmp')
_temp=FCLOSE('var\ENV.tmp')
_t=RE_REPLACE(_t,'\s+$','')
_t
}

ponapalt

2020-06-30 07:51

administrator   ~0000190

I have tested your script and found error at EXECUTE_WAIT.
Current directory may change for unexpected reasons, so you can't execute cmd.exe in a stable condition.

Please use latest YAYA. You can get environment variable directly using new system function GETENV.

guest

2020-06-30 11:29

reporter   ~0000191

OnTest still return 2 when useing yaya's GETENV.
XD.

Add Note

View Status
Note
Upload Files
Maximum size: 2,000 KB

Attach files by dragging & dropping, selecting or pasting them.

送信ボタンを押す前に / Before pushing "Send" button

  • スパム避けのためにパスワードが必要です。送信ボタンを押すとユーザー名とパスワードを聞かれますので、それぞれ "bts" と入力してください。
  • To send report, please input "bts" into username and password box in popup dialog.

Issue History

Date Modified Username Field Change
2020-05-02 01:21 guest New Issue
2020-05-13 10:04 guest Note Added: 0000172
2020-06-14 21:16 ponapalt Note Added: 0000181
2020-06-24 17:17 guest Note Added: 0000182
2020-06-24 21:49 ponapalt Note Added: 0000183
2020-06-26 09:53 guest Note Added: 0000184
2020-06-26 10:06 ponapalt Note Added: 0000185
2020-06-26 20:31 guest Note Added: 0000186
2020-06-29 23:33 guest Note Added: 0000188
2020-06-30 07:51 ponapalt Note Added: 0000190
2020-06-30 11:29 guest Note Added: 0000191