WYRDYSM GAMES

Home of Battleships Forever
It is currently Sat Oct 25, 2014 2:03 am

All times are UTC + 8 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Sat Sep 05, 2009 4:00 pm 
Offline
Captain
Captain
User avatar

Joined: Tue Oct 21, 2008 12:45 pm
Posts: 423
Code:
ERROR in
action number 1
of Key Press Event for O-key Key
for object obj_sidebar:

In script loadShip:
In script oReadParams:
In script nSecD:
In script updateMovtarget:
Error in code at line 98:
         ms_mcounter = ceil(ms_startdist/ms_aspeed)

at position 40: Division by 0.


This is the current error I'm getting, but it's not the first. I've had my mouse disappear, the builder stop accepting keyboard input, hidden parts refuse to return to their original position and other annoying problems. Usually a quick reboot of the SM can fix these problems, but this current error refuses to go away. Lately I've had problems with mirroring things and the like as well.

My question here is, is there something seriously wrong here? Should I just remove my current install, save my work and reinstall? Am I doing something wrong?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 05, 2009 4:04 pm 
Offline
FOOLISH SAMURAI
User avatar

Joined: Thu Sep 13, 2007 10:37 am
Posts: 4033
Location: UK
The error is pretty self-explanatory. The ms_startdist or ms_aspeed have been set to 0 somehow, most likely user error. Your best bet would be to find it and fix it in notepad or another text editor. Not exactly an easy task but you have some of the vital information already at your disposal, namely the line you want (98), the block of parameters you want (nSecD), and the position in question (40).

_________________
  /l、
゙(゚、 。 7
 l、゙ ~ヽ
 じしf_, )ノ


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 05, 2009 4:40 pm 
Offline
Captain
Captain
User avatar

Joined: Tue Oct 21, 2008 12:45 pm
Posts: 423
Arcalane wrote:
The error is pretty self-explanatory. The ms_startdist or ms_aspeed have been set to 0 somehow, most likely user error. Your best bet would be to find it and fix it in notepad or another text editor. Not exactly an easy task but you have some of the vital information already at your disposal, namely the line you want (98), the block of parameters you want (nSecD), and the position in question (40).


huh, well its not the first time something has altered after I closed the program. Well I'll see if I can change it back. huh...well line 98 doesn't even seem to be an nSecD...its a nSecC..I'll assume I missed one or something.

Does it being in position mean the number I'm looking for is 40, or that its in some list of 40 numbers?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 05, 2009 8:01 pm 
Offline
FOOLISH SAMURAI
User avatar

Joined: Thu Sep 13, 2007 10:37 am
Posts: 4033
Location: UK
40th letter/number/character/symbol on that line/row.

_________________
  /l、
゙(゚、 。 7
 l、゙ ~ヽ
 じしf_, )ノ


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 05, 2009 8:16 pm 
Offline
Moderator
User avatar

Joined: Fri Dec 14, 2007 4:46 am
Posts: 1590
Arcalane wrote:
Not exactly an easy task but you have some of the vital information already at your disposal, namely the line you want (98), the block of parameters you want (nSecD), and the position in question (40).

Actually, no. The error refers to code in SM source (updateMovtarget script, to be precise), not in .sb4 file.

Ms_aspeed is 0. Ms_aspeed is calculated by dividing ms_dist by ms_aframes. Ms_dist must be 0, then, and ms_dist = move distance.

Noctis, what you are looking for is an nSecD entry in the blueprint, with its seventh argument being 0.


Last edited by Kaelis on Sun Sep 06, 2009 12:40 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 05, 2009 9:07 pm 
Offline
FOOLISH SAMURAI
User avatar

Joined: Thu Sep 13, 2007 10:37 am
Posts: 4033
Location: UK
Well one outta three ain't so bad. :P

_________________
  /l、
゙(゚、 。 7
 l、゙ ~ヽ
 じしf_, )ノ


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 06, 2009 12:23 am 
Offline
Captain
Captain
User avatar

Joined: Tue Oct 21, 2008 12:45 pm
Posts: 423
Kaelis wrote:
Arcalane wrote:
Not exactly an easy task but you have some of the vital information already at your disposal, namely the line you want (98), the block of parameters you want (nSecD), and the position in question (40).

Actually, no. The error refers to code in SM source (updateMovtarget script, to be precise), not in .sb4 file.

Ms_aspeed is 0. Ms_aspeed is calculated by dividing ms_dist by ms_aframes. Ms_dist must be 0, then, and ms_dist = move distance.

Noctits, what you are looking for is an nSecD entry in the blueprint, with its seventh argument being 0.

If it' s not in the Sb4 then what should I open in order to edit it? The Sm itself?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 06, 2009 12:39 am 
Offline
Moderator
User avatar

Joined: Fri Dec 14, 2007 4:46 am
Posts: 1590
I didnt say its not in sb4, i said the error refers to source code.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 06, 2009 12:41 am 
Offline
Captain
Captain
User avatar

Joined: Tue Oct 21, 2008 12:45 pm
Posts: 423
Kaelis wrote:
I didnt say its not in sb4, i said the error refers to source code.


Ah, ok, thanks.

That worked.

Any idea why my keyboard stops working or my mouse disappears? Both happen rather often.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 06, 2009 6:08 pm 
Offline
Commodore
Commodore
User avatar

Joined: Mon Mar 24, 2008 5:27 am
Posts: 521
Location: San Diego, CA
Noctis wrote:
Any idea why my keyboard stops working

In SM? Try clicking any edit field and hitting enter. I find that happens if you're filling a field out and not pressing enter when done which seems to lock any keyboard functions.

_________________
Fly me to the moon, so I can play among the stars~
Let me see what spring is like on Jupiter and Mars~


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group