Re: Nice tech browser |
Wed, 01 March 2006 09:31 |
|
m.a@stars | | Commander | Messages: 2765
Registered: October 2004 Location: Third star to the left | |
|
PricklyPea wrote on Wed, 01 March 2006 13:43 |
m.a@stars wrote on Wed, 01 March 2006 07:33 | Along the way, I've found that the "init" byte is actually encoding hull initiative in the lower 6 bits plus something else in the upper 2 bits, interestingly akin to "ship class" info.
|
A problem with all the bitpacking that goes on is that it makes things less human readable within a hex editor.
|
Hex? Yuck. You should think BIN when dealing with the Jeffs' craft.
Quote: | BTW, how do you know if it is 6 bits? I wondered whether it was 4,5,6 or some other number. I guess the Deathstar implies that it is at least 5 bits - but I haven't checked any code to verify.
|
Baybevet hinted at 6 bits long ago in r.g.c.s ("from 0 to 3 in the upper nibble, plus the 4 bits of the lower nibble"). But I found it by sheer trial and error.
Anyway, code a bitwise "AND" of the Init byte with 63 and the Hull Initiative is yours.
Now you mention it, it might be as low as 5 bits, indeed it gives the same results. Hard to ascertain with the current hull sample.
By the by, here's my ad-hoc labelling for those 2 upper bits:
0: Unarmed
1: Small
2: Big
3: Bomber
Comments, suggestions, welcome!
[Updated on: Wed, 01 March 2006 09:40]
So many Stars, so few Missiles!
In space no one can hear you scheme! Report message to a moderator
|
|
|
|
Re: Nice tech browser |
Wed, 01 March 2006 10:33 |
|
m.a@stars | | Commander | Messages: 2765
Registered: October 2004 Location: Third star to the left | |
|
PricklyPea wrote on Wed, 01 March 2006 15:52 | Normally it is easy to convert Hex -> BIN. However, it becomes more difficult when the Jeffs don't even respect nibble boundaries!
|
I don't care about the size of the "nibble", as long as it's constant and makes sense.
Quote: | "from 0 to 3 in the upper nibble, plus the 4 bits of the lower nibble").
Quote doesn't make sense 0-3 in upper nibble + 4 bits of lower nibble = 8 bits = whole byte??
|
That one threw me off at first, too. Turns out that to go "from **a value of** 0 to 3" you need two bits. + 4 bits of lower nibble = 6 bits.
Quote: | >>>
Now you mention it, it might be as low as 5 bits, indeed it gives the same results. Hard to ascertain with the current hull sample.
<<<
Easiest way may be to mod a hull to increase init using only the top bits and see what the init turns out to be. Quicker than tracing the code.
|
By all means, go ahead.
Quote: | By the by, here's my ad-hoc labelling for those 2 upper bits:
0: Unarmed
1: Small
2: Big
3: Bomber
I agree with the unarmed and possibly big/small. However, my class ratings were based on assumption of more than 2 bits, so I have more classes
|
Might very well be. There's after all a whole unexplained byte tagging along the "Init" byte.
So many Stars, so few Missiles!
In space no one can hear you scheme! Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: New Technology Browser |
Thu, 25 May 2006 06:00 |
|
|
hmmm while you're at it...is there room in the ruleset for local cusomizations? iow if I make changes to the slot positions that don't affect the actual game play, will it break trying to use it with the "original" ruleset?
Report message to a moderator
|
|
|
|
|
|