Jump to content
IGNORED

VGS NES Weekly Contest - KLAX


BeaIank
 Share

Recommended Posts

Events Team · Posted
1 hour ago, Bearcat-Doug said:

If I can make the top 8, it would be mathematically possible for me to move up to 8th on the overall leaderboard. If I can beat @Jeevan, I'd play you in the second round.

so participate is what u are telling me?  fml, why can't I just coast to the tourney 😒.  Now I have to try damn you!

Link to comment
Share on other sites

Member · Posted
2 hours ago, Bearcat-Doug said:

The turnout was really low this week. It looks like I might make the top 8 by just posting a score.

Yeah i just counted through I think I'm in 4th but everything else is same as leaderboard.  Lately Ive just been trying my hand at playing on the final Sunday only.  It would be one my better time to point value translations through the year if not the best, only spent 30 minutes on it.  But then again it depends on what stratosphere mbd's score is in.

Anyway my reflexes have improved generally but lesson learned about not prepping enough, I know there's quite a few potential points I left on the table in several contests.  If low seed it be it's all on me

Link to comment
Share on other sites

And here are my findings. I've actually looked into Klax before, so I already had some of the ram locations mapped out. However, I really didn't dig very far into the code this time. I just worked out the RNG code. The important bit is the RNG is seeded by the first frame it is called which happens to be the frame that the first piece spawns. Even more importantly, the RNG is only updated twice per piece spawned and that's it. Once for the piece color and again for it's column (the piece that starts on the paddle is determined first and obviously doesn't pick a column). So, you can get the same pieces every time if you hit that first RNG call on the same frame (or a multiple of 256 away).

Now that question becomes, which of the 256 frames should we start on and how many pieces should we delay in level 1. And the answer to that was to write a script that finds the best setup for me. I started by trying to find and 4 column set up like in that video I posted (and gives ~1.7 million), but quickly I realized a 5 column might be possible. And sure enough I found that frame 0x9e with delaying 34 pieces in level 1 would work. It gives you a 20 blue to make the 5 columns of 4, 7 yellow to make the T shape, 3 pink that you can make a normal klax with to remove, 6 green to make another 2 klaxes, and finally 5 red to make a klax with 3 and drop the last two in the two free misses. It is kind of lucky that this setup exists at all considering you can only delay up to around ~50 in the first level with the drop meter on. The next one is at a ~350 piece delay although when I check the density at all the delays below 10,000 there were ~200, so roughly 1 out of 50.

Now it's down to execution. The first trick is hitting that first RNG frame on frame 414 (since frame 158 is too early). Luckily, the settings persist though a reset, so set those first. Then, I had to wait for a certain note in the title screen music before hitting start and spamming A to get though the tutorial screens. It takes many tries to hit the correct frame, but eventually you'll get it. I could tell if I got the right one by looking at the piece colors and positions. If I didn't get it, I wrote a script that lets me enter the piece info and tells me how far I was off so I could adjust. Interestingly when I switched from emulator (which I was using to practice) to the real NES, I had to change the note in the music to the next one to account for a reduction in input lag.

Once I hit the right frame, the setup I came up with for level 1 was fairly easy. I just needed to make sure that the 34th pieces spawns before finishing the level. Then is when the fun begins. The piece order is no too bad except a little at the end. There it gives you yellow, yellow, blue for the last three pieces. The yellow needs to be last piece for the combo, however the pieces seem to come too fast to flip up the first yellow between the blue and the next piece (which I cannot allow to drop since I've already used up my two free drops with the extra reds). So, I came up with a complicated set up that put it right after the next piece so I could flip that one up too. After some practice I wasn't as consistent as I hoped. But, then I realized that we can make enough space between blue and the next piece by pressing down at the right time earlier to speed things up. There's not a lot of slack, but just enough to be a bit more consistent.

So, after a bit of save state practice, it was on to the real thing. I got the right frame pretty quickly and nailed everything else first try. And that's the score I posted. However, afterwards I realized that you could squeeze out a few more thousand by clearing 3 of the 4 pre-combo klaxes with a diagonal instead of a horizontal (the fourth comes too late to allow room for a diagonal, but it too might be possible with a clever enough setup).

Link to comment
Share on other sites

Oh, yeah. I uploaded my script if anyone was interested (it's very hacky so be warned, e.g. all the 16s in variable names and such should be replaced by 20s but I was lazy): https://gist.github.com/bbernardoni/01288fd0b46af5ff03dd90f9617a533d

The RNG function is pretty bizarre. There are three bytes that store the RNG seed ($9F, $A0, and $A1). $A0 and $A1 combine to form a 16-bit LFSR. $9F is quintupled and incremented every RNG call and is also the one that is initialized to the frame number of the first call. The effective random number is the XOR of all three bytes and then scaled to the desired range such as between 0-4 for the column.

Link to comment
Share on other sites

5 hours ago, 0xDEAFC0DE said:

Yeah, that's a shame. It is a fun one even without the RNG manipulation.

I agree. It was fun during the 2015 contest when everyone was just playing it normally. I'm guessing that it's been broken now to the point where it won't be appearing in any future contests.

Link to comment
Share on other sites

2 hours ago, Bearcat-Doug said:

I agree. It was fun during the 2015 contest when everyone was just playing it normally. I'm guessing that it's been broken now to the point where it won't be appearing in any future contests.

Hmm, I wonder if there's a way to solve it. I guess you would just have to ban RNG manipulation as well as trying to figure out the RNG seed you did start with (as that would tell you upcoming pieces). That should take away all the broken parts. 

But then we are back to the problem with the last time Bea won. You would probably need a different goal then plain high score. 

Link to comment
Share on other sites

Events Team · Posted

It is doable to do a progress + low score ruleset for this, but low score takes part of the fun of the game.
Progress + highest score means nailing the first 3 stages with the max score possible for them and then sailing through.

Another permutation that I can think of is a slight modification of the current ruleset. Progress + highest score of your last stage.
But that will require the players to always take a picture at the start of the current stage in case they die there.

Link to comment
Share on other sites

Member · Posted
2 hours ago, mbd39 said:

I love how I beat PII by 25 points for second place. That has to be one of the tightest margins in contest history.

Yeah, that was real cute.  It keeps me from the possibility of hitting 200 points, by just 1 point, lol.

  • Wow! 1
Link to comment
Share on other sites

  • BeaIank unpinned this topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


  • Welcome to VGS!

    Play, Make, Collect.

    Here at VGS all kinds of gamers are welcome, and that includes you!

    Join the conversation!

  • Similar Content

    • By BeaIank
      Hello and welcome! @guillavoie and I have the honour to present the 2021 VGS NES Tournament, which picks the top 16 players of the season to play among themselves to decide the 2021 VGS NES Tournament Champion.

      @Dr. Morbis was already crowned the 2021 VGS NES Weekly Contest Champion and will have the chance to add another title to his collection should he choses to play in the tournament.
      While we wait for our top 16 players to confirm their participation and see if we will have to hunt for replacements, here are how the things will run for this tournament.
      21th to 28th - Pools, single elimination, 16 players.
      28th to 5th - top 8, single elimination, 8 players
      5th to 12th - Grand finals, 4 players, everyone against everyone.
      For Pools and Top 8, a selection of games will be given for the top seeded players to pick.
      The seeding for Pools 1 will be as follow:
      Bracket 1: 1st place vs 16th place Bracket 2: 2nd place vs 15th place Bracket 3: 3rd place vs 14th place Bracket 4: 4th place vs 13th place Bracket 5: 5th place vs 12th place Bracket 6: 6th place vs 11th place Bracket 7: 7th place vs 10th place Bracket 8: 8th place vs 9th place The seeding for top 8 will be as follow:
      Winner of bracket 1 vs winner of bracket 8 Winner of bracket 2 vs winner of bracket 7 Winner of bracket 3 vs winner of bracket 6 Winner of bracket 4 vs winner of bracket 5 The games for Pools are below:
      Pooyan (shooter)
      Challenger (plataformer)
      Kero Kero Keroppi no Daibouken (puzzle)
      Ninja Hattori-kun (action)
      Taito Chase H.Q. (racing)
      The games for top 8 will be revealed at the end of the Pools phase.

      Confirmed players:
      @Dr. Morbis
      @Krunch
      @0xDEAFC0DE
      @docile tapeworm
      @bertsampson
      @NESfiend
      @Bearcat-Doug 
      @Jeevan
      @PII
      @the_wizard_666
      @FireHazard51
      @mbd39
      @Ausden
      @MegaMan52
      @JamesRobot
      @Mega Tank
      Good luck for all the players. Expect some nastiness in game selection for top 8 and for the grand finals.
       
    • By BeaIank
      Welcome, fiery warriors. I hope you all are ready and up for the challenge.
      The very last challenge of the 2021 VGS NES Weekly Contest and that will define the one who will bear the coveted crow of the Platformer genre!
      Right now, @Dr. Morbis cannot be beaten at the Geral contest and is the 2021 VGS NES Weekly Contest CHAMPION! CONGRATULATIONS!
      As for the platformer genre, @Dr. Morbis leads with 28 points, but @PIIis right on his tail with 25 points. Krunch is not out of the race with 20 points.
      Without further ado, here's the rules for this very special game that ends the 2021 VGS NES Weekly Contest, Holy Diver!
      Only the original Famicom version (cart or rom) will be allowed Play till your first death As you are dying, be quick and take a picture to record your current magic. You can also be careful and take the picture of your magic as you are one hit from dying. If you cannot take the picture of your current magic, your magic will be considered 0 at respawn. Take your picture once you respawn If you beat the game, take the picture at the ending. Progress + highest magic at death wins Genre: Platformer Good luck warriors. You will need it.

      The contest ends Sunday, 11/14/21 at midnight Brasilia time. Your user name MUST be written or typed on a piece of paper and be in the picture for your score to be valid.  The entire TV screen, or computer monitor if you are playing on an emulator, MUST be in the picture for the score to be valid.  No partial screenshots will be considered or accepted.  No screenshots by hitting "print screen" on a computer will be allowed.  You must take a picture of your computer monitor.  There may be instances where this will be acceptable, but it will be at the discretion of myself and the contest organizers.  Also, the use of turbo controllers is forbidden, as well as any cheat codes, Game Genies, slow motion functions, or save states if playing on an emulator.  Also, we will only be using NTSC systems for the contests.  The use of PAL systems will NOT be allowed.  Good luck everyone and have fun
    • By BeaIank
      Welcome, welcome!
      For this week, we have a classic of all ages to define the winner of the Shoot 'em up genre for 2021 VGS NES Weekly Contest.
      @Dr. Morbis leads the shooter scoreboard with 26 points, but @docile tapeworm comes in 2nd with 21 points, with the possibility to claim the title. @bertsampsonand @NESfiend also stand a chance for taking the title with 20 points each,
      The rules for this week are below:
      1 player only Play until Game Over Highest score wins Shoot them up!

      The contest ends Sunday, 10/31/21 at midnight Brasilia time. Your user name MUST be written or typed on a piece of paper and be in the picture for your score to be valid.  The entire TV screen, or computer monitor if you are playing on an emulator, MUST be in the picture for the score to be valid.  No partial screenshots will be considered or accepted.  No screenshots by hitting "print screen" on a computer will be allowed.  You must take a picture of your computer monitor.  There may be instances where this will be acceptable, but it will be at the discretion of myself and the contest organizers.  Also, the use of turbo controllers is forbidden, as well as any cheat codes, Game Genies, slow motion functions, or save states if playing on an emulator.  Also, we will only be using NTSC systems for the contests.  The use of PAL systems will NOT be allowed.  Good luck everyone and have fun
    • By BeaIank
      Welcome, welcome!
      This week we will see who will be crowned the VERY FIRST VGS NES Weekly Contest Racing champion!
      Right now, the dispute has @NESfiend with 30 points and a very comfortable lead of 5 points over @PII, who has 25 points. With 22 points, @Dr. Morbis has no chance to take the crown from Nesfiend, so the dispute this week is between only him and Pii
      To decide this matter, the game of choice is R.C. Pro Am II. The rules are as follow:
      Player 1p only Play till game over You are not allowed to use continues. You ended 4th? TOUGH LUCK! You are done for. You can't name your character NES in order to start with $5000 before race 1. Take your picture at the highscore screen The player with the highest amount of points win Genre: Racing Pedal to the metal, ladies and gentlemen.

      The contest ends Sunday, 10/24/21 at midnight Brasilia time. Your user name MUST be written or typed on a piece of paper and be in the picture for your score to be valid.  The entire TV screen, or computer monitor if you are playing on an emulator, MUST be in the picture for the score to be valid.  No partial screenshots will be considered or accepted.  No screenshots by hitting "print screen" on a computer will be allowed.  You must take a picture of your computer monitor.  There may be instances where this will be acceptable, but it will be at the discretion of myself and the contest organizers.  Also, the use of turbo controllers is forbidden, as well as any cheat codes, Game Genies, slow motion functions, or save states if playing on an emulator.  Also, we will only be using NTSC systems for the contests.  The use of PAL systems will NOT be allowed.  Good luck everyone and have fun
    • By BeaIank
      Welcome to the last round of the Action genre in the 2021 VGS NES Weekly Contest, which will define who will claim the title and bring it home!
      For the Action genre run, we have @Dr. Morbis leading with 28 points, with @PII and @bertsampson tied in 2nd with 23 points. Finally @NESfiend and @mbd39are tied in 4th with 21 points. All of them have the chance to claim the title, despite the big lead Dr. Morbis sports.
      The rules for this week are as follow:
      1 life only Once you die, take your picture death screen, which stays on for a very short time, or wait till you respawn, pause the game and take your picture If you beat the final boss without dying, be quick to take a picture of him dying then pause the game when you respawn at 1-1 It is not allowed to point press at the boss door if you have flying. Once you reach the boss door, you have to go in. Highest score wins Participation: 5,000 points Genre: Arcade
      Best of luck, gentlemen and gentlewomen.
      The contest ends Sunday, 10/17/21 at midnight Brasilia time. Your user name MUST be written or typed on a piece of paper and be in the picture for your score to be valid.  The entire TV screen, or computer monitor if you are playing on an emulator, MUST be in the picture for the score to be valid.  No partial screenshots will be considered or accepted.  No screenshots by hitting "print screen" on a computer will be allowed.  You must take a picture of your computer monitor.  There may be instances where this will be acceptable, but it will be at the discretion of myself and the contest organizers.  Also, the use of turbo controllers is forbidden, as well as any cheat codes, Game Genies, slow motion functions, or save states if playing on an emulator.  Also, we will only be using NTSC systems for the contests.  The use of PAL systems will NOT be allowed.  Good luck everyone and have fun
×
×
  • Create New...