BUG: DEV: Clan Creation

As bugs and suggestions are fixed/implemented/rejected, they will be moved in here.
Post Reply
User avatar
Ruddertail
Promi Diplomacy ate my homework...
Posts: 4510
Joined: Wed May 12, 2004 11:39 pm
Location: Chances are, playing FAF.
Contact:

Post by Ruddertail »

I tried creating a clan. It filled in all the neccesary forms, and it said
Apes!!!! has been created successfully!
But I'm not in a clan. I have no clan forums, no sidebar for clans, nothing.
Empires:
WOA: Attila the Hun(#13)
BFR: ?
Founder and Leader of Hungry Huns (HH)
sh0e
Forum Maniac
Posts: 290
Joined: Mon Apr 19, 2004 6:13 pm

Post by sh0e »

you have to join it.. clan creation isnt automatically followed by joining the clan anymore
although it does cause problems/paradoxical behavior

you can be the only one in a clan and not be leader of it.. if someone else was first to create it but never joined

i would fix it but i dont quite know how to treat it the way it was intended
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

It should be though, oh wait, that must be part of what Nev implemented.
:wq
User avatar
bjornredtail
Warbands Admin
Posts: 821
Joined: Tue Apr 20, 2004 12:07 am
Contact:

Post by bjornredtail »

Just update the player database for the player with the number $create_founder... PUT $create_founder into uclan[num]....
But somehow I need to get the whole arrey for $users in order to do that. So, how do I get $users into the function short of globaling it, wich would defeat the point of haveing this entire function, as then the admin would be made founder...

Ok, to rephrase that, I have a user number in $create_founder. I need to update the player DB for that user. How do I do that, as the updateplayerdata function doesn't seem to like the number I give it with $create_founder?
0===)=B=j=o=r=n==R=e=d=t=a=i=l==>
Warbands Admin

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra
sh0e
Forum Maniac
Posts: 290
Joined: Mon Apr 19, 2004 6:13 pm

Post by sh0e »

saveUserData(loadUser($create_founder), [blah]);
User avatar
bjornredtail
Warbands Admin
Posts: 821
Joined: Tue Apr 20, 2004 12:07 am
Contact:

Post by bjornredtail »

Tryed it... Doesn't work either... At least I'm no longer getting a nasty error message.
0===)=B=j=o=r=n==R=e=d=t=a=i=l==>
Warbands Admin

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra
sh0e
Forum Maniac
Posts: 290
Joined: Mon Apr 19, 2004 6:13 pm

Post by sh0e »

$uclan[founder] = $create_founder;
saveClanData($uclan,"founder");
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

Actually, must also have:
$founder = loadUser($clan[founder]);
$founder[clan] = $clan[num];
saveUserData($founder, "clan");
:wq
User avatar
bjornredtail
Warbands Admin
Posts: 821
Joined: Tue Apr 20, 2004 12:07 am
Contact:

Post by bjornredtail »

Everything under save clan data works... It's just saveuserdata that is spotty...
0===)=B=j=o=r=n==R=e=d=t=a=i=l==>
Warbands Admin

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra
sh0e
Forum Maniac
Posts: 290
Joined: Mon Apr 19, 2004 6:13 pm

Post by sh0e »

im thoroughly confused with what you are trynig to achieve.. could you post pseudo code of what you are doing?
or did beatles already fix it?
sh0e
Forum Maniac
Posts: 290
Joined: Mon Apr 19, 2004 6:13 pm

Post by sh0e »

ok i took a look at the code and found the problem
saveUserData reads values from an array.. not by user id num

anyhow i fixed it

http://dev.staronesw.com/?source&script=lib/libclan
User avatar
bjornredtail
Warbands Admin
Posts: 821
Joined: Tue Apr 20, 2004 12:07 am
Contact:

Post by bjornredtail »

Ok... I ALMOST had it offline.


Anyways, thanks.
0===)=B=j=o=r=n==R=e=d=t=a=i=l==>
Warbands Admin

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra
Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members