HOME WORLD FORUMS WIKI VIDEOS
8112 members and stacking!
     Welcome guest, please login or sign up

5 Pages V < 1 2 3 4 > »   
Reply to this topicStart new topic
> Minimal Tetris Friends: Reducing lag as much as possible, Version 4.9.7 (updated 2017-09-17)
SirJeivus
post Mar 26 2014, 01:37 AM
Post #16


Tetris Novice
Group Icon
Posts: 59
Joined: 19-December 11



I saw this thread a while ago but didn't try out the Adblock Plus until last week. I have to say it made huge changes with my TF performance. I was able to break my TF sprint record by more than a second thanks to you, so I wanted to give you my formal thanks.

32.22s to 31.19!

User is offlinePM
Go to the top of the page
+Quote Post
morningpee
post Mar 26 2014, 08:25 PM
Post #17


Tetris Specialist
Group Icon
Posts: 286
Joined: 1-October 13



New version released today (2.10)! The update now includes:
• Minimal versions of Ultra and Sprint
• Opera support

QUOTE(SirJeivus @ Mar 26 2014, 01:37 AM) *

I saw this thread a while ago but didn't try out the Adblock Plus until last week. I have to say it made huge changes with my TF performance. I was able to break my TF sprint record by more than a second thanks to you, so I wanted to give you my formal thanks.

32.22s to 31.19!
Glad it worked out for you!
User is offlinePM
Go to the top of the page
+Quote Post
FelipeMayrink
post Mar 26 2014, 09:33 PM
Post #18


Tetris Specialist
Group Icon
Posts: 273
Joined: 18-July 12



QUOTE(morningpee @ Mar 26 2014, 08:25 PM) *

New version released today (2.10)! The update now includes:
Minimal versions of Ultra and Sprint

When I finish a game of Sprint or Ultra I get this:
IPB Image


Though when playing and when I load the page it works fine. Help? Or do I actually need to manually refresh the page?
User is offlinePM
Go to the top of the page
+Quote Post
morningpee
post Mar 26 2014, 09:38 PM
Post #19


Tetris Specialist
Group Icon
Posts: 286
Joined: 1-October 13



QUOTE(FelipeMayrink @ Mar 26 2014, 09:33 PM) *

When I finish a game of Sprint or Ultra I get this:
Though when playing and when I load the page it works fine. Help? Or do I actually need to manually refresh the page?

Tetris Friends still records your game, so if you get a daily or all-time high score, it will save it. MTF's next update will add the replayer back in after the game finishes, though you do get a blank page for now.
User is offlinePM
Go to the top of the page
+Quote Post
djackallstar
post Mar 27 2014, 12:17 AM
Post #20


Tetris Apprentice
Group Icon
Posts: 125
Joined: 29-October 13



QUOTE(morningpee @ Mar 27 2014, 04:25 AM) *

New version released today (2.10)! The update now includes:
• Minimal versions of Ultra and Sprint
• Opera support

Environment
OS: Debian Sid
Browser: Iceweasel 24.4.0
Script Manager: Scriptish 0.1.11

Bug Reports
1. gamePrerollComplete is not defined.
IPB Image


The script stops there.
I changed setTimeout(gamePrerollComplete, 1000); to the following in order for the script to work:
CODE

            for (var i=0; i<3; i++) {
                try {
                    setTimeout(function() {
                        unsafeWindow.document.getElementById("contentFlash").style.visibility="visible";
                        unsafeWindow.document.getElementById("contentFlash").as3_prerollDone();
                    }, 1000)
                } catch(e) {};
            }


2. The key binding to restart the game doesn't work now.
This is my previous code to restart the game with the "q" key:
CODE

unsafeWindow.document.getElementById('contentFlash').onkeydown=function(evt){if(evt.keyCode==81){evt.preventDefault(); unsafeWindow.document.getElementById("contentFlash").as3_tetrisGameRestart();}};

I inserted it directly into the bottom of MTF and it doesn't work.
Not sure why, because unsafeWindow.document.getElementById('contentFlash') isn't null.

Feature Requests
1. Instead of adding the replay player back, would you please add a flag in the script for the user to choose between 'show the replay player' and 'continue the next game without asking'? I'm kinda lazy to click the 'play again' button every time I finish a sprint, and due to my crappy Internet connection, refreshing the page is a little bit too slow.


--------------------
User is offlinePM
Go to the top of the page
+Quote Post
Aaron
post Mar 27 2014, 06:50 AM
Post #21


Tetris God
Group Icon
Posts: 2,796
Joined: 11-August 12



This script is great.


--------------------
QUOTE(Alexandra @ Jan 25 2015, 08:19 PM) *
I don't really know much about hot dogs but I do know Aaron is the greatest moderator ever.
User is offlinePM
Go to the top of the page
+Quote Post
Blink
post Mar 27 2014, 06:54 AM
Post #22


Tetris God
Group Icon
Posts: 2,966
Joined: 24-June 09



I used this today. It works.
User is offlinePM
Go to the top of the page
+Quote Post
jkwon23
post Mar 30 2014, 04:30 AM
Post #23


Tetris Professional
Group Icon
Posts: 544
Joined: 3-July 10



I cut 2 seconds off my sprint time!

32.?? - > 30.64

Thanks, morningpee!




--------------------
User is offlinePM
Go to the top of the page
+Quote Post
unpronuncyashun2
post Mar 30 2014, 08:55 AM
Post #24


Tetris Apprentice
Group Icon
Posts: 114
Joined: 2-August 12



