Forum

> > CS2D > Scripts > Is this safe? (Mods in Customkill)
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Is this safe? (Mods in Customkill)

6 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Is this safe? (Mods in Customkill)

Mami Tomoe
User Off Offline

Zitieren
Hello, is this practice safe?
1
parse('customkill "0" "test,mods/myMod/gfx/weapons/custom_k.bmp" "' .. id .. '"')

Is it safe to pull the resource from the mods folder?
Because it doesn't get added to the GFX folder when I tried to access it.

alt Re: Is this safe? (Mods in Customkill)

DC
Admin On Online

Zitieren
Best way to check this is probably to test it. Does it work in general? Does it work if someone tries to join who doesn't have that mod yet? If yes I would say it's probably "safe" as long as the mod is enabled on the server.

I'm not 100% sure though because I didn't implement the mod feature. Do mod files even get transferred when you join a server? I don't remember

It will definitely explode as soon as you disable the mod on the server. So if you want to make it as safe as possible - I mean make it work no matter which mod is enabled - you should go the classic way and put that image somewhere else (outside a mod folder) and add it to the transfer list.

alt Re: Is this safe? (Mods in Customkill)

Mami Tomoe
User Off Offline

Zitieren
user DC hat geschrieben
Best way to check this is probably to test it. Does it work in general? Does it work if someone tries to join who doesn't have that mod yet? If yes I would say it's probably "safe" as long as the mod is enabled on the server.

I'm not 100% sure though because I didn't implement the mod feature. Do mod files even get transferred when you join a server? I don't remember

It will definitely explode as soon as you disable the mod on the server. So if you want to make it as safe as possible - I mean make it work no matter which mod is enabled - you should go the classic way and put that image somewhere else (outside a mod folder) and add it to the transfer list.


Mods get added to the transferlist automatically, which makes it much easier to implement Lua related stuff when you have many servers.

I will see how it works.

alt Re: Is this safe? (Mods in Customkill)

Masea
Super User Off Offline

Zitieren
user Mami Tomoe hat geschrieben
Mods get added to the transferlist automatically, which makes it much easier to implement Lua related stuff when you have many servers.
So are you using the mods feature not only to replace the default files but also additional files of your choice? Interesting.

alt Re: Is this safe? (Mods in Customkill)

Gaios
Reviewer Off Offline

Zitieren
user Mami Tomoe hat geschrieben
Hello, is this practice safe?
1
parse('customkill "0" "test,mods/myMod/gfx/weapons/custom_k.bmp" "' .. id .. '"')

Is it safe to pull the resource from the mods folder?
Because it doesn't get added to the GFX folder when I tried to access it.

From what I remember that user SQ said is that all assets from mods directory should be automatically discovered without the /mods prefix. So this should work like this (or sth like that):
1
parse('customkill "0" "test,gfx/weapons/custom_k.bmp" "' .. id .. '"')
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht