the "rc" command (cmdReloadCode) .. got syntax errors

Wrote new code? Fixed a bug? Want to discuss technical stuff? Feel free to post it here.

Moderator: Moderators

sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

the "rc" command (cmdReloadCode) .. got syntax errors

#1 Post by sofax222 »

After upgrading to r8009.
When I use the "rc" command in runtime, some programs will happen syntax errors.

Such as, the CoreLoigc.pm, the Command.pm...
I always got a "red" message, even without any change.

rc CoreLogic
rc CoreLogic
Checking src/AI/CoreLogic.pm for errors...
/usr/local/bin/perl : CoreLogic.pm contains syntax errors.

rc Command
rc Command
Checking src/Commands.pm for errors...
/usr/local/bin/perl : Commands.pm contains syntax errors.
How to fix it ?
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: the "rc" command (cmdReloadCode) .. got syntax errors

#2 Post by EternalHarvest »

Fixed in r8016.
sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

Re: the "rc" command (cmdReloadCode) .. got syntax errors

#3 Post by sofax222 »

EternalHarvest wrote:Fixed in r8016.
I already upgrade to r8016...
Do not any change with Misc.
But the "rc Misc".... I got the error message:

rc Misc
Checking src/Misc.pm for errors...
Bareword "ACTION_SIT" not allowed while "strict subs" in use at src/Actor/You.pm line 418.
Compilation failed in require at src/Misc.pm line 45.
BEGIN failed--compilation aborted at src/Misc.pm line 45.
Compilation failed in require at src/Network/PacketParser.pm line 37.
BEGIN failed--compilation aborted at src/Network/PacketParser.pm line 37.
Compilation failed in require at src/Network/Send.pm line 27.
BEGIN failed--compilation aborted at src/Network/Send.pm line 27.
Compilation failed in require at src/Misc.pm line 42.
BEGIN failed--compilation aborted at src/Misc.pm line 42.

/usr/local/bin/perl : Misc.pm contains syntax errors.