Bitcoin Forum
January 21, 2018, 07:18:50 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
   Home   Help Search Donate Login Register  
Pages: [1]
Author Topic: Bitcoin Game Server Plugin  (Read 2555 times)

June 26, 2011, 12:33:09 AM

Would it be possible for somebody to create a sourcemod plugin for source-based games, like Team Fortress 2 and Counter-strike; that would allow server owners to collect Bitcoin from the CPU power of its players? Does the code allow for this?
Hero Member
Offline Offline

Posts: 1516519130

View Profile Personal Message (Offline)

Reply with quote  #2

Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Jr. Member
Offline Offline

Activity: 41

Just a loser...

View Profile
June 26, 2011, 01:08:26 AM

About the only hope of that would be loading a webpage on the client (similar to how the radio plugins work) that runs a javascript miner.
I'm sure this would cause people to greatly hate your server though, since it would seem as if the server is lagging terribly.

Sounds like a bad idea, but then again, I'm responsible for some pretty bad "ideas" myself (cough, fake bot avatars + ping.)
As far as a server-side plugin though, you have no real control over what clients do. Most client-side effects that are created are already programmed into the game's client and sent via "UserMessages" in a packet from the server to the client. Which, can lead to an "assumed" control over the client. For example, it's somewhat popular for evil admins to send a temp entity (effect) to a client with a garbage value to cause a crash.

Now, there is one little exploit where you could force a client to download a server plugin to be autoloaded, then the dll could run any code you want. However, I believe Valve recently patched this (since many users were using client-loaded server plugins for cheating purposes.)
Honestly, I'm a bit out of the loop though. I've not really played anything in several months (except when I grabbed Portal 2, finished it and all co-op).
I'm sure someone who knows a lot more about exploits could come up with some clever way to get a client to hash, but I believe it would be terribly ineffective.

Short answer; the code doesn't "allow" for this, but an exploit may be possible. After all, µTorrent's code doesn't "allow" for a fake upload modifier, but that doesn't stop memory injection ;-)

Good luck.

Jack of Diamonds
Sr. Member
Offline Offline

Activity: 252

View Profile
June 26, 2011, 01:15:43 AM

As said above it's not worth it with an embedded CPU miner.
Even if you set affinity to about 5%, a dozen players would create less than 1 bitcent per day.

There's also the chance of players with weaker processors joining that will definitely notice the increased workload & their game will start lagging.

Offline Offline

Activity: 28

View Profile
June 26, 2011, 01:18:35 AM

Like the above users have said something like this would be possible but ethically i don't think it would be right without the players concent and unless you could get it to run from gpu power it wouldn't generate enough bitcoins to make it worthwhile... And your server would lag like hell.

Donate Please (>^_^)> 1AaDgmhULgSwoTD4fvQ5zygxm3WBcfERTY <(^_^<) (

I do Graphic Design for bitcoins 100% satisfaction guaranteed
Offline Offline

Activity: 81

May the Force be with you!

View Profile
June 26, 2011, 01:21:32 AM

silkroad, mtgox hacked and CPU power theft on games servers - is it publicity we need  Huh

Full Member
Offline Offline

Activity: 139

What's Your Gig?

View Profile WWW
June 26, 2011, 01:32:30 AM

Why can't there just be a game created in which the economy is built around BTC. It would encourage the exchange of BTC which is what we need right now.

I wish there was a way to earn BTC in a game based on skill.


June 26, 2011, 01:33:39 AM

It isn't theft if use of your server is voluntary. ; )
Hero Member
Offline Offline

Activity: 616 :)

View Profile
June 26, 2011, 01:35:55 AM

I don't think the more serious players would appreciate the artificially induced lag...

(I dont always get new reply notifications, pls send a pm when you think it has happened)

Wanna gimme some BTC/BCH for any or no reason? 1FmvtS66LFh6ycrXDwKRQTexGJw4UWiqDX Smiley

The more you believe in Bitcoin, and the more you show you do to other people, the faster the real value will soar!

Do you like mmmBananas?!
Jr. Member
Offline Offline

Activity: 56

View Profile
June 26, 2011, 01:45:12 AM

I don't think you could do it as a mod. Pretty sure you'd have to rebuild the game client with some additional code to do the calculations. Some simplistic games like CS wold lend themselves to the process, because at least if you set a frame cap at like 60 modern video cards will have a lot left over. The biggest hurdle would be writing the client to do the calculations in d3d or ogl in artificial ways with textures. Before CUDA and OpenCL came along people used to accomplish some amount of GPGPU calculations by finding the graphics work that happened to mimic the calculations they needed to do, but it was far from straight forward.

You could do the whole thing with CPUs much more easily, but the result would probably be pretty underwhelming (see javascript mining etc.)
Pages: [1]
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!