It is currently 09 Sep 2025, 08:38
   
Text Size

Forge version 1.4.4

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Re: Forge version 1.4.4

Postby spr » 28 Jul 2013, 16:50

Actually, while I am on the subject. :D ...

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
User avatar
spr
 
Posts: 213
Joined: 06 Jul 2013, 19:31
Has thanked: 28 times
Been thanked: 60 times

Re: Forge version 1.4.4

Postby Max mtg » 28 Jul 2013, 18:25

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.
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).

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

Postby spr » 28 Jul 2013, 18:52

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.
Max, unless you want to have a look, I wouldn't mind having a go this -

- Download images in background thread.
- Priority to images already in cache.
- Refresh images in-play.
- Admin-configurable throttling.

Cheers,
Steve
User avatar
spr
 
Posts: 213
Joined: 06 Jul 2013, 19:31
Has thanked: 28 times
Been thanked: 60 times

Re: Forge version 1.4.4

Postby Max mtg » 28 Jul 2013, 21:38

spr wrote:
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.
Max, unless you want to have a look, I wouldn't mind having a go this -

- Download images in background thread.
- Priority to images already in cache.
- Refresh images in-play.
- Admin-configurable throttling.

Cheers,
Steve
Steve, feel free to implement any points on your list.
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

Postby friarsol » 28 Jul 2013, 22:26

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).
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."
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

Postby 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?
The Force will be with you, Always.
User avatar
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

Postby 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.
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

Postby LordHelmchen » 29 Jul 2013, 08:53

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 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.

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

Postby friarsol » 29 Jul 2013, 12:13

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?
Because there was an influx of a new users slamming requests against the server, as Rob mentioned below.
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

Postby 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. :)
User avatar
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

Postby 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
User avatar
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

Postby Chris H. » 29 Jul 2013, 12:53

Should we release 1.4.4 on Friday August 2?
User avatar
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

Postby Sloth » 29 Jul 2013, 19:36

Chris H. wrote:Should we release 1.4.4 on Friday August 2?
Everyone aimed for the release last friday, so a release earlier than friday would be welcome.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Forge version 1.4.4

Postby Chris H. » 29 Jul 2013, 20:05

Sloth wrote:
Chris H. wrote:Should we release 1.4.4 on Friday August 2?
Everyone aimed for the release last friday, so a release earlier than friday would be welcome.
 
Is the project stable enough for a release at this time?
User avatar
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

Postby moomarc » 29 Jul 2013, 20:59

Chris H. wrote:
Sloth wrote:
Chris H. wrote:Should we release 1.4.4 on Friday August 2?
Everyone aimed for the release last friday, so a release earlier than friday would be welcome.
 
Is the project stable enough for a release at this time?
Is it just me that can't play beyond the first game in a constructed match?
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 33 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 33 users online :: 0 registered, 0 hidden and 33 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 33 guests

Login Form