Game : Code Name Viper, Emulator used : FCEUX 2.06.04 , Goal : This run aims for the fastest time.
I managed to optimize my favorite game. This is 120 frames improvement.
First of all I found a new technique which saves time: If you need to jump on the other platform/box then jumping on its very first possible frame makes your faster by 1 frame everytime you do it (but beware there is a catch (which is harder to explain in words so i am leaving it )
Que: Why did i not kill more and more enemies to make this run more entertaining/fastpaced ? Ans : To save time i must manipulate enemies in such way that avoiding jumps is easily possible (because each jump slowdowns you by 4 frames ) and hence not killing enemies can prevent the loading of more enemies .
Tricks :-
1. Avoid jumps.
2. Whenever you need to jump multiple times try to jump contineously (here's an example to make you understand better :- 3 non-contineous jumps makes you slow by -4-4-4 = 12 frames , but if you jump contineously then it it makes you slow by -4-2-2 = 8 frames ), Hence jumping contineously is better.
3. You can follow the new technique which i which i mentioned above.
4. Reduce lag (yes even after not showing red frames this game has lag and it can be reduced ).
5. When you need to fire at an enemy behind you then don't fire in mid air because it slowdowns you by 2 frames so instead fire when you are about to land (it doesn't cost any frame).
6. Contineous jump after jumping over bullet firing enemy makes the enemy unable to detect your position (using this trick can be useful at some places as it converts two non-contineous jumps into contineous).
I used trial and error method at every single location to find new routes and improvements (this is where my run improves upon )
These are the locations where i saved time :-
Selection of easy difficulty is faster by 1 frame.
Area 1: reduced two jumps and used my new technique to save around 15+ frames in this level .
Area 2: this is the area/level where i got biggest time save......Used new route, reduced lag greatly , reduced one jump , used new technique to save around 35+ frames in this level.
Area 3: Used the default grenade commander's door (by chance ) it helped to do a contineous jump later in the game, used spring to get on upper platform because this new route was faster by 3 frames, reduced jumps to save a few frames .
Area 4 : reduced jumps to save time.
Area 5 : changed grenade commander door to reduce 3 jumps and also reduced lag.
Area 6 : Converted two non-contineous jumps into contineous jumps, reduced lag.
Area 7 : avoided unnecessary acceleration from the third conveyor belt and jumped on the first frame of next conveyor belt of ground level platform (got 5 frames) also reduced lag by 3 frames.
Area 8 : reduced jumps.
Used new technique in all areas at various locations to save frames.

feos: Claiming for judging.
feos: This run was really tricky to figure out. I had to do a 3-way comparison, with the current publication as well as the old movie by J.Y that was never submitted here.
The main obstacle is that this run uses the easiest difficulty, while both other runs use hard (J.Y also doing the second quest, whatever that is). Coupled with variable enemy spawns (affected by difficulty and when previous enemies despawned), it made it really hard to compare the 3 movies in optimality.
First I compared this run with J.Y's, which is a bit faster, but it's still very obscure, because the old link posted in the rejected submission thread was dead, and one had to use WayBackMachine while translating from Chinese to find it. I can't really consider it a well known record worth rejecting over.
Now actual comparison is kind of interesting. Half of the levels in Pankaj's runs are shorter, which was heavily affected by fewer spawns. And the levels J.Y done better (21 frames faster in level 2 and 35 in level 8) I tried to port the improvements to this submission and miserably failed, losing more time. To make this submission significantly shorter, one will have to test much more spawn manipulation and routing. The only part I managed to improve was saving 4 frames on the final boss, which I'm adding via submission replacement, but it's too tiny to consider co-authorship. J.Y jumped at a different frame and attacked the boss more optimally as a result.
XTREMAL93's run I also compared closely. I had to write a lua script that calculates gameplay lag, for both FCEUX and BizHawk:
if emu.registerafter ~= nil then
	-- FCEUX
	emu.registerafter(function()
		emu.setlagflag(memory.readbyte(0xCC) ~= 0)
	end)
else
	-- BizHawk
	event.onframeend(function()
		local lag = memory.readbyte(0xCC) ~= 0
		emu.setislagged(lag)
		tastudio.setlag(emu.framecount(), lag)
		lagcount = emu.lagcount()
		if lag then
			lagcount = lagcount+1
			emu.setlagcount(lagcount)
		end
	end)

	event.onloadstate(function()
		lagcount = emu.lagcount()
	end)
end
And what I saw using this script is that only in a few levels this run has less lag: level 1 (-5), level 6 (-14), and level 7 (-6). Other levels were either no difference or 1 lag frame less. Since spawns are in different order, and there's fewer spawns in this run, I was unable to determine how many of those lag frames were from better play, and how many were from easier difficulty.
Regarding level durations, this run was 3 frames slower in level 5, but faster in all the rest (-168 frames total). It's true that jumping onto corners was done better in this run, as well as chaining jumps. I haven't found any instances of worse play aside from a couple different jumps in level 5, all the rest was slightly better. So I can't seriously consider rejecting this run based on optimality, even if improvements are less clear just from movie comparison.
Currently we don't have rules that dictate which difficulty should be chosen, and I don't think we need such a rule anymore, even if it's just a guideline. But for future comparison, and to make the challenge more interesting, I'd recommend using the second quest Hard mode password (397211) and competing with J.Y directly. We most definitely don't ban passwords, instead we encourage them if they unlock a harder mode.

despoa: Processing...


TASVideoAgent
They/Them
Moderator
Joined: 8/3/2004
Posts: 15619
Location: 127.0.0.1
This topic is for the purpose of discussing #7747: Pankaj's NES Code Name: Viper in 10:54.56
EZGames69
He/They
Publisher, Reviewer, Expert player (4467)
Joined: 5/29/2017
Posts: 2764
The youtube encode embed just expects the link to the video, not “ https://www.youtube.com/embed/<video-id>”
[14:15] <feos> WinDOES what DOSn't 12:33:44 PM <Mothrayas> "I got an oof with my game!" Mothrayas Today at 12:22: <Colin> thank you for supporting noble causes such as my feet MemoryTAS Today at 11:55 AM: you wouldn't know beauty if it slapped you in the face with a giant fish [Today at 4:51 PM] Mothrayas: although if you like your own tweets that's the online equivalent of sniffing your own farts and probably tells a lot about you as a person MemoryTAS Today at 7:01 PM: But I exert big staff energy honestly lol Samsara Today at 1:20 PM: wouldn't ACE in a real life TAS just stand for Actually Cease Existing
Pankaj
He/Him
Active player (284)
Joined: 10/20/2022
Posts: 61
Location: Rajasthan, India
EZGames69 wrote:
The youtube encode embed just expects the link to the video, not “ https://www.youtube.com/embed/<video-id>”
Ok i was confused with this option , i am uploading the video then i will paste the link here
Editor, Skilled player (1441)
Joined: 3/31/2010
Posts: 2112
I don't know the previous TAS of this game, but this was very short and sweet. Very entertaining work. Yes vote.
Pankaj
He/Him
Active player (284)
Joined: 10/20/2022
Posts: 61
Location: Rajasthan, India
scrimpeh wrote:
I don't know the previous TAS of this game, but this was very short and sweet. Very entertaining work. Yes vote.
Thank You for your kind comment.
XTREMAL93
He/Him
Active player (446)
Joined: 1/6/2012
Posts: 586
Location: Azerbaijan, Baku
nice improvements. Yes vote! In Youtube video description you wrote " I observed that minor improvements can be done in area 3 and 5." So maybe you will improve it too?
Pankaj
He/Him
Active player (284)
Joined: 10/20/2022
Posts: 61
Location: Rajasthan, India
XTREMAL93 wrote:
nice improvements. Yes vote! In Youtube video description you wrote " I observed that minor improvements can be done in area 3 and 5." So maybe you will improve it too?
Thanks boss! I may try to improve it later because currently I'm busy in making TAS of a 3D game which will probably take months to optimize. Btw its nice to see that people like you are still interested in this game because I noticed that your oldest submission on this game is 10years old.
XTREMAL93
He/Him
Active player (446)
Joined: 1/6/2012
Posts: 586
Location: Azerbaijan, Baku
Pankaj wrote:
Thanks boss! I may try to improve it later because currently I'm busy in making TAS of a 3D game which will probably take months to optimize. Btw its nice to see that people like you are still interested in this game because I noticed that your oldest submission on this game is 10years old.
Yeap, this game was my first try to TAS in 2012) Then i did it again in 2019, which was published) This game is one of my favourite ones.
Editor, Reviewer, Skilled player (1360)
Joined: 9/12/2016
Posts: 1646
Location: Italy
At first I thought to judge this submission, but after a quick look I noticed a problem. I'm not going to claim this before I discuss and figure out how to judge it. The thing is, the current publication uses BizHawk (NESHawk core) while this submission uses FCEUX. Both emulators are allowed for making submissions, however in this case it's troublesome for me to compare the two movies, because FCEUX generates less lag frames and different RNG, making it impossible to say if this improvement is more optimized or actually benefitting of the emulation differences. One could argue that we there is no certainty that BizHawk is more accurate than FCEUX, and thus both emulator should be considered equally valid (unless someone provides a real console verification). However, the fact is, we already know of another FCEUX movie (thanks mtvf1) that we can compare this new submission to, which can be downloaded from here. If we disregard the starting cutscene, that FCEUX movie is about 30 frames faster than this submission. By the way, using different difficulty modes shouldn't be an issue, since TASing for this game pushes the gameplay to the point that harder difficulties don't actually result in a more challenging TASing process, but affects gameplay just because of different enemy spawn positions, and thus a TASer may pick whatever difficulty mode results in a more favorable outcome for fastest completion. Note that this submission used easy mode, the published one used hard mode, and the old unsubmitted movie used hard mode 2nd quest (still no idea what's different from hard, apart from the lack of intro cutscene).
my personal page - my YouTube channel - my GitHub - my Discord: thunderaxe31 <Masterjun> if you look at the "NES" in a weird angle, it actually clearly says "GBA"
XTREMAL93
He/Him
Active player (446)
Joined: 1/6/2012
Posts: 586
Location: Azerbaijan, Baku
ThunderAxe31 wrote:
By the way, using different difficulty modes shouldn't be an issue, since TASing for this game pushes the gameplay to the point that harder difficulties don't actually result in a more challenging TASing process, but affects gameplay just because of different enemy spawn positions, and thus a TASer may pick whatever difficulty mode results in a more favorable outcome for fastest completion. Note that this submission used easy mode, the published one used hard mode, and the old unsubmitted movie used hard mode 2nd quest (still no idea what's different from hard, apart from the lack of intro cutscene).
Actually in hard mode some enemies ( green, black, red soldiers) move faster and can catch up protagonist. You can watch and compare it in level 3, when green soldiers jump out from behind the trees.
Pankaj
He/Him
Active player (284)
Joined: 10/20/2022
Posts: 61
Location: Rajasthan, India
Talking about difficulty initially i got loss of 2 frames in starting, not sure if the game runs slow in the initial intro of the game because of easy difficulty(the last input for starting area 1 is made at 728th frame in easy while if i choose difficult difficulty then it can be made on 726th frame) but overall in the later areas I got benefitted by around 12-14 frames by choosing easy difficulty (because of reduced jumps possible on easy). Using passwords isn't allowed RTA so it shouldn't be allowed in TAS too(because using passwords one can directly skip to the final boss). I don't the difference between bizhawk and FCEUX. My aim behind using FCEUX was to play the game initially then later i started TASing on it. The reduced lag i was talking about came from jumping at different timing and from preventing the spawning of soldiers who appear out of the boxes in area 2 and 7.
Editor, Reviewer, Skilled player (1360)
Joined: 9/12/2016
Posts: 1646
Location: Italy
XTREMAL93 wrote:
Actually in hard mode some enemies ( green, black, red soldiers) move faster and can catch up protagonist. You can watch and compare it in level 3, when green soldiers jump out from behind the trees.
Oh ok, so the easy mode DOES make TASing execution easier.
Pankaj wrote:
Using passwords isn't allowed RTA so it shouldn't be allowed in TAS too(because using passwords one can directly skip to the final boss).
Here on TASVideos, using passwords isn't allowed only if you skip stages. But if you use a password that starts from the first level, it can be allowed.
Pankaj wrote:
I don't the difference between bizhawk and FCEUX. My aim behind using FCEUX was to play the game initially then later i started TASing on it.
Yeah, it's not your fault. Please give me some time to figure out more about this problem. I hope someone can do a console verification of the published movie, that would make everything simpler...
my personal page - my YouTube channel - my GitHub - my Discord: thunderaxe31 <Masterjun> if you look at the "NES" in a weird angle, it actually clearly says "GBA"
Editor, Reviewer, Skilled player (1360)
Joined: 9/12/2016
Posts: 1646
Location: Italy
Thank you to feos for judging this submission. In the eventuality that NES emulation improves to the point of being able to reproduce this game's movies on console, please contact me! I'll be working on an improvement TAS.
my personal page - my YouTube channel - my GitHub - my Discord: thunderaxe31 <Masterjun> if you look at the "NES" in a weird angle, it actually clearly says "GBA"
Alyosha
He/Him
Editor, Emulator Coder, Expert player (3826)
Joined: 11/30/2014
Posts: 2834
Location: US
ThunderAxe31 wrote:
Thank you to feos for judging this submission. In the eventuality that NES emulation improves to the point of being able to reproduce this game's movies on console, please contact me! I'll be working on an improvement TAS.
As long as you are using NESHawk on BizHawk version 2.8 it should work. If you make a WIP of level 1 it should be easy to test by myself or other console verifiers.
Pankaj
He/Him
Active player (284)
Joined: 10/20/2022
Posts: 61
Location: Rajasthan, India
May I request Something to the Judges ? Please let me know(if possible) that how many lag frames were actually there in my run in each level ? (because my emulator doesn't show lagged frames in this game) I am planning to TAS it again in future after completing my current TAS projects.
Site Admin, Skilled player (1255)
Joined: 4/17/2010
Posts: 11492
Location: Lake Char­gogg­a­gogg­man­chaugg­a­gogg­chau­bun­a­gung­a­maugg
Pankaj wrote:
May I request Something to the Judges ? Please let me know(if possible) that how many lag frames were actually there in my run in each level ? (because my emulator doesn't show lagged frames in this game) I am planning to TAS it again in future after completing my current TAS projects.
I posted a lua script in the judgment note. Save it as .lua file and drag'n'drop into your emulator.
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Post subject: Movie published
TASVideoAgent
They/Them
Moderator
Joined: 8/3/2004
Posts: 15619
Location: 127.0.0.1
This movie has been published. The posts before this message apply to the submission, and posts after this message apply to the published movie. ---- [4941] NES Code Name: Viper by Pankaj in 10:54.56