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

World Decals (Map Adverts)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Old 11-30-2006 , 16:31   World Decals (Map Adverts)
Reply With Quote #1

This plugin allows you to place your decals to specific positions on a map. (like Mani's map adverts)

ConCommands:
decal_pos - Prints the coordinates of the position you are looking at to the console

I only tested it with CS:S... But it should work with other mods

Code:
Version 1.1

 - Now the decals cache will be delete on map start
Latest Version: 1.1 (11 December 2006)

Download Binaries
Download Sourcecode

Last edited by Knagg0; 12-11-2006 at 09:10.
Knagg0 is offline
peagle
Member
Join Date: May 2004
Location: Chicago, IL
Old 11-30-2006 , 19:49   Re: World Decals (Map Adverts)
Reply With Quote #2

Awesome, as a Beetlesmod user, I've always wanted this
__________________
"Time is the fire in which we burn" - Delmore Schwartz
peagle is offline
Send a message via MSN to peagle
wiciu
Junior Member
Join Date: Dec 2004
Location: Poznań, Poland
Old 12-02-2006 , 17:09   Re: World Decals (Map Adverts)
Reply With Quote #3

Great Job !!!
Big thanks for your job Knagg0 !!!
wiciu is offline
Send a message via ICQ to wiciu
Rom1
Junior Member
Join Date: Dec 2006
Old 12-04-2006 , 18:05   Re: World Decals (Map Adverts)
Reply With Quote #4

It seems that it doesn't work for DoD:S.

Does someone had any success with this plugin and DoD:S (mani decal doesn't work neither) ?
Rom1 is offline
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Old 12-04-2006 , 18:43   Re: World Decals (Map Adverts)
Reply With Quote #5

It works without any problem with DoD:S.
I tested it on a linux and windows server...



When you download a decal from the server,
then you have to reconnect to see this decal.
I guess it's a bug in the source engine.
Knagg0 is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 12-04-2006 , 20:36   Re: World Decals (Map Adverts)
Reply With Quote #6

The advertising plugin that made all the news about having Subway ads on a CSS server had that same issue. If you hadn't downloaded the material before it won't show up until you reconnect (or maybe change maps).
L. Duke is offline
peagle
Member
Join Date: May 2004
Location: Chicago, IL
Old 12-04-2006 , 21:12   Re: World Decals (Map Adverts)
Reply With Quote #7

Plugin is working fine (meta list) but decals don't seem to be downloading for me. (Have tested after reconnecting twice and switching maps).

Also, where should the test one (my_logo.vtf) you created in de_dust be appearing?
__________________
"Time is the fire in which we burn" - Delmore Schwartz

Last edited by peagle; 12-04-2006 at 21:24.
peagle is offline
Send a message via MSN to peagle
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Old 12-05-2006 , 00:08   Re: World Decals (Map Adverts)
Reply With Quote #8

Quote:
Originally Posted by peagle
Plugin is working fine (meta list) but decals don't seem to be downloading for me. (Have tested after reconnecting twice and switching maps).
Make sure that "cl_allowdownload" is set to "1" (def. value "1") in your client config.

Quote:
Originally Posted by peagle
Also, where should the test one (my_logo.vtf) you created in de_dust be appearing?
Knagg0 is offline
peagle
Member
Join Date: May 2004
Location: Chicago, IL
Old 12-05-2006 , 00:45   Re: World Decals (Map Adverts)
Reply With Quote #9

Quote:
Originally Posted by Knagg0 View Post
Make sure that "cl_allowdownload" is set to "1" (def. value "1") in your client config.
Thanks it is, we have a few custom sounds etc on the server, which seem to be working ok. For reference we use sv_downloadurl for faster downloads, and I mirrored the files there too.

If it helps:

Windows Server
Beetlesmod 1.0.1.64
Metamod 1.3d
- DeadVox
- FakeClients
- World Decals

Everything seems to be working, just the decals aren't downloading to clients.

Out of interest, how come the "my_logo" line in your config doesn't have "materials" in the path?

"de_dust.txt"
{
"my_logo" "decals/custom/my_logo"

"downloads"
{
"my_logo.vmt" "materials/decals/custom/my_logo.vmt"
"my_logo.vtf" "materials/decals/custom/my_logo.vtf"
}

"decals"
{
"my_logo" "-275.658844 -1280.031250 165.761124"
"my_logo" "1024.031250 3255.948975 -15.806966"
}
}
__________________
"Time is the fire in which we burn" - Delmore Schwartz
peagle is offline
Send a message via MSN to peagle
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Old 12-05-2006 , 01:39   Re: World Decals (Map Adverts)
Reply With Quote #10

Quote:
Originally Posted by peagle
Out of interest, how come the "my_logo" line in your config doesn't have "materials" in the path?
Because the PrecacheDecal function starts in the materials dir

Is there any output on the server console?
Are the files on the server and webserver in the same/correct dir?

Did you test it with an other map?
Try this: addons/decal/de_dust2.txt

Code:
"de_dust2.txt"
{
	"my_logo"		"decals/custom/my_logo"

	"downloads"
	{
		"my_logo.vmt"	"materials/decals/custom/my_logo.vmt"
		"my_logo.vtf"	"materials/decals/custom/my_logo.vtf"
	}

	"decals"
	{
		"my_logo"	"-698.845703 -640.031250 224.579346"
		"my_logo"	"296.424500 2048.031250 -36.423077"
	}
}
The map files will only load on map start.
You have to change the map, when you edited it.

Last edited by Knagg0; 12-05-2006 at 01:43.
Knagg0 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 10:20.


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