Forge version 1.4.4
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
48 posts
• Page 2 of 4 • 1, 2, 3, 4
Re: Forge version 1.4.4
by spr » 28 Jul 2013, 16:50
Actually, while I am on the subject.
...
Something to consider. On the download server you create a text file, say "status.txt". Prior to downloading, Forge checks for this file and downloads if it exists. Its subsequent download behaviour is then dependent on the contents of this text file which could be anything you want. For example, it could contain a temporary increase in the throttle interval which overrides the hardcoded value. Or the existence of this file could simply be a way of telling Forge to disable downloading, perhaps containing a message to display to users - "Sorry, site is down for essential maintenance...". The point being, Admin can restrict Forge to a finite resource (download bandwidth, etc) with a simple text file and no code changes.
Cheers,
Steve

Something to consider. On the download server you create a text file, say "status.txt". Prior to downloading, Forge checks for this file and downloads if it exists. Its subsequent download behaviour is then dependent on the contents of this text file which could be anything you want. For example, it could contain a temporary increase in the throttle interval which overrides the hardcoded value. Or the existence of this file could simply be a way of telling Forge to disable downloading, perhaps containing a message to display to users - "Sorry, site is down for essential maintenance...". The point being, Admin can restrict Forge to a finite resource (download bandwidth, etc) with a simple text file and no code changes.
Cheers,
Steve
Re: Forge version 1.4.4
by Max mtg » 28 Jul 2013, 18:25
It was removed to eliminate the user unfriendly experience when one cannot play yet and has to wait until all 12k+ pictures arrive (assuming a clean installation).friarsol wrote:I don't believe that's when it was removed, I think Max just got rid of it one day, and I told him that Rob asked that to be in there specifically.
I don't think we should break historical archiving due to this however.
Assuming that a picture gets downloaded instantly and the delay is set to half a second, the full download would take 2.5 hours, that a player has to wait and cannot make any use of Forge.
Things would be better if that download were performed by a background thread giving priority to cards currently shown in match ui.
Single class for single responsibility.
- Max mtg
- Programmer
- Posts: 1997
- Joined: 02 Jul 2011, 14:26
- Has thanked: 173 times
- Been thanked: 334 times
Re: Forge version 1.4.4
by spr » 28 Jul 2013, 18:52
Max, unless you want to have a look, I wouldn't mind having a go this -Max mtg wrote:Things would be better if that download were performed by a background thread giving priority to cards currently shown in match ui.
- Download images in background thread.
- Priority to images already in cache.
- Refresh images in-play.
- Admin-configurable throttling.
Cheers,
Steve
Re: Forge version 1.4.4
by Max mtg » 28 Jul 2013, 21:38
Steve, feel free to implement any points on your list.spr wrote:Max, unless you want to have a look, I wouldn't mind having a go this -Max mtg wrote:Things would be better if that download were performed by a background thread giving priority to cards currently shown in match ui.
- Download images in background thread.
- Priority to images already in cache.
- Refresh images in-play.
- Admin-configurable throttling.
Cheers,
Steve
Single class for single responsibility.
- Max mtg
- Programmer
- Posts: 1997
- Joined: 02 Jul 2011, 14:26
- Has thanked: 173 times
- Been thanked: 334 times
Re: Forge version 1.4.4
by friarsol » 28 Jul 2013, 22:26
While true, acquiescing to the request of the person actually in charge of the website where the downloads are going seems more important. If the website was shutdown because of the ISP, the user experience would be "wait X time to not download thousands of images" which seems way worse than "play without picture for a bit, and let the downloader run overnight."Max mtg wrote:It was removed to eliminate the user unfriendly experience when one cannot play yet and has to wait until all 12k+ pictures arrive (assuming a clean installation).
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Forge version 1.4.4
by Rob Cashwalker » 29 Jul 2013, 01:12
The host allegedly "resolved" the problem. Not sure how or why.. they didn't make any issue of the content or how it was being retrieved. (fine print says that all traffic must be generated by users browsing the site live)
Chris, try the release script again, let me know of any error, I was able to FTP successfully.
I would rather have an on-demand download process. Even if there was no delay, or better, a multi-threaded download where multiple images were pulled at once, the overall impact on the server would be minimized. (unless someone tried to highlight every card and set in the deck editor)
Traffic records indicate the average user pulls down 20k to 50k+ files, 500MB to 1.8 GB in a minimum of 3 or 4 sessions. It's less about the bandwidth than the sheer number of requests being processed. Hell, I'd even consider just allowing a single-archive download (still in-game) with subsequent updates card-by-card..
So really, how many previous releases should be maintained? Can I dump the snapshot builds for the non-current release?
Chris, try the release script again, let me know of any error, I was able to FTP successfully.
I would rather have an on-demand download process. Even if there was no delay, or better, a multi-threaded download where multiple images were pulled at once, the overall impact on the server would be minimized. (unless someone tried to highlight every card and set in the deck editor)
Traffic records indicate the average user pulls down 20k to 50k+ files, 500MB to 1.8 GB in a minimum of 3 or 4 sessions. It's less about the bandwidth than the sheer number of requests being processed. Hell, I'd even consider just allowing a single-archive download (still in-game) with subsequent updates card-by-card..
So really, how many previous releases should be maintained? Can I dump the snapshot builds for the non-current release?
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: Forge version 1.4.4
by Max mtg » 29 Jul 2013, 05:49
Sol, note that the site failure happened after a few months passed. Why did it break only last weekend and not right after the delay was removed?
If Steve is lucky to implement picture downloads in a background thread, the problem is to be solved.
I think we should encourage people to download full set images elsewhere (and give link to viewtopic.php?f=15&t=445&p=105934 for instance) and give away some pictures from cardforge.org only by demand to show cards while thay are playing to avoid these one-gigabyte sessions.
If Steve is lucky to implement picture downloads in a background thread, the problem is to be solved.
I think we should encourage people to download full set images elsewhere (and give link to viewtopic.php?f=15&t=445&p=105934 for instance) and give away some pictures from cardforge.org only by demand to show cards while thay are playing to avoid these one-gigabyte sessions.
Single class for single responsibility.
- Max mtg
- Programmer
- Posts: 1997
- Joined: 02 Jul 2011, 14:26
- Has thanked: 173 times
- Been thanked: 334 times
Re: Forge version 1.4.4
by LordHelmchen » 29 Jul 2013, 08:53
I know that you prefer to have people use LQ pictures due to memory and slowdown issues, but as your example link seems to indicate HQ pics, I could not resist to chime in here and once more propose synergy with Magic Album and its picture torrent.Max mtg wrote:I think we should encourage people to download full set images elsewhere (and give link to viewtopic.php?f=15&t=445&p=105934 for instance) and give away some pictures from cardforge.org only by demand to show cards while thay are playing to avoid these one-gigabyte sessions.
I imagine that staying compatible with MWS paths will loose its importance once Forge can be used for online multiplayer and thus make MWS obsolete.
- LordHelmchen
- Posts: 125
- Joined: 21 Aug 2012, 16:06
- Has thanked: 21 times
- Been thanked: 32 times
Re: Forge version 1.4.4
by friarsol » 29 Jul 2013, 12:13
Because there was an influx of a new users slamming requests against the server, as Rob mentioned below.Max mtg wrote:Sol, note that the site failure happened after a few months passed. Why did it break only last weekend and not right after the delay was removed?
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Forge version 1.4.4
by Chris H. » 29 Jul 2013, 12:48
Rob Cashwalker wrote:The host allegedly "resolved" the problem. Not sure how or why.. they didn't make any issue of the content or how it was being retrieved. (fine print says that all traffic must be generated by users browsing the site live)
Chris, try the release script again, let me know of any error, I was able to FTP successfully.
I was able to release a snapshot build this morning and everything appears to be working correctly.

-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Forge version 1.4.4
by Chris H. » 29 Jul 2013, 12:51
Max mtg wrote:I think we should encourage people to download full set images elsewhere (and give link to viewtopic.php?f=15&t=445&p=105934 for instance) and give away some pictures from cardforge.org only by demand to show cards while thay are playing to avoid these one-gigabyte sessions.
Mark has maintained a link to all of the images for some time but I think that this tends to get overlooked. I do not want to overwhelm him and his link and I think we should be careful.
viewtopic.php?f=26&t=468
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Forge version 1.4.4
by Chris H. » 29 Jul 2013, 12:53
Should we release 1.4.4 on Friday August 2?
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Forge version 1.4.4
by Sloth » 29 Jul 2013, 19:36
Everyone aimed for the release last friday, so a release earlier than friday would be welcome.Chris H. wrote:Should we release 1.4.4 on Friday August 2?
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Forge version 1.4.4
by Chris H. » 29 Jul 2013, 20:05
Sloth wrote:Everyone aimed for the release last friday, so a release earlier than friday would be welcome.Chris H. wrote:Should we release 1.4.4 on Friday August 2?
Is the project stable enough for a release at this time?
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Forge version 1.4.4
by moomarc » 29 Jul 2013, 20:59
Is it just me that can't play beyond the first game in a constructed match?Chris H. wrote:Sloth wrote:Everyone aimed for the release last friday, so a release earlier than friday would be welcome.Chris H. wrote:Should we release 1.4.4 on Friday August 2?
Is the project stable enough for a release at this time?
-Marc
-
moomarc - Pixel Commander
- Posts: 2091
- Joined: 04 Jun 2010, 15:22
- Location: Johannesburg, South Africa
- Has thanked: 371 times
- Been thanked: 372 times
48 posts
• Page 2 of 4 • 1, 2, 3, 4
Who is online
Users browsing this forum: No registered users and 45 guests