martipartydev / Cs2-ReservedSlots

This is a lua script for CS2 for ReservedSlots
10 stars 0 forks source link

KeyValues Error: RecursiveLoadFromBuffer: got } #4

Open crywolfy opened 1 year ago

crywolfy commented 1 year ago

L 11/13/2023 - 12:08:18: server_cvar: "sv_cheats" "true" Resserved slots! KeyValues Error: RecursiveLoadFromBuffer: got } in key in file scripts/configs/reserved.ini Reserved, Script failed to LoadKeyValues scripts/configs/reserved.ini list start Couldn't load config file (scripts/configs/reserved.ini). Adverts script wasn't started.

reserved.ini "Reserved" { "[U:1:25601320]" }

What is wrong ? also will like to know how to add multiple steamid3 users

A lot of info is missing

crashzk commented 12 months ago

Try it like this:

"Reserved"
{
    "U:1:128024857"
    "U:1:128024857"
    "U:1:128024857"
}

If you get an error, try this:

"Reserved"
{
    "U:1:128024857",
    "U:1:128024857",
    "U:1:128024857"
}
martipartydev commented 12 months ago

You need to have space before the line with the steam id's also you can try experimenting with ", "

crywolfy commented 12 months ago

L 11/21/2023 - 16:00:39: server_cvar: "sv_cheats" "true" Resserved slots! KeyValues Error: RecursiveLoadFromBuffer: got } in key in file scripts/configs/reserved.ini Reserved, Script failed to LoadKeyValues scripts/configs/reserved.ini list start Couldn't load config file (scripts/configs/reserved.ini). Adverts script wasn't started.

Triyed "Reserved" {

"[U:1:25601320]"

} triyed "Reserved" {

"[U:1:25601320],"
"",
""

} With and without , , same error

Solved, if i have for slots mentioned in lua, the .ini needs to have also four lines ex: "Reserved" {

"[U:1:25601320]"

"",

"",

""

}

martipartydev commented 12 months ago

try without [] example : "U:1:25601320"

martipartydev commented 12 months ago

tell me if this work

martipartydev commented 12 months ago

i dont plant on updating the plugin i am working with another guy on more interesting system that includes reserved slots - https://github.com/justMemou/cs2-admin