Search found 1803 matches

by satoon101
Wed Jul 18, 2012 5:40 am
Forum: Plugin Development Support
Topic: Error: _LoadedAddon has no attribute 'globals'
Replies: 21
Views: 61474

Are you using the version from the download or are you using TortoiseHG? I guess that "could" be an issue with the older version, which is in the download. To get the newest version, look at this wiki page: http://www.sourcepython.com/forums/showwiki.php?title=Source_Python:Building_from_source At t...
by satoon101
Wed Jul 18, 2012 5:35 am
Forum: Plugin Development Support
Topic: Error: _LoadedAddon has no attribute 'globals'
Replies: 21
Views: 61474

That is why I asked if you could reupload. Using the same code you have, I get an error on sp_load. The error you get really makes no sense whatsoever. If the base file (<script>/<script>.py) doesn't exist, we call FileNotFoundError, which passes silently. If the file exists, but the addon fails on ...
by satoon101
Wed Jul 18, 2012 5:00 am
Forum: Plugin Development Support
Topic: Error: _LoadedAddon has no attribute 'globals'
Replies: 21
Views: 61474

Also, I would like it if people would not use the arguments ev or event_var for this. Instead of a dictionary class being passed, an IGameEvent instance is passed. I mean, if you wish to use it, fine, but "try" to get used to the ideas of this plugin. I typically use GameEvent anymore (since we deci...
by satoon101
Wed Jul 18, 2012 4:58 am
Forum: Plugin Development Support
Topic: Error: _LoadedAddon has no attribute 'globals'
Replies: 21
Views: 61474

No idea... I do not get that error. Try deleting your _libs folder and reuploading the _libs directory. And again, it's from events.decorator not from events.decorators

Satoon
by satoon101
Wed Jul 18, 2012 4:53 am
Forum: Plugin Development Support
Topic: Error: _LoadedAddon has no attribute 'globals'
Replies: 21
Views: 61474

I'm not sure how that would load anyway. You have to import event from events.decorator. Also, there is no need to import anything directly from the sp module as of yet. And eventname isn't a method/property/attribute of the GameEvent class (you should use GetName() instead).

Satoon
by satoon101
Tue Jul 17, 2012 11:50 pm
Forum: Whatever
Topic: Help appreciated :)
Replies: 16
Views: 55072

Sure, sounds good.

Satoon
by satoon101
Tue Jul 17, 2012 11:40 pm
Forum: Whatever
Topic: Help appreciated :)
Replies: 16
Views: 55072

No problem :)

That is the only extra one I have, and I was wondering who to give it to. I didn't realize you didn't have the beta yet, so glad you posted about it.

Satoon
by satoon101
Tue Jul 17, 2012 9:46 pm
Forum: Module/Package Submissions
Topic: Feature proposal: SP-wide logging -- the python logging module
Replies: 11
Views: 424978

Sounds good. Post either here or in the Module/Package Submissions forum when you have something working.

Thanks,
Satoon
by satoon101
Tue Jul 17, 2012 9:44 pm
Forum: Whatever
Topic: Good to see development!
Replies: 6
Views: 17750

Well, ESS will not be implemented, so those addons are completely out of the question. As far as Python-wise, changes to syntax will definitely be needed. Our API will be completely different than the ESP. So, many changes can (and will) be extensive.

Satoon
by satoon101
Tue Jul 17, 2012 3:54 am
Forum: Whatever
Topic: Good to see development!
Replies: 6
Views: 17750

Welcome, pil. I would like to add that we also hope to have some seriously well done documentation on what all is available for scripters to use. We will attempt to add as much to that as possible. However, we will also need the help of other forum members to help us keep up with all of the document...
by satoon101
Tue Jul 17, 2012 1:01 am
Forum: Module/Package Submissions
Topic: Feature proposal: SP-wide logging -- the python logging module
Replies: 11
Views: 424978

We will have to discuss this further internally at a later time. If you wish to work on an API for this on your own, and submit it, we have no issue with that. That would also help us get a better feel for whether or not it is something we would wish to implement. If we decide one way or the other i...
by satoon101
Tue Jul 17, 2012 12:15 am
Forum: API Design
Topic: Issues with __del__
Replies: 3
Views: 12154

Good point about no native method, don't know why I didn't remember that. I already figured out how to do this without using __del__, and those changes are forthcoming. I had been working on a few other things, but I will hold of on those and update this right now.

Satoon
by satoon101
Mon Jul 16, 2012 11:50 pm
Forum: API Design
Topic: Coding Style
Replies: 42
Views: 801261

Updated main post with some more points.

Satoon
by satoon101
Mon Jul 16, 2012 1:05 am
Forum: API Design
Topic: Coding Style
Replies: 42
Views: 801261

Updated main post. If anything is missing (which I am sure there is plenty missing), please feel free to mention it here.

Satoon
by satoon101
Mon Jul 16, 2012 12:41 am
Forum: General Discussion
Topic: Building from source (Linux) gives Python include error
Replies: 7
Views: 23389

He has not pushed this change yet. Wait until his next commit is pushed and you should be good to go.

Satoon
by satoon101
Mon Jul 16, 2012 12:13 am
Forum: API Design
Topic: Coding Style
Replies: 42
Views: 801261

Ok, since everyone else seems like they want this change, I'll work on updating the current version with these changes. I'll update the main post above when I get the chance. To be consistent, CamelCase will be used in the future.

Satoon
by satoon101
Sun Jul 15, 2012 10:58 pm
Forum: General Discussion
Topic: A few questions according for scripts
Replies: 19
Views: 66134

The "name" of the event is player_say. Using @event prior to a function will cause that function to be registered for the event with the same name as it. Therefor, when using: from events.decorator import event @event def player_say(game_event): pass We are registering the "pl...
by satoon101
Sun Jul 15, 2012 9:10 pm
Forum: API Design
Topic: Issues with __del__
Replies: 3
Views: 12154

This doesn't seem as big a deal right now as you are trying to lead us to believe. If the object actually isn't removed from memory, that really isn't the fault of using __del__ to unregister for an event. If we don't call __del__, the object will still remain in memory anyway, and the event will no...
by satoon101
Sun Jul 15, 2012 9:00 pm
Forum: General Discussion
Topic: A few questions according for scripts
Replies: 19
Views: 66134

Yeah, you register it the same way as the example i posted above.

Satoon
by satoon101
Sun Jul 15, 2012 8:04 pm
Forum: General Discussion
Topic: A few questions according for scripts
Replies: 19
Views: 66134

Well, the addon system is still a work in progress. The error is being encountered, but no message is being sent. I'll look into why that is in a few. The error you are getting is that you are missing : at the end of your load and unload functions. Also, you might take a look again at this post: htt...

Go to advanced search