PDA

View Full Version : [JX] Server bị lỗi chạy file autoexec.lua



xnickx82
15-06-16, 10:39 PM
mình bị lỗi G_ACTIVITY:OnMessage("ServerStart") nên chạy gameserver bi lỗi hoài. bạn nào giúp mình fix cái này với. thanks


Skill4error: table index is nil
stack traceback:
1[195]: method `LoadDataFromConfig' at line 61 [string "\script\activitysys\config\32\talkdailytask..."]
2[193]: method `_init' at line 35 [string "\script\activitysys\config\32\dailytask.lua"]
3[191]: method `Init' at line 14 [string "\script\activitysys\config\32\talkdailytask..."]
4[189]: function <14:string "/script/activitysys/config/32/daily.lua"> at line 17
5[186]: function `call' [C]
6[182]: method `exec' at line 50 [string "\script\lib\pfunction.lua"]
7[174]: method `CallFunction' at line 107 [string "\script\activitysys\activitydetail.lua"]
8[168]: method `OnMessage' at line 181 [string "\script\activitysys\activitydetail.lua"]
9[160]: method `OnMessage' at line 136 [string "\script\activitysys\activity.lua"]
10[153]: method `OnMessage' at line 40 [string "\script\activitysys\g_activity.lua"]
11[150]: function <397:string "/script/global/autoexec.lua"> at line 502
ScriptError 4:[1] (/script/global/autoexec.lua)
--- Receiving finished! Now GameServer is ready! --
----------[Warning...] GameServer' FPS=17----------
----------[Warning...] GameServer' FPS=15----------
----------[Warning...] GameServer' FPS=15----------
----------[Warning...] GameServer' FPS=16----------
----------[Warning...] GameServer' FPS=16----------
----------[Warning...] GameServer' FPS=16----------
----------[Warning...] GameServer' FPS=16----------
----------[Warning...] GameServer' FPS=16----------
----------[Warning...] GameServer' FPS=16----------
----------[Warning...] GameServer' FPS=16----------
----------[Warning...] GameServer' FPS=16----------
----------[Warning...] GameServer' FPS=16----------
----------[Warning...] GameServer' FPS=16----------


line 502 trong autoexec.lua của mình là đây


G_ACTIVITY:OnMessage("ServerStart")

TenCuaEm
16-06-16, 01:06 PM
mình bị lỗi G_ACTIVITY:OnMessage("ServerStart") nên chạy gameserver bi lỗi hoài. bạn nào giúp mình fix cái này với. thanks


Skill4error: table index is nil
stack traceback:
1[195]: method `LoadDataFromConfig' at line 61 [string "\script\activitysys\config\32\talkdailytask..."]
2[193]: method `_init' at line 35 [string "\script\activitysys\config\32\dailytask.lua"]
3[191]: method `Init' at line 14 [string "\script\activitysys\config\32\talkdailytask..."]
4[189]: function <14:string "/script/activitysys/config/32/daily.lua"> at line 17
5[186]: function `call' [C]
6[182]: method `exec' at line 50 [string "\script\lib\pfunction.lua"]
7[174]: method `CallFunction' at line 107 [string "\script\activitysys\activitydetail.lua"]
8[168]: method `OnMessage' at line 181 [string "\script\activitysys\activitydetail.lua"]
9[160]: method `OnMessage' at line 136 [string "\script\activitysys\activity.lua"]
10[153]: method `OnMessage' at line 40 [string "\script\activitysys\g_activity.lua"]
11[150]: function <397:string "/script/global/autoexec.lua"> at line 502
ScriptError 4:[1] (/script/global/autoexec.lua)
--- Receiving finished! Now GameServer is ready! --
----------[Warning...] GameServer' FPS=17----------
----------[Warning...] GameServer' FPS=15----------
----------[Warning...] GameServer' FPS=15----------
----------[Warning...] GameServer' FPS=16----------
----------[Warning...] GameServer' FPS=16----------
----------[Warning...] GameServer' FPS=16----------
----------[Warning...] GameServer' FPS=16----------
----------[Warning...] GameServer' FPS=16----------
----------[Warning...] GameServer' FPS=16----------
----------[Warning...] GameServer' FPS=16----------
----------[Warning...] GameServer' FPS=16----------
----------[Warning...] GameServer' FPS=16----------
----------[Warning...] GameServer' FPS=16----------


line 502 trong autoexec.lua của mình là đây


G_ACTIVITY:OnMessage("ServerStart")

Lỗi ở đây nè :
1[195]: method `LoadDataFromConfig' at line 61 [string "\script\activitysys\config\32\talkdailytask..."]

xnickx82
16-06-16, 09:29 PM
Lỗi ở đây nè :
1[195]: method `LoadDataFromConfig' at line 61 [string "\script\activitysys\config\32\talkdailytask..."]

nếu mình bỏ cái dòng (G_ACTIVITY:OnMessage("ServerStart")) này khỏi file autoexec.lua thì server load không bị lỗi gì. nhưng nếu add line đó vào lại autoexec.lua là bị lỗi. mình xem file talkdailytask rồi nhưng không biết lỗi ở đâu luôn. có bác nào ghé qua giúp em với. thanks