Search found 4 matches

by malt
Sun Jun 24, 2018 7:32 am
Forum: Plugin Development Support
Topic: reloading custom package
Replies: 5
Views: 4550

Re: reloading custom package

In plugins/testplugin/testplugin.py import testlib in packages/custom/testlib/__init__.py print("newest testlib imported") #print("even newer testlib imported") So when I initially enter sp plugin load testplugin , it loads successfully and prints "newest tes...
by malt
Sat Jun 23, 2018 12:23 am
Forum: Plugin Development Support
Topic: reloading custom package
Replies: 5
Views: 4550

Re: reloading custom package

I edited my post a bit to clear up ambiguity. Thanks for the response. Would that work? - since sp seems to cache the version of the package that existed on in initial load. ie, if the package prints a message when you sp plugin load a plugin that imports it, and you delete the package, it'll print ...
by malt
Fri Jun 22, 2018 10:41 pm
Forum: Plugin Development Support
Topic: reloading custom package
Replies: 5
Views: 4550

reloading custom package

Is it possible to reload custom package? I can't seem to figure out a way to make changes in the custom package reflect in reloaded plugins. A server reboot works, but I'm wondering if theres a more obvious, better approach that I'm missing. Thanks.
by malt
Sat Apr 21, 2018 8:53 pm
Forum: Plugin Development Support
Topic: trigger creation
Replies: 4
Views: 4801

trigger creation

Hi, I'm trying to convert a zone creation plugin to sourcepython. I'm having an issue with creating triggers. The following sourcemod code is what I've been using. Its based off this . int trigger = CreateEntityByName( type ); DispatchKeyValue( trigger, "spawnflags", "1&qu...

Go to advanced search