Search found 34 matches

by DeaD_EyE
Mon Jan 27, 2020 4:32 am
Forum: Plugin Development Support
Topic: Difference in float numbers.
Replies: 5
Views: 13282

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: 43847

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: 43847

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: 27436

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: 14292

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: 27436

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? ...
by DeaD_EyE
Wed Jun 26, 2019 4:25 pm
Forum: General Discussion
Topic: Grant permission for a specific Steam Group
Replies: 2
Views: 9265

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...
by DeaD_EyE
Tue May 28, 2019 5:18 pm
Forum: Plugin Development Support
Topic: source-python
Replies: 4
Views: 5330

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, ...
by DeaD_EyE
Mon Apr 29, 2019 12:28 pm
Forum: General Discussion
Topic: sourcepython installation broken
Replies: 5
Views: 6446

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, ...
by DeaD_EyE
Fri Apr 12, 2019 1:12 pm
Forum: General Discussion
Topic: Sourcepython python support
Replies: 7
Views: 6272

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...
by DeaD_EyE
Sat Apr 06, 2019 4:51 pm
Forum: General Discussion
Topic: Sourcepython python support
Replies: 7
Views: 6272

Re: Sourcepython python support

Are there plans to switch to Python 3.7.3?
by DeaD_EyE
Mon Apr 01, 2019 1:05 pm
Forum: General Discussion
Topic: Left 4 Dead 1 Support
Replies: 9
Views: 9982

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.
by DeaD_EyE
Fri Dec 28, 2018 11:40 pm
Forum: Whatever
Topic: Linux Start Script
Replies: 2
Views: 10279

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...
by DeaD_EyE
Fri Sep 28, 2018 1:25 pm
Forum: General Discussion
Topic: Left 4 Dead 1 Support
Replies: 9
Views: 9982

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.

Go to advanced search