At 06:50 AM 10/20/98 -0700, you wrote: >Inherently, the way that CircleMUD handles these AFF flags is by bitvector >handling, which is dependant upon the size of the variable that you use. >Circle uses either int or long for this and the size that these can handle >depends on the machine you are on. Regardless, a nice maximum is to set it >at 1 << 31 or 2^31 or 2147483648. This will give you 32 flags (0 through >31). If you want to use more than 32 flags, you must use a different >system, which is available in the patch "128bit.patch". Find it on the >CircleMUD ftp site, patch it, use it, love it. > >Take care, >Rick Ok, the 128bit.txt doesen't work because it reports in utils.h some strange macro errors something about '.' and 'b' in #define SET_BIT_AR(var. bit) ((var)[Q_FIELD(bit)] |= Q_BIT(bit)) so i can't use that patch .... but can't i change the affect bits from long to int .. otherwise i don't see any other solution then the make AFF2, which i tried but it simply reacts like nothing happens although it compiles nicely. So i apply on all of you who have reached the max affects (32) to help us other code newbies with some hints on how did you solve that problem (without 128bit.patch, of course) Thanks for everything Peace With You +------------------------------------------------------------+ | 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