This actually helps quite a lot, my pieces stopped teleporting and I made way less MDs than vanilla TF. Thanks morningpee Grin.png
User is offlinePM
Go to the top of the page
+Quote Post
Donorgyll
post May 15 2014, 12:50 PM
Post #25


Tetris Novice
Group Icon
Posts: 24
Joined: 30-April 13



Userscripts is down at the moment, is it possible for you to re-host it somewhere else? I would really appreciate it!
User is offlinePM
Go to the top of the page
+Quote Post
djackallstar
post May 15 2014, 02:36 PM
Post #26


Tetris Apprentice
Group Icon
Posts: 125
Joined: 29-October 13



QUOTE(Donorgyll @ May 15 2014, 08:50 PM) *

Userscripts is down at the moment, is it possible for you to re-host it somewhere else? I would really appreciate it!


One can still access USO thru port 8080.

http://userscripts.org:8080/scripts/source/186531.user.js


--------------------
User is offlinePM
Go to the top of the page
+Quote Post
morningpee
post May 15 2014, 02:52 PM
Post #27


Tetris Specialist
Group Icon
Posts: 286
Joined: 1-October 13



QUOTE(Donorgyll @ May 15 2014, 12:50 PM) *

Userscripts is down at the moment, is it possible for you to re-host it somewhere else? I would really appreciate it!

Sure. The links should work now, or click here.

QUOTE(djackallstar @ May 15 2014, 02:36 PM) *

One can still access USO thru port 8080.

http://userscripts.org:8080/scripts/source/186531.user.js

Nifty!
User is offlinePM
Go to the top of the page
+Quote Post
pwn_by_numbers
post May 22 2014, 08:32 AM
Post #28


Tetris Novice
Group Icon
Posts: 37
Joined: 2-October 13



I did a quick hack that makes the results page show up for Sprint and Ultra, it doesn't look very pretty though. (Looks like the styling depends on some elements that were removed, I tried to fix it, but didn't have much luck.)

http://pastebin.com/zbEsDNVU
User is offlinePM
Go to the top of the page
+Quote Post
djackallstar
post May 22 2014, 10:17 AM
Post #29


Tetris Apprentice
Group Icon
Posts: 125
Joined: 29-October 13



QUOTE(pwn_by_numbers @ May 22 2014, 04:32 PM) *

I did a quick hack that makes the results page show up for Sprint and Ultra ...

Just compiled an incomplete but more thorough list of swf files to be included in MTF.

Note that the NBlox swf doesn't work.

CODE

var href = location.href;
var game_swf = '';
if(/\bSprint\b/.test(href)) { game_swf = "http://tetrisow-a.akamaihd.net/data4_0_0_1/games/Sprint/OWGameSprint.swf?version=3"; }
else if(/\bLive\b/.test(href)) { game_swf = "http://www.tetrisfriends.com/data/games/Live/OWGameTetrisLive.swf?livebust=0165?version=0"; }
else if(/\bUltra\b/.test(href)) { game_swf = "http://tetrisow-a.akamaihd.net/data4_0_0_1/games/Ultra/OWGameUltra.swf?version=3"; }
else if(/\bMarathon\b/.test(href)) { game_swf = "http://tetrisow-a.akamaihd.net/data4_0_0_1/games/Marathon/OWGameMarathon.swf?version=3"; }
else if(/\bMono\b/.test(href)) { game_swf = "http://tetrisow-a.akamaihd.net/data4_0_0_1/games/Mono/OWGameColorBlind.swf?version=3"; }
else if(/\bSurvival\b/.test(href)) { game_swf = "http://tetrisow-a.akamaihd.net/data4_0_0_1/games/Survival/OWGameSurvival.swf?version=3"; }
else if(/\bNBlox\b/.test(href)) { game_swf = "http://tetrisow-a.akamaihd.net/data4_0_0_1/games/NBlox/nbloxWebsite.swf?version=3"; } // doesn't work
else if(/\bBattle2P\b/.test(href)) { game_swf = "http://tetrisow-a.akamaihd.net/data4_0_0_1/games/Battle2P/OWGameBattle2pMaps.swf?version=0"; }
else if(/\bBattle6P\b/.test(href)) { game_swf = "http://tetrisow-a.akamaihd.net/data4_0_0_1/games/Battle6P/OWGameBattle6P.swf?version=0"; }
else if(/\bRally8P\b/.test(href)) { game_swf = "http://tetrisow-a.akamaihd.net/data4_0_0_1/games/Rally8P/OWRally8P.swf?version=0"; }
else if(/\bSprint5P\b/.test(href)) { game_swf = "http://tetrisow-a.akamaihd.net/data4_0_0_1/games/Sprint5P/OWGameSprint5p.swf?version=0"; }
else { game_swf = document.getElementsByTagName('OBJECT')[0].data; }


--------------------
User is offlinePM
Go to the top of the page
+Quote Post
djackallstar
post Jun 8 2014, 04:22 AM
Post #30


Tetris Apprentice
Group Icon
Posts: 125
Joined: 29-October 13



userscripts.org is completely down, but fortunately someone has set up a mirror site. To download morningpee's script, visit http://userscripts-mirror.org/scripts/show/186531.html


--------------------
User is offlinePM
Go to the top of the page
+Quote Post

5 Pages V < 1 2 3 4 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

©2009-2017 Hard Drop Community & Forum
harddrop.com is not sponsored or endorsed by The Tetris Company or its subsidiaries.