Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Development
Nov 28, 2018, 10:10 am
By Keirath
First Immortal
Oct 12, 2018, 12:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018, 5:31 pm
By joeyfogas
question on overland code
May 31, 2018, 10:03 am
By joeyfogas
KaVir's Protocol Snip
May 15, 2018, 7:57 pm
By joeyfogas
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Bing

Members: 0
Guests: 24
Stats
Files
Topics
Posts
Members
Newest Member
481
3,740
19,397
632
ClarenceKe
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Bugfix Lists » SWFOTE FUSS Bugfix List » [Bug] Some VIP Flags are bein...
Forum Rules | Mark all | Recent Posts

[Bug] Some VIP Flags are being skipped.
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Aug 28, 2009, 10:48 am
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

Bug: Some VIP Flags on Mob are being skipped.
Danger: Major - VIP Flags won't load properly.
Found by: Remcon
Fixed by: Remcon
---

db.c, fread_fuss_mobile
Find:
            if( !str_cmp( word, "VIPFlags" ) )
            {
               const char *vip = fread_flagstring( fp );

               while( vip[0] != '\0' )
               {
                  vip = one_argument( vip, flag );
                  value = get_vip_flag( flag );
                  if( value < 0 || value > 31 )
                     bug( "Unknown VIP flag: %s", flag );
                  else
                     SET_BIT( pMobIndex->vip_flags, 1 << value );
               }
               break;
            }


Replace with:
            if( !str_cmp( word, "VIPFlags" ) )
            {
               const char *vip = fread_flagstring( fp );

               while( vip[0] != '\0' )
               {
                  vip = one_argument( vip, flag );
                  if( !str_cmp( flag, "yavin" ) || !str_cmp( flag, "iv" ) )
                     value = get_vip_flag( "yavin_iv" );
                  else if( !str_cmp( flag, "mon" ) || !str_cmp( flag, "calamari" ) )
                     value = get_vip_flag( "mon_calamari" );
                  else if( !str_cmp( flag, "ord" ) || !str_cmp( flag, "mantell" ) )
                     value = get_vip_flag( "ord_mantell" );
                  else if( !str_cmp( flag, "nal" ) || !str_cmp( flag, "hutta" ) )
                     value = get_vip_flag( "nal_hutta" );
                  else
                     value = get_vip_flag( flag );
                  if( value < 0 || value > 31 )
                     bug( "Unknown VIP flag: %s", flag );
                  else
                     SET_BIT( pMobIndex->vip_flags, 1 << value );
               }
               break;
            }


build.c
Find:
const char *const planet_flags[] = {
   "coruscant", "yavin iv", "tatooine", "kashyyyk", "mon calamari",
   "endor", "ord mantell", "nal hutta", "corellia", "bakura", "p10", "p11",
   "p12", "p13", "p14", "p15", "p16", "p17", "p18", "p19", "p20", "p21",
   "p22", "p23", "p24", "p25", "p26", "p27", "p28", "p29", "p30", "p31"
};


Replace with:
const char *const planet_flags[] = {
   "coruscant", "yavin_iv", "tatooine", "kashyyyk", "mon_calamari",
   "endor", "ord_mantell", "nal_hutta", "corellia", "bakura", "p10", "p11",
   "p12", "p13", "p14", "p15", "p16", "p17", "p18", "p19", "p20", "p21",
   "p22", "p23", "p24", "p25", "p26", "p27", "p28", "p29", "p30", "p31"
};


Because the flags were set up with spaces in the name, one_argument was chopping them in half, and thus, they weren't being set properly.
       
Pages:<< prev 1 next >>