Raised This Month: $51 Target: $400
 12% 

Map Decals


Post New Thread Reply   
 
Thread Tools Display Modes
Kameeleon
New Member
Join Date: Oct 2016
Old 10-05-2016 , 10:46   Re: Map Decals
Reply With Quote #591

Now it works correct, but my second issue is.... Black images, any ideas?



Added attachments. Thanks!
Attached Files
File Type: 7z test.7z (1.8 KB, 178 views)
Kameeleon is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-05-2016 , 10:55   Re: Map Decals
Reply With Quote #592

...yeah, need proper settings in pic vmt file.
Remember, if players dowload already faulty files, you can't replace those again. Either players need delete files from they computer or download files with new name.

When I have time, I could look what settings need to avoid black pics.
__________________
Do not Private Message @me
Bacardi is offline
mustafaneta
Junior Member
Join Date: Dec 2016
Old 12-08-2016 , 05:13   Re: Map Decals
Reply With Quote #593

Quote:
Originally Posted by berni View Post


We use Github: https://github.com/bcserv/map-decals
Code contributions are welcome! - How do I create a pull request on Github ?


Authors
  • Berni
  • Stingbyte
Config structure

map-decals.cfg: Add your decals here
maps/: Map specific configs for the decal positions

Commands

sm_paintdecal <decalname | decal_id>
- Paints a decal on the wall you are currently aiming at
Admin-Flag required: Custom3

sm_removedecal
<aim | all | id | name | last> - Currently not implemented, change map to reload the decals from the config file.
Admin-Flag required: Root

sm_savedecal
<aim | all | id | name | last> - Saves the decal position to the map specific config file.
Admin-Flag required: Root

sm_listdecal <aim | all | id | last | map | name | saved> - Lists decals
Admin-Flag required: Custom3

sm_aimpos - Shows current aim position
Admin-Flag required: Custom3

sm_decalmenu - Map Decals Menu for Admins
Admin-Flag required: Custom3


ConVars

md_decal_dista - max aiming distance where decal positions are recognized and check distance to prevent painting two decals on the same position
Default: 50.0

md_decal_printpos <0 | 1> - enables/disables printing out of decal positions
Default: 1

md_spraysound - Path to the spray sound that gets played when someone sprays a decal
Default: "player/sprayer.wav"


How do I add a new decal ?
  1. First upload the decal (.vmt and .vtf) to your server, decals should be uploaded to the materials/decals/custom/ directory, at least they should be in materials, otherwise it won't work. Edit your .vmt file with a text editor if neccesary, to change the path to the .vmt file.
  2. Add the path of the decal to the main config file decal.cfg. The path has to be put relative to the materials folder, and without the file extension.
  3. Start the server, Aim at a wall and use !paintdecal <decalname>
  4. Now you can save all panted decals in the map with !savedecals to the config ;)
Related Links

How to create a decal - Tutorial http://www.fpsbanana.com/tuts/6640
Valve Developer Community - Decals http://developer.valvesoftware.com/wiki/Decals

Todo
  • Find a way to remove decals on the server during the game
  • Mysql support ?
Changelog

23-8-2009 Version 1.1
  • Changed OnClientConnect with OnPostAdminCheck so players receive the decal later, should fix some issues
  • Changed the Filter Flag for the TraceRay to MASK_ALL (experimental)
  • Renamed all cvars to start with md_
  • Added version cvar md_version
  • Lots of code cleanup
17-5-2008 Version 1.02 (Stingbyte)

* Added reading decal filename (.vtf) from .vmt
* Fixed bug: SpraySound was added to DownloadsTable before DownloadsTable was ready

8-5-2008 Version 1.01
  • Fixed bug where trace handle got closed before it could get the trace entity
7-5-2008 Version 1.0

Thanks to Stingbyte (Stingbyte.com) for the work on this release.
  • Admin Levels by Defines (in map-decals.sp)
  • sm_paintdecal now supports name or id
  • sm_savedecals renamed to sm_savedecal (aim/all/id/name/last)
  • Implemented the command sm_removedecal (aim/all/id/name/last)
  • Added command sm_listdecal (aim/all/id/last/map/name/saved)
  • Added command sm_aimpos (Shows current aim position)
  • Added command sm_decalmenu (Map Decals Menu for Admins)
  • Added to AdminMenu (Server Commands)
  • Added Admin Logging via LogAction
  • CVAR: sm_decal_dista (max aiming distance where decal positions are recognized and check distance to prevent painting two decals on the same position (default: 50.0))
  • CVAR: sm_decal_printpos (enables/disables printing out of decal positions (1/0, default: 1))
  • CVAR: sm_spraysound - Path to the spray sound that gets played when someone sprays a decal
  • MultiLanguage Support (included: english, german)
  • Enhanced the whole plugin (no more compilation warnings, used hl2 built-in sprayer.wav)
Default admin levels (defined in code)

Admin Level Defines: Level for Allowing Temp.Spray/Temp.Remove of Decals and Level for Saving Decals/getting aim position

