Search found 1062 matches

by Ayuto
Thu May 24, 2018 5:06 am
Forum: Plugin Development Support
Topic: Unexpected behavior from pickle.dump
Replies: 4
Views: 48

Re: Unexpected behavior from pickle.dump

It could also be a missing super().__init__() call.
by Ayuto
Wed May 23, 2018 6:19 pm
Forum: Plugin Development Support
Topic: GetDataTableProxyFn?
Replies: 9
Views: 109

Re: GetDataTableProxyFn?

Thank you too! I didn't know about that way before. :smile:
by Ayuto
Wed May 23, 2018 5:48 am
Forum: Plugin Development Support
Topic: GetDataTableProxyFn?
Replies: 9
Views: 109

Re: GetDataTableProxyFn?

Sorry, now it's working: https://github.com/Source-Python-Dev-Team/Source.Python/commit/a832762de7df44653c03ef60e2063389460d4eaa from entities.entity import BaseEntity gamerules_proxy = BaseEntity.find("cs_gamerules") gamerules = None for prop in gamerules_proxy.server_class.table:...
by Ayuto
Tue May 22, 2018 10:00 pm
Forum: Plugin Development Support
Topic: GetDataTableProxyFn?
Replies: 9
Views: 109

Re: GetDataTableProxyFn?

by Ayuto
Tue May 22, 2018 7:41 pm
Forum: Plugin Development Support
Topic: GetDataTableProxyFn?
Replies: 9
Views: 109

Re: GetDataTableProxyFn?

The next version will contain GetDataTableProxyFn:
https://github.com/Source-Python-Dev-Te ... e50ab23a1d
by Ayuto
Sun May 20, 2018 6:18 am
Forum: Plugin Development Support
Topic: SP's update changes
Replies: 8
Views: 96

Re: SP's update changes

No, there is no issue. Everything works as intended. Even in C++ it would lead to an error when compiling your code if you pass a Vector instance to a function that requires a QAngle instance. You would need to type cast the Vector instance to QAngle before doing that.
by Ayuto
Sat May 19, 2018 4:45 am
Forum: Plugin Development Support
Topic: Some help with CustomType
Replies: 3
Views: 60

Re: Some help with CustomType

Yes, that's the proper way. For m_iMapHasVIPSafetyZone you can also use manager.instance_attribute.

Edit: The calling convenient is wrong. It's a THISCALL. Right now it will only work on Linux, because THISCALL and CDECL are the same on Linux.
by Ayuto
Thu May 17, 2018 7:23 pm
Forum: General Discussion
Topic: Cyrillic characters(Eventscripts Emulator)
Replies: 1
Views: 104

Re: Cyrillic characters(Eventscripts Emulator)

Should be fixed now: https://github.com/Ayuto/EventScripts-Emulator/commit/e8275f4c6dd9ebd6ee11d5bc10cfc7bbee5bf091 Next time please search for an existing issue at first: https://github.com/Ayuto/EventScripts-Emulator/issues After you created a new issue for that, I linked it to the original report...
by Ayuto
Thu May 17, 2018 6:28 pm
Forum: Plugin Development Support
Topic: How to block money award?
Replies: 6
Views: 92

Re: How to block money award?

Before doing that I would also try setting these two variables to 0:
  • mp_playercashawards
  • mp_teamcashawards
by Ayuto
Tue May 15, 2018 5:25 pm
Forum: Whatever
Topic: This is fantastic
Replies: 1
Views: 100

Re: This is fantastic

Thank you for that great feedback! Our documentation is indeed far away from being perfect/complete. If you are interested you can easily help us. :tongue:
http://wiki.sourcepython.com/contributi ... o-the-wiki
by Ayuto
Tue May 15, 2018 5:04 pm
Forum: General Discussion
Topic: SourceMod interop
Replies: 16
Views: 692

Re: SourceMod interop

You only need to declare your functions with extern "C". Then you can retrieve them with the memory module using their actual names. This might help you:
viewtopic.php?f=20&t=1206&p=7848#p7848
by Ayuto
Mon May 14, 2018 1:57 pm
Forum: Plugin Development Support
Topic: Restart match. Interaction with websockets.
Replies: 1
Views: 51

Re: Restart match. Interaction with websockets.

You need to create a new thread for that. Ideally, you use our GameThread class. It's a subclass of threading.Thread with a little addition that prints a warning if your plugin is unloaded while the thread is still running.
by Ayuto
Wed May 09, 2018 8:30 pm
Forum: General Discussion
Topic: Request IP from Server
Replies: 2
Views: 88

Re: Request IP from Server

Steam has nothing to do with that. Are you sure the IPv4 address isn't the same like the IPv6 address?
by Ayuto
Thu May 03, 2018 2:53 pm
Forum: Plugin Development Support
Topic: PagedMenu append but do not increment number
Replies: 6
Views: 156

Re: PagedMenu append but do not increment number

Well, then you just need to add a single line: class PagedMenuHdr(PagedRadioMenu): def _format_header(self, player_index, page, slots): buffer = super()._format_header(player_index, page, slots) if page.index == 0: buffer += 'Some info\nMoreInfo\n' return buff...
by Ayuto
Thu May 03, 2018 2:04 pm
Forum: Plugin Development Support
Topic: PagedMenu append but do not increment number
Replies: 6
Views: 156

Re: PagedMenu append but do not increment number

You need to implement that on your own by subclassing PagedRadioMenu. This is how you would do that: from menus.radio import PagedRadioMenu from menus.radio import PagedRadioOption as PagedOption from commands.typed import TypedSayCommand class PagedMenuHdr(PagedRadioMenu): def _format_heade...
by Ayuto
Thu May 03, 2018 7:54 am
Forum: Plugin Development Support
Topic: PagedMenu append but do not increment number
Replies: 6
Views: 156

Re: PagedMenu append but do not increment number

There is the description attribute. It will display a text between the menu title and the first separator.
by Ayuto
Wed May 02, 2018 5:33 pm
Forum: Development Status Updates
Topic: Development status update (April 2018)
Replies: 0
Views: 108

Development status update (April 2018)

It's time for another development status update! :smile: ⋅ Fixes: ⋅  Fixed issue #245. ⋅ Additions: ⋅ Removals: ⋅ Changes: ⋅  Source.Python will now stop loading if update stage 2 fails. ⋅  Reorganized update functions (plus fixes...
by Ayuto
Sun Apr 29, 2018 8:15 pm
Forum: Plugin Development Support
Topic: How to get map info
Replies: 6
Views: 155

Re: How to get map info

No, it's a class and by doing Entity(<index>) you call the constructor of the Entity class to create an instance of it.
by Ayuto
Sun Apr 29, 2018 2:35 pm
Forum: Plugin Development Support
Topic: Disabling game specific sounds
Replies: 13
Views: 719

Re: Disabling game specific sounds

Sorry, for the delay. Unfortunately, I'm unable to disable these sounds by hooking the sound sending function. I also just saw that L'In20Cible already said that most sounds are predicted by the client. That's why blocking it from the server doesn't help.
by Ayuto
Fri Apr 27, 2018 2:38 pm
Forum: General Discussion
Topic: installation problem-Encountered a Warning:
Replies: 4
Views: 148

Re: installation problem-Encountered a Warning:

It was also working fine with that warning (which only appears once). The errors you get aren't caused by SP, but the server itself.

Go to advanced search