Ok I can tell you what is wrong at least.
Output2PTR means "memory pointer to output 2" So it starts with a relative static address, (exe address + offset) and then you keep adding offsets and what-not via bars until the dynamic address comes out the other end. It doesn't have anything to do with the bit-wise reading, which I'm assuming you were trying to use it for based upon the data you put in. There are other memcfg files that show how to do bitwise reading (basically you make multiple outputs of the same address, set them up as a single byte, and then filter for the bit you want to read. ) That's problem #1.
Problem #2 is "RAMBASE" Rambase is a pre-defined memory location in model 2 hardware that is accessable to lua via the "RAMBASE" macro. Obviously no such macro exists in ts2, it could be different for each revision of model 2 emu, so we have to find it manually. I'm sure there are some variables I used in previous memcfgs that access the rambase, but I can't remember which. I'm also unsure if it would even matter, since, as I said, it could vary from version to version.
So yeah, not as straightforward as you were thinking. There's a reason I've been putting the next release of ts2 off.
