Page 1 of 1

Money was reset - source/cutllinkedlist error ...

Posted: Sun Feb 16, 2020 12:32 pm
by pravda
Hi Admins and fellow Left4Dod'rs,

Was playing earlier and money has been reset/mixed up.

(Looks like my money gets swapped with another player and I end up with their money amount. No sure if just for me and the other player
or affects everyone - whole database/file?)

Is it possible to get the money amount set back for me and any others affected?

map: argentan at 17/02/2020 6.27.am new zealand time it was $2868046

when played again about 20 mins later it had changed to:

map: avalanche at 17/02/2020 6.58.am new zealand time it was $65


Thanks - pravda

Re: Money was reset

Posted: Mon Feb 17, 2020 4:15 pm
by Stevo
It should be corrected now.

Re: Money was reset

Posted: Tue Feb 18, 2020 12:59 pm
by pravda
cheers Stevo - thanks

Re: Money was reset

Posted: Wed Feb 26, 2020 11:29 am
by pravda
Hi Admins and fellow Left4Dod'rs,

- Trying out adding to this post for a change instead of making new post every time

Was playing earlier and money has been reset/mixed up.

(Looks like my money gets swapped with another player and I end up with their money amount. No sure if just for me and the other player
or affects everyone - whole database/file?)

Is it possible to get the money amount set back for me and any others affected?

map: flash at 27/02/2020 5.44.am new zealand time it was $2866804

when played again about 20 mins later it had changed to:

map: donner at 27/02/2020 6.03.am new zealand time it was $15691


Thanks - pravda

Re: Money was reset

Posted: Wed Feb 26, 2020 12:14 pm
by Stevo
I fixed it. It looks like your money was saved while you didn't have a valid Steam ID.

If anyone wants to look at the source and fix whatever the source of the problem is, the source is available on GitHub: https://github.com/StrontiumDogeh/Left4DOD

Re: Money was reset - source/cutllinkedlist error ...

Posted: Thu Feb 27, 2020 3:37 pm
by pravda
hi Stevo,

I saw the source (GNU General Public License v3) last week on github and had a quick look but it wasn't formatted for easy reading in notepad so I haven't had a decent look at it yet.

I don't know a lot about sourcemod, dodhooks, the scripting language SourcePawn, data types used/supported, sourcemod compiler/.smx etc and hl2/source engine api's but have done plenty of coding before so can sort of follow what is going on in the scripts.

I did notice in the client script it refers to client: (g_iUserID[client] == GetClientUserId(client)) and further down the script it executes a sql database command: g_iMoney[client] = SQL_FetchInt(hQuery, 2).

I presume g_iMoney is a four-byte/32bit signed integer array data structure and the [client] is the index position in the array? The sql command is passed the handle hQuery, 3rd column/field (0 based) and returns an integer (money amount).

I assume somehow the client integer/variable is mixed up with another players 'client' id when players are not 'properly' connected/authenticated?

I noticed this last money mix up, that the refreshed DOD Source Server List showed 0 players for the Left4DoD mod, but the view server info showed two players and when I connected to the server and the map loaded a few seconds later there was two players playing the mod (not spectating). Went to buy a shield and noticed the money amount was incorrect - probably swapped with one of the two players already playing.

Don't know why but the map dod_drizz_b5 is the only map that I have seen that has always loaded successfully without the 'cutllinkedlist overflow (exhausted index range)' error - it's not part of the regular map rotation so has to be loaded via admin - vote map.

Thanks for resetting the money ...

Cheers - pravda

Re: Money was reset - source/cutllinkedlist error ...

Posted: Fri Mar 06, 2020 1:42 pm
by pravda
Hi Admins and fellow Left4Dod'rs,

Was playing earlier and money has been reset/mixed up.

Is it possible to get the money amount set back for me and any others affected?

map: kalt at 06/03/2020 5.25.am new zealand time it was $2867181

when played again day later it had changed to:

map: kalt at 07/03/2020 5.02.am new zealand time it was $2305328

Thanks - pravda

Re: Money was reset - source/cutllinkedlist error ...

Posted: Fri Mar 06, 2020 2:24 pm
by Stevo
I set it back.

Re: Money was reset - source/cutllinkedlist error ...

Posted: Sat Mar 07, 2020 1:01 pm
by pravda
thank you Stevo ...

Re: Money was reset ...

Posted: Sat Mar 28, 2020 1:14 pm
by pravda
Hi Admins and fellow Left4Dod'rs,

Was playing earlier and money has been reset/mixed up.

(Looks like my money gets swapped with another player and I end up with their money amount. No sure if just for me and the other player
or affects everyone - whole database/file?)

Is it possible to get the money amount set back for me and any others affected?

map: flash at 29/03/2020 1.27.am new zealand time it was $2862044

when played again few hours later it had changed to:

map: donner at 29/03/2020 5.26.am new zealand time it was $71


Thanks - pravda

Re: Money was reset - source/cutllinkedlist error ...

Posted: Sat Mar 28, 2020 1:42 pm
by Stevo
I restored your money. :) It was reassigned to an invalid ID somehow.

Re: Money was reset - source/cutllinkedlist error ...

Posted: Sun Mar 29, 2020 4:04 pm
by pravda
thanks Stevo ...

* I've been trying to avoid situations that are more likely to cause it such as joining the server at the exact same time as other players ...