Skip to content

Instantly share code, notes, and snippets.

@kyzentun
Created December 5, 2021 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyzentun/9b1a153f7817ff7e183668f6ae3e11b3 to your computer and use it in GitHub Desktop.
Save kyzentun/9b1a153f7817ff7e183668f6ae3e11b3 to your computer and use it in GitHub Desktop.
Script I run to generate VARIA seeds
local command = 'python3.8 ./randomizer.py -r ~/smr/smh.smc --moonwalk --param standard_presets/kyzentun.json --randoPreset rando_presets/kyzentun.json'
local bad_sprites = {
'samus_upside_down_and_backwards.ips',
'samus_upside_down.ips',
'samus_backwards.ips',
'captain_novolin.ips',
}
local sprites = {
'alucard.ips',
'bailey.ips',
'combat_armor_samus.ips',
'dark_samus.ips',
'diddy_kong.ips',
'enby.ips',
'fed_trooper.ips',
'fusion_green_varia.ips',
'fusion_orange_varia.ips',
'hack_ancient_chozo.ips',
'hack_ascent.ips',
'hack_decision.ips',
'hack_escape2.ips',
'hack_hyper.ips',
'hack_nature.ips',
'hack_opposition.ips',
'hack_phazon.ips',
'hack_redesign.ips',
'hack_szm.ips',
'hitbox_helper.ips',
'link.ips',
'luigi.ips',
'marga.ips',
'mario_8bit.ips',
'mario_8bit_modern.ips',
'megaman.ips',
'metroid.ips',
'samus.ips',
'shaktool.ips',
'shaktool-jr.ips',
'sprite_can.ips',
'super_controid.ips',
'trans.ips',
'win95_cursor.ips',
}
local ships = {
'mario_ship.ips',
'opposition_ship.ips',
'Red-M0nk3ySMShip1.ips',
'Red-M0nk3ySMShip2.ips',
'Red-M0nk3ySMShip3.ips',
'Red-M0nk3ySMShip4.ips',
'Red-M0nk3ySMShip5.ips',
}
local args = {...}
local with_seed
do
local ai = 1
while ai <= #args do
if args[ai] == '-s' then
ai = ai + 1
with_seed = args[ai]
end
ai = ai + 1
end
end
local run
if with_seed then
run = command .. ' -s '.. with_seed
else
math.randomseed(os.time())
local spind = math.random(1, #sprites)
local shind = math.random(1, #ships)
run = command .. ' --patch itemsounds.ips --patch random_music.ips --sprite ' .. sprites[spind] .. ' --customItemNames --ship ' .. ships[shind]
end
print(run..'\n')
os.execute(run)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment