Search found 466 matches

by iPlayer
Mon Apr 24, 2017 11:26 am
Forum: Plugin Development Support
Topic: Custom convention support in TypeManager.create_type_from_dict
Replies: 2
Views: 26

Re: Custom convention support in TypeManager.create_type_from_dict

For now I will override TypeManager.function to replace convention in case it is Convention.CUSTOM and will define conventions I need as CUSTOM in the ini-file. This limits me to one custom convention per one TypeManager. Luckily I only need one. class PLRTypeManager(TypeManager): def functi...
by iPlayer
Mon Apr 24, 2017 10:54 am
Forum: Plugin Development Support
Topic: Custom convention support in TypeManager.create_type_from_dict
Replies: 2
Views: 26

Custom convention support in TypeManager.create_type_from_dict

Hey there, Is there any built-in mechanism to specify custom conventions that will be used when parsing data in TypeManager.create_type_from_dict/create_type_from_file ? Say, I've got the following file [function] # CTFGameRules::GetPayloadToBlock [[get_payload_to_block]] identifier_windows = identi...
by iPlayer
Sun Apr 23, 2017 5:25 am
Forum: Plugin Development Support
Topic: Need help hooking these functions
Replies: 5
Views: 107

Re: Need help hooking these functions

I forgot to return from PreHook to prevent original function from being called. This probably leads to my inthandle being overwritten by the original function call. I will test it shortly.
by iPlayer
Sun Apr 23, 2017 3:55 am
Forum: Plugin Development Support
Topic: Need help hooking these functions
Replies: 5
Views: 107

Re: Need help hooking these functions

Okay, thanks to Ayuto and Invincible, I make steps towards enabling bots on PLR maps. What I have learned is that CTFGameRules::GetPayloadToPush sets the payload inthandle to -1 on PLR maps. While on PL maps it's just a valid inthandle of the correspoing team_train_watcher entity. What I'm trying to...
by iPlayer
Fri Apr 21, 2017 2:06 pm
Forum: Plugin Development Support
Topic: Need help hooking these functions
Replies: 5
Views: 107

Re: Need help hooking these functions

Wait, what? I thought I did not forget them. Look at the declaration, CTFGameRules::GetPayloadToPush receives only two arguments, including this-pointer. And I declared two arguments.

EDIT: I just put IDA declarations in the comments. I know in the actual C++ code the this-pointer won't be explicit.
by iPlayer
Fri Apr 21, 2017 9:21 am
Forum: Plugin Development Support
Topic: Need help hooking these functions
Replies: 5
Views: 107

Need help hooking these functions

Hey there, My idea is to make stock TF2 bots work on PLR maps as they would on PL maps. They work perfectly on Payload maps, but on Payload Race maps they just stand still and do nothing. And it's official behavior, as bots are announced to not support PLR maps. On PL map, there's 1 bomb cart. One t...
by iPlayer
Wed Apr 19, 2017 3:06 pm
Forum: Code examples / Cookbook
Topic: Controlling player's view (camera)
Replies: 0
Views: 39

Controlling player's view (camera)

This snippet allows you to detach player's camera from him and make the player see the map from your desired location. You can also tie player's camera to another entity. from entities.entity import Entity from entities.helpers import baseentity_from_index from events import Event from players.dicti...
by iPlayer
Wed Apr 19, 2017 8:44 am
Forum: Plugin Releases
Topic: [CS:S/CS:GO] Map Cycle
Replies: 8
Views: 1147

[CS:S/CS:GO] Map Cycle

Map Cycle 2.1 release

https://github.com/KirillMysnik/sp-map-cycle/releases/tag/v2.1.0-beta

Performed a full refactor, also adapted for CS:GO. The plugin is still in beta though, might crash the server occasionally.
by iPlayer
Tue Apr 18, 2017 6:20 pm
Forum: Plugin Releases
Topic: [CS:S/CS:GO] iPlayer's Killstreaker
Replies: 14
Views: 1221

Re: [CS:S/CS:GO] iPlayer's Killstreaker

