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

Live Stream Calendar
2 Pages V  1 2 >  
Reply to this topicStart new topic
> TETREVIL mod for nullpo
esialb
post Jun 18 2012, 10:37 AM
Post #1


Tetris Novice
Group Icon
Posts: 55
Joined: 29-January 12



So, I've been poking though the nullpo source code off and on, and I think I can make a distributable mod for it that will let you play against the tetrevil randomizer. Not sure, but this could eventually lead to nullpo-powered tetrevil multiplayer. Depending on how "hookable" nullpo is, I may be able to import some of the tetrevil UI, such as flow backgrounds and (possibly!) ghost lines.

Is this something people would actually play? I can dream up things like fantasy tetrevil championships, but programmer pipe dreams and reality need not always intersect.

I'll probably do it anyway because it sounds fun (to code), but I hereby solicit comments.
User is offlinePM
Go to the top of the page
+Quote Post
XaeL
post Jun 18 2012, 10:50 AM
Post #2


Tetris Grand Master
Group Icon
Posts: 2,370
Joined: 30-June 09



pretty sure u cna just implement a randomizer? (but u will have to somehow pass in the game state to teh randomizer.next())


--------------------
IPB Image


QUOTE(Paradox @ Dec 16 2010 @ 05:52 PM)
Like many setups here, it is useful if your opponent doesn't move and you get 4 Ts in a row.
User is offlinePM
Go to the top of the page
+Quote Post
belzebub
post Jun 18 2012, 07:43 PM
Post #3


Tetris Apprentice
Group Icon
Posts: 178
Joined: 29-June 11



contact me on skype we'll do it together
User is offlinePM
Go to the top of the page
+Quote Post
Kitaru
post Jun 18 2012, 10:39 PM
Post #4


Tetris Grand Master
Group Icon
Posts: 1,012
Joined: 26-June 09



If I recall correctly, Nullpomino's randomizers pre-generate a 1400 piece loop. You'll probably have to muss with it a bunch to get it to be dynamic and still retain replay sync etc..


--------------------
My Backloggery
User is offlinePM
Go to the top of the page
+Quote Post
XaeL
post Jun 19 2012, 01:28 AM
Post #5


Tetris Grand Master
Group Icon
Posts: 2,370
Joined: 30-June 09



QUOTE(Kitaru @ Jun 18 2012, 10:39 PM) *

If I recall correctly, Nullpomino's randomizers pre-generate a 1400 piece loop. You'll probably have to muss with it a bunch to get it to be dynamic and still retain replay sync etc..

aka rewrite the entire randomizer interface.


--------------------
IPB Image


QUOTE(Paradox @ Dec 16 2010 @ 05:52 PM)
Like many setups here, it is useful if your opponent doesn't move and you get 4 Ts in a row.
User is offlinePM
Go to the top of the page
+Quote Post
esialb
post Jun 19 2012, 06:02 AM
Post #6


Tetris Novice
Group Icon
Posts: 55
Joined: 29-January 12



QUOTE(XaeL @ Jun 19 2012, 01:28 AM) *

aka rewrite the entire randomizer interface.

aka I ALREADY DID IT AND IT WORKS! HAHAHAHAHAHAH!

(Can you tell I've had a lot of caffeine?)


(EDIT: Fixed this URL.)
http://www.tetrevil.org/tetrevil_nullpo.jnlp

It's a single self-contained java app that has the tetrevil mod to nullpo in it. Rather than package a whole nullpo you tell it where the nullpo install directory is the first time you launch the tetrevil_nullpo.jar file. The _only_ change it makes to your nullpo install is adding one line to config/list/mode.lst, to add the tetrevil mode.

If you launch nullpo without using the tetrevil launcher then nullpo ignores that line and behaves exactly as normal. If you launch it with the tetrevil launcher you get at the bottom of your mode list an entry for "TETREVIL". Play that and you get to play nullpo with the tetrevil randomizer at the Aggressive setting. Options, configuration, multiplayer, etc., still to come, but the point is...

IT WORKS!

also it was easy. Sticking Out Tongue.png
User is offlinePM
Go to the top of the page
+Quote Post
XaeL
post Jun 19 2012, 10:58 AM
Post #7


Tetris Grand Master
Group Icon
Posts: 2,370
Joined: 30-June 09



Was it really that easy to re-write the entire randomizer api? didnt it break all the other randomizers?


--------------------
IPB Image


QUOTE(Paradox @ Dec 16 2010 @ 05:52 PM)
Like many setups here, it is useful if your opponent doesn't move and you get 4 Ts in a row.
User is offlinePM
Go to the top of the page
+Quote Post
esialb
post Jun 19 2012, 11:18 AM
Post #8


Tetris Novice
Group Icon
Posts: 55
Joined: 29-January 12



QUOTE(XaeL @ Jun 19 2012, 10:58 AM) *

Was it really that easy to re-write the entire randomizer api? didnt it break all the other randomizers?


I never touched ANY of the nullpo code, which means I didn't (for example) have to rewrite any APIs. The GameEngine class is hookable enough to bring that 1400-piece default lookahead down to no lookahead. I'll make the source available in a few minutes.

EDIT: Source code for the nullpo mod now available. See: http://www.tetrevil.org/source.txt
As always, you will need git to check out the sources. If people want me to build zip files or something I will, but so far only people who already have git have wanted to see the source.
User is offlinePM
Go to the top of the page
+Quote Post
belzebub
post Jun 19 2012, 12:26 PM
Post #9


Tetris Apprentice
Group Icon
Posts: 178
Joined: 29-June 11



QUOTE(esialb @ Jun 19 2012, 11:18 AM) *

I never touched ANY of the nullpo code, which means I didn't (for example) have to rewrite any APIs. The GameEngine class is hookable enough to bring that 1400-piece default lookahead down to no lookahead. I'll make the source available in a few minutes.

EDIT: Source code for the nullpo mod now available. See: http://www.tetrevil.org/source.txt
As always, you will need git to check out the sources. If people want me to build zip files or something I will, but so far only people who already have git have wanted to see the source.


ok for you if I add it to my mod? combined with the reporting it might be interesting to go through the generated fumens
User is offlinePM
Go to the top of the page
+Quote Post
caffeine
post Jun 19 2012, 01:07 PM
Post #10


Tetris Grand Master
Group Icon
Posts: 1,260
Joined: 27-June 09



I guess this is a good a place to ask as anywhere, but I'm trying to clone your source, but I keep getting this error:
QUOTE
fatal: unable to connect to git.tetrevil.org: git.tetrevil.org[0: 74.112.203.148]: errno=No error
User is offlinePM
Go to the top of the page
+Quote Post

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

 

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