Garry's Mod

Garry's Mod

Actual Screen Blood [Fixed]
dgtle 7 Jan, 2023 @ 2:40pm
Potential fix for the changed textures
I'm not so sure if this'll fix the issue with the old mod's blood textures being used instead of this mods', but you seem to need help fixing this addon. Although I have no experience coding in the source engine, I think what's going on is when host a server with the addon, the addon starts using the textures from another addon. No idea why the original addon used this code, but if you look into this addon's files, if you go into the folder named "lua", and then "autorun", you'll find a .lua file named "autorun.lua". I'd assume this automatically runs when you load into singleplayer/multiplayer. If you open this file (with something like notepad++), you'll find this.

// Damage screen fx - Coded by mrfish
if CLIENT then
include("cl_damagescreen.lua")
elseif SERVER then
resource.AddWorkshop('773286171')
include("sv_damagescreen.lua")
end

It seems if you are a client, on singleplayer or on a server, the mod uses the file from the "lua" folder, "cl_damagescreen.lua".

If you are a server, hosting a multiplayer game, it downloads the workshop file with id "773286171". When searched up in the workshop, this id goes to a mod called "Screen Damage Materials", which seems be the textures of the old mod. Change this to your mod's id so it uses your addon's files.
It should look like this:

// Damage screen fx - Coded by mrfish
if CLIENT then
include("cl_damagescreen.lua")
elseif SERVER then
resource.AddWorkshop('2881944092')
include("sv_damagescreen.lua")
end

I'm not sure if this'll break the mod entirely when hosting a game, but i'll check if it does.
All i know is it fixed the issue for me, but i was on singleplayer that time. I also checked the rest of the lua files and "autorun.lua" is the only one with any mention of the old mod's workshop id. The texture issue also only started when i hosted a multiplayer game for me and my friend, and persisted in singleplayer.

Hope that helps.
< >
Showing 1-9 of 9 comments
dgtle 7 Jan, 2023 @ 3:12pm 
I'm not entirely sure if this'll work because it turns out it just reverts back to normal so I thought my idea worked but I have no idea if it will because when I edited it, the whole addon didn't do anything. I don't know anything about uploaded gmod addons so I hope it works if you try it.
hurter  [developer] 8 Jan, 2023 @ 3:38pm 
Will try this, also gmod's addon extracting and updating stuff sucks, I used a program that made it very easy but now it wont recognize this as a public addon so I can't update it from there.
hurter  [developer] 10 Jan, 2023 @ 12:25am 
appearantly the original addon has unallowed files now, crowbar says it the png files the addon uses for the blood textures, I've tried swapping them to tga files and that didnt work either, I've tried using gmat, crowbar, disabling whitelist idek
Defrektif  [developer] 27 Jan, 2023 @ 3:28am 
i removed the "resource.AddWorkshop('773286171')" line entirely and it worked for me
hurter  [developer] 27 Jan, 2023 @ 5:31pm 
can you give me the file like the gma file or whaever? I'll add you as a contributor
Defrektif  [developer] 2 Feb, 2023 @ 10:20am 
oh sure, give me your discord tag
Defrektif  [developer] 2 Feb, 2023 @ 10:21am 
sorry for the late response, i dont check my messages/replies often
Defrektif  [developer] 3 Feb, 2023 @ 1:41am 
oh wait, you sent me a friend request, ill send it over steam
< >
Showing 1-9 of 9 comments
Per page: 1530 50