Posts for MUGG


Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
If I were to join in, it would only be for glitch hunting and documenting, mostly. The previous few games have been way too tiring. I will decide later. This game sounds like Contra III...
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
@geod, I mean something like this might look better. Please compare to my previous image.
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
I thought it would be nice if the slope continues until the red line.
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
Dacicus, thanks. Now it works perfectly.
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
Thank you Dacicus. Your script works when comparing lines from A with B. It does not work if lines in B have stuff appended to it. Also it outputs the matched lines in A, whereas I want to output the lines not found in B. So I have adjusted part of your code. This will work if lines in B are expected to have gibberish appended at their end.
Language: Lua

for line_A in io.lines(file_name_A) do for line_B in io.lines(file_name_B) do lengthA = string.len(line_A) if line_A ~= string.sub(line_B,1,lengthA) then table.insert(matched_lines, line_A) break end end end
Thank you again!
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
In A.txt, each line is a string and I want to search if that string exists anywhere in B.txt. I perfectly understand what you're saying. I just figured it's better this way for this one case. I've been at this for over an hour and I can't figure it out. EDIT: When using string.find(s, pattern), there are characters that when used in 'pattern', they will have a special meaning ( https://www.lua.org/pil/20.2.html ). How can I disable these characters from having a special meaning, without using the escape '%' method?
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
I need a script that reads lines in text file A.txt, and checks if they are present in text file B.txt. If not, the lines are deleted from A.txt. I figured someone good can come up with a solution in 1 min so I don't have to spend 30 mins working on it. :P Thanks in advance.
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
What's the 100% requirement for this game? Do you need all shine sprites, level up all helpers, all tasks done, Pit of 100 trials?
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
TAStudio is basicly like the Photoshop of TASing, I guess. At first, seeing all the tools can be overwhelming. MS Paint (= recording it yourself) is simpler but drawing the same picture might take way longer or only be possible with detours. I never learned to use TAStudio. That might in part be because I heard people lost their work using it and other serious bugs. Those should be resolved by now though..
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
@ThunderAxe31 I have read your verdict. Does this mean, the strategy would have been illegitimate if the game didn't point to the next level after a soft reset?
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
It doesn't look like you're playing back a movie, otherwise it would show a number, slash, another number, wouldn't it?
Current frame / Total frames of this movie
e.g.
900 / 1250
So you just played in real time and screen recorded it?
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
Resetting to select a later level is usually not a legitimate strategy for speedruns.
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
You are crazy. I wish I had as much motivation as you.
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
Nice! So why was this not used?
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
https://mgba.io/timeline.html It says to add TAS features in mid 2020. But I'm not sure how seriously endrift will do it. And Bizhawk, quite frankly, has all the features you could ever ask for. There is not really a reason you'd use stand-alone mgba over Bizhawk. Why does there have to be 2 choices for a system to be able to drop VBA?
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
I think endrift wanted to add TAS features to stand-alone mGBA at some point..
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
It's great that so many contributions come together in this run. And your commentary is always pleasant to listen to. Voted yes.
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
Nice TAS. Always cool when something new gets found after such a long time. But I would like more detail on that wrap bug. Why does it work?
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
For my love2d project I need a function that checks if a bit is set in a hex number. It needs to be a pure Lua implementation (Lua 5.1). The lua documentation wasn't much help so far. (...) Edit: Nevermind, found a solution which was listed on that linked page.
function bit(p)
  return 2 ^ (p - 1)  -- 1-based indexing
end

-- Typical call:  if hasbit(x, bit(3)) then ...
function hasbit(x, p)
  return x % (p + p) >= p       
end
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
So I learned a lot about love2d working on my platforming game project. But I somehow lost all my motivation. The ton of small bugs was just too much to deal with, and again, I lacked an actual vision of where to go with the project. I got caught up in stuff like water, sand and slope interaction until I stopped some months ago. So now I'm working on something new. It's an isometric approach, and I have a better vision with this one. I can re-use a lot from the previous project, too. screen design
Editor, Experienced Forum User, Published Author, Expert player (2315)
Joined: 5/15/2007
Posts: 3856
Location: Germany
The final episodes have leaked in the Netherlands. I couldn't resist so I watched it. I watched it all. Even though the audio was in Dutch. I won't write my thoughts just yet. But I want to say, it's not worth watching it in Dutch. For anyone who was interested, I advise that you wait for the English version. I will write my thoughts when that version releases.