Jump to content
  • 0

need help emergency .


AllHailToTheKing

Question


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

im getting this error. when i try to recompile.

status.c:1536: error: conflicting types for 'status_check_skilluse'
status.h:1802: error: previous declaration of 'status_check_skilluse' was here
status.c: In function 'status_calc_mob_':
status.c:2041: error: 'struct unit_data' has no member named 'skill_id'
status.c:2042: error: 'struct unit_data' has no member named 'skill_lv'
status.c:2043: error: 'struct unit_data' has no member named 'skill_id'
status.c:2044: error: 'struct unit_data' has no member named 'skill_lv'
status.c:2046: error: 'struct unit_data' has no member named 'skill_lv'
status.c: In function 'status_calc_npc_':
status.c:3231: error: 'struct npc_data' has no member named 'status'
status.c:3251: error: 'struct npc_data' has no member named 'stat_point'
status.c:3252: error: 'struct npc_data' has no member named 'stat_point'
status.c:3253: error: 'struct npc_data' has no member named 'stat_point'
status.c:3254: error: 'struct npc_data' has no member named 'stat_point'
status.c:3255: error: 'struct npc_data' has no member named 'stat_point'
status.c:3256: error: 'struct npc_data' has no member named 'stat_point'
status.c:3258: error: 'struct npc_data' has no member named 'level'
status.c:3259: error: 'struct npc_data' has no member named 'status'
status.c: In function 'status_calc_speed':
status.c:5093: error: 'struct unit_data' has no member named 'skill_id'
status.c:5095: error: 'struct unit_data' has no member named 'skill_id'
status.c:5096: error: 'struct unit_data' has no member named 'skill_lv'
status.c: In function 'status_get_lv':
status.c:5781: error: 'TBL_NPC' has no member named 'level'
status.c: In function 'status_get_status_data':
status.c:5810: error: 'TBL_NPC' has no member named 'status'
status.c: In function 'status_get_base_status':
status.c:5826: error: 'TBL_NPC' has no member named 'status'
status.c: In function 'status_get_def':
status.c:5837: error: 'struct unit_data' has no member named 'skill_id'
status.c: In function 'status_change_start':
status.c:8600: error: 'MH_MD_FIGHTING' undeclared (first use in this function)
status.c:8600: error: (Each undeclared identifier is reported only once
status.c:8600: error: for each function it appears in.)
status.c:8600: error: 'MH_MD_GRAPPLING' undeclared (first use in this function)
status.c: In function 'status_change_timer':
status.c:10196: error: 'struct s_skill_magicmushroom_db' has no member named 'skill_id'
make[1]: *** [obj_sql/status.o] Error 1

its just i tried to edit the paladin defender skill walk speed. but i get the original status.c here https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/src/map/status.c

and add it on my server so it is default then recompile.

but when i recompile im getting this error.

Link to comment
Share on other sites

14 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   33
  • Joined:  11/15/12
  • Last Seen:  

are you sure its only the status.c is modified?

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   33
  • Joined:  11/15/12
  • Last Seen:  

it should fix the problem when you replace it to the original pc.c status.c unless you made other changes.

Edited by Anubis
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

why pc.c? i only made changes in status.c

fixed. i downloaded my status.c backup before i start editing it. Thank you Anubis

anubis what seems to be the problem in my edit?

i just delete the paladin slow walk speed when defender skill is on. i dont edit anything else.

Edited by AllHailToTheKing
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   33
  • Joined:  11/15/12
  • Last Seen:  

do you mind showing us the code?

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

do you mind showing us the code?

here is what i did.. That details told by Brian

If you want to remove the walk speed penalty, here's how:

  • open ../src/map/status.c
  • find the status_calc_speed function
  • remove these lines:

    CODE
    if( sc->data[sC_DEFENDER] )
    speed = max(speed, 200);
  • save, and recompile

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   33
  • Joined:  11/15/12
  • Last Seen:  

instead of deleting those lines try to comment them out put // in the beginning of the line statements.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

You probably messed up your status.c. You used a status.c file which is incompatible with your emu or revision. Revert to the previous status.c file.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

instead of deleting those lines try to comment them out put // in the beginning of the line statements.

will that work my friend?

You probably messed up your status.c. You used a status.c file which is incompatible with your emu or revision. Revert to the previous status.c file.

i already download my backfile file and it works. thanks for you reply tho.

happy new year

@anubis : i trie to put // before the line of defender in status.c but whenever i did all the character are in slow motion of walk speed

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   33
  • Joined:  11/15/12
  • Last Seen:  

Weird that should fix your problem.

Try not to delete the statement and just change the value to 200

if( sc->data[sC_DEFENDER] )

speed = 200;

change 200 to whatever you want.

150 is default walk speed.

Edited by Anubis
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

Weird that should fix your problem.

Try not to delete the statement and just change the value to 200

if( sc->data[sC_DEFENDER] )

speed = 200;

change 200 to whatever you want.

150 is default walk speed.

will try. one sec

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   33
  • Joined:  11/15/12
  • Last Seen:  

tell me if it worked for you now. /no1

Weird that should fix your problem.

Try not to delete the statement and just change the value to 200

if( sc->data[sC_DEFENDER] )

speed = 200;

change 200 to whatever you want.

150 is default walk speed.

will try. one sec

tell me if it worked now. /no1

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

tell me if it worked for you now. /no1

Weird that should fix your problem.

Try not to delete the statement and just change the value to 200

if( sc->data[sC_DEFENDER] )

speed = 200;

change 200 to whatever you want.

150 is default walk speed.

will try. one sec

tell me if it worked now. /no1

sure but i cant recompile now there are players online. maybe later i will try this.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

tell me if it worked for you now. /no1

Weird that should fix your problem.

Try not to delete the statement and just change the value to 200

if( sc->data[sC_DEFENDER] )

speed = 200;

change 200 to whatever you want.

150 is default walk speed.

will try. one sec

tell me if it worked now. /no1

it works but i tried 150 still when the defender is on. it has a slow walk speed then i tried 50 and its normal now.

Thank you

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