Jump to content
  • 0

help Updating GIT


fictionx

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  122
  • Reputation:   17
  • Joined:  12/10/12
  • Last Seen:  

Hi, i've a problem when i try to update my repository.

 

i used git stash && git pull && git stash pop,  but i have the following errors:

Spoiler

mmo.h:69: error: expected identifier or ‘(’ before ‘<<’ token
In file included from core.c:4:
mmo.h:76:9: error: invalid suffix "ce2be160492d2cd072d906d1365de5113" on integer constant
mmo.h:325: error: expected identifier or ‘(’ before ‘<<’ token
mmo.h:336: error: redefinition of ‘struct extra_storage_data’
mmo.h:349: error: expected specifier-qualifier-list before ‘==’ token
mmo.h:383:9: error: invalid suffix "ce2be160492d2cd072d906d1365de5113" on integer constant
mmo.h:622:9: error: invalid suffix "ce2be160492d2cd072d906d1365de5113" on integer constant
mmo.h:668:9: error: invalid suffix "ce2be160492d2cd072d906d1365de5113" on integer constant
mmo.h:1152:9: error: invalid suffix "ce2be160492d2cd072d906d1365de5113" on integer constant

 

<<<<<<< HEAD
#define MAX_STORAGE 600 ///Max number of storage slots a player can have, (up to ~850 tested)
#define MAX_EXTRA_STORAGE 1///eAmod Extra Storage Size
<<<<<<< Updated upstream
<<<<<<< Updated upstream
=======
#define MAX_STORAGE 600 ///Max number of storage slots a player can have
>>>>>>> 9910478ce2be160492d2cd072d906d1365de5113
=======
>>>>>>> Stashed changes
=======
>>>>>>> Stashed changes
  
  
  =======
enum e_storage_mode {
	STOR_MODE_NONE = 0x0,
	STOR_MODE_GET = 0x1,
	STOR_MODE_PUT = 0x2,
	STOR_MODE_ALL = 0x3,
};

struct s_storage {
	bool dirty; ///< Dirty status, data needs to be saved
	bool status; ///< Current status of storage (opened or closed)
	uint16 amount; ///< Amount of items in storage
	bool lock; ///< If locked, can't use storage when item bound retrieval
	uint32 id; ///< Account ID / Character ID / Guild ID (owner of storage)
	enum storage_type type; ///< Type of storage (inventory, cart, storage, guild storage)
	uint16 max_amount;
	uint8 stor_id; ///< Storage ID
	struct {
		unsigned get : 1;
		unsigned put : 1;
	} state;
	union { // Max for inventory, storage, cart, and guild storage are 1637 each without changing this struct and struct item [2014/10/27]
		struct item items_inventory[MAX_INVENTORY];
		struct item items_storage[MAX_STORAGE];
		struct item items_cart[MAX_CART];
		struct item items_guild[MAX_GUILD_STORAGE];
	} u;
};

struct s_storage_table {
	char name[NAME_LENGTH];
	char table[DB_NAME_LEN];
	uint16 max_num;
	uint8 id;
>>>>>>> 9910478ce2be160492d2cd072d906d1365de5113

how can i fix this?

 

Greetings.-

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

It's mean, conflicts in ur file after merger. It's common when u have modified file.

You can read also

 

But from me, I'll explain a little. The conflicted lines always have these information like this

<<<<<<< cb279a724341d27700e09b92eee766df77de0ede   // These are codes below are from rAthena/rAthena@cb279a72
	/* random option attributes */
	export_constant(ROA_ID);
	export_constant(ROA_VALUE);
	export_constant(ROA_PARAM);

	export_constant(CARD0_FORGE);
	export_constant(CARD0_CREATE);
	export_constant(CARD0_PET);

	export_constant(STOR_MODE_NONE);
	export_constant(STOR_MODE_GET);
	export_constant(STOR_MODE_PUT);
=======  // This code below are from my 'current' source, I added this line
	script_set_constant("bNoEleStone",SP_NO_ELESTONE,false);
>>>>>>> 17718a6e36db0ef3dfcf5247bc5fe2a88e045b85

So, if I want to conflict that lines above, become

	/* random option attributes */
	export_constant(ROA_ID);
	export_constant(ROA_VALUE);
	export_constant(ROA_PARAM);

	export_constant(CARD0_FORGE);
	export_constant(CARD0_CREATE);
	export_constant(CARD0_PET);

	export_constant(STOR_MODE_NONE);
	export_constant(STOR_MODE_GET);
	export_constant(STOR_MODE_PUT);

	script_set_constant("bNoEleStone",SP_NO_ELESTONE,false);

 

Idk what the hell were you doing, maybe you 'cut' some lines so the conflicted lines look so terrible.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

10 minutes ago, fictionx said:

#define MAX_EXTRA_STORAGE 1///eAmod Extra Storage Size

That's the line causing you problems. You can't update eAmod with rAthena's code..

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

you need to manually resolve all the conflicts .... 

<<<<<<< Updated upstream
=======
>>>>>>> 9910478ce2be160492d2cd072d906d1365de5113
=======

these shouldn't exist

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