Search found 189 matches

by arawra
Fri Feb 19, 2021 3:03 pm
Forum: Plugin Development Support
Topic: Streaming audio to clients
Replies: 4
Views: 584

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.
by arawra
Wed Feb 17, 2021 8:26 am
Forum: Plugin Development Support
Topic: Streaming audio to clients
Replies: 4
Views: 584

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...
by arawra
Wed Feb 17, 2021 8:07 am
Forum: General Discussion
Topic: What is the Python Implementation for This?
Replies: 1
Views: 806

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.
by arawra
Tue Feb 16, 2021 7:08 pm
Forum: Plugin Development Support
Topic: Wrong args/parameters for emit_sound
Replies: 1
Views: 287

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...
by arawra
Wed Oct 07, 2020 6:28 pm
Forum: API Design
Topic: Looking for suggestions
Replies: 0
Views: 3229

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...
by arawra
Fri Oct 02, 2020 11:20 am
Forum: API Design
Topic: Site package suggestion
Replies: 0
Views: 1647

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...
by arawra
Fri Oct 02, 2020 11:14 am
Forum: Plugin Releases
Topic: D&D 5e CSGO
Replies: 5
Views: 1891

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.
by arawra
Mon Sep 28, 2020 9:40 am
Forum: Plugin Releases
Topic: D&D 5e CSGO
Replies: 5
Views: 1891

Re: D&D 5e CSGO

Update 1.2.0

All base races now have a benefit (none have any detriment other than opportunity cost)
by arawra
Mon Sep 28, 2020 6:31 am
Forum: Plugin Releases
Topic: D&D 5e CSGO
Replies: 5
Views: 1891

Re: D&D 5e CSGO

VinciT wrote:I really dig the blade barrier effect you've made - very cool stuff. :grin:


I just want to say, I ^&Y*FSE* love trig :vomit:
by arawra
Sun Sep 27, 2020 5:06 pm
Forum: Plugin Releases
Topic: D&D 5e CSGO
Replies: 5
Views: 1891

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...
by arawra
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: 1405

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.
by arawra
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: 1405

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...
by arawra
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: 1405

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... ---------------------------------------- ---------------------------------------- ---------------------------------------- -------------...
by arawra
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: 1405

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...
by arawra
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: 1405

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...
by arawra
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: 1405

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...
by arawra
Sat Sep 26, 2020 9:43 am
Forum: Plugin Development Support
Topic: Setting owner_handle of projectiles
Replies: 5
Views: 1116

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...
by arawra
Sat Sep 26, 2020 8:29 am
Forum: Plugin Development Support
Topic: Setting owner_handle of projectiles
Replies: 5
Views: 1116

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...
by arawra
Fri Sep 25, 2020 1:19 pm
Forum: General Discussion
Topic: SQL results to MS Teams using Python in table format
Replies: 6
Views: 1366

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(...
by arawra
Fri Sep 25, 2020 12:53 pm
Forum: General Discussion
Topic: SQL results to MS Teams using Python in table format
Replies: 6
Views: 1366

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 ...

Go to advanced search