Search found 28 matches

by DeaD_EyE
Tue Oct 20, 2020 1:11 pm
Forum: Plugin Requests
Topic: Can Anybody port SM Plugin to Source Python?
Replies: 19
Views: 5819

Re: Can Anybody port SM Plugin to Source Python?

I wonder that there is still an active Server community for Valve Games (HL2).
by DeaD_EyE
Tue Oct 06, 2020 12:37 pm
Forum: General Discussion
Topic: Could you get banned for this?
Replies: 2
Views: 987

Re: Could you get banned for this?

https://support.steampowered.com/kb_article.php?ref=7791-UAFZ-3767#dontoffer What should not be offered on community servers? If a server provides any of the following services we ask that you disable them: ⋅ Services allowing players to claim temporary ownership of CS:GO items that are no...
by DeaD_EyE
Mon Aug 31, 2020 1:40 pm
Forum: General Discussion
Topic: [SP] Version: 700 for [BMS]
Replies: 12
Views: 1331

Re: [SP] Version: 700 for [BMS]

No, I wouldn't update it manually. We will need to do that in the SP code base and make sure updating doesn't cause us any issues. It's not a problem for a user to replace on his machine one dependency of source python and this won't affect your master. If it does not work -> users problem The warn...
by DeaD_EyE
Sun Aug 30, 2020 6:12 pm
Forum: General Discussion
Topic: [SP] Version: 700 for [BMS]
Replies: 12
Views: 1331

Re: [SP] Version: 700 for [BMS]

Try to update the package mutagen. I guess they fixed this warning.
by DeaD_EyE
Mon Jul 20, 2020 10:09 am
Forum: Whatever
Topic: Del
Replies: 3
Views: 906

Re: Del

I call this asshole behavior. Deleting all posts after you got your help is selfish!
by DeaD_EyE
Fri Jun 05, 2020 8:02 am
Forum: Whatever
Topic: *DELETED*
Replies: 5
Views: 1092

Re: [P] Something scary

Make the hack, but don't release it. Just send the hack to Valve and ask if one Month is enough to wait before releasing the hack.
by DeaD_EyE
Mon May 25, 2020 6:44 am
Forum: Plugin Releases
Topic: Round_end_sound
Replies: 6
Views: 1206

Re: Round_end_sound

I guess yes. I just forked his project days ago for fun.
https://github.com/sosi-deadeye/round_end_sound

But I tested nothing. The command play could be replaced with a function from sourcepython to play sounds.
by DeaD_EyE
Thu May 07, 2020 10:16 am
Forum: Plugin Requests
Topic: [HL2:DM] Crossbow
Replies: 46
Views: 41240

Re: [HL2:DM] Crossbow

The error is in the function `on_actual_entity_spawned`. `base_entity` was not defined in the function, before you're accessing it. You can reproduce the error with following code: def foo(): print(a) # a does not exist in local scope nor on module scope a= 42 On module level the cod...
by DeaD_EyE
Mon May 04, 2020 2:08 pm
Forum: Plugin Development Support
Topic: Write File in Bytes
Replies: 5
Views: 2443

Re: Write File in Bytes

If you want to write structured binary data, you have to define the struct of your data. Python has a module for this: https://docs.python.org/3/library/struct.html#module-struct If you want to save for example 2 * int64 and 2 * float64 as little endian: import struct my_struct = struct.Struct(&...
by DeaD_EyE
Sat May 02, 2020 6:29 pm
Forum: General Discussion
Topic: libffi6 on ubuntu 20.04
Replies: 4
Views: 3800

Re: libffi6 on ubuntu 20.04

Prepare: # add 32 bit architecture sudo dpkg --add-architecture i386 # install missing libraries sudo apt-get install libstdc++6 lib32gcc1 libcurl4:i386 libffi7:i386 Method 1: ========= # download libffi6:i386 from debian https://packages.debian.org/buster/i386/libffi6/download http://ftp.debian.org...
by DeaD_EyE
Thu Apr 30, 2020 2:20 pm
Forum: Plugin Development Support
Topic: Write File in Bytes
Replies: 5
Views: 2443

Re: Write File in Bytes

This part is very inefficient: test += '0|0|0|0|0\n' If you want to write million times the same thing, then write the same thing million times. import io import timeit # Scenario 1 def test1(file_stream): test = '' for i in range(1000): test += '0|0|0|0|0\n' ...
by DeaD_EyE
Mon Apr 27, 2020 2:18 pm
Forum: General Discussion
Topic: *DELETED*
Replies: 9
Views: 8236

Re: [I] TF2 + CSGO source code

The exploit is a fake? Can you proof it?
by DeaD_EyE
Fri Apr 24, 2020 9:17 am
Forum: General Discussion
Topic: *DELETED*
Replies: 9
Views: 8236

Re: [I] TF2 + CSGO source code

Regarding today's reported leak of code, specifically as it pertains to TF2: This also appears to be related to code depots released to partners in late 2017, and originally leaked in 2018. Interesting is this here: https://www.techspot.com/news/84948-team-fortress-2-players-may-vulnerable-rce-atta...
by DeaD_EyE
Mon Jan 27, 2020 4:32 am
Forum: Plugin Development Support
Topic: Difference in float numbers.
Replies: 5
Views: 10868

Re: Difference in float numbers.

Visit f"http://{0.1 + 0.2}.com"

If you need to compare the values of equality, use math.isclose(a, b)
Problem solved :-D
by DeaD_EyE
Wed Jan 08, 2020 1:41 pm
Forum: Code examples / Cookbook
Topic: *DELETED*
Replies: 14
Views: 23201

Re: [DEV] Algorithm for checking a point in a cube

I had a problem in college, and I solved it, and posted the answer here.

But nobody will find your solution. This forum is not for Python beginners and homework.

If you're interest, you should visit this forum: https://python-forum.io/
If you speak German: https://python-forum.de
by DeaD_EyE
Wed Dec 11, 2019 12:59 pm
Forum: Code examples / Cookbook
Topic: *DELETED*
Replies: 14
Views: 23201

Re: [DEV] Algorithm for checking a point in a cube

If you reinvent the wheel, then make it sexy:

Code: Select all

def point_is_inside(pt, cpt1, cpt2):
    return all(c1 <= p <= c2 for p, c1, c2 in zip(pt, cpt1, cpt2))


If you're interested in algorithms, look here: https://github.com/keon/algorithms
by DeaD_EyE
Sun Dec 01, 2019 12:08 pm
Forum: Development Status Updates
Topic: Development status update (August 2019)
Replies: 9
Views: 19730

Re: Development status update (August 2019)

Dataclasses, contextvars and importlib.ressources were introduced with Python 3.6. https://docs.python.org/3/whatsnew/3.8.html ⋅ Assignment expressions ⋅ Positional-only parameters ⋅ Parallel filesystem cache for compiled bytecode files ⋅ Debug build uses the ...
by DeaD_EyE
Tue Nov 26, 2019 8:39 am
Forum: Whatever
Topic: *DELETED*
Replies: 3
Views: 11163

Re: [NEW] Sentence

You could write bilingual.
You could use the tool https://www.deepl.com/translator
by DeaD_EyE
Tue Nov 26, 2019 8:38 am
Forum: Development Status Updates
Topic: Development status update (August 2019)
Replies: 9
Views: 19730

Re: Development status update (August 2019)

And if something is not directly implemented, all the tools are there to get it done. However, something I would like to get done sooner rather than later though, is probably update to Python 3.8 which contains a lot of cool stuff. Anyways, why did you ask, was there a specific feature you wanted? ...

Go to advanced search