Jump to content
  • 0

Max Guild Member


leertaste

Question


  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   1
  • Joined:  02/02/13
  • Last Seen:  

In mmo.h

I've changed this:

#define MAX_GUILD 16+10*6

 

to:

#define MAX_GUILD 1+10*1

 

and in

int_guild.c

 

i changed this:

g->max_member = 16 + guild_checkskill(g, GD_EXTENSION) * 6;

 

to:

g->max_member = 1 + guild_checkskill(g, GD_EXTENSION) * 1;

 

Map-Server Error:

[Error]: guild_recv_info: Received guild
11. Extra guild-members have been lost!


When I skillup the Guild Extension skill +1 i get this Error at the char-server:

[Error]: guild 16:2 has capacity for too many guild members (22), max supported is 11

 

I want the guildmember maximum to bet 1 at the beginning

and with every skillup "guild extension" +1 the member max. should be increased for 1.

(11 en total)

 

Thanks for your help :D <3

 

 

EDIT:

Oh damn me.. I edited the totally wrong folder...
I was in: src/char/int_guild.c

but I needed to edit in: src/char_sql/int_guild.c

It was kinda late... haha SOLVED

Edited by leertaste
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


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

You are doing it correctly. Probably those errors are because of the existing guilds?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   1
  • Joined:  02/02/13
  • Last Seen:  

i deleted all existing guilds before

and

when I create a new guild, the problem still exist .. hm
i figuered out, that the "guild extension" skill isnt set to give 1 additionaly guildmember

its still on to give +6

but i compiled after changing this O.O
hmm



another info:

the max. guild member should be set to 1 at beginning.

BUT the max. guild member is set to 11 at beginning..

any solutions?

Edited by leertaste
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   1
  • Joined:  02/02/13
  • Last Seen:  

that says that the int_guild.c is not loaded correctly or may not compiled correctly.. because i was abled to change max. guild members but
not able to change amount of guild extension skill adding members.. you know what i mean?

i checked it.. if i only change something in the int_guild.c and compile after it, the compile doesnt compile this file.. O.O

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   1
  • Joined:  02/02/13
  • Last Seen:  

Oh damn me.. I edited the totally wrong folder...
I was in: src/char/int_guild.c

but I needed to edit in: src/char_sql/int_guild.c

It was kinda late... haha SOLVED

 

 

EDIT:

 

Next problem i have...

now everythings works fine, but if i create a new guild (max guild member = 11)

i receive an error at my mapserver:

[Error]: guild_recv_info: Received guild with 16 members, but MAX_GUILD is only
11. Extra guild-members have been lost!

 

That means if I create a new guild.. the max guild member at beginning is still set up to 16 O.O
What to do?

Edited by leertaste
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:  

make sure you don't have old value in your db, I know you said you deleted all existing guild, but he take that 16 value from here. Judging from your old post I'm not sure if you really using sql or txt more, since it seem you had the old char_sql too.

 

Assuming you really using sql you could verify like this :

select * from guild where max_member > 11
so now we should have listed all guild that pop our error msg. (wich btw give no harm as it well handle, you'll just lose those extra member).

 

and we could try a quick wich like this :

update set max_member=11 from guild where max_member > 11

 

but I wonder how extra char will handle this, since char table still have a guil_id field.

so you could take a look at our listed overflow guild join it with char.guild_id and remove the fucker.

 

hope that will fix the issue. the mod src look fine.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   1
  • Joined:  02/02/13
  • Last Seen:  

oh your right in my sql tables (guild) the max guild member is still set up to 16

 

but as far as i skill guild extension up to level 1 the max. guild member switches to 2 and everything works fine

 

can u explain now, what exactly to do?

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