AlliedModders
XFactor Servers

Map Decals


Post New Thread Reply   
 
Thread Tools Display Modes
pantho
Junior Member
Karma: Neutral
Old 11-08-2009 , 21:50   Re: Map Decals
Reply With Quote #251

I recently switched over from manimod, but having some issues getting this one to work properly
filename: /cstrike/addons/sourcemod/configs/map-decals/maps/surf_10x_final.cfg
Code:
"Positions"
{
	"ban2"
	{
		"pos1"		"4771.74316 9218.36914 -3986.99609"
		"pos2"		"4928.05273 -350.87534 119.32183"
		"pos3"		"4908.32373 1061.28638 51.46281"
	}
}
filename: /cstrike/addons/sourcemod/configs/map-decals/decal.cfg
Code:
"Decals"
{
	"ban1"
	{

		"path"	"decals/custom/ban2"

	}

}
I can spray my banner ingame where I want to, but cannot set them to spawn on map load.

Anything I've missed?
-edit

tried to make it generate the files using the ingame "Save" on the menu

Code:
[SM] Saving last painted Decal to File nd...
[SM] Saved last painted Decal Position (Name = ban1).
[SM] Decal Position: 4900.160644, -356.783447, 58.827301
Yet no files where saved, specifically none called nd

Last edited by pantho; 11-08-2009 at 21:53..
pantho is offline
Mister_Magotchi
Junior Member
Karma: Neutral
Old 11-09-2009 , 00:16   Re: Map Decals
Reply With Quote #252

I'm having the same kind of issues. When I run the pre-compiled version, I get "[SM] Saving Decals to File  not found: ". When I compile from source, it says it's saving to some random filename (usually with weird foreign unicode characters), and that file shows up in /cstrike/ (the wrong place), but with no points inside it, just the word Positions in quotes and the empty set of braces following it.
Mister_Magotchi is offline
pantho
Junior Member
Karma: Neutral
Old 11-09-2009 , 09:20   Re: Map Decals
Reply With Quote #253

Code:
"Positions"
{
	"ban1"
	{
		"pos1"		"4846.214844 -355.160889 71.348068"
		"pos2"		"4648.052734 1064.924683 100.345230"
		"pos3"		"4703.161133 9218.369141 -3964.473877"
		"pos4"		"5031.280273 414.031250 115.263672"
		"pos5"		"4829.978516 422.031250 121.812347"
		"pos6"		"4900.160645 -356.783447 58.827301"
	}
}
your right file: nd

had that insit it, but was at cstrike/
pantho is offline
Mister_Magotchi
Junior Member
Karma: Neutral
Old 11-11-2009 , 05:47   Re: Map Decals
Reply With Quote #254

Here is a version that works as far as I can tell, although I haven't tested it extensively. I have gotten it to spray decals, save all decals to file, and then have the decals show up on map change.

All I did was replace most instances of "file" in the FileToKeyValues and KeyValuesToFile functions with "path_mapdecals". I don't know if this is the appropriate way to do it or not, but with my limited SourcePawn knowledge, it didn't seem to me like the "file" string was ever taking the value of "path_mapdecals", so I decided to pass it directly to those functions.

Additionally, I have converted over all of the stock CS map decal positions from Mani Admin Plugin's list of position coordinates. You can just extract the ZIP to "configs/map-decals/maps" and you'll already have at least a few decently placed coordinates on every stock map that will fit a 256x128 decal at a "decalscale" of 0.5 (in the .vmt file). The spots may fit more, but I used that size simply because that's how big Mani's example was that went with those coordinates.
Attached Files
File Type: sp Get Plugin or Get Source (map-decals.sp - 10 views - 50.4 KB)
File Type: zip mani-decal-positions.zip (3.5 KB, 6 views)

Last edited by Mister_Magotchi; 11-11-2009 at 06:03..
Mister_Magotchi is offline
dyuha
Junior Member
Karma: Neutral
Old 11-15-2009 , 06:22   Re: Map Decals
Reply With Quote #255

How can I create animated decal using this plugin?
dyuha is offline
Mister_Magotchi
Junior Member
Karma: Neutral
Old 11-15-2009 , 07:15   Re: Map Decals
Reply With Quote #256

There are other tutorials on the web for creating animated VTF images, but it's outside the scope of what this plugin does. Once you have an animated VTF, I imagine it'd be no problem getting it to work with this plugin, but this plugin doesn't actually create the decals.
Mister_Magotchi is offline
dyuha
Junior Member
Karma: Neutral
Old 11-15-2009 , 19:20   Re: Map Decals
Reply With Quote #257

I have vtf it's working (animated) as spray but it is not animated decal if I use this plugin
dyuha is offline
Reply


Thread Tools
Display Modes

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 22:03.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Theme made by Freecode Sponsored by Layered Technologies