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

Map Decals


Post New Thread Reply   
 
Thread Tools Display Modes
FishDude
Member
Join Date: Jul 2014
Old 11-14-2014 , 15:07   Re: Map Decals
Reply With Quote #541

Well, Halloween ended with all its stirs, cheats and farms. Now is the time to do useful things for community.

Here slightly fixed code for delay-show-decals (ClassicGuzzi - thanks!), and, now seems it finaly works!

PHP Code:
public OnClientPostAdminCheck(client) {
    
CreateTimer(45.0timerSprayDecalGetClientUserId(client));
}

public 
Action:timerSprayDecal(Handle:timerany:userID) { 

    
// Show him what we have
    
decl Float:position[3];
    
decl idprecache;
    
    new 
client GetClientOfUserId(userID);
    
    if (
client || client MaxClients || !IsClientInGame(client))
        return;
    
    new 
size GetArraySize(adt_decal_id);
    for (new 
i=0i<size; ++i
    {
        
id GetArrayCell(adt_decal_idi);
        
precache GetArrayCell(adt_decal_precacheid);
        
GetArrayArray(adt_decal_positioni_:position);
        
TE_SetupBSPDecal(position0precache);
        
TE_SendToClient(client); 
        
//TE_SendToAll();
    
}

But! Here is 45 seconds delay (sic!). Therefore, this solution is valid only temporary...

My experiments show that our problem (no decals, but after 'retry' all ok), this problem appear primarily on old computers with slow hard drives and the lack of RAM. For example for one of my computers (cel-2.66/1.25gb ram/40 gb hdd) delay=30 sec was insufficient, only with delay > 40 sec decals appears in ~ 10 secs after MOTD. On the other hand, on a fast computer, player must wait almost a minute until the decals will appear, and it's bad, of course.

This difference in time suggests that time point of execution display-decals-procedure chosen incorrectly. This means that we are trying to to force client display a decal, but he for some reason is not yet ready to do it. In my opinion, the best time to "display" decals - the appearance of MOTD on clients. Or, in slightly worst case, time when player selects team in first time. However, my knowledge is not enough to bind "show decals" for this moment. Can anyone help with this problem?

Last edited by FishDude; 11-16-2014 at 11:50. Reason: added request for help
FishDude is offline
Koshyy
Junior Member
Join Date: Dec 2013
Old 11-15-2014 , 21:44   Re: Map Decals
Reply With Quote #542

Quote:
Downloading http://wowmod.us/Game_Server_Downloa...12x512.vmt.bz2.
Download finished!
Skipping existing file http://wowmod.us/Game_Server_Downloa...orn512x512.vmt.
Downloading http://wowmod.us/Game_Server_Downloa...12x512.vtf.bz2.
Error downloading http://wowmod.us/Game_Server_Downloa...12x512.vtf.bz2
Downloading http://wowmod.us/Game_Server_Downloa...orn512x512.vtf.
Error downloading http://wowmod.us/Game_Server_Downloa...orn512x512.vtf
Koshy - WC:GO NOW PUBLIC!! connected.
Net channel ratelimit exceeded for 108.61.143.66:27060: 115 packets rejected.
Why am I getting this? It refuses to download the .vtf, but it's in the fastDL just like the other and it downloads fine...
Koshyy is offline
FishDude
Member
Join Date: Jul 2014
Old 11-16-2014 , 10:42   Re: Map Decals
Reply With Quote #543

Quote:
Originally Posted by Koshyy View Post
Why am I getting this? It refuses to download the .vtf, but it's in the fastDL just like the other and it downloads fine...
Just click on your links, some of them are wrong.
Code:
Your wrong link:
http://wowmod.us/Game_Server_Downloads/WC_CSGO/csgo//materials/decals/custom/example/TSGKCorn512x512.vtf.bz2

Correct link to picture of Great Cornholio:™
http://wowmod.us/Game_Server_Downloads/WC_CSGO/csgo//materials/decals/custom/example/tsgkcorn512x512.vtf.bz2
p.s. i love lowercase too

Last edited by FishDude; 11-16-2014 at 11:55. Reason: :3
FishDude is offline
Sigara
Member
Join Date: Apr 2014
Old 11-17-2014 , 00:10   Re: Map Decals
Reply With Quote #544

Would I be able to use this to paint a room pink?
__________________
Sigara is offline
FishDude
Member
Join Date: Jul 2014
Old 11-17-2014 , 08:27   Re: Map Decals
Reply With Quote #545

Pink:
1. Room before
2. Trying painting. Not so good. Dirty. Holes, etc.
3. Really saved by plugin... only roses, not all of roses. ((
In short, if room have simple geometry, you can make vmt with large texture and cover the entire ceiling or floor with one spray. In this case, plugin will likely work. But in case of many small spray - no guarantees.
Attached Images
File Type: jpg before.jpg (76.7 KB, 421 views)
File Type: jpg trying.jpg (91.4 KB, 381 views)
File Type: jpg after.jpg (90.9 KB, 409 views)
Attached Files
File Type: 7z pink_test_materials.7z (101.4 KB, 91 views)

Last edited by FishDude; 11-17-2014 at 08:41.
FishDude is offline
Sigara
Member
Join Date: Apr 2014
Old 11-17-2014 , 19:39   Re: Map Decals
Reply With Quote #546

Quote:
Originally Posted by FishDude View Post
Pink:
1. Room before
2. Trying painting. Not so good. Dirty. Holes, etc.
3. Really saved by plugin... only roses, not all of roses. ((
In short, if room have simple geometry, you can make vmt with large texture and cover the entire ceiling or floor with one spray. In this case, plugin will likely work. But in case of many small spray - no guarantees.
Thanks,I find this very useful as a person who likes decoration on maps even if its not needed.
Is there no limit on the size of the textures and do animated ones work?
__________________

Last edited by Sigara; 11-17-2014 at 20:45.
Sigara is offline
TimoGrytz87
Junior Member
Join Date: Oct 2012
Old 11-25-2014 , 07:59   Re: Map Decals
Reply With Quote #547

saving did not work if u use CS:GO Workshop Collections.

mapname is "kz_quadrablock.bsp"
map folder is: maps/workshop/156068013/kz_quadrablock.bsp

decal config must be: sourcmod/configs/map-decals/maps/workshop/156068013/kz_quadrablock.cfg

anyone can help here? the plugin must create folders and the cfg
TimoGrytz87 is offline
TimoGrytz87
Junior Member
Join Date: Oct 2012
Old 11-25-2014 , 13:02   Re: Map Decals
Reply With Quote #548

Can we integrate this?

https://forums.alliedmods.net/showth...light=workshop
TimoGrytz87 is offline
FishDude
Member
Join Date: Jul 2014
Old 12-05-2014 , 23:06   Re: Map Decals
Reply With Quote #549

(1)
Quote:
Originally Posted by TimoGrytz87 View Post
saving did not work if u use (blablabla)
Saving does not work now nowhere. I have already written about this sad fact, but nobody cares. I fill .cfg files manually.

(2) The surprising fact, there are some limits on the number of decals. For example, I have not place more than 62 decals (but if you aim at the 'extra' invisible decal, sm_listdecal argues that it is there).

Last edited by FishDude; 12-05-2014 at 23:08.
FishDude is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 12-06-2014 , 09:33   Re: Map Decals
Reply With Quote #550

Make sure yall are using the version discussed a few times in this thread that does work.

Edit: here I've searched for it yet again for everyone
https://forums.alliedmods.net/showpost.php?p=986520

Last edited by Horsedick; 12-06-2014 at 09:34.
Horsedick 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 12:19.


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