Money was reset - source/cutllinkedlist error ...

A forum dedicated to the Left4DoD Day of Defeat: Source Mod
Forum rules
Image
Join the Left4DoD Steam Group: http://steamcommunity.com/groups/left4dod
Post Reply
pravda
Villun
Villun
Posts: 48
Joined: Sun May 05, 2013 2:11 am

Ville Awards

Money was reset - source/cutllinkedlist error ...

Post by pravda » Sun Feb 16, 2020 12:32 pm

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
Last edited by pravda on Thu Feb 27, 2020 3:39 pm, edited 1 time in total.

Stevo
Everlasting Villun
Everlasting Villun
User avatar
Posts: 8753
Joined: Sun Oct 22, 2006 10:01 pm
Location: Orange County, CA
Minecraft name: StevoTVR
Uplay name: StevoTVR
Contact:

Games Played

Ville Awards

StevoTVR’s avatar
Loading…

Re: Money was reset

Post by Stevo » Mon Feb 17, 2020 4:15 pm

It should be corrected now.

pravda
Villun
Villun
Posts: 48
Joined: Sun May 05, 2013 2:11 am

Ville Awards

Re: Money was reset

Post by pravda » Tue Feb 18, 2020 12:59 pm

cheers Stevo - thanks

pravda
Villun
Villun
Posts: 48
Joined: Sun May 05, 2013 2:11 am

Ville Awards

Re: Money was reset

Post by pravda » Wed Feb 26, 2020 11:29 am

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

Stevo
Everlasting Villun
Everlasting Villun
User avatar
Posts: 8753
Joined: Sun Oct 22, 2006 10:01 pm
Location: Orange County, CA
Minecraft name: StevoTVR
Uplay name: StevoTVR
Contact:

Games Played

Ville Awards

StevoTVR’s avatar
Loading…

Re: Money was reset

Post by Stevo » Wed Feb 26, 2020 12:14 pm

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

pravda
Villun
Villun
Posts: 48
Joined: Sun May 05, 2013 2:11 am

Ville Awards

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

Post by pravda » Thu Feb 27, 2020 3:37 pm

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

pravda
Villun
Villun
Posts: 48
Joined: Sun May 05, 2013 2:11 am

Ville Awards

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

Post by pravda » Fri Mar 06, 2020 1:42 pm

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

Stevo
Everlasting Villun
Everlasting Villun
User avatar
Posts: 8753
Joined: Sun Oct 22, 2006 10:01 pm
Location: Orange County, CA
Minecraft name: StevoTVR
Uplay name: StevoTVR
Contact:

Games Played

Ville Awards

StevoTVR’s avatar
Loading…

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

Post by Stevo » Fri Mar 06, 2020 2:24 pm

I set it back.

pravda
Villun
Villun
Posts: 48
Joined: Sun May 05, 2013 2:11 am

Ville Awards

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

Post by pravda » Sat Mar 07, 2020 1:01 pm

thank you Stevo ...

pravda
Villun
Villun
Posts: 48
Joined: Sun May 05, 2013 2:11 am

Ville Awards

Re: Money was reset ...

Post by pravda » Sat Mar 28, 2020 1:14 pm

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

Stevo
Everlasting Villun
Everlasting Villun
User avatar
Posts: 8753
Joined: Sun Oct 22, 2006 10:01 pm
Location: Orange County, CA
Minecraft name: StevoTVR
Uplay name: StevoTVR
Contact:

Games Played

Ville Awards

StevoTVR’s avatar
Loading…

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

Post by Stevo » Sat Mar 28, 2020 1:42 pm

I restored your money. :) It was reassigned to an invalid ID somehow.

pravda
Villun
Villun
Posts: 48
Joined: Sun May 05, 2013 2:11 am

Ville Awards

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

Post by pravda » Sun Mar 29, 2020 4:04 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests