ESK0 / eItems

eItems is an API designed to provide extended information and functionality to the CSGO Item Economy.
GNU General Public License v3.0
51 stars 23 forks source link

Ways to download sprays. #5

Open z1ntex opened 2 years ago

z1ntex commented 2 years ago

С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 commented 2 years ago

Hello,

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

crashzk commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

@ESK0 it worked now

crashzk commented 2 years ago

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 commented 1 year ago

@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 commented 1 year ago

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.