Search found 190 matches
- Mon Aug 23, 2021 12:16 pm
- Forum: API Design
- Topic: Proper Importing and Packaging
- Replies: 0
- Views: 76635
Proper Importing and Packaging
I would like to know the proper way to handle importing and packaging for addons/Python. I am taking a look at GunGame for its directory structure and the way it handles packaging. I am trying to make sense of it but a lot of the semantics seem lost on me. For instance, ../gungame/core/logging.py is...
- Fri Feb 19, 2021 3:03 pm
- Forum: Plugin Development Support
- Topic: Streaming audio to clients
- Replies: 4
- Views: 11895
Re: Streaming audio to clients
I did think of using VGUI and motd to send something to a client, but everything I came up with suggested a patch that removed that capability due to overuse by server admins. If I'm mistaken I'd like to know, as of now I'll need to keep googling.
- Wed Feb 17, 2021 8:26 am
- Forum: Plugin Development Support
- Topic: Streaming audio to clients
- Replies: 4
- Views: 11895
Streaming audio to clients
I would like to be able to stream audio dynamically to clients. I think traditionally the way to send audio to clients is to precache it by having the clients download audio files, and then force the file to play locally. However this carries the prerequisite of knowing the file ahead of time and ha...
- Wed Feb 17, 2021 8:07 am
- Forum: General Discussion
- Topic: What is the Python Implementation for This?
- Replies: 1
- Views: 6267
Re: What is the Python Implementation for This?
Consider using a delimiter to be able to pull out the information from the line you want.
- Tue Feb 16, 2021 7:08 pm
- Forum: Plugin Development Support
- Topic: Wrong args/parameters for emit_sound
- Replies: 1
- Views: 5889
Wrong args/parameters for emit_sound
Not sure if this is something I am doing wrong, or if the wrong parameter type is being passed as part of SourcePython. def playVideo(videoLink): if not os.path.exists(songDir): try: os.mkdir(songDir) except: message("Couldn't create song dir!") return i...
- Wed Oct 07, 2020 6:28 pm
- Forum: API Design
- Topic: Looking for suggestions
- Replies: 0
- Views: 76865
Looking for suggestions
For the D&D plugin I am working on, one of the available features is that players can "cast spells". The way that this works is a player binds a ClientCommand and supplies the necessary arguments. I am working to improve the current system I have because... well its trash. Here is a pr...
- Fri Oct 02, 2020 11:20 am
- Forum: API Design
- Topic: Site package suggestion
- Replies: 0
- Views: 75230
Site package suggestion
I know theres been a lot of talk about getting pip to work within Source-Python and a lot of discussion about SQL packages and the like (as well as the performance of them). What would be your guys' thoughts about including the requests package natively? For my use cases the overhead of sending data...
- Fri Oct 02, 2020 11:14 am
- Forum: Plugin Releases
- Topic: D&D 5e CSGO
- Replies: 5
- Views: 15154
Re: D&D 5e CSGO
Update 1.3.0
Developed a RESTful API to be able to post player information to remote servers. Embedded `requests` site-package to be able to make remote calls to the API.
Developed a RESTful API to be able to post player information to remote servers. Embedded `requests` site-package to be able to make remote calls to the API.
- Mon Sep 28, 2020 9:40 am
- Forum: Plugin Releases
- Topic: D&D 5e CSGO
- Replies: 5
- Views: 15154
Re: D&D 5e CSGO
Update 1.2.0
All base races now have a benefit (none have any detriment other than opportunity cost)
All base races now have a benefit (none have any detriment other than opportunity cost)
- Mon Sep 28, 2020 6:31 am
- Forum: Plugin Releases
- Topic: D&D 5e CSGO
- Replies: 5
- Views: 15154
Re: D&D 5e CSGO
VinciT wrote:I really dig the blade barrier effect you've made - very cool stuff.![]()
I just want to say, I ^&Y*FSE* love trig :vomit:
- Sun Sep 27, 2020 5:06 pm
- Forum: Plugin Releases
- Topic: D&D 5e CSGO
- Replies: 5
- Views: 15154
D&D 5e CSGO
D&D 5e! Inspired by Jeff's old mod, this is a brand new mod based around Dungeons & Dragons 5th Edition. The new wiki can be found here: http://dndcsgo.com/ Note: this is a WORK IN PROGRESS http://github.com/xxauroraxx/dnd5e Server Hosting The mod Address: 68.232.160.229 Port: 23010 In D&am...
- Sun Sep 27, 2020 9:37 am
- Forum: Plugin Development Support
- Topic: Pretty sure I found a bug, looking to see if it can be replicated
- Replies: 11
- Views: 16959
Re: Pretty sure I found a bug, looking to see if it can be replicated
Sent.
Files are still uploading, so maybe give it 15m.
Files are still uploading, so maybe give it 15m.
- Sun Sep 27, 2020 9:24 am
- Forum: Plugin Development Support
- Topic: Pretty sure I found a bug, looking to see if it can be replicated
- Replies: 11
- Views: 16959
Re: Pretty sure I found a bug, looking to see if it can be replicated
An exception was raised without printing my statement. I did supply the default arguments explicitly, and the function returns without exception. from engines.precache import Model from players.entity import Player from listeners.tick import Delay from commands.client import ClientCommand from memor...
- Sun Sep 27, 2020 9:14 am
- Forum: Plugin Development Support
- Topic: Pretty sure I found a bug, looking to see if it can be replicated
- Replies: 11
- Views: 16959
Re: Pretty sure I found a bug, looking to see if it can be replicated
That prototype is correct. If you add a debug message at the top of ../players/engines/csgo/__init__.py#L168-L174 does it gets printed? [Source.Python] Loading... ---------------------------------------- ---------------------------------------- ---------------------------------------- -------------...
- Sun Sep 27, 2020 9:03 am
- Forum: Plugin Development Support
- Topic: Pretty sure I found a bug, looking to see if it can be replicated
- Replies: 11
- Views: 16959
Re: Pretty sure I found a bug, looking to see if it can be replicated
What do you get if you print target.give_named_item.arguments ? My first guess would be that you have a plugin that is registering that pointer without all the required parameters. (_memory.DataType.POINTER, _memory.DataType.STRING, _memory.DataType.INT, _memory.DataType.POINTER, _memory.DataTy...
- Sun Sep 27, 2020 8:50 am
- Forum: Plugin Development Support
- Topic: Pretty sure I found a bug, looking to see if it can be replicated
- Replies: 11
- Views: 16959
Re: Pretty sure I found a bug, looking to see if it can be replicated
sp info IMPORTANT: Please copy the full output. -------------------------------------------------------- Checksum : 69ed9b7cbfc55f9465bec8a41d35d8c7 Date : 2020-09-27 08:50:32.871054 OS : Windows-10-10.0.18362 Game : csgo SP version : 700 Github commit : 53f3bb562a2975c828d4c5145e21979859f57731 Ser...
- Sun Sep 27, 2020 7:59 am
- Forum: Plugin Development Support
- Topic: Pretty sure I found a bug, looking to see if it can be replicated
- Replies: 11
- Views: 16959
Pretty sure I found a bug, looking to see if it can be replicated
Trying to give a player weapons after setting their model to a chicken, and then back to the original. @ClientCommand('!polymorph') def polymorph(command, index): player = Player(index) target = player.get_view_player() if not target: return mdl = target.model...
- Sat Sep 26, 2020 9:43 am
- Forum: Plugin Development Support
- Topic: Setting owner_handle of projectiles
- Replies: 5
- Views: 10620
Re: Setting owner_handle of projectiles
Neither of those are working for me :\ @Event('player_say') def player_say(e): player = Player(index_from_userid(e['userid'])) if e['text'] == 'test': degree = (2*pi)/4 x,y,z = player.get_eye_location() x2,y2,z2 = Vector...
- Sat Sep 26, 2020 8:29 am
- Forum: Plugin Development Support
- Topic: Setting owner_handle of projectiles
- Replies: 5
- Views: 10620
Setting owner_handle of projectiles
How would I go about setting the owner of a spawned in entity so that damage can be attributed to the player that spawns in the entity? from players.entity import Player from entities.entity import Entity from events import Event from players.helpers import index_from_userid from engines.precache im...
- Fri Sep 25, 2020 1:19 pm
- Forum: General Discussion
- Topic: SQL results to MS Teams using Python in table format
- Replies: 7
- Views: 64227
Re: SQL results to MS Teams using Python in table format
I think I like this formatting a bit better, and iterating over lists is more efficient. df = pd.read_sql(sql_query, conn) results = str(df).split(' ') columns = ['Status', 'Enum', 'Booking Status'] database_table_output = [] for i in range(...