Killstreaker v2.1.0 released Full refactor Base name changed from ip_killstreaker to killstreaker Adapted for CS:GO Removed dependency on Advanced TranslationStrings custom package Now depends on ControlledCvars custom package All config cvars are renamed Lastest release: https://github.com/KirillM...
by iPlayer
Thu Apr 13, 2017 5:55 pm
Forum: Plugin Development Support
Topic: [CSGO New Sp] Error on tick listener
Replies: 9
Views: 148

Re: [CSGO New Sp] Error on tick listener

Update your addons/source-python/packages/source-python/listeners/tick.py with this version: https://github.com/Source-Python-Dev-Team/Source.Python/blob/406dcbdb5ee93f1b4b1d3b5299e26af862c5a707/addons/source-python/packages/source-python/listeners/tick.py This version replaces GameThread class with...
by iPlayer
Thu Apr 13, 2017 2:19 pm
Forum: Plugin Development Support
Topic: [CSGO New Sp] Error on tick listener
Replies: 9
Views: 148

Re: [CSGO New Sp] Error on tick listener

This error occurred with the latest build, with this correction :/

It's impossible. We have completely removed

Syntax: Select all

self._register_if_empty()

But it's in your traceback.
by iPlayer
Wed Apr 12, 2017 9:48 pm
Forum: Plugin Releases
Topic: [CS:GO] AdPurge
Replies: 3
Views: 359

Re: [CS:GO] AdPurge

Updated to the latest Source.Python version
Latest release
by iPlayer
Wed Apr 12, 2017 5:06 pm
Forum: Plugin Development Support
Topic: [Help] Way to see cause of crash ?
Replies: 21
Views: 173

Re: [Help] Way to see cause of crash ?

If you want to debug heroes as well - you might put such debug lines in heroes, too. You just have to know where to put it. But I thought that crash on player disconnect must be debugged first. See, I'm not a multi-task person in this matter :P
by iPlayer
Wed Apr 12, 2017 4:12 pm
Forum: Plugin Development Support
Topic: [Help] Way to see cause of crash ?
Replies: 21
Views: 173

Re: [Help] Way to see cause of crash ?

I haven't been able to reproduce the crash so far (with bots and alt account), so I request you to enhance the _on_disconnect_save_data function in warcraft/players.py this way: @Event('player_disconnect') def _on_disconnect_save_data(event_data): print("[debug] In P...
by iPlayer
Wed Apr 12, 2017 3:12 pm
Forum: Plugin Development Support
Topic: [Help] Way to see cause of crash ?
Replies: 21
Views: 173

Re: [Help] Way to see cause of crash ?

Okay, I'm looking into it
by iPlayer
Wed Apr 12, 2017 2:56 pm
Forum: Plugin Development Support
Topic: [Help] Way to see cause of crash ?
Replies: 21
Views: 173

Re: [Help] Way to see cause of crash ?

Source.Python tries to prevent crashes and usually just raises Python exceptions. If there's any traceback, it should appear right before the crash.
What Warcraft mod do you use?
by iPlayer
Wed Apr 12, 2017 2:45 pm
Forum: Plugin Development Support
Topic: [Help] Way to see cause of crash ?
Replies: 21
Views: 173

Re: [Help] Way to see cause of crash ?

sometimes when a player disconect the server crash It's good that you have this info already, but the more info you have, the easier it will be to debug. The point here is that you are unlikely to get any Python traceback in the crash case. You'll only get memory dumps which are useless. So to debu...
by iPlayer
Mon Apr 10, 2017 11:04 pm
Forum: Custom Packages
Topic: MOTDPlayer v2
Replies: 4
Views: 141

Re: MOTDPlayer v2

Quoting a question from another thread , Edit: is it possible to use this with say, JS server-side or PHP instead of Flask? MOTDPlayer consists of three parts: SP custom package, Flask application and JS library. If you drop Flask application and tend to use PHP/NodeJS, you'll have to supply your ow...
by iPlayer
Mon Apr 10, 2017 10:53 pm
Forum: Custom Packages
Topic: MOTDPlayer v2
Replies: 4
Views: 141

Re: MOTDPlayer v2

I did it. Sensibly. In a VMWare Workstation Player :) Well, besides immitating uWSGI on Windows, there're other options: ⋅ If you don't need WebSocket support, you can use any Windows web-server or even run Flask development server (just run application.py ) ⋅ If you don't need M...

Go to advanced search