Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-26-2006, 06:32 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
division by zero and access violations

when i set the width of a scroll control to width=LoginWindow.width/3; it gives me the division by zero error constantly

it sucks :-\

so... this isnt cool because its embedded inside the LoginWindow and it SHOULD have a width... but.. maybe not.
Reply With Quote
  #2  
Old 02-26-2006, 06:41 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Even if the LoginWindow doesnt' have a width, it's still 0/3, and would thus return 0. It shouldn't have a division by zero error.
__________________
Reply With Quote
  #3  
Old 02-26-2006, 06:43 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
well something is returning the error.. and causing me to not be able to load

im trying to figure out what it is.. now its saying 'privilidged instruction'

wtf?
Reply With Quote
  #4  
Old 02-26-2006, 06:57 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
http://graalbin.londeroth.org/97

the script in question -_-'
Reply With Quote
  #5  
Old 02-26-2006, 07:15 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
it appears to be a problem with the GuiTextListCtrl because i commented that out and its not returning any errors.
Reply With Quote
  #6  
Old 02-26-2006, 02:07 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
May be there is a problem because you don't set a profile ? I will need to debug it, what is the name of the script on Mana Realms?
Reply With Quote
  #7  
Old 02-27-2006, 01:04 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
script is *login_ERROR

its giving me a lot of problems :-\

for some reason savelines() isnt working right

the SAME exact commands used in function onPlayerEnters() do not work when they are in a function called later in the script.

its so frustrating.. but theres some problem with savelines :-\

so.. that needs to be fixed too

this is all in GUI/Weapon: *login_ERROR
Reply With Quote
  #8  
Old 02-27-2006, 06:16 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Ok checked it, the problem is that you are not setting profiles for the gui controls, so it has problems to calculate the size of the scrollbar and such. The crash / error is fixed in the next version of v4, it would still be good to set some profile to the controls (profile = GuiScrollProfile or so).

'savelines' is saving an array into a file. Checking your script, I guess you would need to do something like:
temp.var = {params[1]};
temp.var.savelines(filename,doappend)
Reply With Quote
  #9  
Old 02-27-2006, 08:25 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Stefan, do you think you could make it when you changeimgpart with a width or height of zero, that it would just show nothing?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:45 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.