Forum

> > CS2D > Scripts > Is this safe? (Mods in Customkill)
Forums overviewCS2D overview Scripts overviewLog in to reply

English Is this safe? (Mods in Customkill)

6 replies
To the start Previous 1 Next To the start

old Is this safe? (Mods in Customkill)

Mami Tomoe
User Off Offline

Quote
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.

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

DC
Admin Off Offline

Quote
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.

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

Mami Tomoe
User Off Offline

Quote
user DC has written
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.

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

Masea
Super User Off Offline

Quote
user Mami Tomoe has written
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.

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

Gaios
Reviewer Off Offline

Quote
user Mami Tomoe has written
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 .. '"')
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview