Jump to content


Photo

GMTorrent Beta


  • This topic is locked This topic is locked
22 replies to this topic

#1 Revel

Revel

    ɹǝqɯǝɯ ɔɯƃ

  • GMC Member
  • 4935 posts
  • Version:GM8

Posted 08 August 2010 - 08:26 AM

I've made a DLL that allows you to download torrents. You can download multiple torrents simultaneously on a thread so it wont freeze or interrupt your game window while downloading. I've also included functionality to create .torrent files to distribute. Torrents are a great way to distribute your game while conserving on bandwidth. Most GM games aren't very big at all, but the option is now available.


Download: Here
Zip contains a .gmk with an example client, .gml scripts to import into your game, and the dll itself.

The documentation is in the scripts. Look in the scripts for information on a specific function. If your game crashes, make sure all your script arguments are correct before posting the problem in the topic. I will try and fix any problems as soon as possible. Also please suggest features you would like to see, or comment if you have any questions.


Here is a screenshot of the example client I made with the DLL:
Posted Image

Edited by Revel, 08 August 2010 - 08:29 AM.

  • 1

#2 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 08 August 2010 - 09:31 AM

Let the LimeWire clones begin.

For those actually wanting to distribute their games over torrents with this, good job. Hopefully the updates will actually get seeds, though...

Seems like a nice DLL, however.
  • 0

#3 Revel

Revel

    ɹǝqɯǝɯ ɔɯƃ

  • GMC Member
  • 4935 posts
  • Version:GM8

Posted 08 August 2010 - 07:38 PM

For those actually wanting to distribute their games over torrents with this, good job. Hopefully the updates will actually get seeds, though...

You can add HTTP seeds just to make sure you always have at least one seed.

I just made the example to show the features of the DLL. The DLL is for adding torrent support to your game, not making a uTorrent clone.
  • 0

#4 brett14

brett14

    GMC Member

  • GMC Member
  • 1151 posts
  • Version:GM8

Posted 11 August 2010 - 06:15 PM

You could use this as an updater for your game WITHOUT having the user take up all your bandwidth with a direct download.
  • 0

P3DC V6.00 | Editor14 | Large 3D Terrain

GML programmer since 2005, C/C++ programmer since 2009, Java programmer since 2012


#5 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 12 August 2010 - 03:48 AM

Only that HTTP seed will get bombed with requests. You wont have many people updating at the same time, for a long enough time to have that many seeds.
  • 0

#6 Revel

Revel

    ɹǝqɯǝɯ ɔɯƃ

  • GMC Member
  • 4935 posts
  • Version:GM8

Posted 12 August 2010 - 05:53 AM

Only that HTTP seed will get bombed with requests. You wont have many people updating at the same time, for a long enough time to have that many seeds.

You could have more then one HTTP seed spread across hosts to even out bandwidth, you could also have people seed for a while after they have updated their game.


I agree though, torrents are meant for massive amounts of people downloading (usually large) files. GM games are small, and hardly anyone plays GM games so torrents are useless. As I said in the first post, its just something I wanted to make regardless of how useful it actually is.
  • 1

#7 Newly Discovered

Newly Discovered

    Harmonious Genius

  • GMC Member
  • 2475 posts
  • Version:GM8

Posted 16 August 2010 - 12:41 AM

I didn't read through this but is this just as fast as any other downloader?
  • 0

poof_sig.png


#8 Revel

Revel

    ɹǝqɯǝɯ ɔɯƃ

  • GMC Member
  • 4935 posts
  • Version:GM8

Posted 16 August 2010 - 01:09 AM

I didn't read through this but is this just as fast as any other downloader?


Yup, it can max out my connection at ~600kb/s just like uTorrent usually ends up doing ;)
  • 0

#9 molbal

molbal

    GMC Member

  • GMC Member
  • 59 posts
  • Version:GM:Studio

Posted 29 August 2010 - 08:52 AM

Nice! I like it!
  • 0

#10 Grundoko

Grundoko

    GMC Member

  • GMC Member
  • 566 posts

Posted 29 August 2010 - 07:27 PM

Great DLL for adding automatic updating to games, or creating a game installer which people can download, that will automatically download and install the latest version of the game, without you having to reupload the game and change the link on your forum thread every time. Nice creation.
  • 0

#11 lbweb151

lbweb151

    GMC Member

  • New Member
  • 87 posts

Posted 17 September 2010 - 05:59 PM

Huh, nice! But one question! WHY??? Why you do this when they are soooooo much professional made torrent software, no one will use it
  • 0

#12 Revel

Revel

    ɹǝqɯǝɯ ɔɯƃ

  • GMC Member
  • 4935 posts
  • Version:GM8

Posted 17 September 2010 - 07:25 PM

Huh, nice! But one question! WHY??? Why you do this when they are soooooo much professional made torrent software, no one will use it


Because if you want to patch your game or something using peer 2 peer, launching uTorrent is unprofessional.

Learn the concept of Game Maker extensions, read the topic and then reply when you have something worthy to say.
  • 0

#13 Krisando

Krisando

    GMC Member

  • New Member
  • 1351 posts

Posted 18 September 2010 - 11:01 PM

If you look closely at what he is downloading, you will notice he's not downloading movies.. In-fact he's getting "Inception Techniques for Idiots", and "Paranormal activity - At your workplace".

I therefore conclude he is innocent of any such violations, except for being innocent.
  • 0

Posted Image


#14 FredFredrickson

FredFredrickson

    Artist

  • Global Moderators
  • 9225 posts
  • Version:GM:Studio

Posted 20 September 2010 - 07:09 PM

I've cleaned up this topic quite a bit. Please try to keep the arguing and such to a minimum, guys.

If you don't know anything about what a torrent is, do yourself a favor and look it up before commenting here. And let's keep the posts about Game Maker and / or this DLL only, please. Nobody cares how much you love uTorrent.
  • 0

#15 Manuel777

Manuel777

    InvaderGames

  • GMC Member
  • 3578 posts
  • Version:GM:Studio

Posted 25 September 2010 - 01:29 AM

Will definately try this dll, always wanted to have support for p2p downloads in gm :D
  • 0

@MEtchegaray7

gplussignature.png

May this signature be frozen on the old GMC until the end of times. Or YoYo takes it down.


#16 jobro

jobro

    GMC Member

  • GMC Member
  • 1300 posts
  • Version:GM:Studio

Posted 03 October 2010 - 10:35 AM

Nice dll! Dunno if I'll use it, but it is useful for those who need to add support for torrents.

A question though. What's the font you use for headlines? It's hot!

Edited by jobro, 03 October 2010 - 10:35 AM.

  • 0

Marketplace.png


#17 Artaex Media

Artaex Media

    Artaex Media

  • GMC Member
  • 1531 posts
  • Version:Unknown

Posted 03 October 2010 - 10:47 AM

Lol... The example could be a real program ::lmao::
  • 0

#18 newbie013

newbie013

    GMC Member

  • GMC Member
  • 96 posts
  • Version:GM8

Posted 12 November 2010 - 06:10 PM

session_add_torrent gives me always an unknown exception O_o
  • 0

#19 mrsmes

mrsmes

    GMC Member

  • GMC Member
  • 1506 posts
  • Version:GM:Studio

Posted 10 December 2010 - 05:18 AM

let the utorrent clones begin please note that i experimented in a downloading tutorial that the room speed effects the download speed thus the larger the room_speed variable the faster the download.
  • 0

Assuming I helped you out in a questions and answers topic won't you return the favour by helping me with one my coding problems, or recommend some one who can chat to me over pms about helping and how to overcome my obstacles, after all lets just say I did help you or them or many people with similar problems, in that topic.

Here i have a topic for those of you struggling with type writer text and mugshots in your games especially if it is a rpg see the link below for more info

http://gmc.yoyogames...howtopic=619103

almost no code needed, only uses two events.

click here for the l8est version of feed the alien pizza, it has some major polished up features.


#20 newbie013

newbie013

    GMC Member

  • GMC Member
  • 96 posts
  • Version:GM8

Posted 14 December 2010 - 08:16 AM

as long the room_speed is slower then the CPU can handle it will go faster if you increase otherwise if you want to do to much steps per second you program will be choppy and slow because it can't process all those steps, an good way to set this is:


if(room_speed<fps)
{
	room_speed+=5;
} else if(room_speed>fps+5) {
	room_speed-=5;
}


place this in the step event and it will adjust the room_speed to the effectives possible :X
  • 0

#21 Maxinston

Maxinston

    Epic Phail

  • GMC Member
  • 1248 posts
  • Version:Unknown

Posted 14 December 2010 - 10:39 AM

Nice DLL, don't mind the noob negative comments..
  • 0
<div align='center'><img src="http://img33.imagesh...igpic88821.jpg" border="0" class="linked-sig-image" />
A designer knows that he achieved perfection not when there is nothing left to add but when there is nothing left to take away.</div>

#22 kibblesbob

kibblesbob

    "Xarrot Studios"

  • GMC Member
  • 215 posts
  • Version:GM:Studio

Posted 08 March 2012 - 10:32 AM

Hey, I know this topic is basically dead, but I would like to report a bug haha :sweat: Your example doesn't work nor do any programs I make with it. I have tried re-downloading, still doesn't work... :sad: It looks like it could be a great tool for what I'm working on but for some reason it isn't working!

Oh, and all the ports are set correctly and everything is tip-top! Please help?

PS: Is it a problem that I'm using 39DLL alongside this? I am using it contact my server program using a completely different port than what GMTorrent is using.

Edited by kibblesbob, 08 March 2012 - 10:49 AM.

  • 0

#23 mcastro

mcastro

    GMC Member

  • GMC Member
  • 20 posts

Posted 07 April 2015 - 03:00 AM

I love this. Wish it was in a gex tho.  There is a problem with session_removeTorrent.  It is requesting a 3rd variable. I just add a 1 and it works, but if you don't it gives you an error and won't delete torrent.  Your also missing stop torrent. Not remove but allow it to finish.  Also when you finish your download your number of peers drop to 0, even when downloading you had alot more.  If possible I want to add a way to choose specific files to download.  In case I don't want all of them.  As well as a way to list all the files in a torrent.  I know your purpose of this isn't for a torrent downloader but I am making one for myself.  If you decide to update this please let me know at melschexnayder@gmail.com  Subject: gmtorrent update.  Thanks. And thanks for this.  You did a great job!


Edited by mcastro, 07 April 2015 - 03:13 AM.

  • 0