Jump to content
Shako

[lua_err] No definition DoString (0)

Recommended Posts

Where are these errors generated from?

How do we fix them?

 

 


logo-big.png   logo.png

                                   Sunny Go! Online                                                                    pko.host                                                 

Share this post


Link to post
Share on other sites
_G["0"] = function () end

 

That will suppress those errors (function is still called though, so only a temporary fix). I got those errors when opening forge/combine etc

  • Like 1

Share this post


Link to post
Share on other sites

Those are generated from functions beings called which are not defined, constantly happens from maps, GameServer calls the function whether they are defined or not within the scripts. 

  • Like 1

Share this post


Link to post
Share on other sites
18 hours ago, Billy said:

_G["0"] = function () end

 

That will suppress those errors (function is still called though, so only a temporary fix). I got those errors when opening forge/combine etc

 

13 hours ago, Angelix said:

Those are generated from functions beings called which are not defined, constantly happens from maps, GameServer calls the function whether they are defined or not within the scripts. 

 

18 hours ago, Andy said:

i get it when i use buff ticket xD 

 

Thanks for the insight that you guys also encounter this problem!

 

Because there is no error, it doesn't tell the line that is calling a blank function. Is there any way to find this blank function?

 

@Billy I will try this "hotfix"! I wonder where I should put it :), will it work if I put it at the functions loaded after (e.g., functions after skilleffect.lua), or should I put them early in places like NPCSDK.lua?

 

 

Hope to be able to fix these issues, :D

 

 


logo-big.png   logo.png

                                   Sunny Go! Online                                                                    pko.host                                                 

Share this post


Link to post
Share on other sites

i will show an example. 

 

you get No definition DoString (0) because of Skilleffect undefined

 

example, intence magic line:

 

unfixed

50    Intense Magic    -1    0    0    0    1    0    1    1    1    1    1    1    1    1    1    1    1    1    0    0    0    -1    0    0    0    343    -1    0    0    0    0    0    0    0
 

fixed

50    Intense Magic    -1    0    State_Mlch_Add    State_Mlch_Rem    1    0    1    1    1    1    1    1    1    1    1    1    1    1    0    0    0    -1    0    0    0    343    -1    0    0    0    0    0    0    0

 

 you need to make sure states are added in the skilleff line and skilleffect.lua also.

 

function State_Mlch_Add ( role , statelv ) 
end 

function State_Mlch_Rem ( role , statelv ) 
end

 

Edited by Andy
  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...