![]() |
|
|||||||
| Register | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#77 (permalink) | |
|
Registered Member
Join Date: Jan 2006
Posts: 1
|
Quote:
Location in Atlantic Ocean it seems to lock too. Latitute 0.01570 Longitute 0.00154 Bit more info for you...im using 20050630.zip, and mappoint euro 2004 Have just tested with 20041124.zip and this feature works ok, opens on position set in settings then updates when you get GPS fixed. Last edited by foz11 : 01-02-2006 at 01:18 PM. |
|
|
|
|
|
|
#78 (permalink) | |
|
Knight Tooth Puller
Join Date: Aug 2004
Location: Bellevue, WA, USA
Posts: 182
|
Quote:
I've added the Chris H's database stuff into another module (with syntax for other databases, e.g. MySQL, SQL Server [just in case someone's doing that, heh]; cleaned/optimized of course) but it needs some testing. Project isn't dead but I've been using Kismet a lot more. |
|
|
|
|
|
|
#79 (permalink) |
|
Knight Tooth Puller
Join Date: Aug 2004
Location: Bellevue, WA, USA
Posts: 182
|
Finally an update after a frenzy of coding this month. Several new capabilities:
Next up is to make kiswinsound take advantage of the file reading abilities of ns04thread.vbs (rather than shelling out to regtool to write to the registry). |
|
|
|
|
|
#80 (permalink) |
|
Registered Member
Join Date: Nov 2004
Posts: 2
|
Trying to use the new (20060228) Master Script on my machine, but whenever I start NetStumbler, it complains with the following message:
Code:
An Error was reported in your script. Microsoft VBScript runtime error File not found Line: 198: Char: 9 SCode: 800A0035 Code:
An Error was reported in your script. Microsoft VBScript runtime error Type mismatch: 'Discardable' Line: 269 Char: 2 SCode: 800A000D Code:
Private Sub IncludeFile(FileName) ' Includes a file in the global namespace of the current script. ' The file can contain any VBScript source code. Const ForReading = 1 Dim f: set f = FSO.OpenTextFile(FileName,ForReading) ExecuteGlobal f.ReadAll() f.Close End Sub I've installed the script in a trackNS subdirectory under C:\Program Files\NetStumbler, and the WAV and CIcons folders do exist as well. The error occurs whether or not I customize the ns04settings.vbs file. I have touched no other files from the .zip so far. I'll keep banging on it to see what I can learn. Back in my ASP days, I used to program in VBscript for money so I should eventually be able to get this going, but it'd be nice if someone could just pop in and say something like "Hey! Stupid! You forgot to change line <x>!" and save me a few hours. |
|
|
|
|
|
#81 (permalink) |
|
Registered Member
Join Date: Nov 2004
Posts: 2
|
Hey, Stupid! Put the scripts and folders in the Network Stumbler directory, not in a subfolder!
I solved my own problem. Feel free to delete these messages if they're just in the way or leave them if you think it might illustrate for others the problem and its solution. |
|
|
|
|
|
#82 (permalink) | |
|
SpoonfeederExtraordinaire
Join Date: Jan 2005
Location: Maryland
Posts: 3,618
|
Quote:
__________________
:00475160 0E A6 AE A0 19 E3 A3 46 .......F
:00475168 0D 65 17 0C 53 70 6F 6F .e..Spoo :00475170 6E 66 65 65 64 65 72 2E nfeeder. :00475178 45 78 74 72 61 6F 72 64 Extraord :00475180 69 6E 61 69 72 65 5D 3B inaire]; :00475188 8B 9E 92 5A FF 5D A6 F0 ...Z.].. |
|
|
|
|
|
|
#83 (permalink) |
|
Knight Tooth Puller
Join Date: Aug 2004
Location: Bellevue, WA, USA
Posts: 182
|
Believe it or not, I already anticipated this issue a week or two ago. The newest version of the subroutine will be as follows:
Code:
Private Sub IncludeFile(FileName) ' Includes a file in the global namespace of the current script. ' The file can contain any VBScript source code. if not FSO.FileExists(FileName) then MsgBox FileName & " does not exist!" & vbCRLF _ & "Please extract to " & nameDir & "!", vbCritical, nameScript WScript.Quit end if set f = FSO.OpenTextFile(FileName, ForReading) ExecuteGlobal f.ReadAll() f.Close End Sub I've also cleaned up MapPoint (finally), I just hope I didn't break anything (but I'm confident TPEER will step in if I did). There's no longer an Initialized variable or an Initialize subroutine, it's all in-line and more modular. The previous (20060228-) code was checking Initialized in every OnGPSPosition and every OnPositionChange, which seemed horribly wasteful. I couldn't envision a reason not to just perform it once (at the start) and get it over with. Well, maybe it's too slow... but then, everyone should theoretically be starting NetStumbler while not in motion, right? Even if it was slow, any event processing that isn't threaded (heh) halts all NetStumbler processing, otherwise there would've been a reentrancy problem with Initialize being called simultaneously... sorry, just rambling here, sleep deprivation...The new code also splits ns04master.vbs into two files - a second file, ns04subcalls.vbs (I'm really not sure that that's a good name, maybe ns04events.vbs would be better? Any suggestions?) has each of the event handler subroutines called directly by NetStumbler, which each in turn call the modules' event handling subroutines. ns04master.vbs, which is much smaller without the primary event handler subroutines, does ReadAll on it then Filters it for the Usemodule statements that are False. The result is that it's effectively preprocessed. So, for example, if you aren't using SubStation support, no "If UseSubstation" checks are performed due to being filtered out. Slightly faster code! I've also unified the GPS variables (OldLat, OldLon, NowLat, NowLon, NowAlt) - many module-specific variables are gone now, and code is simplified, although admittedly the OnGPSPosition code (which sets all five) might be a bit slower now. I'm currently working on eliminating passed arguments (e.g. OnGPSPositionmodule calls no longer pass parameters because the subroutines use the variables). OnScanCompletemodule calls will change radically due to most parameters being ignored (and thus not needing to be passed). |
|
|
|
|
|
#84 (permalink) |
|
Registered Member
Join Date: Sep 2004
Location: http://location.n3ujj.com/
Posts: 20
|
Query Error
Goldfndr,
Great job on the new scripts !! Wondering if anyone else has seen the following error? error.JPG From what I see, it looks like the apostrophe hasn’t been cleaned from the SSID: Looking at the code here is what I see. SubRoutine “OnPositionChangeDatabase” Cleans the SSID (Position Table) SubRoutine “OnGPSPositionDatabase” Doesn’t clean the SSID (Readings Table) SubRoutine “OnScanResultDatabase” Doesn’t clean the SSID (Readings Table)
__________________
APRS is ALMOST as much fun as WarDriving. Click here for my last APRS location Wigle Stats: |
|
|
|
|
|
#85 (permalink) | |
|
Psychic Amish Stumbler
Join Date: Jul 2004
Location: Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
Posts: 11,708
|
Quote:
Depending upon what I'm doing I either do a replace of the ' with two of them '' or I replace the ' with '. I believe the general accepted way is to replace it with two of them '', not a ".
__________________
"One of these days, I'm going to cut you to pieces." If you're offended by this post, please feel free to report it to one of the many helpful moderators of this forum. Thank you. |
|
|
|
|
|
|
#87 (permalink) |
|
Registered Member
Join Date: Sep 2004
Location: http://location.n3ujj.com/
Posts: 20
|
Query Error
I took the "Cleaning Code" and inserted into:
SubRoutine “OnGPSPositionDatabase”and it solved the Query Error If you don't use the Readings Table (in ns04settings.vbs), you won't have the problem
__________________
APRS is ALMOST as much fun as WarDriving. Click here for my last APRS location Wigle Stats: |
|
|
|