(New message)
Subject review (reverse sequence)
Pages: 1 2
Posted by
Mopop
(115 posts) bio
Date
Sun 11 Dec 2005 09:38 PM (UTC) [ quote
]
Message
xTOGGLE_BIT( location->room_flags, 1 << value );
xTOGGLE_BIT( location->room_flags, value );
I forgot to remove the 1 <<
top
Posted by
Conner
USA (381 posts) bio
Date
Sun 11 Dec 2005 09:24 PM (UTC) [ quote
]
Message
You really should post how you fixed it so others will know if they run into the same problem.
-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org top
Posted by
Mopop
(115 posts) bio
Date
Sun 11 Dec 2005 07:12 PM (UTC) [ quote
]
Message
Ooh i got the error fixed, thanks for your help bro! top
Posted by
Mopop
(115 posts) bio
Date
Sun 11 Dec 2005 07:08 PM (UTC) [ quote
]
Message
if( !str_cmp( arg, "flags" ) )
{
if( !argument || argument[0] == '\0' )
{
send_to_char( "Toggle the room flags.\n\r", ch );
send_to_char( "Usage: redit flags <flag> [flag]...\n\r", ch );
return;
}
while( argument[0] != '\0' )
{
argument = one_argument( argument, arg2 );
value = get_rflag( arg2 );
if( value < 0 || value > MAX_BITS )
ch_printf( ch, "Unknown flag: %s\n\r", arg2 );
else
{
if( 1 << value == ROOM_PROTOTYPE && get_trust( ch ) < LEVEL_GREATER )
send_to_char( "You cannot change the prototype flag.\n\r", ch );
else
xTOGGLE_BIT( location->room_flags, 1 << value );
}
}
return;
}
top
Posted by
Zeno
USA (2,867 posts) bio
Moderator
Date
Sun 11 Dec 2005 07:01 PM (UTC) [ quote
]
Message
What's the lines in do_redit that sets the flag?
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org top
Posted by
Mopop
(115 posts) bio
Date
Sun 11 Dec 2005 06:11 PM (UTC) [ quote
]
Message
I just removed it all together, since mapout is just used to making maps. And I dont like those maps...Now my problem is when i try to put a flag on a room it sets it as a different flag x_x top
Posted by
Zeno
USA (2,867 posts) bio
Moderator
Date
Sun 11 Dec 2005 06:00 PM (UTC) [ quote
]
Message
Revert mapout.c to the original state? If it compiles, then rm was declared and you for some reason had removed that declaration. I don't even know if it's initialized now, so declaring it may not do much.
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org top
Posted by
Mopop
(115 posts) bio
Date
Sun 11 Dec 2005 05:51 PM (UTC) [ quote
]
Message
Im not too sure what was done wrong, I followed the guide word for word. Any idea where to even look for an error? top
Posted by
Zeno
USA (2,867 posts) bio
Moderator
Date
Sun 11 Dec 2005 05:47 PM (UTC) [ quote
]
Message
Well since you had a rm in the previous mapout, which was changed, it should be fine. Seems like you did something wrong?
location -> room_flags = ROOM_PROTOTYPE && rm -> room_flags;
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org top
Posted by
Mopop
(115 posts) bio
Date
Sun 11 Dec 2005 05:42 PM (UTC) [ quote
]
Message
sure thing.
mapout.c
location -> room_flags = ROOM_PROTOTYPE && rm -> room_flags;
becomes
xCLEAR_BITS(location->room_flags);
xSET_BITS(location->room_flags, rm->room_flags);
xSET_BIT(location->room_flags, ROOM_PROTOTYPE);
top
Posted by
Zeno
USA (2,867 posts) bio
Moderator
Date
Sun 11 Dec 2005 04:29 PM (UTC) [ quote
]
Message
Can you show me the instruction in the guide that told you to add that line in mapout?
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org top
Posted by
Mopop
(115 posts) bio
Date
Sun 11 Dec 2005 06:51 AM (UTC) [ quote
]
Message
Rock on that fixed the first code up, where would i find the room data indexes at? Thanks alot Zeno you are so helpfull =P top
Posted by
Zeno
USA (2,867 posts) bio
Moderator
Date
Sun 11 Dec 2005 06:17 AM (UTC) [ quote
]
Message
Well it should be a room data index. As for the first code, the %d was changed to a %s.
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org top
Posted by
Mopop
(115 posts) bio
Date
Sun 11 Dec 2005 05:54 AM (UTC) [ quote
]
Message
I guess so The above code doesnt look any different...and im not exactly sure what rm is x_x is it remove? top
Posted by
Zeno
USA (2,867 posts) bio
Moderator
Date
Sun 11 Dec 2005 04:41 AM (UTC) [ quote
]
Message
This is what I have:
build.c:
fprintf( fpout, "0 %s %d %d %d %d\n", print_bitvector(&room->room_flags),
room->sector_type,
room->tele_delay,
room->tele_vnum,
room->tunnel );
mapout:
xSET_BITS(location->room_flags, rm->room_flags);
Looks like you forgot to declare rm in the mapout code?
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org top
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
3,910 views.
This is page 1, subject is 2 pages long: 1 2
Reply to this subject
Start a new subject
  Refresh page
Go to topic:
(Choose topic)
Area Editor: Bug reports
Area Editor: General
Area Editor: News and updates
Area Editor: Suggestions
Area Editor: Tips and tricks
Dawn of Time: Administration
Dawn of Time: Configuration
Dawn of Time: Installing/compiling the server
Dawn of Time: New Dawn Muds Announcements
Dawn of Time: Playing
Dawn of Time: What is Dawn of Time (Dawn)?
Electronics: Microprocessors
Electronics: Operational Amplifiers
Forum: About
Forum: Announcements
Forum: Mailing other users
Forum: Problems
Forum: Registering
Forum: Searching
Forum: Subscribing
Forum: Suggestions
Forum: Test
Forum: Time zones / time display
Forum software: Administration
Forum software: Installation
MUDs: Announcements
MUDs: General
MUDs: MUD Design Concepts
MUSHclient: Announcements
MUSHclient: Beta testing
MUSHclient: Bug reports
MUSHclient: Development
MUSHclient: General
MUSHclient: Getting Started
MUSHclient: International
MUSHclient: Jscript
MUSHclient: Lua
MUSHclient: Miniwindows
MUSHclient: MXP and Pueblo
MUSHclient: Perlscript
MUSHclient: Plugins
MUSHclient: Python
MUSHclient: Suggestions
MUSHclient: Tips and tricks
MUSHclient: VBscript
MUSHclient: Wine
PennMUSH: Compiling the server
PennMUSH: Running the server
Programming: General
Programming: STL
Quilting: General
ROM: Compiling the server
ROM: Running the server
SMAUG: Commands
SMAUG: Compiling the server
SMAUG: Lua
SMAUG: Running the server
SMAUG: SMAUG coding
Search the forum
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )