Jump to content
  • 0

mmo_charstatus size = /n is too big to be transmitted


Rikimaru

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

Hello rAthena Community,

 

after a long break I started working on scripts again and thought that it's time to update my rAthena SVN,so I created a complete new Folder for the SVN,configured everything and after compiling I started the Server. Then this error showed up in the Map Server :

 

mmo_charstatus size = 69848 is too big to be transmitted.

Screenshot:

post-434-0-61761300-1373640815_thumb.png

 

I tried to recompile it again,but it didn't help,after checking my mmo.h in the common folder again I found nothing that could be causing this trouble.

 

Could someone please help me with this Problem?

 

Thank you,

~Rikimaru

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

Hmmm ye, it's because map and char server shared that structure and transmit it on some action to stay sync.

This allow perseverence but also multimap support.

Now from what you quote, you don't have much field so I presume it's  tab that increase it that much. Guess is that MAX_STORAGE or MAX_INVENTORY is a bit too big.

If you want to keep t that big, you could still do something like mmo_charstorage and move out related field into it. Then you have to check more or less when the previous mo_charstatus was exchanging data and transmit your new struct into a new packet arround the same event. Be carefull of race condition if so.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

Move out some attribute of mmo_charstatus to another structure or modify socket.c

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

Thank you for the reply,this is the charstatus in the mmo.h

struct mmo_charstatus {
	int char_id;
	int account_id;
	int partner_id;
	int father;
	int mother;
	int child;

	unsigned int base_exp,job_exp;
	int zeny;

	short class_;
	unsigned int status_point,skill_point;
	int hp,max_hp,sp,max_sp;
	unsigned int option;
	short manner;
	unsigned char karma;
	short hair,hair_color,clothes_color;
	int party_id,guild_id,pet_id,hom_id,mer_id,ele_id;
	int fame;

	// Mercenary Guilds Rank
	int arch_faith, arch_calls;
	int spear_faith, spear_calls;
	int sword_faith, sword_calls;

	short weapon; // enum weapon_type
	short shield; // view-id
	short head_top,head_mid,head_bottom;
	short robe;

	char name[NAME_LENGTH];
	unsigned int base_level,job_level;
	short str,agi,vit,int_,dex,luk;
	unsigned char slot,sex;

	uint32 mapip;
	uint16 mapport;

	struct point last_point,save_point,memo_point[MAX_MEMOPOINTS];
	struct item inventory[MAX_INVENTORY],cart[MAX_CART];
	struct storage_data storage;
	struct s_skill skill[MAX_SKILL];

	struct s_friend friends[MAX_FRIENDS]; //New friend system [Skotlex]
#ifdef HOTKEY_SAVING
	struct hotkey hotkeys[MAX_HOTKEYS];
#endif
	bool show_equip;
	short rename;

	time_t delete_date;

	// Char server addon system
	unsigned int character_moves;
};

,so what should I do with it? Just remove some parts or place them somewhere else?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

Thank you,it was exactly what you said,the storage and max inventory were too high,I changed it and now it works.

 

Thank you again.

 

-Solved

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...