WilliamVenner / gmsv_workshop

📩 steamworks.DownloadUGC for the server!
https://wiki.facepunch.com/gmod/steamworks.DownloadUGC
MIT License
52 stars 3 forks source link

"children" table is missing #9

Open wgetJane opened 6 months ago

wgetJane commented 6 months ago

gmsv_workshop's steamworks.FileInfo:

> steamworks.FileInfo("2790156152", PrintTable)...
["banned"] = false
["created"] = 1649224425
["description"] = maps and addons for Ebic Sad Bunch Trouble in Terrorist Town gaming NO traitor testers NO traitor traps NO traitor rooms NO rooftops
["fileid"] = 1163871240
["id"] = -1504811144
["owner"] = 76561198971705338
["previewid"] = 1163871240
["previewsize"] = 90788
["previewurl"] =
["size"] = 90788
["tags"] = Addon,map,Water,ServerContent
["title"] = ESB TTT with unvivianed maps
["updated"] = 1713150673

gmod's steamworks.FileInfo:

] lua_run_cl steamworks.FileInfo("2790156152", PrintTable)
["banned"]  =   false
["children"]:
        [1] =   144558171
        [2] =   145316417
        [3] =   164942659
        [4] =   345337612
        [5] =   376339464
        [6] =   488752776
        [7] =   749663718
        [8] =   1487034470
        [9] =   1689087439
        [10]    =   1812199726
        [11]    =   2061892544
        [12]    =   2113659666
        [13]    =   2118005648
        [14]    =   2135391207
        [15]    =   2164543724
        [16]    =   2236205715
        [17]    =   2490337290
        [18]    =   2641644585
        [19]    =   2663174649
        [20]    =   2800046545
        [21]    =   2805912359
        [22]    =   2827122235
        [23]    =   2834281993
        [24]    =   2839995999
        [25]    =   2874459172
        [26]    =   2891516928
        [27]    =   2933786916
        [28]    =   2978165673
        [29]    =   2985119847
        [30]    =   3102516841
        [31]    =   3113549638
        [32]    =   3154491867
        [33]    =   3168032450
        [34]    =   3168373982
        [35]    =   3172068448
        [36]    =   3183036324
        [37]    =   3183325859
        [38]    =   3186809218
        [39]    =   3212401502
        [40]    =   3212650319
        [41]    =   3213740675
        [42]    =   3067873912
        [43]    =   2374743075
        [44]    =   551416188
["created"] =   1649224448
["description"] =   maps and addons for Ebic Sad Bunch Trouble in Terrorist Town gaming NO traitor testers NO traitor traps NO traitor rooms NO rooftops
["disabled"]    =   false
["down"]    =   0
["fileid"]  =   1844795141783503880
["id"]  =   2790156152
["installed"]   =   false
["owner"]   =   76561198971705338
["ownername"]   =   wget
["previewid"]   =   1844795141783503880
["previewsize"] =   90788
["previewurl"]  =   https://steamuserimages-a.akamaihd.net/ugc/1844795141783503880/812AA84F48735762E0596CBEEDE3C6207086D9C5/
["score"]   =   0.53271025419235
["size"]    =   90788
["tags"]    =   Addon,map,Water,ServerContent
["title"]   =   ESB TTT with unvivianed maps
["total"]   =   7
["up"]  =   7
["updated"] =   1713150720
["visibility"]  =   0

srcds and gmsv_workshop version:

version
Protocol version 24
Exe version 2023.06.28 (garrysmod)
Exe build: 19:02:32 Mar 21 2024 (9246) (4000)
GMod version 2024.03.21, branch: unknown
Linux 32bit Dedicated Server
lua_run print(steamworks.gmsv_workshop)
> print(steamworks.gmsv_workshop)...
2.2.7
klen-list commented 2 weeks ago

Same problem, the children field is an important part of the FileInfo function, it is strange that it is not filled with get_children, considering that .include_children(true) is used in the query. I also note that the id field sometimes has an overflowed value due to using push_integer instead of push_number. @WilliamVenner