#68140 - 2002-07-13 07:16 PM
New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
|
Sealeopard
KiX Master
Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
|
Okay, everybody:
I think I have a new challenging KiXtart Golf tournament for you. First of all, I'd like to credit BrianTX (I believe) for the idea to this challenge. Secondly, the timeframe is a total of 10 days. A private coding phase with no code postings allowed will run from now to Wednesday afternoon.
Because of the complexity of the problem and time constraints of participants, the deadline for the first part has been extended to Saturday, July 20, 6pm EST. Part 2 (public improvements of code) will begin automatically after this date/time.
A second public coding phase, including postings of code, will run from Wednesday afternoon to Sunday evening.
Follwing are the official rules for the contest: ================================================================ KiXtart GOLF - How To Play ================================================================
Most importantly, anybody can play, no age restrictions, no penalties, no handicap!
The object in "real" golf is to hit the ball in the hole in the fewest strokes. The object in KiXtart Golf is to get from input (tee) to target (hole) in the fewest keystrokes.
Example: How many positive elements are in array $a?
Array $a could be of structure $a=[1, 2 ,-3, 4, -5, -7, 8, 9]
One approach:
code:
for $b=0 to ubound($a) if $a[$b]>0 $c=$c+1 endif next
for a score of 45.
Another solution is: code]DO $b=$b+1 if $a[$b]>0 $c=$c+1 endif UNTIL $b>(UBOUND($a)+1)[/code]
for a score of 53.
Better approach: Code sample 1
================================================================ KiXtart GOLF - The Rules ================================================================
1) The goal of KiXtart Golf is to score the lowest strokes.
2) Strokes are all characters in a piece of code except whitespace characters, unless the whitespace character is necessary for the line of code to work. Therefore, carriage returns and line feeds do not count or spaces in between the '=' sign when assigning variables, e.g. '$a = $b' scores 5.
3) Code can be constructed any way you like, as long as it is syntactically correct with KiXtart.
4) The final solution MUST pass all test scripts that accompagny the KiXtart golf challenge.
5) The use of '$' as a variable is allowed.
6) In case of questions about a particular way to count the KiXtart Golf Challenge organizer has the last call.
7) During the private coding phase, no code is allowed to be posted. Violations result in disqualification of said player.
8) During the public coding phase, code should be posted, reused, and borrowed from other players.
9) The following script can be used to count the KiXtart Golf score: http://81.17.37.55/board/ultimatebb.php?ubb=get_topic;f=2;t=003418
================================================================ KiXtart GOLF - The Duration of the Competition ================================================================
1) Private coding phase: From date/time of posting the tournament challenge to the following Wednesday, 3pm EST (BBS+6 time)
2) Public coding phase: From Wednesday 3pm EST (BBS+6 time) to the following Sunday, 7pm EST (BBS+6 time)
3) Final results: The following Monday, 11am EST (BBS+6 time)
****************************** * The KiXtart Golf Challenge * ******************************
Write a UDf that can replace the 'REGEDIT /S' registry import.
Three test registry files have been provided and should go into the same directory as the test script. The test script checks whether the written UDF imports the registry files correctly by checking for registry keys, registry types, and registry values.
The registry files can be imported into Windows 9x, NT, 2000, XP but have only been tested with Windows 2000.
Please insert your UDf inside the marked space at the end of the test script. The test script will the run your UDF and check whether all registry keys are correctly placed.
All necessary files are posted below:
All files can also be downloaded at http://people.bu.edu/jenmeyer/kixtart/golf.zip
GOLF.KIX
code:
; KiXtart Golf Test script
; please insert the UDF inside the marked space at the end of this script. It is sufficient to just post the UDF to the BBS once UDF posting is allowed.
; the .REG files are expected to be in the same directory as the script
Dim $rc, $regfile, $regfilearray[1], $errorcount dim $registrykeys, $registrykey
; required options for the KiXtart Golf challenge $rc=setoption('explicit','on') $rc=setoption('novarsinstrings','on')
; registry files to be imported $regfile=@SCRIPTDIR+'\import1.reg' $regfilearray[0]=@SCRIPTDIR+'\import2.reg' $regfilearray[1]=@SCRIPTDIR+'\import3.reg'
; import the registry files and return proper error codes
$rc=ImportRegFile($regfile) if $rc or @ERROR ? 'test for $regfile failed' endif $rc=ImportRegFile($regfilearray) if $rc or @ERROR ? 'test for $regfilearray failed' endif
; please do not change the registry entry validation routine!
; check that all registry entries have been imported correctly $errorcount=0 $registrykeys='HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1', 'HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory1', 'HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory2', 'HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory2\Subsubdirectory1', 'HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2', 'HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory1', 'HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory2', 'HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory2\Subsubdirectory1', 'HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3', 'HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory1', 'HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory2', 'HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory2\Subsubdirectory1'
; check for all registry keys for each $registrykey in $registrykeys if not keyexist($registrykey) $errorcount=$errorcount+1 endif next if keyexist('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory1\Subsubdirectory1') $errorcount=$errorcount+1 endif
; check for registry value types in import1 if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1','Created 07-13-2002')<>'REG_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory1','')<>'REG_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory1','String1')<>'REG_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory1','Number1')<>'REG_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory1','Binary1')<>'REG_BINARY' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory2','')='REG_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory2','Binary1')<>'REG_BINARY' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory2','Hexadecimal1')<>'REG_DWORD' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory2\Subsubdirectory1','')='REG_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory2\Subsubdirectory1','Multi1')<>'REG_MULTI_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory2\Subsubdirectory1','Expand1')<>'REG_EXPAND_SZ' $errorcount=$errorcount+1 endif
; check for registry value types in import2 if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2','Created 07-13-2002')<>'REG_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory1','')<>'REG_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory1','String1')<>'REG_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory1','Number1')<>'REG_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory1','Binary1')='REG_BINARY' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory2','')='REG_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory2','Binary1')<>'REG_BINARY' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory2','Hexadecimal1')<>'REG_DWORD' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory2\Subsubdirectory1','')='REG_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory2\Subsubdirectory1','Multi1')<>'REG_MULTI_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory2\Subsubdirectory1','Expand1')<>'REG_EXPAND_SZ' $errorcount=$errorcount+1 endif
; check for registry value types in import3 if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3','Created 07-13-2002')<>'REG_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory1','')<>'REG_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory1','String1')<>'REG_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory1','Number1')<>'REG_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory1','Binary1')<>'REG_BINARY' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory2','')='REG_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory2','Binary1')<>'REG_BINARY' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory2','Hexadecimal1')<>'REG_DWORD' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory2\Subsubdirectory1','')='REG_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory2\Subsubdirectory1','Multi1')<>'REG_MULTI_SZ' $errorcount=$errorcount+1 endif if readtype('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory2\Subsubdirectory1','Expand1')<>'REG_EXPAND_SZ' $errorcount=$errorcount+1 endif
; check for registry values in import1 if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1','Created 07-13-2002')<>'' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory1','')<>'This is a default value' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory1','String1')<>'A string of type REG_SZ' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory1','Number1')<>'A number of type REG_SZ' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory1','Binary1')<>'4b69787461727420726f636b732120285245475f42494e41525929' $errorcount=$errorcount+1 endif $rc=readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory2','') if not @error=2 $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory2','Binary1')<>'4b00690078007400610072007400200069006e00200055006e00690063006f0064006500' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory2','Hexadecimal1')<>'12345' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory2\Subsubdirectory1','')='REG_SZ' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory2\Subsubdirectory1','Multi1')<>'This is a MULTI_SZ registry key.It has two lines.|' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory2\Subsubdirectory1','Expand1')<>'This is an EXPAND_SZ registry entry' $errorcount=$errorcount+1 endif
; check for registry values in import2 if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2','Created 07-13-2002')<>'' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory1','')<>'This is a default value' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory1','String1')<>'A string of type REG_SZ' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory1','Number1')<>'A number of type REG_SZ' $errorcount=$errorcount+1 endif $rc=readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory2','') if not @error=2 $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory2','Binary1')<>'4b00690078007400610072007400200069006e00200055006e00690063006f0064006500' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory2','Hexadecimal1')<>'12345' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory2\Subsubdirectory1','')='REG_SZ' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory2\Subsubdirectory1','Multi1')<>'This is a MULTI_SZ registry key.It has two lines.|' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory2\Subsubdirectory1','Expand1')<>'This is an EXPAND_SZ registry entry' $errorcount=$errorcount+1 endif
; check for registry values in import3 if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3','Created 07-13-2002')<>'' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory1','')<>'This is a default value' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory1','String1')<>'A string of type REG_SZ' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory1','Number1')<>'A number of type REG_SZ' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory1','Binary1')<>'4b69787461727420726f636b732120285245475f42494e41525929' $errorcount=$errorcount+1 endif $rc=readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory2','') if not @error=2 $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory2','Binary1')<>'4b00690078007400610072007400200069006e00200055006e00690063006f0064006500' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory2','Hexadecimal1')<>'12345' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory2\Subsubdirectory1','')='REG_SZ' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory2\Subsubdirectory1','Multi1')<>'This is a MULTI_SZ registry key.It has two lines.|' $errorcount=$errorcount+1 endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory2\Subsubdirectory1','Expand1')<>'This is an EXPAND_SZ registry entry' $errorcount=$errorcount+1 endif
if $errorcount ? 'The UDF ImportRegFile failed the validation test with '+$errorcount+' errors.' else ? 'The UDF ImportRegFile passed the validation test.' ? 'Please do not forget to post your KiXtart Golf score.' endif
; following is the function prototype
;------------------------------------ ; beginning of the ImportRegFile UDF, anything up to this comment will not be counted towards the KiXtart Golf score ;------------------------------------
;function ImportRegfile() ; ;endfunction
;------------------------------------ ; end of the ImportRegFile UDF and all suporting UDFs, anything after this comment and the comments itself will not be counted towards the KiXtart Golf score ;------------------------------------
Registry file IMPORT1.REG quote:
REGEDIT4
[HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1] "Created 07-13-2002"=""
[HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory1] @="This is a default value" "String1"="A string of type REG_SZ" "String2"="This string will be deleted again" "String2"=- "Number1"="A number of type REG_SZ" "Binary1"=hex:4b,69,78,74,61,72,74,20,72,6f,63,6b,73,21,20,28,52,45,47,5f,42,\ 49,4e,41,52,59,29
[HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory1\Subsubdirectory1] @="This key will be deleted again"
[-HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory1\Subsubdirectory1]
[HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory2] "Binary1"=hex:4b,00,69,00,78,00,74,00,61,00,72,00,74,00,20,00,69,00,6e,00,20,\ 00,55,00,6e,00,69,00,63,00,6f,00,64,00,65,00 "Hexadecimal1"=dword:00003039
[HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory2\Subsubdirectory1] "Multi1"=hex(7):54,68,69,73,20,69,73,20,61,20,4d,55,4c,54,49,5f,53,5a,20,72,65,67,69,\
73,74,72,79,20,6b,65,79,2e,49,74,20,68,61,73,20,74,77,6f,20,6c,69,6e,65,\ 73,2e,00,00 "Expand1"=hex(2):54,68,69,73,20,69,73,20,61,6e,20,45,58,50,41,4e,44,5f,53,5a,20,72,65,\ 67,69,73,74,72,79,20,65,6e,74,72,79,00
Registry file IMPORT2.REG quote:
REGEDIT4
[HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2] "Created 07-13-2002"=""
[HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory1] @="This is a default value" "String1"="A string of type REG_SZ" "Number1"="A number of type REG_SZ" "Binary1"=hex:4b,69,78,74,61,72,74,20,726f,63,6b,73,21,20,28,52,45,47,5f,42,\ 49,4e,41,52,59,29
[HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory2] "Binary1"=hex:4b,00,69,00,78,00,74,00,61,00,72,00,74,00,20,00,69,00,6e,00,20,\ 00,55,00,6e,00,69,00,63,00,6f,00,64,00,65,00 "Hexadecimal1"=dword:00003039
[HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import2\Subdirectory2\Subsubdirectory1] "Multi1"=hex(7):54,68,69,73,20,69,73,20,61,20,4d,55,4c,54,49,5f,53,5a,20,72,65,67,69,\ 73,74,72,79,20,6b,65,79,2e,49,74,20,68,61,73,20,74,77,6f,20,6c,69,6e,65,\ 73,2e,00,00 "Expand1"=hex(2):54,68,69,73,20,69,73,20,61,6e,20,45,58,50,41,4e,44,5f,53,5a,20,72,65,\ 67,69,73,74,72,79,20,65,6e,74,72,79,00
Registry file IMPORT3.REG quote:
REGEDIT4
[HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3] "Created 07-13-2002"=""
[HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory1] @="This is a default value" "String1"="A string of type REG_SZ" "Number1"="A number of type REG_SZ" "Binary1"=hex:4b,69,78,74,61,72,74,20,72,6f,63,6b,73,21,20,28,52,45,47,5f,42,\ 49,4e,41,52,59,29
[HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory2] "Binary1"=hex:4b,00,69,00,78,00,74,00,61,00,72,00,74,00,20,00,69,00,6e,00,20,\ 00,55,00,6e,00,69,00,63,00,6f,00,64,00,65,00 "Hexadecimal1"=dword:00003039
[HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import3\Subdirectory2\Subsubdirectory1] "Multi1"=hex(7):54,68,69,73,20,69,73,20,61,20,4d,55,4c,54,49,5f,53,5a,20,72,65,67,69,\ 73,74,72,79,20,6b,65,79,2e,49,74,20,68,61,73,20,74,77,6f,20,6c,69,6e,65,\ 73,2e,00,00 "Expand1"=hex(2):54,68,69,73,20,69,73,20,61,6e,20,45,58,50,41,4e,44,5f,53,5a,20,72,65,\ 67,69,73,74,72,79,20,65,6e,74,72,79,00
[ 16 July 2002, 15:37: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.
|
Top
|
|
|
|
#68141 - 2002-07-13 07:24 PM
Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
|
MCA
KiX Supporter
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
again a slow weekend? wouldn't it be very nice when Ruud is releasing a new version each week? greetings.
|
Top
|
|
|
|
#68152 - 2002-07-14 01:20 AM
Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
|
Anonymous
Anonymous
Unregistered
|
The REG files supplied are in Unicode format. These don't work in Windows 98, have to be ascii or REGEDIT won't recognise them. Had to load into Wordpad and 'Save As' Text format [ 14 July 2002, 01:22: Message edited by: AJH ]
|
Top
|
|
|
|
#68154 - 2002-07-14 01:52 AM
Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
|
Anonymous
Anonymous
Unregistered
|
The Error Checking code seems to check for the default subkey entry existing (and = REG_SZ) when it should not be set. (eg on 'ImportX\subdirectory2' etc) On Windows 98 this key always exists (and is by default REG_SZ) - showing 8 errors after merging the supplied files. eg: if readtype(HKCU\...\Import1\Subdirectory2','')='REG_SZ' $errorcount=$errorcount+1 endif [ 14 July 2002, 01:55: Message edited by: AJH ]
|
Top
|
|
|
|
#68156 - 2002-07-14 02:31 AM
Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
I don't have a problem with the files. Ironing out the last couple bugs
|
Top
|
|
|
|
#68159 - 2002-07-14 08:42 AM
Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
This code seems to be incorrect. code:
; check for registry values in import1 if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1','Created 07-13-2002')<>'' $errorcount=$errorcount+1 "Import1','Created 07-13-2002'" endif if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory1','')<>'This is a default value' $errorcount=$errorcount+1 "Subdirectory1',''" endif ------ if readvalue('HKEY_CURRENT_USER\Software\KiXtart\KiXtart Golf\Import1\Subdirectory1','')<>'A string of type REG_SZ' $errorcount=$errorcount+1 endif ------
Import1\Subdirectory1','' should be 'String1'
{edit} A real sucky score but it works! KixGolf score = 1657
After some sleep, the score should drop some. [ 14 July 2002, 09:23: Message edited by: Howard Bullock ]
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 833 anonymous users online.
|
|
|