Mirage Engine
NPC Editor Error - Printable Version

+- Mirage Engine (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: NPC Editor Error (/showthread.php?tid=1224)



NPC Editor Error - Hellrise - 29-08-2007

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.


Re: Item Editor Error - Robin - 29-08-2007

you're trying to save a massive negative value into a long, of course it errors.


Re: Item Editor Error - Hellrise - 29-08-2007

Sorry for beeing a noob but i don't understand you guys Sad
I just started working with vb6.


Re: Item Editor Error - Robin - 29-08-2007

Just noticed he's hovering over the line below the line which is highlighted >


Re: NPC Editor Error - Hellrise - 29-08-2007

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


Re: NPC Editor Error - Hellrise - 30-08-2007

Changed it but i still get the same error and the same line gets highlighted Sad


Re: NPC Editor Error - Robin - 30-08-2007

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.


Re: NPC Editor Error - Hellrise - 30-08-2007

Well when i hover over (DC) it Says:
DC=335615855


Re: NPC Editor Error - Hellrise - 31-08-2007

Huh?
You lost me there...


Re: NPC Editor Error - Matt - 31-08-2007

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.


Re: NPC Editor Error - Hellrise - 31-08-2007

Oh now i get it ty Perfekt but, what is the problem then?


Re: NPC Editor Error - Hellrise - 31-08-2007

How do i know wich is the problem?


Re: NPC Editor Error - Robin - 31-08-2007

Dave Wrote:Hover your mouse over all the variables in that sub when it's errored out.

Jesus fucking christ...


Re: NPC Editor Error - Hellrise - 05-09-2007

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.