View Issue Details
Category | |||||
---|---|---|---|---|---|
整備班:YAYA | |||||
Severity | minor | Reproducibility | always | ||
Status | closed | ||||
Summary | 0000087: 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 草. | ||||
Tags | No tags attached. | ||||
Attach Tags | |||||
|
also my charset is: charset, UTF-8 charset.dic, UTF-8 charset.file, UTF-8 charset.extension, default |
|
Hmm... I had tried to reproduce this problem, but I can't. Perhaps this is also locale issue? |
|
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? |
|
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? |
|
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. |
|
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 |
|
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 |
|
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 } |
|
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. |
|
OnTest still return 2 when useing yaya's GETENV. XD. |
|
I don't know why, but the problem is solved Please close this issue, thank you |
|
closed. |
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 | |
2021-04-03 11:44 | guest | Note Added: 0000300 | |
2021-04-09 13:23 | ponapalt | Assigned To | => ponapalt |
2021-04-09 13:23 | ponapalt | Status | new => closed |
2021-04-09 13:23 | ponapalt | Resolution | open => no change required |
2021-04-09 13:23 | ponapalt | Note Added: 0000303 |