Mirage Engine
Runtime 380[Its All Good] - 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: Runtime 380[Its All Good] (/showthread.php?tid=1651)



Runtime 380[Its All Good] - Ravuya - 01-04-2008

When I open the spell editor And click a spell to edit this come up Runtime error 380 Invalid property value and when I click ok mirage terminates


Re: Runtime 380 - Rezeyu - 01-04-2008

What line is it erroring on?


Re: Runtime 380 - Coke - 02-04-2008

Change the minimum value of the scrollbar(s) to 1.


Re: Runtime 380 - Ravuya - 02-04-2008

In mod game logic spell editor init
Code:
frmSpellEditor.scrlLevelReq.Value = Spell(EditorIndex).LevelReq



Re: Runtime 380 - GIAKEN - 09-04-2008

Make sure the value isn't lower than the minimum value or the maximum...

Code:
If Spell(EditorIndex).LevelReq < frmSpellEditor.scrlLevelReg.Min Then Spell(EditorIndex).LevelReq = frmSpellEditor.scrlLevelReg.Min
If Spell(EditorIndex).LevelReq > frmSpellEditor.scrlLevelReq.Max Then Spell(EditorIndex).LevelReq = frmSpellEditor.scrlLevelReq.Max

(I didn't check this with my source, just typed it up in the post...so not 100% sure if it's right)


Re: Runtime 380 - Ravuya - 14-04-2008

no man I cant find that bit of code you just gave me anywhere


Re: Runtime 380[Still Not Working] - seraphelic - 14-04-2008

In the sub clearspell serverside, make spell(index).LevelReq = 1 and delete the spell data from the server


Re: Runtime 380 - Kousaten - 15-04-2008

Ravuya Wrote:no man I cant find that bit of code you just gave me anywhere

The code he gave isn't in mirage, it's just an additional check you can put in to make sure no problems occur with going out of the scrollbar limits. Wink

And yes, do what Sera said too.