Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 10609 10610 [10611] 10612 10613 ... 13332

Author Topic: [MILK] There were 12 eggs here what did you do with them? (Happy thread?!)  (Read 16300035 times)

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [Poi] The deadly game of poi (Happy thread? Poi! B.. Baka!)
« Reply #159150 on: June 17, 2015, 06:11:09 am »

you know what here's metatable shenanigans that ain't useless

Code: [Select]
enemyMeta={}

enemyMeta.__newindex=function(t,k,v)
    local base=0xF7A+(t.id*0x40)
    if k==pos then
        mainmemory.write_u16_le(base,v.x)
        mainmemory.write_u16_le(base+4,v.y)
    elseif k==hp then
        mainmemory.write_u16_le(base+0x12,v)
    end
end

enemiesMeta={}

enemiesMeta.__index=function(t,i)
    local camx = mainmemory.read_u16_le(0x000911)
    local camy = mainmemory.read_u16_le(0x000915)
local oend = 20
local base = 0xF7A
if i > 0 then
base = 0xF7A + (i * 0x40)
elseif i>oend then
        base = 0xF7A + (oend * 0x40)
    else
base = 0xF7A
end
local worldx=mainmemory.read_u16_le(base)
    local worldy=mainmemory.read_u16_le(base+4)
local screenx = worldx - camx
local screeny = worldy - camy
local xrad = mainmemory.read_u8(0x0F82 + (i * 0x40))
local yrad = mainmemory.read_u8(0x0F84 + (i * 0x40))
local hp = mainmemory.read_u16_le(base + 0x12)
local enemyTable={id=i,pos={x=worldx,y=worldy},screenpos={x1=x + (xrad * -1),y1=y + (yrad * -1),x2=x+xrad,y2=y+yrad},hp=hp}
    setmetatable(enemyTable,enemyMeta)
    return enemyTable
end

local enemies={}

setmetatable(enemies,enemyMeta)

what you're seeing is DFHack-style enemy manipulation in Super Metroid

you're welcome

(it doesn't have everything yet, though--conveniently, however, everything is available)

miauw62

  • Bay Watcher
  • Every time you get ahead / it's just another hit
    • View Profile
Re: [Poi] The deadly game of poi (Happy thread? Poi! B.. Baka!)
« Reply #159151 on: June 17, 2015, 06:12:30 am »

MetHack when?
Logged

Quote from: NW_Kohaku
they wouldn't be able to tell the difference between the raving confessions of a mass murdering cannibal from a recipe to bake a pie.
Knowing Belgium, everyone will vote for themselves out of mistrust for anyone else, and some kind of weird direct democracy coalition will need to be formed from 11 million or so individuals.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [Poi] The deadly game of poi (Happy thread? Poi! B.. Baka!)
« Reply #159152 on: June 17, 2015, 06:13:44 am »

basically never, their modding tools are super good (as far as ROMHacking tools go) anyway

it could be REALLY GOOD for TASes though tbf

TD1

  • Bay Watcher
  • Childe Roland to the Dark Tower Came
    • View Profile
Re: [Poi] The deadly game of poi (Happy thread? Poi! B.. Baka!)
« Reply #159153 on: June 17, 2015, 10:17:30 am »

My exams are over.

Thank
the
lord I don't believe in.
Logged
Life before death, strength before weakness, journey before destination
  TD1 has claimed the title of Penblessed the Endless Fountain of Epics!
Sigtext!
Poetry Thread

Arx

  • Bay Watcher
  • Iron within, iron without.
    • View Profile
    • Art!
Re: [Poi] The deadly game of poi (Happy thread? Poi! B.. Baka!)
« Reply #159154 on: June 17, 2015, 10:23:10 am »

I only have one more. Biology II, and I can analyse diagrams and write essays, so it should be fine. And then I'm freeeee for a day before I have to start working again.
Logged

I am on Discord as Arx#2415.
Hail to the mind of man! / Fire in the sky
I've been waiting for you / On this day we die.

cerapa

  • Bay Watcher
  • It wont bite....unless you are the sun.
    • View Profile
Re: [Poi] The deadly game of poi (Happy thread? Poi! B.. Baka!)
« Reply #159155 on: June 17, 2015, 11:07:34 am »

Just got my full final exam results. 94% math, 93% english and 82% estonian. Which doesn't even matter cause I could already get into university based on some other criteria.

But I expected to do better. It's absolutely retarded to complain about the results I got, but somehow I still want to have a few points more.

Well, whatever, the world is my oyster and all that. Can go study whatever I like with these.
Logged

Tick, tick, tick the time goes by,
tick, tick, tick the clock blows up.

Arx

  • Bay Watcher
  • Iron within, iron without.
    • View Profile
    • Art!
Re: [Poi] The deadly game of poi (Happy thread? Poi! B.. Baka!)
« Reply #159156 on: June 17, 2015, 11:15:27 am »

I fully understand. Somewhere around eighty percent you start getting more disappointed as your mark improves instead of less, because there are fewer things that you should just not have messed up dammit.

Or at least, that's how it works for me. Ninety-eight percent just means that you only needed to make four less mistakes for a perfect mark.
Logged

I am on Discord as Arx#2415.
Hail to the mind of man! / Fire in the sky
I've been waiting for you / On this day we die.

AlleeCat

  • Bay Watcher
  • Black, the beast, descends from shadows...
    • View Profile
Re: [Poi] The deadly game of poi (Happy thread? Poi! B.. Baka!)
« Reply #159157 on: June 17, 2015, 11:51:25 am »

Caught someone stealing my food yesterday, told staff. Today they're gone. Pretty quick response time by staff, really.

Dutchling

  • Bay Watcher
  • Ridin' with Biden
    • View Profile
Re: [Poi] The deadly game of poi (Happy thread? Poi! B.. Baka!)
« Reply #159158 on: June 17, 2015, 12:11:43 pm »

no alleecat

he is food now
Logged

Arx

  • Bay Watcher
  • Iron within, iron without.
    • View Profile
    • Art!
Re: [Poi] The deadly game of poi (Happy thread? Poi! B.. Baka!)
« Reply #159159 on: June 17, 2015, 12:24:03 pm »

We believe in a strictly eye for an eye, kidney for a kidney, steak for a steak approach here.
Logged

I am on Discord as Arx#2415.
Hail to the mind of man! / Fire in the sky
I've been waiting for you / On this day we die.

cerapa

  • Bay Watcher
  • It wont bite....unless you are the sun.
    • View Profile
Re: [Poi] The deadly game of poi (Happy thread? Poi! B.. Baka!)
« Reply #159160 on: June 17, 2015, 12:51:00 pm »

I fully understand. Somewhere around eighty percent you start getting more disappointed as your mark improves instead of less, because there are fewer things that you should just not have messed up dammit.

Or at least, that's how it works for me. Ninety-eight percent just means that you only needed to make four less mistakes for a perfect mark.

When the result approaches 0, you count every point you got.
When the result approaches 100, you count every point you lost.
Logged

Tick, tick, tick the time goes by,
tick, tick, tick the clock blows up.

Tawa

  • Bay Watcher
  • the first mankind all over the world
    • View Profile
Re: [Poi] The deadly game of poi (Happy thread? Poi! B.. Baka!)
« Reply #159161 on: June 17, 2015, 12:52:49 pm »

I've never really felt that way. Mid-high 90s and 100s always just seemed interchangable to me.
Logged
I don't use Bay12 much anymore. PM me if you need to get in touch with me and I'll send you my Discord handle.

Arx

  • Bay Watcher
  • Iron within, iron without.
    • View Profile
    • Art!
Re: [Poi] The deadly game of poi (Happy thread? Poi! B.. Baka!)
« Reply #159162 on: June 17, 2015, 01:40:43 pm »

Lucky sod. I was bitten by a radioactive overachiever when I was twelve, and have rarely been satisfied with a mark since.



The feeling of lightness you get after a good workout is amazing.
Logged

I am on Discord as Arx#2415.
Hail to the mind of man! / Fire in the sky
I've been waiting for you / On this day we die.

TD1

  • Bay Watcher
  • Childe Roland to the Dark Tower Came
    • View Profile
Re: [Poi] The deadly game of poi (Happy thread? Poi! B.. Baka!)
« Reply #159163 on: June 17, 2015, 01:57:12 pm »

Lucky sod. I was bitten by a radioactive overachiever when I was twelve, and have rarely been satisfied with a mark since.
Ditto.

Though I was bitten later.
Logged
Life before death, strength before weakness, journey before destination
  TD1 has claimed the title of Penblessed the Endless Fountain of Epics!
Sigtext!
Poetry Thread

scrdest

  • Bay Watcher
  • Girlcat?/o_ o
    • View Profile
Re: [Poi] The deadly game of poi (Happy thread? Poi! B.. Baka!)
« Reply #159164 on: June 17, 2015, 02:01:28 pm »

Lucky sod. I was bitten by a radioactive overachiever when I was twelve, and have rarely been satisfied with a mark since.
Ditto.

Though I was bitten later.
I went the opposite way. I've been exposed to too much fucking over independent of my effort and pressure to do well I stopped caring.
Logged
We are doomed. It's just that whatever is going to kill us all just happens to be, from a scientific standpoint, pretty frickin' awesome.
Pages: 1 ... 10609 10610 [10611] 10612 10613 ... 13332