Page 1 of 9 12345>Last »
Topic Options
#68140 - 2002-07-13 07:16 PM New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Sealeopard Offline
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 Offline
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.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#68142 - 2002-07-13 07:37 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
this is not good...
too drunk to participate today...
_________________________
!

download KiXnet

Top
#68143 - 2002-07-13 08:15 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, I made fully working script for just strings and it says: undefined variable even though the first line defines the variable as 0

have you tested your script?
_________________________
!

download KiXnet

Top
#68144 - 2002-07-13 08:35 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
also...

your reg-files are not working.

reading first line gives:
˙ūR

when it is if I make it myself:
REGEDIT4
_________________________
!

download KiXnet

Top
#68145 - 2002-07-13 08:43 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
had to "type" in dos your reg-files to get them working????

[ 14 July 2002, 03:15: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#68146 - 2002-07-13 08:47 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Lonkero:

did you use the .REG files from the downloadable ZIP-file that I provided or did you copy and paste the .REG files?

I did check my ZIP file and it seemed to be okay. The best way to test those .REG fiels is to just import tme with REGEDIT and see what they are doing.

Let me know if there are any problems.
_________________________
There are two types of vessels, submarines and targets.

Top
#68147 - 2002-07-13 08:49 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
for what happened with them read my last post.

I did download your zip.
_________________________
!

download KiXnet

Top
#68148 - 2002-07-13 08:54 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Lonkero:

I did test the golf.kix script. I first imported the three .REG files with REGEDIT. I then ran the GOLF.KIX script under KiXtart 4.10a and it gave mo no errors. I did use a dummy function for ImportRegFile() though just so I can verify the registry entry testing part.

So, are you okay now? Or are there still any problems?
_________________________
There are two types of vessels, submarines and targets.

Top
#68149 - 2002-07-13 09:18 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I'll download your zip again.
I'll run the reg files with my working code to see if them really work.
as I see it, reg-files are just text-files with reg-extension so they should open correctly with kixtart...

I'll return my feedback on this soon (if I don't passout!)

cheers,
_________________________
!

download KiXnet

Top
#68150 - 2002-07-14 12:20 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Yes, they are plain text files. The identifyer is 'REGEDIT4' in the first line denoting a registry file. Under Windows 2000 this first ID line is different if you export a regfile out of the registry.
_________________________
There are two types of vessels, submarines and targets.

Top
#68151 - 2002-07-14 01:17 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
downloaded and tested again.
don't know. this is probably a windows unicode bug...
I have w2k sp2 here. finnish installation and the lines in your reg-files are showing up as symbols.
don't know about others non-us ppl, but for me those files are corrupted and I can't use them.

cheers,
_________________________
!

download KiXnet

Top
#68152 - 2002-07-14 01:20 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
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
#68153 - 2002-07-14 01:37 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ajh, you seem to be second one to try them and second one saying they do not work.

jens?
_________________________
!

download KiXnet

Top
#68154 - 2002-07-14 01:52 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
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
#68155 - 2002-07-14 01:53 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I got this error when trying to reduce my code:
"out of beer"
_________________________
!

download KiXnet

Top
#68156 - 2002-07-14 02:31 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Howard Bullock Offline
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 [Smile]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#68157 - 2002-07-14 02:33 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I got a bug not getting over with.
string and null can't be easily diffed with if...

going back.
_________________________
!

download KiXnet

Top
#68158 - 2002-07-14 03:14 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
started to work with profilestring-functions and found out that the script is growing over 0.5k!

after spending some 200 minutes on that have to fall back to sleep or to previous state.
_________________________
!

download KiXnet

Top
#68159 - 2002-07-14 08:42 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Howard Bullock Offline
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! [Big Grin]
KixGolf score = 1657

After some sleep, the score should drop some.

[ 14 July 2002, 09:23: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 1 of 9 12345>Last »


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 833 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.11 seconds in which 0.061 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org