Posts for Amaraticando


1 2
12 13 14
26 27
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
om, nom, nom... *burp*!
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Beware that the whole unsafe rewind thing is to load states faster, without some sanity checks. Using this unproperly could result in a desync. Lua has no access to all the save states files because they can be saved on arbitrary places. The default place to save states is set under Config > Settings > Advanced > Path Save Slots. The prefix of movies and saves can be chosen while creating a new movie. Loading inputmovie object from lsmv file without loading the state: cannot yet. Hacky way that Ilari told me at #lsnes IRC: http://codepad.org/i4awK16k Saving non-current-inputmovie object to lsmv file: you can save the input member alone with movie.serialize. Maybe, you can save the complete lsmv with ZIPWRITER and this file. Saving/Loading a state:
Language: lua

local default_base = settings.get("slotpath") local slot = 1 -- save: local cmd = string.format([[save-state %s/movieslot%d.lsmv]], default_base, slot) -- hack local cmd = "save-state $SLOT:" .. slot -- better exec(cmd) -- load local cmd = string.format([[load-state %s/movieslot%d.lsmv]], default_base, slot) local cmd = "load-state $SLOT:" .. slot -- better exec(cmd)
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
If this romhack doesn't touch in the original mechanics, you have to turn around and kick the shell. If you don't hold X or Y before kicking, the shell will go "outside" Mario and you won't be able to shelljump, unless you have enough horizontal speed and a good position.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Please, share screenshots of this situation.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
You might want to change the PSX > Options > Resolution Management. The hardcore debug mode, for instance, makes the window change constantly. Test every one of them and see what is better for your purposes.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
As a SMW Kaizo TASer, this run is very alike playing in the SNES. And very entertaining: yes vote.
Post subject: Re: A nil value?
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
niamek wrote:
Hello, I apparently have a nul value at the line before the last line of the following code:
Language: lua

if mainmemory.read_s32_le(0x16C8) == 912 then gui.pixelText(10,10,"speX:" .. mainmemory.read_s32_le(0x16C8)) --Display a green speed, meaning that I'm at top speed else gui.pixelText(10,10,"speX:" .. maimmemory.read_s32_le(0x16C8)) end
It's a minor typo: maimmemory.read_s32_le(0x16C8) -> mainmemory.read_s32_le(0x16C8)
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Hum, I told you that gui.DrawNew was slow as hell, but it seems decent now, at least on Direct3D9. This model seems useable now: http://pastebin.com/zrkuPZWw
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
MUGG wrote:
When I do that, it still shows the same paused screen and doesn't update. I thought maybe my script depended too much on emu.framecount() but I more or less confirmed now that that's not the problem.
For me, only gui.text is updated. Any other drawing that relies on the game surface/scaling will not be updated .by emu.yield(). Maybe you'll want to use void gui.DrawNew(string name), but the last time I checked, this is very slow.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Speedrunners are cheating, simply that. The same with people that use Virtual Console. Why do they usually bitch more about the later and totally forbid playing NTSC games on PAL consoles, or vice-versa?
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
No, the player is a natural being. But, there're some bots that try to TAS parts of a game. May we call them AI?
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
It's pretty obvious that we all should stick to... Skype. :D Seriously now, DiscordApp and IRC have their advantages.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
cibomatto2002 wrote:
I'm running BizHawk 1.11.6. How do I get the SHA-1 of the rom?
Use the following function, within a script of on console: gameinfo.getromhash string gameinfo.getromhash() returns the hash of the currently loaded rom, if a rom is loaded source: 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
Yes vote for the unsurpassable run. What a stupid AI...
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
> Earlier in this thread I read about disabling graphical output but the author is no longer active here. BizHawk offers this option in the Display menu. > In any case, having to train MarI/O for 24h after every change in the fitness functions is too inefficient... anybody that could help? Maybe, using Snes9x 1.51 could be better. The emulation is like 10 times faster and, except for heavy glitch abuse that the bot will neve pull off, the movie can be translated into BizHawk/lsnes format without desyncs.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
The Lua folder is not present on the last release's zip.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Who voted no could at least say the reason... It's a fantastic TAS who shaved off much more frames than I expected and is more entertaining than the AGDQ run. Easy yes vote.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
As a complement to the previous post, I tested the other client dimensions when the emulator is minimized. There were more absurd results: Size 2 (normal) Screen 0 0 Buffer 0 0 Border -2147483648 -2147483648 (0x80000000) Client Pos -32000 -32000
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Github, BitBucket for Lua scripts, RAM watch (using git): e.g. https://github.com/brunovalads/the-flintstones-snes Google Sheets for memory maps: e.g. https://docs.google.com/spreadsheets/d/1IIqFICZNredxtVAF6JyqQXbwdvHwnz-tD31tVB6FCiA/edit?usp=sharing Documentation: google docs, pastebin, Game Resources.
Post subject: Sort of a bug
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
client.bufferwidth() and client.bufferheight() return 0 if the emulator is minimized. That was the reason my script keeps crashing for seemingly no reason: I was dividing by zero!
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
LOL, the input is much shorter than the gameplay. Yes vote.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
farondk: Can you reproduce this on Higan, lsnes or BizHawk?
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
21/n = r log(21/n) = (1/n)*log(2) = log(r) n = log(2)/log(r) since log (natural or decimal) is a bijective function from (0, +∞) → (-∞,  +∞), such number always exists for all r > 0, r ~= 1.
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
So, Bruno is 16.0312... years old. My age in years is the only integer that is one greater than a square and one less than a cube. PS: 350 posts! I wanna mood avatars ^^
Amaraticando
It/Its
Editor, Experienced Forum User, Published Author, Player (158)
Joined: 1/10/2012
Posts: 673
Location: Brazil
In general, if n^p is not integer (n integer and p rational), then it's irrational. Proof: Suppose n^(a/b) is rational, not integer and gdc(a,b) = 1. The last supposition is always possible, since we can reduce the fraction. We want to arrive in a contradiction. (n^a)^(1/b) = c/d (every variable is integer and gdc(c, d) = 1, |d| > 1) n^a = (c^b)/(d^b) m = (c^b)/(d^b) (m integer) Therefore, d^b divides c^b, an absurd. If d and c have no common prime factor, it's impossible. EDIT: we don't even need to reduce a/b, only c/d .
1 2
12 13 14
26 27