Jump to content
  • 0

help Quest Display Errors ("nil value") & "Unknown Quest ID" with Updated 2025 Client


Question

Posted

Hello everyone,

I'm encountering persistent issues with quest display and functionality on my rAthena. Despite trying various troubleshooting steps, I haven't been able to resolve the problem. Any insights or guidance would be greatly appreciated!

Problem Description:

When players attempt to accept or view the progress of certain quests, the client displays the following error pop-ups:

  • GetOngoingRewardInfo: [string "buf"]:24: attempt to index field '?' (a nil value)

  • GetOngoingDescription: [string "buf"]:14: attempt to index field '?' (a nil value)

  • GetOngoingQuestInfoByID: [string "buf"]:2: attempt to index field '?' (a nil value)

(Ive tried with Pupa Quest and when users enter Endless Tower)

Additionally, when I try to open the quest window in-game, I see the message "Unknown Quest ID = 60110". This specifically occurs with Quest ID 60110 (Hunting Pupa), and potentially others if they share similar data structure issues.

My Setup:

  • Emulator: rAthena (Source commit around May 10, 2025).

  • Client: kRO (Fully updated to 2025, matching the EXE date).

  • EXE: May 10, 2025 version.

  • GRF: Using a custom GRF that includes the luafiles5 directory, where client-side Lua files are stored.

Troubleshooting Steps Taken (Unsuccessful):

  1. questinfo.lub Synchronization: I downloaded a fresh kRO client (updated to 2025) and copied OngoingQuestInfoList.lub, OngoingQuestInfoList_True.lub, RecommendedQuestInfoList.lub, and RecommendedQuestInfoList_True.lub from its data\luafiles5\datainfo directory into my custom GRF. This did not resolve the errors.

  2. File Renaming: I also attempted renaming OngoingQuestInfoList_Sakray.lub and OngoingQuestInfoList_True.lub (I'm not entirely sure if these were the exact files, but it was part of a troubleshooting attempt based on old guides) without any change in behavior.

  3. Manual questinfo.lub Editing: For QuestID = 60110 (Hunting Pupa), I manually added all missing fields (RewardEXP, RewardJEXP, Description, RewardItemList, etc.) into its definition within my data\luafiles5\datainfo\questinfo.lub file (inside my GRF). I made sure to set non-nil default values (e.g., {} for empty tables, 0 for numbers), but the errors persist.

  4. Server-Side Verification: The QuestID = 60110 is correctly identified and configured on the server-side (db/re/quest.txt and the associated NPC script). The issue appears to be client-side data interpretation.

Relevant Client-Side Lua Files:

Here is the content of my QuestInfo_f.lub (located in the client GRF):

Lua
-- Function #0
GetOngoingQuestInfoByID = function(questID)
    return GetOngoingSimpleView(questID), QuestInfoList[questID].Title, QuestInfoList[questID].IconName, QuestInfoList[questID].Summary, QuestInfoList[questID].NpcSpr, QuestInfoList[questID].NpcNavi, QuestInfoList[questID].RewardEXP, QuestInfoList[questID].RewardJEXP, QuestInfoList[questID].NpcPosX, QuestInfoList[questID].NpcPosY, GetCoolTimeQuest(questID)
end

-- Function #1
GetCoolTimeQuest = function(questID)
    local desc = QuestInfoList[questID].CoolTimeQuest
    if nil == desc then
        return 0
    end
    return desc
end

-- Function #2
GetOngoingDescription = function(questID)
    local desc = QuestInfoList[questID].Description
    if nil == desc then
        return
    end
    for k, v in pairs(desc) do
        AddOngoingDescription(questID, v)
    end
    return
end

-- Function #3
GetOngoingRewardInfo = function(questID)
    local reward = QuestInfoList[questID].RewardItemList
    if nil == reward then
        return
    end
    for k, v in pairs(QuestInfoList[questID].RewardItemList) do
        AddOngoingRewardInfo(questID, v.ItemID, v.ItemNum)
    end
    return
end
-- ... (rest of the functions like RecommendedQuestInfoLoad, etc.)

My Current (Corrected) QuestID = 60110 Definition in questinfo.lub (after manual additions):

Lua
[60110] = {
    Title = "Hunting Pupa",
    Description = {
        "Halgus asked you to clear the field of 50 Pupa and he will give you a small reward. ^FF0000Chrysalis cannot be turned in while this quest is active.^000000"
    },
    Summary = "",
    IconName = "", -- Added
    NpcSpr = "",   -- Added
    NpcNavi = "",  -- Added
    RewardEXP = 0, -- Added
    RewardJEXP = 0, -- Added
    NpcPosX = 0,   -- Added
    NpcPosY = 0,   -- Added
    CoolTimeQuest = 0, -- Added
    RewardItemList = {} -- Added (or with actual item data if applicable)
},

Any guidance on what might be causing these "nil value" errors or why the client reports "Unknown Quest ID" despite the server having the quest identified would be greatly appreciated. Could it be a GRF priority issue, a client-side Lua script version mismatch, or something else entirely?

Thank you in advance for your time and help!

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

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

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...