Crystal icon indicating copy to clipboard operation
Crystal copied to clipboard

LOCALMESSAGE BUG

Open baidoufu opened this issue 3 years ago • 7 comments

LOCALMESSAGE "[Prison Guard] <$USERNAME> you are now free togo." Hint This command does not support variables, <$USERNAME> Parse failed @Pete107

baidoufu avatar Jul 31 '22 01:07 baidoufu

LOCALMESSAGE "[Prison Guard] <$USERNAME> you are now free togo." Hint This command does not support variables, <$USERNAME> Parse failed @Pete107

I came across this myself and have began the process to correct this oversight of mine. Unfortunately, as there are many commands which make use of variables, it will take time to complete. I won't be able to make much (if any) progress today, rest assured it will be corrected.

Pete107 avatar Jul 31 '22 09:07 Pete107

LOCALMESSAGE "[Prison Guard] <$USERNAME> you are now free togo." Hint This command does not support variables, <$USERNAME> Parse failed @Pete107

I came across this myself and have began the process to correct this oversight of mine. Unfortunately, as there are many commands which make use of variables, it will take time to complete. I won't be able to make much (if any) progress today, rest assured it will be corrected.

If possible, please fix the problem with the new mobile method as well.

OuYangPlane avatar Aug 01 '22 02:08 OuYangPlane

@Pete107 variables should able to be used on absolutely any parameter for any command. That does pose abit of an issue as the new constructors now make the string params strongly typed - so they just need passing through a base call to know if theres a variable placeholder used - and if there is this is called and replaced on demand (instead of using the properties set in each class).

In either case it should be a generic call done on all Check/Act commands

Suprcode avatar Aug 05 '22 11:08 Suprcode

@Pete107 variables should able to be used on absolutely any parameter for any command. That does pose abit of an issue as the new constructors now make the string params strongly typed - so they just need passing through a base call to know if theres a variable placeholder used - and if there is this is called and replaced on demand (instead of using the properties set in each class).

In either case it should be a generic call done on all Check/Act commands

I agree, I hadn't considered variables as mentioned when doing the refactor. I've made a start on correcting the issue (again as mentioned) I have indeed implemented these within the base classes where it'll attempt to get variables and default to the original parameters if the attempt was unsuccessful, it's a case of going through commands and applying the attempt throughout.

Apologies it's taking so long. grabilla g10968

Pete107 avatar Aug 05 '22 11:08 Pete107

Just an update, I've completed the IF commands. Once ACT commands are completed I will have a small test myself to attempt to minimise any other potential issue.

Pete107 avatar Aug 07 '22 12:08 Pete107

THANKS


发件人: Pete107 @.> 发送时间: 2022年8月7日 20:45 收件人: Suprcode/mir2 @.> 抄送: OuYangPlane @.>; Comment @.> 主题: Re: [Suprcode/mir2] LOCALMESSAGE BUG (Issue #547)

Just an update, I've completed the IF commands. Once ACT commands are completed I will have a small test myself to attempt to minimise any other potential issue.

― Reply to this email directly, view it on GitHubhttps://github.com/Suprcode/mir2/issues/547#issuecomment-1207400443, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZLXLUIREB4ZTMJCL44LLUDVX6VVTANCNFSM55EC5JYQ. You are receiving this because you commented.Message ID: @.***>

OuYangPlane avatar Sep 03 '22 17:09 OuYangPlane

@Pete107 Hello Pete107, have you fixed the new problem?

baidoufu avatar Sep 16 '22 02:09 baidoufu

npc code reverted. should be fixed now.

Suprcode avatar Nov 21 '22 17:11 Suprcode