Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
Bug in do_drag( )
Oct 8, 2017, 12:40 am
By GatewaySysop
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Beastmaster 6D sound files
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, DotBot, Bing

Members: 0
Guests: 12
Stats
Files
Topics
Posts
Members
Newest Member
476
3,704
19,231
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWFOTE FUSS » Exit_info and extended bitvec...
Forum Rules | Mark all | Recent Posts

Exit_info and extended bitvectors
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jan 24, 2008, 2:17 pm
Go to the top of the page
Go to the bottom of the page

Krylan
Fledgling
GroupMembers
Posts39
JoinedApr 14, 2005

So, I converted exit_info to extended bitvectors. I've converted all the code, but one pice. I am stuck here.

proom->exflags[x] = eroom->exit_info;


I can't seem to convert that bit to accept extended bitvectors. This is within ships.c in do_makeprototypeship.

Now, I don't even think makeprototypeship works, but I'd like to move in that direction, so I figured this would be a starting point.

Any ideas?

Also, anyone else messed with extended bitvectors much? pros? cons?
       
Post is unread #2 Jan 25, 2008, 7:11 am   Last edited Jan 25, 2008, 7:13 am by Samson
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Without seeing the code, I'm left to assume that proom->exflags[x] is meant to be part of an array of integer values. The extended bitvectors are actually a struct, so you can't assign that to an integer. You'd need to modify the code you're stuck on to give exflags[] the integers it wants, or modify it the other way to make exflags[] hold EXT_BV data instead.

Since Smaug 1.4 and onward come with extended bitvectors by default, pretty much everyone has dealt with them in some way who uses that. Using EXT_BV allows you to go up to 128 bits instead of being stuck with 32. So you have more room to add things you might need. I can't really think of any cons to the system right now, other than the amount of work it takes to convert a set of flags to use it.
       
Pages:<< prev 1 next >>