Posts for Amaraticando


1 2
21 22 23
26 27
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
I write a script for lsnes and try to adapt it to run in BizHawk. To facilitate things, I use:
Language: lua

-- Compatibility local u8 = mainmemory.read_u8 local s8 = mainmemory.read_s8 local u16 = mainmemory.read_u16_le local s16 = mainmemory.read_s16_le -- Example local RNG = u8(WRAM.RNG)
So, in the other emulator, I just do the same thing with the proper functions. Another good side of this is that I don't have to memorize a big name like "mainmemory.read_s16_le".
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Pokota wrote:
EDIT: The sample you posted yields this error:
LuaInterface.LuaScriptException: E:\Games\Emulation\Lua\sample.lua:7: attempt to call field 'register' (a nil value)
This error signals that there's no field register in the table gui. This is a function in Snes9x API. Instead of gui.register, try event.onframeend(stuff). More events are listed here http://tasvideos.org/Bizhawk/LuaFunctions.html
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Spikestuff wrote:
The PAL version has the locking up issue on ALL emulators. Similar to Crash Bash PAL locking up issue when trying to start "Adventure Mode" (which also occurs on all emu).
Based on this thread, the problem is related to SBI subchannels. A few games have a special protection against copies: MediEvil (E). CTR: Crash Team Racing (E) (No EDC) CTR: Crash Team Racing (E) (EDC) Dino Crisis (E) Eagle One: Harrier Attack (E) et al. Ape Escape (S) et al. The solution (that works on Mednafen, but not BizHawk) is: > download the SBI file from the redump page of the game; > it's good to download the cue file from the same page; > Put all those files in the same folder of the bin/iso/img file, with the same name prior to the file extension.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
FractalFusion wrote:
By the way, Amaraticando, you said that this was a question on a math olympiad that you did. Did you do and/or solve this question during the olympiad?
I solved it partially, but when I got home, I was able to solve it much faster. The official solution was quite different than yours, by proving that f is injective and then applying a bunch of (x, y) to the original equation. Your solution is nice too!
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Crash Team Racing (PAL version) doesn't work correctly. The game loads and I can acess the main menu. I can even drive in the "overworld" in the adventure mode. But when I try to enter a level, the loading screen simply locks forever (the framecount keeps increasing normally). I have tried in BizHawk SVN r8610 (and other previous versions) and in mednafen-0.9.37.1-win64: the results are similar. I have used correct/pure dumps of the game: EDC and no EDC. I have also used a few different PAL bios. By the way, the NTSC-U and NTSC-J versions work really fine, AFAIK.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Damn, I want to watch it, but I don't want spoilers (on where the 300 mudokons are). It's been years since I completed this game.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Flip, you proved that f(x)=x+1 is the only polynomial that solves the question. However, the problem asks for all sorts of functions, even transcendental, discontinuous or weird functions, which appear all the time in analysis.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
This was a question in a mathematical olympiad that I've done. Determine all the functions f:ℝ→ℝ such that f(xf(y) + f(x)) = 2f(x) + xy , for all x, y in .
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
He (or she, who cares) is just trolling.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
The damn thing is optional. And even if it weren't, there's no point in complaining about it.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
MrPyt1001 wrote:
Is there a table which shows what powerup you get at each PI number?
I didn't understand your question, can you elaborate more?
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
I've solved exactly like Flip. Anyway... New problem: just find the exact value of x.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
This is the sum of the first n squares, which is a well known progression: http://en.wikipedia.org/wiki/Square_pyramidal_number However, the interesting part of the problem is to show rigorously that we gain new triangles in the nth "degree of the pyramid". EDIT: Forget what I said, I made a confusion with the nxn square grid. Gonna take a look at this.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Flip wrote:
-Prove that a circle can be surrounded by exactly 6 others of its own radius. IE The above picture might actually be incomplete, there may be indistinguishable gaps in between each one; so prove it to make sure. -If surrounding the central circle with smaller ones, what radius would they need to be in order to have exactly 8 surrounding it instead?
My solution is here (click to expand): So, if n = 6: csc(pi/6) = 1/sin(pi/6) = 2 Then, r = R. If n = 8: csc(pi/8) = sqrt(4 + 2*sqrt(2)) Then, r = R/(sqrt(4 + 2*sqrt(2)) - 1) = R*0.6199.. This problem gets really interesting in higher dimensions: http://en.wikipedia.org/wiki/Kissing_number_problem PS: sorry if my r looks like the symbol for pi. EDIT: whoa, FractalFusion and me posted pretty much the same thing at the same time.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Dooty wrote:
I don't know if it can be something on my end, but here's the bonus fanfare;
I just tested it in BizHawk and lsnes, both with Compatibility core. Lsnes doesn't have this error, so BSNES is not the problem here. The issue might be Bizhawk's implementation.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Your ROM: Name: Donkey Kong Country 2 - Diddy's Kong Quest (G) (V1.0).smc (I guess) SHA1: dc6a271ad77b49e59cb86cba0b7799845d7347a0 Perfect dump: Name: Donkey Kong Country 2 - Diddy's Kong Quest (E) (V1.1) [!].smc SHA1: 29601b586c57c1f5da8956b640e5fc48dcc4364f When I initially tried your movie, it was in the "(E) (V1.1) [!]" ROM and it desynced only in the 3rd world. Someone or I should verify if your ROM is bad and if the perfect dump is somehow better. I don't think it would be so troublesome to adjust the movie to sync.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Scepheo wrote:
Keep in mind that these functions are relatively slow, so if you're doing a lot of drawing, it's probably faster to calculate your x/y offsets/scaling at the start of a frame, then use those for all the rest. Though it's perfectly possible your computer has no trouble just calling everything all the time.
Yeah, with bsnes core we can't really falter with Lua, otherwise it will slowdown. Now I can draw the text properly!
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Several outputs are allowed, but not infinite ones. I will try to formulate the problem in another perspective. We know there're much less than 257^1000 programs with 1000 chars or less that prints a finite set of numbers and then stops. Those that print an infinite set (and therefore never halts) must be eliminated. For example: Program 1 outputs {1, 3, 7} ✔ Program 2 outputs {1, 2, 3, ..., 10^1000} ✔ Program 3 outputs {1, 2, 3, 4, ...} ✖ discarted Program 4 outputs {1, 2, ..., up to the smallest odd perfect number} ??? how the hell can we know if it will be discarted or not? . . . last Program N outputs {8} ✔ Where N < 257^1000. Let R be the union between all those sets. Then, R is finite and is not . Therefore, ℕ\R has a minimal element k. The problem is: can we build an algorithm that finds k? For sure, we can test all programs and add new elements to R. But if a program (like Program 4) lingers to end, how can we know if it ever will? AFAIK, that's the only part missing from the solution and I suspect there's no algorithm that fulfills this task. However, we can't say that based on the Halting Problem.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
r57shell wrote:
even if you have all possible 256 characters in C++ program, you can reach maximum 256^1000 different possible outputs.
256^1000 is the number of possible strings. The vast majority of them won't compile correctly. I don't know what it has to do with the problem. For instance, let's suppose for the sake of the argument, that n = 10^(10^10)+1 is the smallest perfect odd number. The pseudocode that I wrote will print every number from 1 to n and then will halt. Tub and OmnipotentEntity are correct, this problem is related to the busy beaver. In that article, the Applications' content has a similar example and an explanation that I don't agree with (if I understood it well):
Wikipedia wrote:
Consider any conjecture that could be disproven via a counterexample among a countable number of cases (e.g. Goldbach's conjecture). Write a computer program that sequentially tests this conjecture for increasing values. In the case of Goldbach's conjecture, we would consider every even number ≥ 4 sequentially and test whether or not it is the sum of two prime numbers. Suppose this program is simulated on an n-state Turing machine. If it finds a counterexample (an even number ≥ 4 that is not the sum of 2 primes in our example), it halts and notifies us. However, if the conjecture is true, then our program will never halt. (This program halts only if it finds a counterexample.) Now, this program is simulated by an n-state Turing machine, so if we know S(n) we can decide (in a finite amount of time) whether or not it will ever halt by simply running the machine that many steps. And if, after S(n) steps, the machine does not halt, we know that it never will and thus that there are no counterexamples to the given conjecture (i.e., no even numbers that are not the sum of two primes). This would prove the conjecture to be true.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Add client.borderheight(), client.borderwidth(), client.bufferwidth(), client.bufferheight(), client.transformPointX(), client.transformPointY()
Thank you very much for this, specially the last two functions!!!
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
HHS: this kind of problem always assumes that the memory is infinite. Therefore, your program would never stop and is not suitable.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Warp wrote:
"What is the largest integer that can be computed by a terminating C++ program of at most 1000 characters?" The condition that the program must terminate actually puts an upper limit to how big the computer number can be. Since the program has a limited size, the computed number also must have a limited size. Thus the core question is whether this problem is unsolvable or just very hard.
Since there're only finite C++ programs with 1000 characters or less, the problem can be reduced to: can we decide if a C++ program will ever halt (with null input)? I can think of a bunch of problems for which the answer is unknown. For instance, consider the following pseudocode:
Language: pseudocode

function is_perfect_number(int n) blablabla return bool_perfect_number // true if n is a perfect number, false otherwise end int n = 1; while true do print(n); if is_perfect_number(n) == true then break end n = n + 2; end
Since no one knows whether some odd perfect number exists, we don't know if this program will stop. Of course there's a difference between unknowledge and undecidability. So, is this problem decidable? Possibly, only if there's no odd perfect number. I have to investigate that...
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
solarplex wrote:
I've stopped using VLC, my audio cuts out every 10 seconds. MPC-HC works perfectly.
I second that. On Windows, VLC is bad now. The Linux version is still great.
1 2
21 22 23
26 27