SP Load

All other Source.Python topics and issues.
Predz
Senior Member
Posts: 158
Joined: Wed Aug 08, 2012 9:05 pm
Location: Bristol, United Kingdom

SP Load

Postby Predz » Fri Jul 04, 2014 2:57 pm

I was testing a few addons the other day, and found that "sp load" only works for addons 1 directory deep from the plugins folder. Was this intended?

Example Below.

Code: Select all

[SP] Unable to load plugin 'warcraft/races'. Missing file ../addons/source-python/plugins/warcraft/races/warcraft/races.py
User avatar
Doldol
Senior Member
Posts: 201
Joined: Sat Jul 07, 2012 7:09 pm
Location: Belgium

Postby Doldol » Fri Jul 04, 2014 3:38 pm

I believe that I read that this was intended (but I can't find the post), and that you should write your own code to be able to do this.

However SP also provides a library called "plugins" for this; more info here.
User avatar
satoon101
Project Leader
Posts: 2725
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Fri Jul 04, 2014 8:39 pm

Yes, it is intended. I will try to work on the plugins package on the wiki the next couple days.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 128 guests