AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [ANY] tAttributes v0.1.1 (2010-04-05) (https://forums.alliedmods.net/showthread.php?t=122550)

Thrawn2 04-03-2010 19:26

Re: [ANY] tAttributes v0.1.0 (2010-03-28)
 
1 Attachment(s)
i've updated the commands plugin, it had some bugs in it and was missing some features.
source can be found on the repository as usual.
also i've written a small list of examples on how to use the commands, read here.

Grundy 04-03-2010 20:01

Re: [ANY] tAttributes v0.1.0 (2010-03-28)
 
Thanks.

Question though...

I gave someone 20 extra points to spend whos points were not registering and it gave him the 20 points to spend but every time he spent them, it just says it registered 1 and still showed zero in the attribute. Normally it would show "up by 1" "up by 2" ect...

------------------------------------------------------------------------------------
As for the clientprefs plugin...

People are still reporting zeros across the board when they put an attribute in.

They level up and put a point in and the attribute they put it in still shows 0.

*Edit
Just switched maps and one person was level 3 at the time and all his attributes went to 0.

Another person who just joined leveled to level 1 and never even got an attribute point to put in.

*Edit #2
sm_att_set "name" all 0 crashes my server.

Thrawn2 04-04-2010 07:23

Re: [ANY] tAttributes v0.1.0 (2010-03-28)
 
1 Attachment(s)
Quote:

Originally Posted by Grundy (Post 1138132)
I gave someone 20 extra points to spend whos points were not registering and it gave him the 20 points to spend but every time he spent them, it just says it registered 1 and still showed zero in the attribute. Normally it would show "up by 1" "up by 2" ect...

I cant reproduce this - could be a race condition between setting the attribute points value and displaying the menu again. have you tried typing !att again after you've spend a point which didnt appear in the menu? It should be there then.

Quote:

People are still reporting zeros across the board when they put an attribute in.
argh. okay, a more brute force method of loading the attribute points is in the attached plugin (changes).

Quote:

Another person who just joined leveled to level 1 and never even got an attribute point to put in.
uhm, are you sure? there was a problem with saving the available points, so they could have been lost on level transition.

Quote:

sm_att_set "name" all 0 crashes my server.
i'll try to reproduce and fix this. the first parameter is a standard target parameter you can find in almost any sourcemod command.

Grundy 04-04-2010 12:53

Re: [ANY] tAttributes v0.1.0 (2010-03-28)
 
Thanks for being on top of this. I will test this new plug in right now.

To answer your question, Yes, he tried typing !att over and over again. He also logged off and came back with the same problem.

Grundy 04-04-2010 13:07

Re: [ANY] tAttributes v0.1.0 (2010-03-28)
 
*TESTED

Every time it shows "your attributes have been loaded" it wipes our points out.

Works at level one, but then it wipes from level 2 on.

This was reproduced on 5 different accounts.

Did you look at the code my friend sent you by any chance?

Thrawn2 04-04-2010 14:11

Re: [ANY] tAttributes v0.1.0 (2010-03-28)
 
3 Attachment(s)
could you try it again with the attached plugins? (sry for the inconvenience)

Quote:

Did you look at the code my friend sent you by any chance?
?!? never got anything

Quote:

Yes, he tried typing !att over and over again.
:cry: any idea how i could reproduce this?

Grundy 04-04-2010 15:07

Re: [ANY] tAttributes v0.1.0 (2010-03-28)
 
Quote:

Originally Posted by [AAA] Thrawn (Post 1139214)
could you try it again with the attached plugins? (sry for the inconvenience)

Not inconvenient at all. I love being part of this process. I am glad I have the community to test it. :mrgreen:


Quote:

?!? never got anything


:cry: any idea how i could reproduce this?
You just have to wait for someone to get bugged.

I have had over 300 individual Steam accounts visit my server last night. This is why I can produce results in a short time.

Grundy 04-04-2010 16:24

Re: [ANY] tAttributes v0.1.0 (2010-03-28)
 
BUG: There is still no point roll over when changing maps and a possible level skip if you don't use your point before level change.

BUG: Just relogged to my server after posting this and all my attributes were wiped. :(

BUG: Other people have reported that their points are allocated in different attributes when they relog. i.e. He was 10 crit 7 str when he was on the server. Logged off then came back later to 17 dex.

BUG: Logged on and I had my points back but they were all over the place.

BUG: People who just logged on for the first time are at level 0 with random numbers in their attributes.

BUG: If i connect the current game on blu I have more stats than I should (tho all messed up) and if I disconnect and go red I have stats but still have the level

ALSO: I do not know if its related, but the fall damage is reduced and the pryo's flamethrower flame gets stuck on.

p.s Happy Easter!

RavensBro 04-04-2010 19:45

Re: [ANY] tAttributes v0.1.0 (2010-03-28)
 
maybe if you make it set up like the tf2stats plugin it has it's own sq3 file we never loose any points or what not just a thought.

Thrawn2 04-05-2010 07:19

Re: [ANY] tAttributes v0.1.0 (2010-03-28)
 
2 Attachment(s)
remember: coding at night probably just breaks things.
the issue: points of clients were never set to zero when they left the server, thats why on connect of a new client he had the stats of the old one. and values for someone with an attribute greater than 0 were never loaded. yes i'm serious. facepalm with me.

THANK YOU so much for testing this and providing all that feedback, your bug reports pushed me in the right direction to find what went wrong all along. :up:

try this, it should resolve your issues. (also i've released a new package, see first post for that)

maybe its best to clear out that database of yours beforehand, because otherwise you will keep your botched attributes.


All times are GMT -4. The time now is 18:41.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.