Page 3 of 9 <12345>Last »
Topic Options
#68180 - 2002-07-14 09:48 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Anonymous
Unregistered


Jens
There is a typo in both the original Import2 posting and in the Zip file
The Import2\Subdirectory1 "Binary1" entry
contains this string ...,726f,... (missing ',')
Not sure what WSH functions people are using...

[ 14 July 2002, 21:48: Message edited by: AJH ]

Top
#68181 - 2002-07-14 10:00 PM 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 thought the missing comma was a test to find BAD data and ignore it like Regedit does. The tests do not expect to find that Value.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#68182 - 2002-07-14 10:10 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
it works just fine for me!

kixtart fixes that automatically.

btw, the actual score was:
KixGolf score = 602

forgot to remove some debug code [Big Grin]

[ 14 July 2002, 22:13: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#68183 - 2002-07-14 11:08 PM 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
Yeah, I "fixed" it too at first, but that particular value reported an error and in my zombie state late last night it seemed as though it was not suppose to exist according to the test code. So I recoded my script to check for missing commas and discard the line. [Mad] [Frown] [Confused]

Somebody let me know if it was a typo. Now that I am again awake, I might be able to collate the tasks at hand. [Roll Eyes]

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

Top
#68184 - 2002-07-14 11:12 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, didn't get a reply to my question:
do we need to supress return codes?
I mean, function return 0 on success. can we let them be output to console as long as the function works?

when we must replace the regedit /s, do we also need to have setconsole("hide") in our function?
_________________________
!

download KiXnet

Top
#68185 - 2002-07-15 12:02 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
ok, didn't read the test script well enough.
as didn't even used it.
as it does not have all reg types...
uttleast seems so.

anyway, forgot one feature. that means my score will increase. [Frown]

I'll be back.
_________________________
!

download KiXnet

Top
#68186 - 2002-07-15 12:28 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
ok dudes.
I'm getting also over 1000 here.
didn't use the explicit and now it does not allow any of my lines.

if not getting it working, will leave this battle. too much frustration.
_________________________
!

download KiXnet

Top
#68187 - 2002-07-15 12:35 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
Folks:

I just uploaded a new .ZIP file with the test script and the .REG files. Get it here: http://people.bu.edu/jenmeyer/kixtart/golf.zip

And yes, there is a faulty dataset in one of the .REG files, and I put this in deliberately [Big Grin]

There doesn't need to be UNICODE support in this routine, just support for REGEDIT4 .REG files.

With regards to return codes, the only return code is the one for ImportRegFile(), there shouldn't be any screen output inside the UDF.

I alos have put a Windows 2000 UNICODE file into the ZIP package, which is NOT part of the test script.

The test script basically checks whether the keys/values/types are correct, and whether the appropriate keys/values have been deleted.

BTW, my count is currently 1813 without shortened variables and using pure KiXtart (not even a call to an outside object) but including some error checking for correct file type and syntax.
_________________________
There are two types of vessels, submarines and targets.

Top
#68188 - 2002-07-15 12:41 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
quote:
when we must replace the regedit /s, do we also need to have setconsole("hide") in our function?
No, you don't need that. I was imagining a simple UDF that runs the .REG files fed to it and returns an error code inducation whether the file was imported correctlt or not (e.g. file not found). Since REGEDIT /S doesn't tell you if some imports haven't been doen because of syntax error, it is not necessary for the UDF to do this either.

Finally, I didn't put all types of registry entries into the test .REG files, just the most important ones. So, a UDF posted into the UDF section might need to contain those cases, too, but for this exercise, it is not necessary.
_________________________
There are two types of vessels, submarines and targets.

Top
#68189 - 2002-07-15 01:13 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
no. I can admit this is getting weird.
if I loose explicit and novarsinstring and array support my script works fine.

if I try to make it work with any of those, only errors occurs... [Eek!]
I won't sleep tonight, that's for sure.
_________________________
!

download KiXnet

Top
#68190 - 2002-07-15 01:16 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
btw, does regedit support array input?
I have used it only with multiple strings...

just to make a point...
_________________________
!

download KiXnet

Top
#68191 - 2002-07-15 01:32 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
head is blowing away...
please give me something else to think about!

{edit}
record of the day:
5 boxes cigarettes and 3 litres of coffee...
unofficial though

[ 15 July 2002, 01:36: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#68192 - 2002-07-15 01:45 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
jens, this is really nice.
when vars in strings is off the values get there nicely.
when it's on, all valuenames get written as strings.
also it messes up my data fields.
_________________________
!

download KiXnet

Top
#68193 - 2002-07-15 01:54 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 didn't sleep last night. [Frown] Been at this forever.

I am now exploring some alternatives. I haven't checked everything and I don't if everything works correctly yet, but I can correctly enum everything. It's interesting at (KixGolf score = 909).
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#68194 - 2002-07-15 01:57 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
hoby, did you have any intresting time with those new restricking rules?

I'm almost there... don't know how will come around this last thing...
script size has about doubled because of those strict-rules.
_________________________
!

download KiXnet

Top
#68195 - 2002-07-15 02:00 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
Jens, was I correct in NOT correcting your faulting data set and not loading the value? Or should we repair it and load it?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#68196 - 2002-07-15 02:04 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 understood that it does not matter do we load or not.
as data correctness checking does not need to be.
_________________________
!

download KiXnet

Top
#68197 - 2002-07-15 05:11 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
mmm...
golf.kix checks for defaultvalues. that's ok.
but, my script does not create them and still they come up in regedit. and your script says 7 errors found.
if I've understood correctly, default value is allways there when key is made and it can't be removed.
and when not set, it also is reg_sz.

anyway, my script is fine now with your strict rules and it also works with the reg-types not needed by this golf course.

KixGolf score = 775

btw, hoby, your v3 gave just score 0

cheers,
_________________________
!

download KiXnet

Top
#68198 - 2002-07-15 05:22 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
Did turn on counting by putting a ";!" at the beginning of your function?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#68199 - 2002-07-15 05:26 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
ah!
did not.
well, didn't cut of any chars...
result is the same:
KixGolf score = 775
_________________________
!

download KiXnet

Top
Page 3 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 898 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.074 seconds in which 0.025 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