xedom 0 Report post Posted March 29, 2018 I need help with Help with getServerList(). https://github.com/DoctorMcKay/node-steam-user#getserverlistfilter-limit-callback Someone can help me, with a exemples? Thanks? Quote Share this post Link to post Share on other sites
McMuffinDK 4 Report post Posted March 29, 2018 (edited) client.getServerList(NULL, 100, (servers) => { console.log(servers); }) You can find information about filters here: https://developer.valvesoftware.com/wiki/Master_Server_Query_Protocol#Filter Edited March 29, 2018 by McMuffinDK 1 xedom reacted to this Quote Share this post Link to post Share on other sites
xedom 0 Report post Posted March 29, 2018 client.getServerList(NULL, 100, (servers) => { console.log(servers); }) You can find information about filters here: https://developer.valvesoftware.com/wiki/Master_Server_Query_Protocol#Filter ok, but now i have this error --> http://prntscr.com/iy52v0 [nodemon] starting `node steamBot.js` E:\dev\nodejs\less_three\steamBot001\steamBot.js:119 client.getServerList(NULL, 100, (servers) => { ^ ReferenceError: NULL is not defined at Object.<anonymous> (E:\dev\nodejs\less_three\steamBot001\steamBot.js:119:22) at Module._compile (module.js:649:30) at Object.Module._extensions..js (module.js:660:10) at Module.load (module.js:561:32) at tryModuleLoad (module.js:501:12) at Function.Module._load (module.js:493:3) at Function.Module.runMain (module.js:690:10) at startup (bootstrap_node.js:194:16) at bootstrap_node.js:666:3 [nodemon] app crashed - waiting for file changes before starting... Quote Share this post Link to post Share on other sites
McMuffinDK 4 Report post Posted March 29, 2018 Sorry, my bad.. NULL must be null 1 xedom reacted to this Quote Share this post Link to post Share on other sites
xedom 0 Report post Posted March 29, 2018 Sorry, my bad.. NULL must be nullok, now i have no error, but i don't get server list -> http://prntscr.com/iy69sr Quote Share this post Link to post Share on other sites
McMuffinDK 4 Report post Posted March 29, 2018 Try to add setTimeout with a few sec and see if it helps, might be called too early 1 xedom reacted to this Quote Share this post Link to post Share on other sites
xedom 0 Report post Posted March 29, 2018 (edited) Try to add setTimeout with a few sec and see if it helps, might be called too earlynice, now it work thank you i made so:setTimeout(() => { client.getServerList(null, 100, (servers) => { console.log(servers); }); },5000); Edited March 29, 2018 by xedom Quote Share this post Link to post Share on other sites
xedom 0 Report post Posted March 29, 2018 to search csgo server i should make so : client.getServerList("\appid\740", 20000, (servers) => { ? Quote Share this post Link to post Share on other sites
McMuffinDK 4 Report post Posted March 29, 2018 to search csgo server i should make so : client.getServerList("\appid\740", 20000, (servers) => { ?Yes, i would say so. Notice that the max limit is 5000 1 xedom reacted to this Quote Share this post Link to post Share on other sites
xedom 0 Report post Posted March 29, 2018 (edited) Yes, i would say so. Notice that the max limit is 5000i made with 10 server, but it return []http://prntscr.com/iy8l8e Edited March 29, 2018 by xedom Quote Share this post Link to post Share on other sites
Dr. McKay 278 Report post Posted March 29, 2018 You need to escape your backslashes (\\ instead of \). Also CS:GO's appid is 730, not 740 (use the game appid, not the server appid). 1 xedom reacted to this Quote Share this post Link to post Share on other sites
xedom 0 Report post Posted March 29, 2018 You need to escape your backslashes (\\ instead of \). Also CS:GO's appid is 730, not 740 (use the game appid, not the server appid).ok, thank you now it work Quote Share this post Link to post Share on other sites