eItems icon indicating copy to clipboard operation
eItems copied to clipboard

Ways to download sprays.

Open z1ntex opened this issue 3 years ago • 8 comments

Сan not pump itself picture spray (.vtf), if the text (.vmt) you can specify the path to the picture which is in the game (in the archive .vpk),

In parse.sp the line Format(szMaterialPath, sizeof(szMaterialPath), "decals/eitems/sprays/%s", szMaterialPath);

replace it with

Format(szMaterialPath, sizeof(szMaterialPath), "decals/sprays/%s", szMaterialPath) Архив WinRAR.zip

z1ntex avatar Dec 01 '21 18:12 z1ntex

Hello,

will update this in future version. I planned this some time ago, but Im hella busy at this moment.

ESK0 avatar Dec 02 '21 10:12 ESK0

@ESK0, as the sprays download system will change to use directly from the game, .vpk I believe this will change automatically in the future, but I'll leave it registered here.

I noticed that the configuration of the .vmt of eItems sprays, their size is bigger than the official sprays, there is a print showing both.

image

In this case it would be possible in future updates to leave the size the same, so I noticed that everyone's decalscale is the same.

LightmappedGeneric
{
	"$basetexture"    "csgoitemsv2\sprays\krakow2017\pgl_graffiti"
	"$translucent"    "1"
	"$decal"    "1"
	"$decalscale"    "0.125"
}

I believe "$decalscale" "0.12" would be good for everyone, I haven't tested it in this case.

crashzk avatar Dec 11 '21 18:12 crashzk

I did a test with this same spray, changed it to the following configuration:

LightmappedGeneric
{
	"$basetexture"    "csgoitemsv2\sprays\krakow2017\pgl_graffiti"
	"$translucent"    "1"
	"$decal"    "1"
	"$decalscale"    "0.09"
}

It's perfect with this "$decalscale" "0.09", it's the same size. I'm just going to apply this change to all sprays and test it too.

[EDIT] I tested this decalscale change on all sprays, it was perfect.

crashzk avatar Dec 11 '21 18:12 crashzk

Hi,

thanks for testing.. the original texture is so huge.. and 0.125 was the best looking for me. Unfortunately I didnt have any spray to compare.

ESK0 avatar Dec 12 '21 20:12 ESK0

@ESK0 it worked now

hanicsgo avatar Jan 15 '22 09:01 hanicsgo

Any news on the change in spray download format? Just change the line mentioned above: https://github.com/ESK0/eItems/blob/9b94d135e6fc96a56ec7b71ece4ba90f7c933680/scripting/files/parse.sp#L864

For:

Format(szMaterialPath, sizeof(szMaterialPath), "decals/sprays/%s", szMaterialPath)

I would like to implement eItems in the spray plugin I currently use, but let less download of official valve sprays as possible, only custom sprays even send the .vmt and .vtf files for players to download.

crashzk avatar Apr 22 '22 22:04 crashzk

@z1ntex I made this change in eItems and I'm using the plugin eSprays, but even so the sprays have a black dot.

Apparently the .vmt file is missing to show the spray correctly. Did I miss something? Need any more modifications to eItems or eSprays?

Every help is welcome.


Note: Versions I'm using with changes.

https://github.com/crashzk/eItems https://github.com/crashzk/eSprays

crashzk avatar May 24 '23 02:05 crashzk

I made the changes, but even so we still need at least the .vmt files on the server for the players to download and the sprays to work.

If there is some way to use the sprays without errors, without needing the .vmt I think that would be better, so we can avoid a long list of downloads of the .vmt files of the sprays.

crashzk avatar May 25 '23 16:05 crashzk