Jump to content
  • 0

Skill.c error


NexusXVI

Question


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.01
  • Content Count:  227
  • Reputation:   6
  • Joined:  01/18/12
  • Last Seen:  

If this isn't the right place to post it im sorry...

The problem is here :

 

skill.c: In function ‘skill_parse_row_nonearnpcrangedb’:
skill.c:18315: warning: comparison is always false due to limited range of data type

and here :

[Error]: pc_skill: Skill with id 0 does not exist in the skill database
[Error]: pc_skill: Skill with id 0 does not exist in the skill database
[Error]: pc_skill: Skill with id 0 does not exist in the skill database
[Error]: pc_skill: Skill with id 0 does not exist in the skill database

 

This is the line on skill.c

/// Reads additional range [Cydh]
static bool skill_parse_row_nonearnpcrangedb(char* split[], int column, int current) {
	uint16 skill_id = skill_name2id(split[0]), idx; // -- This is the line 18315
	if ((idx = skill_get_index(skill_id)) < 0) { // invalid skill id
		ShowError("skill_parse_row_nonearnpcrangedb: Invalid skill '%s'\n",split[0]);
		return false;
	}

	skill_db[idx].unit_nonearnpc_range = max(atoi(split[1]),0);
	skill_db[idx].unit_nonearnpc_type = (atoi(split[2])) ? cap_value(atoi(split[2]),1,15) : 15;
	return true;
}


Can anyone help me with this.. I don't know what this is  :(


Addition :

Im also have this problem on my mapserver log.

Whenever I use the command @reloaditemdb the mapserver crashes here is the log :
 

[Error]: Server received crash signal! Attempting to save all online characters!
[Status]: Memory manager initialised: log/map-server.leaks

 




 

Edited by NexusXVI
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  09/23/15
  • Last Seen:  

On 10/30/2013 at 2:07 PM, NexusXVI said:

 


[Error]: pc_skill: Skill with id 0 does not exist in the skill database
[Error]: pc_skill: Skill with id 0 does not exist in the skill database
[Error]: pc_skill: Skill with id 0 does not exist in the skill database
[Error]: pc_skill: Skill with id 0 does not exist in the skill database

This mistake has happened to me.
I decided as follows:

HOW WAS:

1,0,0,0,0,0,0,9,0,no,0,0,0,none,0,0x0,		NV_BASIC,Basic Skill

//****
// Swordman
2,0,0,0,0,0,0,10,0,no,0,0,0,weapon,0,0x0,		SM_SWORD,Sword Mastery
3,0,0,0,0,0,0,10,0,no,0,0,0,weapon,0,0x0,		SM_TWOHAND,Two-Handed Sword Mastery
4,0,0,0,0,0,0,10,0,no,0,0,0,none,0,0x0,		SM_RECOVERY,Increase HP Recovery

HOW I PUT IT:

1,0,0,0,0,0,0,9,0,no,0,0,0,none,0,0x0,NV_BASIC,Basic Skill

//****
// Swordman
2,0,0,0,0,0,0,10,0,no,0,0,0,weapon,0,0x0,SM_SWORD,Sword Mastery
3,0,0,0,0,0,0,10,0,no,0,0,0,weapon,0,0x0,SM_TWOHAND,Two-Handed Sword Mastery
4,0,0,0,0,0,0,10,0,no,0,0,0,none,0,0x0,SM_RECOVERY,Increase HP Recovery

I just removed the space between them.
In my case, was with <TAB>
Then I removed it and it worked perfectly;)

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Did you add any mod? your rathena version?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  270
  • Reputation:   20
  • Joined:  12/10/11
  • Last Seen:  

Use a fresh copy of the svn

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.01
  • Content Count:  227
  • Reputation:   6
  • Joined:  01/18/12
  • Last Seen:  

My rathena version is

17528

And i didn't add any mod to be exact

Edited by NexusXVI
Link to comment
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
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.

×
×
  • Create New...