Jump to content
  • 0

does anyone know this error on my char_map


joven15

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   3
  • Joined:  03/03/14
  • Last Seen:  

Im using 2014-04-16aRagexe client. and i also using a udpate emulator from rathena github.

any idea how to fix this ? 

image.thumb.png.d10147e7ea8ec3fbaa910bdbbc2ff8f7.png

Edited by joven15
Link to comment
Share on other sites

19 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  130
  • Reputation:   11
  • Joined:  11/26/16
  • Last Seen:  

27 minutes ago, joven15 said:

Im using 2014-04-16aRagexe client. and i also using a udpate emulator from rathena github.

any idea how to fix this ? 

image.thumb.png.d10147e7ea8ec3fbaa910bdbbc2ff8f7.png

you have to import the sql upgrades from the folder sql-files->upgrades

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   3
  • Joined:  03/03/14
  • Last Seen:  

1 hour ago, Thanna20 said:

you have to import the sql upgrades from the folder sql-files->upgrades

what kind of upgrade im using a latest rathena emulator from github then, i use an old ragexe client.

image.thumb.png.6a6148abf2bdd37cb330135ade171415.png

 

Edited by joven15
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  130
  • Reputation:   11
  • Joined:  11/26/16
  • Last Seen:  

11 minutes ago, joven15 said:

what kind of upgrade im using a latest rathena emulator from github then, i use an old ragexe client.

image.thumb.png.6a6148abf2bdd37cb330135ade171415.png

 

import those sql upgrades to your database.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   3
  • Joined:  03/03/14
  • Last Seen:  

15 minutes ago, Thanna20 said:

import those sql upgrades to your database.

all of them ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  130
  • Reputation:   11
  • Joined:  11/26/16
  • Last Seen:  

5 minutes ago, joven15 said:

all of them ?

yes, since those are essential on the latest rathena.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   3
  • Joined:  03/03/14
  • Last Seen:  

7 minutes ago, Thanna20 said:

yes, since those are essential on the latest rathena.

Still got the error. anyone know how to fix this ? so annoying i use clean rathena on github it supposed to be no error since its clean emulator.

Edited by joven15
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  130
  • Reputation:   11
  • Joined:  11/26/16
  • Last Seen:  

Just now, joven15 said:

Still got the error. anyone know how to fix this ? so annoying i use clean rathena on github it supposed to be no error since its clean emulator.

have you set your packet date to the client date that you are using? for 2015 and above the gender is per character not pet account anymore.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   3
  • Joined:  03/03/14
  • Last Seen:  

Just now, Thanna20 said:

have you set your packet date to the client date that you are using? for 2015 and above the gender is per character not pet account anymore.

are you talking about the packet from src ?

 image.png.83601f26c11b3b8fbf235798f9140a0a.png

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  130
  • Reputation:   11
  • Joined:  11/26/16
  • Last Seen:  

did you use the main.sql that comes with the latest rathena or is that an old database? because on the latest database there is no gender anymore on the character table.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   3
  • Joined:  03/03/14
  • Last Seen:  

3 minutes ago, Thanna20 said:

did you use the main.sql that comes with the latest rathena or is that an old database? because on the latest database there is no gender anymore on the character table.

all latest from latest rathena i used main.sql also with the log. but i having this kind of error.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  130
  • Reputation:   11
  • Joined:  11/26/16
  • Last Seen:  

3 minutes ago, joven15 said:

all latest from latest rathena i used main.sql also with the log. but i having this kind of error.

check this link out.

 

https://github.com/rathena/rathena/pull/5006/files

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   3
  • Joined:  03/03/14
  • Last Seen:  

Just now, Thanna20 said:

still has a gender on the character. as i can see the script but it modify the src. as you u can see it pull up on july 4, i just downloaded the rathena from github a week a go so im sure i using a latest. rathena emulator with the latest main.sql on it also with the log. its just the i using a old client. but i dont think thats  the reason.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  130
  • Reputation:   11
  • Joined:  11/26/16
  • Last Seen:  

1 minute ago, joven15 said:

still has a gender on the character. as i can see the script but it modify the src. as you u can see it pull up on july 4, i just downloaded the rathena from github a week a go so im sure i using a latest. rathena emulator with the latest main.sql on it also with the log. its just the i using a old client. but i dont think thats  the reason.

If you can try something from 2015 client maybe it would work as 2014 is quite old and I think its not supported anymore.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   3
  • Joined:  03/03/14
  • Last Seen:  

Just now, Thanna20 said:

If you can try something from 2015 client maybe it would work as 2014 is quite old and I think its not supported anymore.

ok i will try now. 2015 client.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   3
  • Joined:  03/03/14
  • Last Seen:  

9 minutes ago, Thanna20 said:

If you can try something from 2015 client maybe it would work as 2014 is quite old and I think its not supported anymore.

i really have to use 2014 since ill make a classic server. 99/50 if i will use the latest theres a lot difference.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  130
  • Reputation:   11
  • Joined:  11/26/16
  • Last Seen:  

16 minutes ago, joven15 said:

i really have to use 2014 since ill make a classic server. 99/50 if i will use the latest theres a lot difference.

did you recompile your server when you added your packet date?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   3
  • Joined:  03/03/14
  • Last Seen:  

29 minutes ago, Thanna20 said:

did you recompile your server when you added your packet date?

yes i already i always compile.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  130
  • Reputation:   11
  • Joined:  11/26/16
  • Last Seen:  

3 minutes ago, joven15 said:

yes i already i always compile.

You can report it on the git hub of rathena. https://github.com/rathena/rathena/issues

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   6
  • Joined:  08/01/12
  • Last Seen:  

In src/char/char.cpp, function char_mmo_gender.

 

int char_mmo_gender( const struct char_session_data *sd, const struct mmo_charstatus *p, char sex ){
	switch( sex ){
#if PACKETVER >= 20141016
		case 'M':
			return SEX_MALE;
		case 'F':
			return SEX_FEMALE;
#else
		// No matter what the database says, always return the account gender
		// Per character gender is not supported before 2014-10-16
#endif
		default:
			// There are calls to this function that do not contain the session
			if( sd == nullptr ){
				int i;

				// Find player session
				ARR_FIND( 0, fd_max, i, session[i] && ( sd = (struct char_session_data*)session[i]->session_data ) && sd->account_id == p->account_id );

				if( i >= fd_max ){
					ShowWarning( "Session was not found for character '%s' (CID: %d, AID: %d), defaulting gender to male...\n", p->name, p->char_id, p->account_id );
					return SEX_MALE;
				}
			}

			ShowWarning( "Found unknown gender '%c' for character '%s' (CID: %d, AID: %d), returning account gender...\n", sex, p->name, p->char_id, p->account_id );
			return sd->sex;
	}
}

As we can see here if PACKETVER is less than 20141016 always execute the default case.

The message "Found unknown gender 'M' for character 'Joven15'" is the correct behaviour.

In your use case is safe to just comment this line (886 in the in the mentioned file), since the only thing it's telling you is that since you use a lower version than the 20141016 it doesn't support sex by character.

Just keep in mind is a warning, not an error.

 

EDIT: However, this error will be corrected when the PR is accepted

Edited by Patotron
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...