Mirage Source http://web.miragesource.net/forums/ |
|
NPC Editor Error http://web.miragesource.net/forums/viewtopic.php?f=201&t=2563 |
Page 1 of 2 |
Author: | Robin [ Wed Aug 29, 2007 1:37 am ] |
Post subject: | Re: Item Editor Error |
you're trying to save a massive negative value into a long, of course it errors. |
Author: | Lea [ Wed Aug 29, 2007 3:56 am ] |
Post subject: | Re: Item Editor Error |
Device Context's should be long variables... |
Author: | Hellrise [ Wed Aug 29, 2007 4:13 am ] |
Post subject: | Re: Item Editor Error |
Sorry for beeing a noob but i don't understand you guys I just started working with vb6. |
Author: | Lea [ Wed Aug 29, 2007 1:31 pm ] |
Post subject: | Re: Item Editor Error |
Can you post that code in [code ] tags, the entire sub if you will. Also, I believe that code is correct, so can you please post your entire modDirectX |
Author: | Robin [ Wed Aug 29, 2007 1:38 pm ] |
Post subject: | Re: Item Editor Error |
Just noticed he's hovering over the line below the line which is highlighted >< |
Author: | Hellrise [ Wed Aug 29, 2007 3:09 pm ] |
Post subject: | Re: NPC Editor Error |
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 |
Author: | Lea [ Thu Aug 30, 2007 12:52 am ] |
Post subject: | Re: NPC Editor Error |
Change VBSrcCopy to SRCCOPY |
Author: | Hellrise [ Thu Aug 30, 2007 1:48 am ] |
Post subject: | Re: NPC Editor Error |
Changed it but i still get the same error and the same line gets highlighted |
Author: | Lea [ Thu Aug 30, 2007 3:33 am ] |
Post subject: | Re: NPC Editor Error |
Ok, then the problem is probably related to SelectObject/CreateCompatableDC I'll look into it tomorrow night for you... Not going to be home until late afternoon, IT hink |
Author: | Robin [ Thu Aug 30, 2007 1:15 pm ] |
Post subject: | Re: NPC Editor Error |
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. |
Author: | Hellrise [ Thu Aug 30, 2007 7:02 pm ] |
Post subject: | Re: NPC Editor Error |
Well when i hover over (DC) it Says: DC=335615855 |
Author: | Lea [ Thu Aug 30, 2007 7:25 pm ] |
Post subject: | Re: NPC Editor Error |
It will sasy Variable = <overflow> or something like that... |
Author: | Hellrise [ Fri Aug 31, 2007 5:44 am ] |
Post subject: | Re: NPC Editor Error |
Huh? You lost me there... |
Author: | Matt [ Fri Aug 31, 2007 12:01 pm ] |
Post subject: | Re: NPC Editor Error |
The variable that actually has the problem, will equal <overflow> 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. |
Author: | Hellrise [ Fri Aug 31, 2007 5:10 pm ] |
Post subject: | Re: NPC Editor Error |
Oh now i get it ty Perfekt but, what is the problem then? |
Author: | Lea [ Fri Aug 31, 2007 6:44 pm ] |
Post subject: | Re: NPC Editor Error |
we're asking you...! Hover your mouse over all the variables in that sub when it's errored out. Tell us which one is really the problem. |
Author: | Hellrise [ Fri Aug 31, 2007 7:09 pm ] |
Post subject: | Re: NPC Editor Error |
How do i know wich is the problem? |
Author: | Robin [ Fri Aug 31, 2007 7:41 pm ] |
Post subject: | Re: NPC Editor Error |
Dave wrote: Hover your mouse over all the variables in that sub when it's errored out. Jesus fucking christ... |
Author: | Lea [ Fri Aug 31, 2007 7:52 pm ] |
Post subject: | Re: NPC Editor Error |
It will say something like <overflow> |
Author: | Hellrise [ Wed Sep 05, 2007 9:48 pm ] |
Post subject: | Re: NPC Editor Error |
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. |
Page 1 of 2 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |