Just warn your players before running this, it'll choke the hell out of the server for a few seconds. It simply resets the image on the signs, it doesn't actually delete the signs themselves.
Code:namespace Oxide.Plugins { [Info("TEST", "TEST by Deicide666ra", "1.0.0")] public class Test : RustPlugin { void OnServerInitialized() { } void Unloaded() { } [ChatCommand("test")] void cmdTest(BasePlayer player, string cmd, string[] args) { var signs= BaseEntity.FindObjectsOfType<Signage>(); var badCount = 0; foreach (var sign in signs) { var bytes= FileStorage.server.Get(sign.textureID, FileStorage.Type.png, sign.net.ID); if (bytes != null && bytes.Length > 300000) { badCount++; FileStorage.server.Remove(sign.textureID, FileStorage.Type.png, sign.net.ID); sign.textureID = 0; sign.SendNetworkUpdate(BasePlayer.NetworkQueue.Update); } } Puts($"{badCount} / {signs.Length} bad signs!"); } } }
SignArtist
Moved
Total Downloads: 39,224 - First Release: Apr 29, 2015 - Last Update: Jan 19, 2018
- 4.88966/5, 145 likes
-
So this is a plugin to remove signs over 300k from the database? How exactly do i use this?
-
-
-
Hey !
Awesome plugin, works like a charm !
I have a feature to propose, which could be neat :
Actually, players can use any URL or local files (if it exist), leading to some using this to display svatsika or porn, and I have a solution; why not allow a command to use only specific images (without displaying the whole absolute path) already on the server ?
Something like : /sil Stones #Which will look for Stones.png in server/identity/oxide/data/sil/Stones.png ?
Anyway, thanks again for your work ! -
-
It is, but it's giving away the absolute path, and you can't limit the plugin to use only local path (and not remote URL)
-
what is thhis?
nullreferenceexception: Object reference not set to an instance of an object
after loading a pic, this shit spams in the console and fucks my server hard. -
-
Hi guys,
Not sure if everyone is having the same issue but I´m having a problem with the signs since the last update.
I place the sign, upload the image and then every time I relog or go out of the house, when I come back the signs are not showing. If you click on paint you can see the sign but not from outside.
I would appreciate an help or feedback about the same issue, I love this plugin.
Thanks a lot in advance,
Mario -
Heard about this being an issue on Vanilla servers as well so it looks like a Rust issue, not Sign Artist.
-
I confirm it's not from Sign Artist.
The plugin wasn't loaded all morning, and signs disapeared too.
Probably some networking issues -
I second signs keep disapearing
[DOUBLEPOST=1441422279][/DOUBLEPOST]Someone PLEASE FIX SOON my server spawn location depends on this! -
Yes upload sign pictures vanish on re-log ... hope its fixed soon!
-
-
same here, is that on vanilla as well ?
[DOUBLEPOST=1441467101][/DOUBLEPOST] -
update pls.
Sorry for English.
After the last updade the print appears and disappears -
I posted awhile back that I would put together templates for the different sign sizes but the process was interrupted by a new job, car, apartment, etc. Still getting caught up. The templates I was about to post were based on the resolution of game-generated spraypainted signs and way too low rez for most of what people would want to use sign artist for. Now that I better understand it, I realize templates are probably a bit pointless since people will want different resolutions based on the original images and just be going by the ratio. Templates would probably just encourage unnecessary upsizing in resolutions in some places and resolution loss in others, not to mention create confusion by suggesting there might only be one right resolution per sign.
Didn't want anyone thinking I asked a bunch of questions and then just bailed when I had what I wanted. -
images on signs go away after a while. is this a plug bug??
-
Is there any protection in place to prevent players from loading non-graphics files as sign data? For example, if someone tried to:
/sil c:\steamcmd\rust_server\rust.bat
... would it load the text from rust.bat and slap it on the sign somehow? Or will it see the .bat extension and ignore the request?