I'm trying to get my code from calling each individual draw call down to using at least a VertexBuffer, and preferably an indexBuffer, but now that I'm attempting to test my code, I'm getting the error:

The current vertex declaration does not include all the elements required by the current vertex shader. Position0 is missing.

Relevant locations are Chunk.cs (Contains the VertexDeclaration) and Game1.cs (Draw() is in Lines 230-250). Not much else of relevance to this problem anywhere else. Note that large commented sections are from old version of drawing.

EDIT:
I condensed the problem down even further, the following draw code won't even run, with the same error:

Really? Are you getting a stripey box, or an XYZ marker? Because the XYZ marker is the current master branch, whereas the stripey box is the current branch (And the one I linked to)...
–
PhilNov 25 '12 at 10:13

It was an XYZ marker with a tiny red square
–
Luis EstradaNov 25 '12 at 17:04

Ah, pretty sure that's the master branch, and I'm 99% sure a big brown/grey/green stripey box is the branch with the problems. If you have git, checkout propermeshing.
–
PhilNov 25 '12 at 21:38

Well, that gets the program running again, which is nice. However: DrawIndexedPrimitives doesn't draw anything (I have other stuff drawing, which runs fine, but the boxes don't) DrawPrimitives draws some stuff, but because it's designed to be indexed it's all out of order and the boxes are a little out of whack / faces are wrong.
–
PhilNov 26 '12 at 4:48

Update^ Nevermind, I had to uncomment the ib.setData<>. Now I have it drawing again, but every second triangle has it's normal backwards, which is odd because I explicitly set them. Will have to play with it.
–
PhilNov 26 '12 at 5:03