Good to see you were able to get a few minutes to join up, vingt! Those 5 weeks will fly by, hopefully.
Satoon
Search found 1776 matches
- Sat Jul 14, 2012 9:38 pm
- Forum: General Discussion
- Topic: Good job!
- Replies: 3
- Views: 5531
- Sat Jul 14, 2012 5:36 pm
- Forum: API Design
- Topic: Event system discussion
- Replies: 22
- Views: 26384
Alright, and in some cases the value is used by any functions e.g. reason in player_disconnect for printing a meassage. Not sure if you have tested this fully or not, but it doesn't seem true by my testing. If I change the 'reason' in the script, it still shows the original disconnect message when ...
- Fri Jul 13, 2012 10:31 pm
- Forum: API Design
- Topic: Coding Style
- Replies: 42
- Views: 216354
Well, 2 things to look at here. First, we have Python, which most of is consistent in using lower_and_underscore. For the Python-side coders, keeping that consistency is key. Then, we have Valve's code (which is just being wrapped by the plugin) that is CamelCase. For the C++ coders, keeping that co...
- Thu Jul 12, 2012 12:26 am
- Forum: API Design
- Topic: Coding Style
- Replies: 42
- Views: 216354
- Wed Jul 11, 2012 1:56 am
- Forum: API Design
- Topic: Coding Style
- Replies: 42
- Views: 216354
Coding Style
One thing I learned while working with the GunGame5.1 dev team is that it is very important to all follow the same coding style. This thread is basically an outline of what I believe our style (Python-side) should be for all modules/APIs. I am certain that most of you have heard of PEP 8 , and some ...
- Wed Jul 11, 2012 12:05 am
- Forum: General Discussion
- Topic: Admin System
- Replies: 22
- Views: 23168
An authorization API is definitely something we will probably want to add in either prior to release or soon after. An admin mod/system (like XA) is not something we wish (at this time) to include with the package. Personally, at this point, I am heavily leaning toward not including "any" addons wit...
- Tue Jul 10, 2012 11:59 pm
- Forum: API Design
- Topic: Event system discussion
- Replies: 22
- Views: 26384
What's about a simple try-except clause for getting a variable and an isinstance check for setting one? I guess that wouldn't cost much ressources. Also, I agree that a registerForEvent function could be usefull :) And again, what if the try/except works but the variable is "supposed" to be a strin...
- Tue Jul 10, 2012 7:12 pm
- Forum: API Design
- Topic: Event system discussion
- Replies: 22
- Views: 26384
Well, if we went with the decorators system, libraries (though we are going to use modules instead of libraries for this plugin) will easily be able to use that same functionality to register for an event. Currently, within ES2.1, only 3 events are registered in 2 total libraries. Only 1 of those (p...
- Tue Jul 10, 2012 1:51 am
- Forum: API Design
- Topic: Event system discussion
- Replies: 22
- Views: 26384
http://forums.eventscripts.com/viewtopic.php?p=317004#p317004
Look at SuperDave's reply in that thread.
Satoon
Look at SuperDave's reply in that thread.
Satoon
- Tue Jul 10, 2012 12:44 am
- Forum: General Discussion
- Topic: Admin System
- Replies: 22
- Views: 23168
- Tue Jul 10, 2012 12:27 am
- Forum: General Discussion
- Topic: Admin System
- Replies: 22
- Views: 23168
- Tue Jul 10, 2012 12:18 am
- Forum: API Design
- Topic: Event system discussion
- Replies: 22
- Views: 26384
As far as having es.addons.registerForEvent functionality, I would say almost definitely. If we went with a system like the decorators system, where the scripter would have to declare a function/method as an event explicitly, and it was built into the C++ side, then I would say no. Otherwise, I woul...
- Sun Jul 08, 2012 4:01 pm
- Forum: API Design
- Topic: Decorators vs the eventscripts way ..
- Replies: 12
- Views: 13292
Not everything in the file would be an event - anything imported will also exist within the global namespace. We can easily check to see what module an object is actually created in, which would eliminate this issue. We currently do this within GunGame5.1 , though for Source.Python, this would be b...
- Sun Jul 08, 2012 1:41 pm
- Forum: API Design
- Topic: Decorators vs the eventscripts way ..
- Replies: 12
- Views: 13292