Page 6 of 9 « First<45678>Last »
Topic Options
#68240 - 2002-07-17 11:39 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
I doubt it.. It mostly works, but I haven't built in support for arrays nor figured out the "bug" you guys were talking about (which causes validation errors). Although i see several ways to reduce the code once I finish all that.

Brian

{edit}
I'm tempted to try the READPROFILESTRING method... I'm thinking I could get tighter code with it.

{edit}
Ok.. should pass validation...except no support for arrays, yet.

{edit}
Ok.. supports arrays. I probably wont' have time to work on this until tomorrow.. so.. I'll take some more stabs at it then... 1160 is the score... I'm sure I can shave quite a bit.. but for now it's working with the validation script even.

[ 18 July 2002, 00:05: Message edited by: BrianTX ]

Top
#68241 - 2002-07-17 11:42 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
mmm...
btw, it takes 3o strokes to add support for all registry types.
I quess the final udf can be under 1000...
_________________________
!

download KiXnet

Top
#68242 - 2002-07-18 03:13 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Down to 1079.... It was probably more robust before, but to handle the .reg files from Jens, I could cut out some stuff.

Brian

{edit}
make that 1066 -- no issues with the .reg files Jens presented.
{edit}
make that 1050...

[ 18 July 2002, 16:51: Message edited by: BrianTX ]

Top
#68243 - 2002-07-18 03:58 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
KixGolf score = 1036

Still trying to resolve the issue where REG_NONE is returned from Kix ReadType() when Regedit and Regedt32 say it is REG_SZ.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#68244 - 2002-07-18 05:04 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
KixGolf score = 969

Report from UDF-checker:
The UDF ImportRegFile passed the validation test.
Please do not forget to post your KiXtart Golf score.

BUT:
The script dosn’t handle exeptions like : \” \\ end eqal signs in valuenames, and there is no errorchecking at all.

(I have a second script with exeptionhandling, the score for that is: 1538)

Scores counted with Howard’s KixGolf scoring script.

-Erik

Top
#68245 - 2002-07-18 05:09 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
kholm, you don't seem a starter at all.
good to have company...

quess I have to start working on the parsing...

I understood that those special cases are not needed...

I understood, it's enough functionality if it works with the test scripts.

like it does not need deletion of value [Wink]
_________________________
!

download KiXnet

Top
#68246 - 2002-07-18 05:29 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
Erik: Nice job.

BTW, it's okay if there's no error checking and if it doesn't handle all registry types and escape sequences. As long as it fulfills the challange requirements (importing the provided .REG files), ity is a valid script. However, a UDF to replace REGEDIT would of course need error checking and be able to parse all registry tyes and escape sequesnces and handle odd formatting.
_________________________
There are two types of vessels, submarines and targets.

Top
#68247 - 2002-07-18 05:39 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
Lonkero,

You are right, there is no code to check if the value String2 is deleted (I belive Jens has forgotten that [Wink] )

If I omit the code for deleting values, my score is: 926, but i’m not shure if that would be considered as job done.

-Erik

Top
#68248 - 2002-07-18 05:49 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
I'm down to 1025 so far... still working on it, though.

Brian

Top
#68249 - 2002-07-18 05:50 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
jens, do we need to delete values?

I will get 10-15 hits more if we do...
_________________________
!

download KiXnet

Top
#68250 - 2002-07-18 05:51 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
Erik: At least you found out that the vaule needs to be deleted. The checking routine was just put into the code to make it easier to verify all the registry edits. It's not totally comprehensive.
_________________________
There are two types of vessels, submarines and targets.

Top
#68251 - 2002-07-18 08:20 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 beat you all. Mine deleted the value properly on Sunday. I still can't understand why Regedit and Regedt32 tell I all correct and ReadType cause the error checking code to report errors because ReadType returns REG_NONE [Mad]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#68252 - 2002-07-18 09:17 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
Not sure either. I basically copied the reg types from REGEDIT into the test script. After applying the .REG files with REGEDIT and running the test script it did tell me everything is okay. Maybe REGEDIT is doing something after the delete operation?
_________________________
There are two types of vessels, submarines and targets.

Top
#68253 - 2002-07-18 09:23 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
well...
how it can work for others?
_________________________
!

download KiXnet

Top
#68254 - 2002-07-18 10:07 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
Howard,

I believe that your script is not stripping of the double hyphens.

You are using: '"Created 07-13-2002"' as entryname in WriteValue()

You Should use: 'Created 07-13-2002'

The ReadType() statement looks for an entry with this name: Created 07-13-2002

That dosn't exist beacuse you have created an entry named: "Created 07-13-2002"

I have just checked, if you use ReadType() on a nonexisting entry then it reports: REG_NONE
(And @Error = 2)

-Erik

Top
#68255 - 2002-07-18 11:24 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
OK... i'm at 939... Might still be able to shave some..
{edit}
includes deleting keys/values...
Brian

Lonkero, what is your score?

[ 18 July 2002, 23:45: Message edited by: BrianTX ]

Top
#68256 - 2002-07-18 11:52 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 haven't added deletion of value as thought it was not needed.
the current score without it is in some post before...

something like 900

cheers,
_________________________
!

download KiXnet

Top
#68257 - 2002-07-18 11:57 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Let me know.. I'm approaching 900...
{edit}
I'm at 927 and done for the day... I think..

Brian

[ 19 July 2002, 00:03: Message edited by: BrianTX ]

Top
#68258 - 2002-07-19 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
I know, but I don't have any wintosh system at home so can't compete.

my code has been done for a while so don't know I can make my head to it anymore.

anyway, I have to add that delvalue code tomorrow and that obviously adds the code size.

heh, we probably end up with same code with only diff being the var names.
_________________________
!

download KiXnet

Top
#68259 - 2002-07-19 12:04 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
My score now is 933

And unless i get really inspired i belive that only a few bytes can be cut of.

I'm not sure what to do with the eronious value that has been mentioned on several ocasions (Missing comma)
My regfile from the downloaded zip-file dosn't contanin any errors, if any of you check for that i'm truly out.

{edit}
Now 921

[ 19 July 2002, 00:17: Message edited by: kholm ]

Top
Page 6 of 9 « First<45678>Last »


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

Who's Online
0 registered and 373 anonymous users online.
Newest Members
Raoul, Timothy, Jojo67, MaikSimon, kvn317
17875 Registered Users

Generated in 0.079 seconds in which 0.031 seconds were spent on a total of 13 queries. Zlib compression enabled.

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