Raised This Month: $32 Target: $400
 8% 

Check IsMapValid() for client


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-14-2018 , 04:49   Check IsMapValid() for client
Reply With Quote #1

Hi,

is it possible to check if client has some (custom) map name installed?

Thanks.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 04-14-2018 at 04:51.
Dragokas is offline
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Old 04-14-2018 , 11:59   Re: Check IsMapValid() for client
Reply With Quote #2

Why doesn't IsMapValid(const char[] map) work for you?

What do you mean about "custom" map name
Addicted. is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-14-2018 , 12:07   Re: Check IsMapValid() for client
Reply With Quote #3

Because IsMapValid intended for server side. I need client side checking.

Quote:
What do you mean about "custom" map name
Any non-default map (.vpk in "addons" folder).
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 04-14-2018 , 15:13   Re: Check IsMapValid() for client
Reply With Quote #4

Maybe using this https://forums.alliedmods.net/showthread.php?t=233549
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Old 04-14-2018 , 15:52   Re: Check IsMapValid() for client
Reply With Quote #5

Quote:
Originally Posted by Dragokas View Post
Because IsMapValid intended for server side. I need client side checking.



Any non-default map (.vpk in "addons" folder).
Yes I was confused with your question
Addicted. is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-14-2018 , 21:46   Re: Check IsMapValid() for client
Reply With Quote #6

Franc1sco, thank you, but I think it is not applicable, because:

Quote:
Originally Posted by dordnung
No, config and other stuff isn't downloadable, only things that are also with the string table "downloadables" downloadable
This is a public build in valve Function, so no fear
and ./addons/*.vpk is not downloadable (since I need L4D support, maps for L4D is VPK only).
Also, some users rename VPK files, so such check is a little bit not reliable. Considering issue of the author with callbacks, it is even more not reliable way.

However, I'll definitely use it in another (download precacher) project.

offtopic.
Addicted., not sure, maybe bad english? It's bacause I wrote "map name", not a map?
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 04-15-2018 at 02:39.
Dragokas is offline
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 04-15-2018 , 05:40   Re: Check IsMapValid() for client
Reply With Quote #7

Won't sv_pure work here? Or it won't check .vpk's.
__________________
PinHeaDi is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-15-2018 , 06:12   Re: Check IsMapValid() for client
Reply With Quote #8

Quote:
Originally Posted by PinHeaDi
Won't sv_pure work here? Or it won't check .vpk's.
???

Don't see any relationship with my topic.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 04-15-2018 at 06:12.
Dragokas is offline
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 04-15-2018 , 06:24   Re: Check IsMapValid() for client
Reply With Quote #9

Never mind than, I thought you waned to check if the current installed map of the client is different than the server's one.
__________________
PinHeaDi is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-15-2018 , 06:36   Re: Check IsMapValid() for client
Reply With Quote #10

I want to improve my Map Changer plugin to be able to see in advance if all clients has a map before trying to change/vote for the map.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode