Jump to content
×
×
  • Create New...
  • 0

Cube crashing core


Karbust

Question

  • Web Developer

Hello

I'm having a problem:

SYSERR: Jul 21 15:30:50.469040 :: number_ex: number(): first argument is bigger than second argument 0 -> -1, cube.cpp 247

Line 247 from cube.cpp

CUBE_VALUE* CUBE_DATA::reward_value ()
{
	int		end_index		= 0;
	DWORD	reward_index	= 0;

	end_index = this->reward.size();
	reward_index = number(0, end_index);
	reward_index = number(0, end_index-1); //line 247

	return &this->reward[reward_index];
}

Anyone can help?

Thanks

QJ0orbR.png

Metin2 Icon Database

Link to comment
Share on other sites

  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

3 answers to this question

Recommended Posts

  • 0
  • Premium
        first [reward_index = number(0, end_index);]
                                        argument (up there
is bigger than second argument 0 -> -1,

                reward_index = number(0, end_index-1); //line 24


First is end_index, second is end_index-1.
First > Second

And i dont think it has any use doing the same thing, so choose one by using comment

Link to comment
Share on other sites

  • 0
  • Web Developer

The problem is that the cube system wasn't made by me, if it is there must have a motive...

This is not crashing the core after all is just adding that line to syserr... But there's something crashing the core related to the cube system, but I asked to upgrade the same things and the server didn't crash again, so... I don't know...

QJ0orbR.png

Metin2 Icon Database

Link to comment
Share on other sites

  • 0
  • Premium
7 minutes ago, charparodar said:

The problem is that the cube system wasn't made by me, if it is there must have a motive...

This is not crashing the core after all is just adding that line to syserr... But there's something crashing the core related to the cube system, but I asked to upgrade the same things and the server didn't crash again, so... I don't know...

guessing is not a valid answer.

 

reward_index = number(0, end_index);
reward_index = number(0, end_index-1); //line 247

This makes no sence in my prespective, but if you want to keep them, your choice
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


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.