First, my apologies for my last post with the subject header
re: Circlemud Tech Position. I had intended it to be a private
message but had forgotten that reply-to field was the mailing
list. Please no flames. :)
Now, for the ObCircle part: here is my suggestion for converting
the object affections patch from 32-bit to 128-bit.
This is the original patch:
case 'C':
get_line(obj_f, line);
sscanf(line, "%d ", t);
obj_proto[i].obj_flags.bitvector = obj_proto[i].obj_flags.bitvector
| t[0];
break;
Here's how I would change it for 128-bit:
case 'C':
get_line(obj_f, line);
if ((retval = sscanf(line, " %d %d %d %d", t, t + 1, t + 2, t + 3))
!= 4) {
log("SYSERR: Format error in 'C' field, %s\n"
"...expecting 4 arguments, got %d\n"
"...offending line: '%s'", buf2, retval, line);
exit(1);
}
obj_proto[i].obj_flags.bitvector[0] =
obj_proto[i].obj_flags.bitvector[0] | t[0];
obj_proto[i].obj_flags.bitvector[1] =
obj_proto[i].obj_flags.bitvector[1] | t[1];
obj_proto[i].obj_flags.bitvector[2] =
obj_proto[i].obj_flags.bitvector[2] | t[2];
obj_proto[i].obj_flags.bitvector[3] =
obj_proto[i].obj_flags.bitvector[3] | t[3];
break;
So, in your object files, you'd have
#1000
.
.
.
C
2 0 0 0
to add the whatever affection you have defined as 2 to object 1000.
Hope that helps.
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST