![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|||||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
10-10-13, 08:23 AM
|
#1 |
|
Weps
![]() Join Date: Apr 2005
Location: Illinois
Posts: 366
Downloads: 176
Uploads: 5
|
You could add a few lines of code to output the values received by the program. That would at least tell you if the issue is within the programs functions/processes itself, or if the issue is an error in passing the values to the program. If the values being passed to the program are correct, I would then output the results of each calculation done internally at each step in an attempt to nail down exactly where the errors are being introduced. Does your program establish protected (reserved) memory space upon start up? Most languages will take care of this for you, but I am not familiar with Liberty Basic and it has been a while since I have played with code in any language for that matter. Debugging should be easy enough in any case. Solving the issue after you identify it specifically, well- that can be a whole new type of fun. LOL
__________________
=============
![]() My Game starts with GFO - Keepin' it real as it needs to be! |
|
|
10-10-13, 10:19 PM
|
#2 | |||
|
Silent Hunter
![]() Join Date: Sep 2010
Posts: 3,969
Downloads: 153
Uploads: 11
|
Quote:
I don't really know the details of how this works. I had assumed that this was done automatically by the program language itself. If it doesn't, or fails for some reason, I wouldn't know what to do about it. Quote:
This is a good idea. I more or less assumed that it was one or more math steps that were going wrong. Quote:
Yeah, I know what you mean. |
|||
|
|
10-11-13, 08:26 PM
|
#3 |
|
Silent Hunter
![]() Join Date: Sep 2010
Posts: 3,969
Downloads: 153
Uploads: 11
|
Ok, I've played around with this some more and I believe I'm zeroing in on the problem(s). |
|
|
10-12-13, 09:55 PM
|
#4 |
|
Silent Hunter
![]() Join Date: Sep 2010
Posts: 3,969
Downloads: 153
Uploads: 11
|
Another update: |
|
|
10-12-13, 11:09 PM
|
#5 |
|
Weps
![]() Join Date: Apr 2005
Location: Illinois
Posts: 366
Downloads: 176
Uploads: 5
|
LOL - computers can be tough to communicate with sometimes. They always have to have things their own way for some reason. I am happy that you tamed the beast!
When I was programming, I always used a naming convention for variable types to help me keep track of them all- something I learned way back when cutting my teeth using Q-Basic. Helps with debugging. In my experience, single character variable names should be avoided, but hey- it's all just part of the fun!
__________________
=============
![]() My Game starts with GFO - Keepin' it real as it needs to be! |
|
|
10-12-13, 11:20 PM
|
#6 |
|
Silent Hunter
![]() Join Date: Sep 2010
Posts: 3,969
Downloads: 153
Uploads: 11
|
|
|
|
10-13-13, 04:30 PM
|
#7 |
|
Silent Hunter
![]() Join Date: Dec 2004
Location: AN9771
Posts: 4,839
Downloads: 309
Uploads: 0
|
While I don't know anything about Liberty Basic, programing languages usually have a very similar syntax....
We might be of some better assistance if we can view the source code. Otherwise we're just shooting in the dark. And my magic orb is undergoing maintenance. What JoeCorrado said: output every calculation step or variable change. Including your own input given to the program. Preferably saved into a log file for future reference. |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
