Search found 190 matches
- Fri Sep 25, 2020 12:53 pm
- Forum: General Discussion
- Topic: SQL results to MS Teams using Python in table format
- Replies: 7
- Views: 20079
Re: SQL results to MS Teams using Python in table format
There's no "table" in Python. In generic terms, I think you'd want an associative array. Python supports dictionaries, which is a collection of key-value pairs. Keys and values can be of any data type I believe. There may be a more efficient or pythonic way to do this, but implement first ...
- Wed Sep 23, 2020 12:04 am
- Forum: General Discussion
- Topic: Installation and configuration sourcepython
- Replies: 7
- Views: 5309
Re: Installation and configuration sourcepython
SuperDarkRPG wrote:Same problem for me
What have you tried so far? What is the output of "sp" in your server console?
- Sun Sep 20, 2020 7:11 am
- Forum: Plugin Development Support
- Topic: Show Effect through wall
- Replies: 0
- Views: 3537
Show Effect through wall
Is it possible to show an Effect through a wall to a specific player?
E: Found some effects that work for this purpose.
E: Found some effects that work for this purpose.
- Sun Sep 20, 2020 3:23 am
- Forum: Plugin Development Support
- Topic: SQLAlchemy and PyMySQL
- Replies: 3
- Views: 2356
Re: SQLAlchemy and PyMySQL
The site provided was the same as I had been using. I tried the 3.0 version of cryptography and it gave a bit more descriptive of a traceback. Turns out I just needed the dependency package, cffi. Now I'm just troubleshooting crashes/lag and DB permissions.
- Sun Sep 20, 2020 12:39 am
- Forum: Plugin Development Support
- Topic: SQLAlchemy and PyMySQL
- Replies: 3
- Views: 2356
Re: SQLAlchemy and PyMySQL
So I have gotten the 3.6 builds for cryptography. I went so far as using pyenv to make sure I got a version for 3.6. I suppose I'll try it with the link you provided.
- Sat Sep 19, 2020 9:54 am
- Forum: Plugin Development Support
- Topic: SQLAlchemy and PyMySQL
- Replies: 3
- Views: 2356
SQLAlchemy and PyMySQL
I am trying to use these to make connections and update a database. While I'm on the same network as my database, they work with no issue. But when they exist on different networks, PyMySQL tries to make use of the Cryptography package. Normally I'd just `pip install cryptography` and be on my way. ...
- Thu Sep 17, 2020 7:05 pm
- Forum: Plugin Development Support
- Topic: BaseHandle to Index conversion failure
- Replies: 3
- Views: 2923
Re: BaseHandle to Index conversion failure
It appears the index for the attacking player can be determined from info.inflictor. @EntityPreHook(EntityCondition.is_player, 'on_take_damage') def preDamagePlayer(stack_data): # if 'riot' in victim.get_model().path victim = make_object(Entity, stack_data...
- Thu Sep 17, 2020 5:26 am
- Forum: Plugin Development Support
- Topic: BaseHandle to Index conversion failure
- Replies: 3
- Views: 2923
BaseHandle to Index conversion failure
CSGO on Win10x64 Using August 16th release [SP] Caught an Exception: Traceback (most recent call last): File "..\addons\source-python\plugins\dnd5e\dnd5e.py", line 751, in preDamagePlayer info.attacker ValueError: Conversion from "BaseHandle" (<_entities.BaseEntityHandle object a...
- Tue Sep 15, 2020 5:30 pm
- Forum: General Discussion
- Topic: Unable to load Source-Python on CSGO DS
- Replies: 4
- Views: 3443
Re: Unable to load Source-Python on CSGO DS
Did a full reinstall of csgo. Also upgraded Debian. Still not running.
- Sat Sep 12, 2020 4:48 pm
- Forum: General Discussion
- Topic: Unable to load Source-Python on CSGO DS
- Replies: 4
- Views: 3443
Re: Unable to load Source-Python on CSGO DS
For s and g, I 777'd the entire directory. (Yes, I backed up permissions and restored them). Still nothing. E: Ran an install on Windows 10 x64. Worked fine (other than a deprecation warning, see below). [Source.Python] Loading... [SP] Encountered a Warning: File '..\addons\source-python\packages\si...
- Sat Sep 12, 2020 4:37 pm
- Forum: General Discussion
- Topic: Unable to load Source-Python on CSGO DS
- Replies: 4
- Views: 3443
Re: Unable to load Source-Python on CSGO DS
Nada. 7dtd@daggoth:~/csgorpg/csgo$ ls -la total 17341200 drwxr-xr-x 15 7dtd 7dtd 12288 Sep 12 09:43 . drwxr-xr-x 6 7dtd 7dtd 4096 Sep 12 10:07 .. drwxrwxrwx 3 7dtd 7dtd 4096 Sep 12 10:38 addons -rwxr-xr-x 1 7dtd 7dtd 1433 Sep 12 07:52 autobuy.txt drwxr-xr-x 3 7dtd 7dtd 4096 Sep 12 08:08 bin -rwxr-xr...
- Sat Sep 12, 2020 2:46 pm
- Forum: General Discussion
- Topic: Unable to load Source-Python on CSGO DS
- Replies: 4
- Views: 3443
Unable to load Source-Python on CSGO DS
Debian 8.3.0-6 Unable to load plugin "addons/source-python" ./srcds_run -console -game csgo -secure +game_type 0 +game_mode 1 +map de_dust2 +mapgroup mg_demolition -port 27015 +exec server.cfg -usercon -maxplayers 32 -condebug https://i.imgur.com/89dJ2NO.png https://i.imgur.com/VpgGqkj.png...
- Fri Sep 11, 2020 10:34 pm
- Forum: Plugin Development Support
- Topic: Are menus implemented in l4d2?
- Replies: 1
- Views: 1614
Re: Are menus implemented in l4d2?
At a loss as to how to add any text to menus.
I did a verbatim copy of code from the GunGame mod for PagedMenu as well as trying to do SimpleMenu and I can not get text to show on the menu.
I did a verbatim copy of code from the GunGame mod for PagedMenu as well as trying to do SimpleMenu and I can not get text to show on the menu.
- Wed Sep 09, 2020 4:35 pm
- Forum: Plugin Releases
- Topic: L4D2 SourcePython RPG
- Replies: 0
- Views: 4025
L4D2 SourcePython RPG
L4D2 SourcePython RPG This plugin adds a level system and purchaseable perks into L4D2. Available say commands: perks - Shows the available perks perkinfo {perk name or #} - Shows a description of a perk perkbuy {perk name or #} - Buys a perk perkpoints - Shows your perk points Source Code can be f...
- Tue Sep 08, 2020 2:46 pm
- Forum: Plugin Development Support
- Topic: Are menus implemented in l4d2?
- Replies: 1
- Views: 1614
Are menus implemented in l4d2?
Are menus implemented in l4d2?
E: Yes they are. Was just almost not noticeable because I didn't add any text.
E: Yes they are. Was just almost not noticeable because I didn't add any text.
- Tue Sep 08, 2020 11:53 am
- Forum: Plugin Requests
- Topic: [HL2:DM] Crossbow
- Replies: 96
- Views: 91502
Re: [HL2:DM] Crossbow
Hey, I'm trying to use your code in order to create a light effect. Unfortunately it looks like TempEntity can only spawn one at a time...? @Event('player_jump') def jump(e): for player in PlayerIter(): print("trying to create effects") light = TempE...
- Mon Sep 07, 2020 8:56 am
- Forum: Plugin Development Support
- Topic: Dynamically loading subpackages
- Replies: 1
- Views: 1514
Re: Dynamically loading subpackages
Solved, but modified the system in a different way.
- Mon Sep 07, 2020 8:19 am
- Forum: Plugin Development Support
- Topic: Dynamically loading subpackages
- Replies: 1
- Views: 1514
Dynamically loading subpackages
I am unable to load any subpackages on my Linux box. I tested this on Windows (normal python installation) and this same code works fine there. from os.path import dirname, basename, isfile, join, abspath import os import glob from importlib import import_module from importlib.util import find_spec ...
- Sun Sep 06, 2020 2:44 pm
- Forum: Plugin Development Support
- Topic: L4D2 Reduce Recoil
- Replies: 0
- Views: 2948
L4D2 Reduce Recoil
I'd like to be able to reduce recoil in L4D2, but weapon entities don't have the 'm_fAccuracyPenalty' property. I've found someone who has messed with the spread in C/C++ but then they monkey around with assembly and start pushing values onto the stack after getting an offset from client.dll... ther...
- Sat Sep 05, 2020 6:00 pm
- Forum: Plugin Development Support
- Topic: Information for hooks
- Replies: 6
- Views: 4029
Re: Information for hooks
Nah, still nothing. infected = EntityCondition.equals_datamap_classname('infected') @EntityPreHook(infected, 'on_take_damage') def infected_pre_take_damage(stack_data): print("Non-player took damage") victim = make_object(Entity, stack_da...