Search found 35 matches
- Fri Apr 24, 2020 9:17 am
- Forum: General Discussion
- Topic: *DELETED*
- Replies: 9
- Views: 12380
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...
- Mon Jan 27, 2020 4:32 am
- Forum: Plugin Development Support
- Topic: Difference in float numbers.
- Replies: 5
- Views: 13435
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
If you need to compare the values of equality, use math.isclose(a, b)
Problem solved :-D
- Wed Jan 08, 2020 1:41 pm
- Forum: Code examples / Cookbook
- Topic: *DELETED*
- Replies: 14
- Views: 55564
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
- Wed Dec 11, 2019 12:59 pm
- Forum: Code examples / Cookbook
- Topic: *DELETED*
- Replies: 14
- Views: 55564
Re: [DEV] Algorithm for checking a point in a cube
If you reinvent the wheel, then make it sexy:
If you're interested in algorithms, look here: https://github.com/keon/algorithms
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
- Sun Dec 01, 2019 12:08 pm
- Forum: Development Status Updates
- Topic: Development status update (August 2019)
- Replies: 9
- Views: 28312
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 ...
Re: [NEW] Sentence
You could write bilingual.
You could use the tool https://www.deepl.com/translator
You could use the tool https://www.deepl.com/translator
- Tue Nov 26, 2019 8:38 am
- Forum: Development Status Updates
- Topic: Development status update (August 2019)
- Replies: 9
- Views: 28312
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? ...
- Wed Jun 26, 2019 4:25 pm
- Forum: General Discussion
- Topic: Grant permission for a specific Steam Group
- Replies: 2
- Views: 9357
Re: Grant permission for a specific Steam Group
I am not familiar with SourcePython. I guess SteamWorks does have this access, but I don't know if additional stuff is needed. You could implement it by yourself, if you're using the URL "https://steamcommunity.com/profiles/{}/?xml=1" to ask for profile information. This does only work, if...
- Tue May 28, 2019 5:18 pm
- Forum: Plugin Development Support
- Topic: source-python
- Replies: 4
- Views: 5458
Re: source-python
This is a common pitfall in Python: tuple vs. prioritizing operations Additionally we have different APIs even in the standard library of Python. Common pattern: def caller(function, arguments, keyword_arguments) In some newer libraries like asyncio a different pattern is used: def caller(function, ...
- Mon Apr 29, 2019 12:28 pm
- Forum: General Discussion
- Topic: sourcepython installation broken
- Replies: 5
- Views: 6579
Re: sourcepython installation broken
SourcePython could create the configuration files with relative paths. This paths should converted to Path-objects, then use the method absolute to get the absolute path. This allows the user, to use later absolute Paths in the configuration files. Calling the method absolute() on an absolute path, ...
- Fri Apr 12, 2019 1:12 pm
- Forum: General Discussion
- Topic: Sourcepython python support
- Replies: 7
- Views: 6453
Re: Sourcepython python support
There are some internal improvements for speed. All libraries I need, are working with Python 3.7 (web/scientific stuff). I guess TensorFlow is still not compatible, because of the async keyword. It's since Python 3.7 a keyword and can't used as a name. But maybe you wait a little bit longer until P...
- Sat Apr 06, 2019 4:51 pm
- Forum: General Discussion
- Topic: Sourcepython python support
- Replies: 7
- Views: 6453
Re: Sourcepython python support
Are there plans to switch to Python 3.7.3?
- Mon Apr 01, 2019 1:05 pm
- Forum: General Discussion
- Topic: Left 4 Dead 1 Support
- Replies: 9
- Views: 10784
Re: Left 4 Dead 1 Support
It's a bit late to support this old game. It's even tricky to get the dedicated server for linux.
- Fri Dec 28, 2018 11:40 pm
- Forum: Whatever
- Topic: Linux Start Script
- Replies: 2
- Views: 10568
Re: Linux Start Script
What happens if you start the script with: nohup ./scriptname.sh & Otherwise you can run it inside a screen or tmux. Tmux is better. If I remind right, the command for screen to start a session and detach it: screen -mdS gameserver_name ./scriptname.sh BTW: Post next time the source: https://gis...
- Fri Sep 28, 2018 1:25 pm
- Forum: General Discussion
- Topic: Left 4 Dead 1 Support
- Replies: 9
- Views: 10784
Re: Left 4 Dead 1 Support
Since the switch from hldsupdatetool to steam pipe (steamcmd), it's no longer possible to download the L4D1 Server for Linux.