Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NPC Editor Error
#1
When i did the Optimizing Editor Loading tut
I tried to Edit my Npc's
and Blam! RTE 2005532086 (8876024a) -automation error pops up
When i debugged it it highlighted this:
[Image: npceditorerrormo5.th.jpg]

EDIT: Just noticed that you have to zoom a lil bit out to clearly see the text....Sorry for that.
Reply
#2
you're trying to save a massive negative value into a long, of course it errors.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#3
Sorry for beeing a noob but i don't understand you guys Sad
I just started working with vb6.
Reply
#4
Just noticed he's hovering over the line below the line which is highlighted >
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#5
Code:
Public Sub NpcEditorInit()
'*********************************************************** *****
'* WHEN        WHO        WHAT
'* ----        ---        ----
'* 07/12/2005  Shannara   Added gfx constant.
'* 10/29/2005  Grim       Now loads from Sprite surface
'*********************************************************** *****
Dim DC As Long

     DC = DD_SpriteSurf.GetDC
     Call BitBlt(frmNpcEditor.picSprites.hdc, 0, 0, DDSD_Sprite.lWidth, DDSD_Sprite.lHeight, DC, 0, 0, vbSrcCopy)
     DD_TileSurf.ReleaseDC (DC)

     frmNpcEditor.txtName.Text = Trim(Npc(EditorIndex).Name)
     frmNpcEditor.txtAttackSay.Text = Trim(Npc(EditorIndex).AttackSay)
     frmNpcEditor.scrlSprite.Value = Npc(EditorIndex).Sprite
     frmNpcEditor.txtSpawnSecs.Text = STR(Npc(EditorIndex).SpawnSecs)
     frmNpcEditor.cmbBehavior.ListIndex = Npc(EditorIndex).Behavior
     frmNpcEditor.scrlRange.Value = Npc(EditorIndex).Range
     frmNpcEditor.txtChance.Text = STR(Npc(EditorIndex).DropChance)
     frmNpcEditor.scrlNum.Value = Npc(EditorIndex).DropItem
     frmNpcEditor.scrlValue.Value = Npc(EditorIndex).DropItemValue
     frmNpcEditor.scrlSTR.Value = Npc(EditorIndex).STR
     frmNpcEditor.scrlDEF.Value = Npc(EditorIndex).DEF
     frmNpcEditor.scrlSPEED.Value = Npc(EditorIndex).SPEED
     frmNpcEditor.scrlMAGI.Value = Npc(EditorIndex).MAGI
    
     frmNpcEditor.Show vbModal
End Sub
Here you go dave.
And Lmao sorry about that robin Tongue
Reply
#6
Changed it but i still get the same error and the same line gets highlighted Sad
Reply
#7
Can you please find the exact variable which is causing the error?

By hovering over the different parts of the highlighted line until you find it?

thanks.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#8
Well when i hover over (DC) it Says:
DC=335615855
Reply
#9
Huh?
You lost me there...
Reply
#10
The variable that actually has the problem, will equal or something of the sorts.

So the variable you told us what equaled when you hovered over it, isn't the one causing the problems.
Reply
#11
Oh now i get it ty Perfekt but, what is the problem then?
Reply
#12
How do i know wich is the problem?
Reply
#13
Dave Wrote:Hover your mouse over all the variables in that sub when it's errored out.

Jesus fucking christ...
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#14
Robin Wrote:
Dave Wrote:Hover your mouse over all the variables in that sub when it's errored out.

Jesus [edit] christ...
Mkaay....I knew that but....I can't find it....Bleh ill keep trying till i find out....

Edit: Sorry for the verry slow reply lost my internet for a few days.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)