Welcome to the Builder Academy

Question DB.c Check_bitvector_names

More
18 Apr 2020 20:51 #8644 by cunning
Replied by cunning on topic DB.c Check_bitvector_names
/** The total number of Room Flags */
#define NUM_ROOM_FLAGS 33 /* Jedi specific */

As stated it is every bitvector that uses "F". So its not just Rooms, but objects, zones, every thing I have that has past 31 bits.

Please Log in or Create an account to join the conversation.

More
20 Apr 2020 20:11 - 20 Apr 2020 20:11 #8645 by doggo
Replied by doggo on topic DB.c Check_bitvector_names
It's not the room flag 32 that's causing problems, you're getting boot errors for room flags that go beyond 32.

From the very first line you're trying to load room flag 39.
Code:
SYSERR: room #702 has unknown room flag, bit 39 (0 through 32 known).
You're trying to use flags you don't have.
Last edit: 20 Apr 2020 20:11 by doggo.

Please Log in or Create an account to join the conversation.

More
24 Apr 2020 15:21 #8650 by cunning
Replied by cunning on topic DB.c Check_bitvector_names
Not true at all. I use a-zABCDEF

And in the game I have no issues using the flags or displaying them.

Please Log in or Create an account to join the conversation.

More
24 Apr 2020 15:34 #8651 by Rumble
Replied by Rumble on topic DB.c Check_bitvector_names
That is an odd one, perhaps look everywhere "ROOM_DUMP" is used to see if it is modifying the value?

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com

Please Log in or Create an account to join the conversation.

More
30 Apr 2020 13:00 #8658 by cunning
Replied by cunning on topic DB.c Check_bitvector_names
Working on it. I have reverted my old school jedimud flags we used for 30 new years which was upper case then over case. I'll see how that works. I'm also about to test my flags on tbamud-2020 to see if I get the same result

Please Log in or Create an account to join the conversation.

More
10 Jun 2020 17:19 #8771 by Plex
Replied by Plex on topic DB.c Check_bitvector_names
I’ve noticed the same issue. Errors are reported when using bit 32 and higher. To test this I used the 2020 release and added object affect flags and then created a new object using bits 4 (DET-ALIGN) and 32 (NEW31). The SYSERR for bit 35 doesn’t appear until bit 32 is added. Removing bit 4 will cause the bit 35 error to go away. Using more bits above 32 will result in additional errors.

Jun 10 11:27:36 2020 :: Loading objs and generating index.
Jun 10 11:27:36 2020 :: 4767 objs, 152544 bytes in index, 1144080 bytes in prototypes.
Jun 10 11:27:36 2020 :: SYSERR: Object #1250 (an unfinished object) has unknown object affect flag, bit 35 (0 through 34 known).
Jun 10 11:27:36 2020 :: SYSERR: Object #1250 (an unfinished object) has unknown object affect flag, bit 63 (0 through 34 known).

From the .obj file – Flags are correct.
#1250
unfinished object~
an unfinished object~
An unfinished object is lying here.~
~
0 0 0 0 0 a 0 0 0 dF 0 0 0
0 0 0 0
0 0 0 0 0

oedit 1250
-- Item number : [1250]
1) Keywords : unfinished object
2) S-Desc : an unfinished object
3) L-Desc :-
An unfinished object is lying here.
4) A-Desc :-
Not Set.
5) Type : UNDEFINED
6) Extra flags : NOBITS
7) Wear flags : TAKE
8) Weight : 0
9) Cost : 0
A) Cost/Day : 0
B) Timer : 0
C) Values : 0 0 0 0
D) Applies menu
E) Extra descriptions menu: Not Set.
M) Min Level : 0
P) Perm Affects: DET-ALIGN NEW31
S) Script : Not Set.
W) Copy object
X) Delete object
Q) Quit
Enter choice :

Enter choice : p
1) BLIND 2) INVIS
3) DET-ALIGN 4) DET-INVIS
5) DET-MAGIC 6) SENSE-LIFE
7) WATWALK 8) SANCT
9) GROUP 10) CURSE
11) INFRA 12) POISON
13) PROT-EVIL 14) PROT-GOOD
15) SLEEP 16) NO_TRACK
17) FLY 18) SCUBA
19) SNEAK 20) HIDE
21) UNUSED 22) CHARM
23) NEW23 24) NEW24
25) NEW25 26) NEW26
27) NEW27 28) NEW28
29) NEW29 30) NEW30
31) NEW31 32) NEW32
33) NEW33 34) NEW34

Object permanent flags: DET-ALIGN NEW31
Enter object perm flag (0 to quit) :

To test this the following changes were made.

From structs.h
#define AFF_HIDE 20 /**< Char is hidden */
#define AFF_FREE 21 /**< Room for future expansion */
#define AFF_CHARM 22 /**< Char is charmed */
#define AFF_NEW23 23
#define AFF_NEW24 24
#define AFF_NEW25 25
#define AFF_NEW26 26
#define AFF_NEW27 27
#define AFF_NEW28 28
#define AFF_NEW29 29
#define AFF_NEW30 30
#define AFF_NEW31 31
#define AFF_NEW32 32
#define AFF_NEW33 33
#define AFF_NEW34 34


/** Total number of affect flags not including the don't use flag. */
#define NUM_AFF_FLAGS 35

From contants.c - affected_bits
"HIDE",
"UNUSED",
"CHARM",
"NEW23",
"NEW24",
"NEW25",
"NEW26",
"NEW27",
"NEW28",
"NEW29",
"NEW30",
"NEW31",
"NEW32",
"NEW33",
"NEW34",

"\n"
};

Please Log in or Create an account to join the conversation.

Time to create page: 0.398 seconds