Jump to content

flame_dungeon bug


Go to solution Solved by PACI,

Recommended Posts

Hi Metin2Dev

 

Flame dungeon doesn't work for me.

 

quest: http://pastebin.com/QtQWzEtY (I think it's original gf quest)

I have the gameforge lines in my locale.lua, not this the problem.

 

I click the npc, and it's write someting, but it doesn't open any area.

 

syserr:

SYSERR: Aug 21 09:59:59.144862 :: WriteRunningStateToSyserr: LUA_ERROR: quest flame_dungeon.run click
SYSERR: Aug 21 10:00:02.462230 :: RunState: LUA_ERROR: [string "flame_dungeon"]:91: attempt to call global `notice_multiline' (a nil value)
SYSERR: Aug 21 10:00:02.462384 :: WriteRunningStateToSyserr: LUA_ERROR: quest flame_dungeon.run click
SYSERR: Aug 21 10:00:02.462574 :: WriteRunningStateToSyserr: LUA_ERROR: quest flame_dungeon.run click
 
Can anyone give me a solution?
 
Regards
Link to comment
Share on other sites

SYSERR: Aug 21 10:00:02.462230 :: RunState: LUA_ERROR: [string "flame_dungeon"]:91: attempt to call global `notice_multiline' (a nil value)

One would think you don't have any function called notice_multiline. Have you maybe thought about trying to read errors and understanding them first? It really is not going to do you any good to just come here and ask... if you can't do anything alone believe me you are going to get bored very fast of this.

  • Love 1
Link to comment
Share on other sites

  • Developer
  • Solution

What if that function is written in lua? (it is) Like the thousands of functions inside questlib.lua.

You can't think that every single function is written in the game core.

 

-- generate when a linebreak in the functions: d.notice,notice,notice_all
function notice_multiline( str , func )
    local p = 0
    local i = 0
    while true do
        i = string.find( str, "%[ENTER%]", i+1 )
        if i == nil then
            if string.len(str) > p then
                func( string.sub( str, p, string.len(str) ) )
            end
            break
        end
        func( string.sub( str, p, i-1 ) )
        p = i + 7
    end
end
  • Love 3

when you return 0 and server doesn't boot:

unknown.png

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.