vbGore Free Online RPG Engine

Revolutionizing Visual Basic ORPG Development
It is currently Sat May 25, 2013 4:30 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Adding new sprite layers
PostPosted: Thu Mar 11, 2010 7:16 pm 
Carmack's Pimple

Joined: Sat Jun 16, 2007 8:58 pm
Posts: 58
Location: Texas, USA
I attempted to add a "shoe" and "pants" layer by following along with the http://www.vbgore.com/Mounts_and_Shields article and manipulating other layers.
After frying my brain from editing the code, fixing some typo's and missing data base lines i got the server to run and the client... Not so much.


when you click connect it goes to a black screen and comes up with this:

Code:
    'Set the apperances
    CharList(CharIndex).Body = BodyData(Body)
     CharList(CharIndex).Legs = LegsData(Legs) '<-- subscript out of range
    CharList(CharIndex).Boots = BootsData(Boots)
   CharList(CharIndex).DefBody = BodyData(DefBody) '<---then this
    CharList(CharIndex).Head = HeadData(Head)
    CharList(CharIndex).Hair = HairData(Hair)
    CharList(CharIndex).Weapon = WeaponData(Weapon)
    CharList(CharIndex).Wings = WingData(Wings)
    CharList(CharIndex).Mount = MountData(Mount)
    CharList(CharIndex).Shield = ShieldData(Shield)
    CharList(CharIndex).Heading = Heading
    CharList(CharIndex).HeadHeading = Heading
    CharList(CharIndex).HealthPercent = HP
    CharList(CharIndex).ManaPercent = MP
    CharList(CharIndex).LastHP = HP
    CharList(CharIndex).LastMP = MP
    CharList(CharIndex).Speed = Speed
    CharList(CharIndex).NPCChatIndex = ChatID
    CharList(CharIndex).CharType = CharType


but the weird thing was that i moved the line
" CharList(CharIndex).Legs = LegsData(Legs)"
and put it farther down the list to see if anything else came up as error and the boots data seemed to pass but defaultbody data was the new error.

If anyone knows what this error leads to or what other code im missing causing this i would very appreciate the help. It might be easier to just start over with some help of better Knowledge lol.


Top
 Profile  
 
 Post subject: Re: Adding new sprite layers
PostPosted: Tue Mar 16, 2010 4:06 pm 
Newbie

Joined: Tue Mar 16, 2010 3:24 pm
Posts: 2
nick wrote:
I attempted to add a "shoe" and "pants" layer by following along with the http://www.vbgore.com/Mounts_and_Shields article and manipulating other layers.
After frying my brain from editing the code, fixing some typo's and missing data base lines i got the server to run and the client... Not so much.


when you click connect it goes to a black screen and comes up with this:

Code:
    'Set the apperances
    CharList(CharIndex).Body = BodyData(Body)
     CharList(CharIndex).Legs = LegsData(Legs) '<-- subscript out of range
    CharList(CharIndex).Boots = BootsData(Boots)
   CharList(CharIndex).DefBody = BodyData(DefBody) '<---then this
    CharList(CharIndex).Head = HeadData(Head)
    CharList(CharIndex).Hair = HairData(Hair)
    CharList(CharIndex).Weapon = WeaponData(Weapon)
    CharList(CharIndex).Wings = WingData(Wings)
    CharList(CharIndex).Mount = MountData(Mount)
    CharList(CharIndex).Shield = ShieldData(Shield)
    CharList(CharIndex).Heading = Heading
    CharList(CharIndex).HeadHeading = Heading
    CharList(CharIndex).HealthPercent = HP
    CharList(CharIndex).ManaPercent = MP
    CharList(CharIndex).LastHP = HP
    CharList(CharIndex).LastMP = MP
    CharList(CharIndex).Speed = Speed
    CharList(CharIndex).NPCChatIndex = ChatID
    CharList(CharIndex).CharType = CharType


but the weird thing was that i moved the line
" CharList(CharIndex).Legs = LegsData(Legs)"
and put it farther down the list to see if anything else came up as error and the boots data seemed to pass but defaultbody data was the new error.

If anyone knows what this error leads to or what other code im missing causing this i would very appreciate the help. It might be easier to just start over with some help of better Knowledge lol.


Have you set their values appropriately? When you are setting them, are they being set correctly? Is it loading the appropriate data, if loading any data at all?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group