-
06-03-2006, 04:27 AM #16
Re: Logbook program
You are absolutly true. I completely forgot about that.
Anyway, during this post i fixed it.
Calculation is like this now:
Code:....... If TotalAdjustedScore <= 799 Then ' Player is currently a Captain. PointsRequired = 800 - TotalAdjustedScore PrevRankPoints = 300 ' the number of points you needed the prev. rank NumberOfPointsToReach = 500 ' current maxpoints - prev rank maxpoints PointsToGo = TotalAdjustedScore - PrevRankPoints PercentageToNextRank = (PointsToGo/ (NumberOfPointsToReach/100)) End If .....
Please download the new version again, right here.
stevie
-
06-03-2006, 07:38 PM #17
Re: Logbook program
Hmmm...my progress bar still shows 53%. Anything I can give you to help debug?
[volun]
-
06-04-2006, 09:34 AM #18
Re: Logbook program
Strange.. it should work. Can you send me your txt file that comes from the logbook.exe?
stevie.
-
06-04-2006, 12:39 PM #19
Re: Logbook program
On myself and some other are getting a .net frame error .... ?????
I know it long but here is the error
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualBasic.CompilerServices.ObjectType. DivString(IConvertible conv1, TypeCode tc1, IConvertible conv2, TypeCode tc2)
at Microsoft.VisualBasic.CompilerServices.ObjectType. DivObj(Object o1, Object o2)
at FalconLog.Form1.Form1_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
FalconLog
Assembly Version: 1.0.2344.15015
Win32 Version: 1.0.2344.15015
CodeBase: file:///C:/Program%20Files/Lead%20Pursuit/FalconLog.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.6001.4
CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------
************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.
-
06-04-2006, 01:07 PM #20
Re: Logbook program
Sure thing, Stevie, here it is:
*****
Pilot Name: Boogieman
Commissioned Date: 07/18/05
Number of Flight Hours: 197.0
Rank: Major
Callsign: Boogieman
Medals:
Air Force Cross: 0
Silver Star: 0
Distinguished Flying Cross: 0
Air Medal: 1
Longevity Medal: 0
Campaign Medals: 0
CAMPAIGN STATS:
Total Missions Flown: 197
Air to Ground: 303
Consecutive Missions: 3
Friendlies Killed: 0
Games Lost: 0
Games Tied: 0
Games Won: 1
Human Kills: 7
Number of Times Killed: 38
Number of Times Killed by Human: 19
Killed by Self: 8
Number of Kills: 184
Total Adjusted Score: 845
Total Score: 781
Total Static Kills: 149
Total Naval Kills: 4
Miss Since Last Friendly Kill: 0
DOGFIGHT STATS:
Matches Won: 0
Matches Lost: 0
Matches Won vs Humans: 0
Matches Lost vS Humans: 0
Total Kills: 0
Total Times Killed: 0
Total Human Kills: 0
Times Killed by Humans: 0
*****
One other thing I noticed. After a flight, when I ran FalconLog, it didn't reflect the stats for my most recent flight. In order to get it to show updated stats, I had to clear out my callsign and rerun the program. It gave me an error but allowed me to continue. When I retyped my callsign and clicked browse, it gave me the up-to-date stats. Could be a user error though.[volun]
-
06-05-2006, 07:31 AM #21
Re: Logbook program
Hi wolf,
When does this occur? When the app starts? I'm sticking my head together with some other guy over at multiviper. he's far more experienced in this then me. I'm just a simple .net asp programmer instead of applications.
I'll see what i can do.
-
06-07-2006, 03:42 AM #22
- Join Date
- Feb 2006
- Posts
- 26
Re: Logbook program
Hey stevie,
I downloaded your program and put the logbook.exe that came with it in my config folder. I set my falcon directory to the Battlefield Operations folder. When i hit "view file" i am getting this error message that says "an unhandled exception has occured in your application. if you click Continue, the application will ignore this error and attempt to continue. if you click Quit, the application will be shut down immediately. Object reference not set to an instance of an object." so i hit "Details" and get the following message.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualBasic.CompilerServices.ObjectType. DivString(IConvertible conv1, TypeCode tc1, IConvertible conv2, TypeCode tc2)
at Microsoft.VisualBasic.CompilerServices.ObjectType. DivObj(Object o1, Object o2)
at FalconLog.Form1.Button1_Click_1(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
FalconLog
Assembly Version: 1.0.2344.15015
Win32 Version: 1.0.2344.15015
CodeBase: file:///C:/Documents%20and%20Settings/Brad/My%20Documents/Games/Falcon%204.0/falconlog/FalconLog.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.3052.4
CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------
System.Design
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.design/1.0.5000.0__b03f5f7f11d50a3a/system.design.dll
----------------------------------------
************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.
The if i close and reopen it, this error message comes up first, beofre i even hit the "view file" button. So it seems like it happens when trying to open the logbook. i'm not really a programming person so let me know what i did wrong. but i think it's the same message as wolf.
Thanks
TigerslbLast edited by tigerslb; 06-07-2006 at 04:01 AM.
-
06-07-2006, 04:44 AM #23
Re: Logbook program
Hi Tiger,
It indeed is the same problem as wolf (and a few others) have. Right now i'm working on a fix. Or say, i'm trying to find it. It has to do with the installation of the framework or any missing components (i guess).
@Boogie,
I ran your contents of the text file you put up and i'm getting a nice "5.6%" progress.
I'll include a debugging method in the next version, where it doesn't execute the logbook but just reads the txt file. That way you can change around in the txt and see what happends.
stevie
-
06-07-2006, 06:21 AM #24
Re: Logbook program
Ok, so now i have uploaded a new version. This is a temporary release. We are now working out a setup routine which will automatically does the installation for you.
This release however doesn't require you to point the falcon directory. It does it automatically now.
Also, i *might* have adressed the problem. Please check it out.
Download the file here: Falcon log.
Also, you may (if you like to test) create a copy of your callsign.lbk.txt file in the config directory and call it: debug_whateveryouwant.lbk.txt
Now, when you run the program and use the callsign: debug_whateveryouused it will NOT execute the logbook.exe with your logbook, but instead it just reads the txt file. Now you can change stuff around in the txt file and hit the 'view file' button to reflect your changes.
Please post anything you might find.
-stevie
-
06-07-2006, 02:57 PM #25
- Join Date
- Feb 2006
- Posts
- 26
Re: Logbook program
Allright... i'm getting the same error message... but now when the program is open, in the flight hours window it says hour, and in the average number of kills per mission it says NaN
-
06-07-2006, 04:40 PM #26
- Join Date
- Feb 2006
- Posts
- 26
Re: Logbook program
and can somebody tell me how to use the logbook reader from lead pursuit.... i just cant figure it out
-
06-07-2006, 05:21 PM #27
Re: Logbook program
Ahhh, i found out what is causing this problem.
The logbook.exe from LP isn't working correctly from my app on some HOME editions of windows.
A fix is soon to be there.
Tigerslb: Drag your callsign.lbk in the config folder of falcon ontop of logbook.exe. It will produce a txt file which you can read.
For those that are getting the error: Try creating the text file manually by dragging as described above and run the app.
NaN means "Not A Number" which really stands for a value of 'nothing/null' really.
-
06-07-2006, 09:13 PM #28
- Join Date
- Feb 2006
- Posts
- 26
Re: Logbook program
still getting the error message , but now when i open the program, some of the stuff comes up, this that don't show up are my total medals recieved (although they show up on the medals scree), total number of kills, avg. mission time, and average kills per mission, campaigns completed, total air to ground kills, medals earned, all dogfight stats
-
06-08-2006, 03:17 AM #29
Re: Logbook program
In a few days a version will be released which will be having much better debugging features. I'll post up this version asap.
stev
-
06-08-2006, 04:41 PM #30
Re: Logbook program
You guys with the problems, what version of windows are your running?
Home or proffesional edition? And are you or are you not patched up with SP2.
Regards,
stevie.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)



Reply With Quote

Bookmarks