Bitcoin Forum
December 02, 2016, 06:33:02 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Bitcoin Game Server Plugin  (Read 2386 times)
Anonymous
Guest

June 26, 2011, 12:33:09 AM
 #1

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?
1480703582
Hero Member
*
Offline Offline

Posts: 1480703582

View Profile Personal Message (Offline)

Ignore
1480703582
Reply with quote  #2

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

Posts: 1480703582

View Profile Personal Message (Offline)

Ignore
1480703582
Reply with quote  #2

1480703582
Report to moderator
1480703582
Hero Member
*
Offline Offline

Posts: 1480703582

View Profile Personal Message (Offline)

Ignore
1480703582
Reply with quote  #2

1480703582
Report to moderator
1480703582
Hero Member
*
Offline Offline

Posts: 1480703582

View Profile Personal Message (Offline)

Ignore
1480703582
Reply with quote  #2

1480703582
Report to moderator
AltPluzF4
Jr. Member
*
Offline Offline

Activity: 41


Just a loser...


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

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.

1LoSeRc7JjLNvukvHVGSMy5mmLfkuUTckZ
Jack of Diamonds
Sr. Member
****
Offline Offline

Activity: 252



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

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.

1f3gHNoBodYw1LLs3ndY0UanYB1tC0lnsBec4USeYoU9AREaCH34PBeGgAR67fx
InsanityIsGreat
Newbie
*
Offline Offline

Activity: 28



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

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 <(^_^<)

http://img194.imageshack.us/img194/3321/tradehill2.png (http://www.tradehill.com/?r=TH-R19304)

I do Graphic Design for bitcoins 100% satisfaction guaranteed http://forum.bitcoin.org/index.php?topic=21948.0
Lech_Walesa
Member
**
Offline Offline

Activity: 81


May the Force be with you!


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

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

Electrongolf
Full Member
***
Offline Offline

Activity: 139

What's Your Gig?


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

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.

Anonymous
Guest

June 26, 2011, 01:33:39 AM
 #7

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

Activity: 616


Firstbits.com/1fg4i                :Ƀ


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

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 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?!
finack
Jr. Member
*
Offline Offline

Activity: 56


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

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]
  Print  
 
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!