Jump to content

Recommended Posts

Hey guys!

I have a problem in my questlua_global.cpp.

 


SYSERR: Oct 19 14:37:03.891320 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 50

This keeps crashin' my CH1 after a while and other Channels random.

What is the problem, and how can I fix it?

Many thanks.

Link to comment
https://metin2.dev/topic/8988-questlua_global-problem/
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

you have something like this in one of your quests:

number(3,2)

first argument (3) is bigger then scound argument (2). this is all what i can tell. there is no bug in your src about this (it will happen to anyone if he has the same bugged quest).

Link to comment
https://metin2.dev/topic/8988-questlua_global-problem/#findComment-54556
Share on other sites

Questscroll5.quest

        function reward_table_get_value(item_array)
            local prob_sum=questscroll5.reward_table_get_prob_sum(item_array)
            local prob_pos=number(0, prob_sum)

 training_grand_master_skill.quest

                       pc.change_alignment(-number(need_alignment/3, need_alignment/2))

main_quest_lv14.quest

            local i = stones[number( 1, 3 )];
            local stone =  (i+number(1,14)-1) 

levelup.quest

                    local ll = lev - 20
                    if lev < 26 then

                        local n = table.getn(special.levelup_reward_item_21[ll])
                        local t = special.levelup_reward_item_21[ll][number(1, n)]
                        say_reward(gameforge.levelup._80_sayReward)
                        if type(t) == 'table' then

 hair.quest

             local vnum = input_number()

 deviltower_zone.quest

    function get_4floor_stone_pos()
        local positions =
            {
                {368, 629}, {419, 630}, {428, 653}, {422, 679},
                {395, 689}, {369, 679}, {361, 658},
        }
        for i = 1, 6 do
            local j = number(i, 7)
            if i != j then
                local t = positions;
                positions = positions[j];
                positions[j] = t;
            end
        end 

Link to comment
https://metin2.dev/topic/8988-questlua_global-problem/#findComment-54565
Share on other sites

At first, it's not a reason to occur game.core or down core. If you check number function,  you will understand exactly what I mean. That error is only for warning in syserr.

A simple about it.

Number (64, 32) -> The function read this like that number (32, 64) 

Do not be sorry, be better.

Link to comment
https://metin2.dev/topic/8988-questlua_global-problem/#findComment-54584
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.