#define ADMIN_LEVEL_SPRAY ADMFLAG_CUSTOM3
#define ADMIN_LEVEL_SAVE ADMFLAG_ROOT

5-4-2008 Version 0.9
  • Initial release
Tested Games
  • Half Life 2: Deathmatch
  • Counter-Strike: Source
  • Team Fortress 2
Screenshot




Known Bugs/Limitations


After a Decal was removed, it still appears for players already connected. After a reconnect or a mapchange (if Decal Positions where saved) changes are visible (HL2 Limitation?)


admin flag "z" how configrations ?
mustafaneta is offline
mustafaneta
Junior Member
Join Date: Dec 2016
Old 12-10-2016 , 13:44   Re: Map Decals
Reply With Quote #594

Quote:
Originally Posted by mustafaneta View Post
admin flag "z" how configrations ?


HELP MEE ALL TİME
Downloading http://xxxxxxxx.com/csgo//sound/player/sprayer.wav.bz2.
Error downloading http://xxxxxxx/csgo//sound/player/sprayer.wav.bz2
Downloading http://xxxxxxxxxx/csgo//sound/player/sprayer.wav.
Error downloading http://xxxxxxxxx/csgo//sound/player/sprayer.wav

what is problem ?

decalpoint work
but spray console error
mustafaneta is offline
sinsic
Senior Member
Join Date: May 2012
Old 12-10-2016 , 18:09   Re: Map Decals
Reply With Quote #595

Apparently after sprays were introduced to CS:GO a while ago they deleted the previous spray sound which was located in vpk at
csgo/sound/player/sprayer.wav
and put new sounds
csgo/sound/items/spraycan_shake.wav
csgo/sound/items/spraycan_spray.wav

since it cant find sprayer.wav it tries to download it from sv and since it cant find it there either you keep getting the errors mentioned on the previous post.
Do you think changing md_spraysound to "items/spraycan_spray.wav" will fix this?
__________________

Last edited by sinsic; 12-10-2016 at 18:12.
sinsic is offline
root88
Senior Member
Join Date: May 2016
Old 12-11-2016 , 12:51   Re: Map Decals
Reply With Quote #596

Quote:
Originally Posted by sinsic View Post
Apparently after sprays were introduced to CS:GO a while ago they deleted the previous spray sound which was located in vpk at
csgo/sound/player/sprayer.wav
and put new sounds
csgo/sound/items/spraycan_shake.wav
csgo/sound/items/spraycan_spray.wav

since it cant find sprayer.wav it tries to download it from sv and since it cant find it there either you keep getting the errors mentioned on the previous post.
Do you think changing md_spraysound to "items/spraycan_spray.wav" will fix this?
Easiest fix: create emtpy file sprayer.wav and upload it on server/fastdl.
__________________
root88 is offline
sinsic
Senior Member
Join Date: May 2012
Old 12-11-2016 , 15:51   Re: Map Decals
Reply With Quote #597

Quote:
Originally Posted by root88 View Post
Easiest fix: create emtpy file sprayer.wav and upload it on server/fastdl.
I just tested fix for the sound problem:
write
md_decal_spraysound "items/spraycan_spray.wav"
in server.cfg, this fixes it.
He apparently also wrote wrong info at first page it is md_decal_spraysound, not md_spraysound.


Uploading the original spray file is also an option but the problem is most server hosts doesn't let you upload anything to fastdl anymore. They make a central map pool for every client they have and give them the same link for fastdl. You can request adding maps but they generally dont let you upload anything else.
__________________

Last edited by sinsic; 12-11-2016 at 23:56.
sinsic is offline
bgt2016
New Member
Join Date: Apr 2017
Old 04-07-2017 , 11:45   Re: Map Decals
Reply With Quote #598

I'm having this on console:

Code:
L 04/07/2017 - 15:31:44: [map-decals.smx] CFG File for Map de_train not found
PutClientInServer: no info_player_start on level
And the client stops on "Initializing World" downloading my .vtf file. It keeps downloading it until infinite%. Now is on "3369% from 32.51KB".

http://imgur.com/V67vWWo

My files:
decals.cfg: https://pastebin.com/9x2Q8pAq
logo_1.vmt: https://pastebin.com/WgZp8qra

What I'm doing wrong?
bgt2016 is offline
Werewolf_UK
AlliedModders Donor
Join Date: Oct 2010
Location: United Kingdom
Old 04-22-2017 , 10:52   Re: Map Decals
Reply With Quote #599

I'm having trouble getting this plugin to save decals to the file. The only way I can get it to work is to make a note of where a decal has been placed, then manually add the decal to the file.

In other words, the sm_savedecal command does not work and does nothing for me.
__________________
Werewolf_UK is offline
ocidius
Senior Member
Join Date: Oct 2014
Old 06-19-2017 , 12:36   Re: Map Decals
Reply With Quote #600

did somebody update the plugin ?
ocidius 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 19:02.


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