Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ways to download sprays. #5

Open
z1ntex opened this issue Dec 1, 2021 · 8 comments
Open

Ways to download sprays. #5

z1ntex opened this issue Dec 1, 2021 · 8 comments

Comments

@z1ntex
Copy link

z1ntex commented Dec 1, 2021

С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

@ESK0
Copy link
Owner

ESK0 commented Dec 2, 2021

Hello,

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

@crashzk
Copy link
Contributor

crashzk commented Dec 11, 2021

@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
Copy link
Contributor

crashzk commented Dec 11, 2021

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.

@ESK0
Copy link
Owner

ESK0 commented Dec 12, 2021

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.

@hanicsgo
Copy link

@ESK0 it worked now

@crashzk
Copy link
Contributor

crashzk commented Apr 22, 2022

Any news on the change in spray download format? Just change the line mentioned above:

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

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
Copy link
Contributor

crashzk commented May 24, 2023

@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
Copy link
Contributor

crashzk commented May 25, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants