Well I'm getting into it with goldbl4de's RoF app and I'm amazed how given a few informational pointers (objectindex and the like) even I can bodge, butcher and bang together functioning code,
My proudest bit of bodgery yet was connecting bloc hlmt coll mode and phmo meta to a single page, since I still don't fully grasp whats going on in blades work, I figured my own way to get to the meta start of my chosen blocs hlmt
Something like
Code: Select all
br.position = metaStart + 56; //this is the offset for hlmt ident within bloc
int index position = br.readInt16(); // I noticed if you read like this as opposed to int32 the numbering is nice matg = 0 etc
br.position = objecIndex + 4 + (indexposition * 16); // bodge on bodge on bodge!
// I know next to nothing about code but this still makes me feel both good and dirty
int nextMetaStart = br.readsingle();
br.position = nextMetaStart;
as I'm new to this please forgive that it's RAF (not royal air force, but rough as f***)
so anywho I'm about to abandon blades code and start again from scratch now that I'm beginning to get why you use classes
(even though my program doesn't yet write to the map but it recalculates 26 pieces of meta from a X, Y, Z and a button click)
I'll go for a standalone version to be peer reviewed before fixing it into entity
a couple of questions now
1 If the first short of an Ident = its index position, what does the second short stand for?
2 Specifically to my program, bounding radii, for small blocs (0.45 size)
I work a radius out as (size/6) * 5 = bounding R 0.375 as it is in the game,
but for larger blocs (0.9 size) my math gives me a R of 0.75 when in game it = 0.7 (not a huge difference but I'm curious why) I know it's a different story for phmo bounding radii I haven't done the math yet.