Page 2 of 3 <123>
Topic Options
#68500 - 2002-07-22 03:28 PM Re: KiXtart Golf Solution(s)
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Yeah, yeah.. I'm gonna get needled for that forever I'm sure! [Razz] (I also notice that so far the concept on solving this hasn't changed much.)

Brian

[ 22 July 2002, 15:35: Message edited by: BrianTX ]

Top
#68501 - 2002-07-22 03:37 PM Re: KiXtart Golf Solution(s)
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
To clarify the output issue. The UDF is not supposed to create any output except a (single) return value/error code.
_________________________
There are two types of vessels, submarines and targets.

Top
#68502 - 2002-07-22 04:11 PM Re: KiXtart Golf Solution(s)
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
brian, no no...
just that want to clarify why your score was smaller than mine [Big Grin]

btw, jens...
it was not supposed to return any error code than zero...
if I remember correctly you check for errorcode other than zero and there was errenous value...

but brian, can you beat my shortest working code (720) ?
_________________________
!

download KiXnet

Top
#68503 - 2002-07-22 04:21 PM Re: KiXtart Golf Solution(s)
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
I think that if you return '0' as output it'll be fine since 'REGEDIT /S' doesn't return any error codes either.
_________________________
There are two types of vessels, submarines and targets.

Top
#68504 - 2002-07-22 04:25 PM Re: KiXtart Golf Solution(s)
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I know that we are to make the code work with the test files, but...
code:
if $d=7 $m="MULTI_SZ" $s=$s+"|" endif  

is not functional for a REG_MULTI_SZ that has text on the second line.

Jens, are we to only handle the test case or handle REG_MULTI_SZ?

If I do not have to write code that properly handles REG_MULTI_SZ types then I can change the majority of my logic after the read files.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#68505 - 2002-07-22 04:42 PM Re: KiXtart Golf Solution(s)
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hoby, same as I said.
that's why I also said that my shortest working code is 720 as it handles multilined properly.
_________________________
!

download KiXnet

Top
#68506 - 2002-07-22 04:50 PM Re: KiXtart Golf Solution(s)
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
You must be a really young pup, Lonkero. You don't ever seem to be sleeping.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#68507 - 2002-07-22 04:56 PM Re: KiXtart Golf Solution(s)
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
oh...
well, I do sleep.
I slept yesterday about 5 hours as example...
maybe will sleep tomorrow too.
_________________________
!

download KiXnet

Top
#68508 - 2002-07-22 06:35 PM Re: KiXtart Golf Solution(s)
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Howard: You just need to import the ets .REG files correctly. It's not supposed to be the all-powerful-and-complete REGEDIT replacement.

Lonkero: How do you sleep? You work during the summer and sleep (kind of hibernate) during the winter? [Wink]
_________________________
There are two types of vessels, submarines and targets.

Top
#68509 - 2002-07-23 12:18 AM Re: KiXtart Golf Solution(s)
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
jens, something like that.
it's actually not scheduled thing.
nature decides what is the time of week I'm tired...
like now.
well, it's been allready over 24 hours, so I can accept that...

anyway, kix is an addiction. how can I sleep when I have one?
_________________________
!

download KiXnet

Top
#68510 - 2002-08-03 05:26 AM Re: KiXtart Golf Solution(s)
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
bumb and question.
is there anyone else than me wanting to see this in udf forum?
I mean fully support the functions that regedit has and also be smaller than it is?

could write some of the but would need someone to check that it actually works...
_________________________
!

download KiXnet

Top
#68511 - 2002-08-03 05:39 AM Re: KiXtart Golf Solution(s)
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Since Regedit.exe already exists on the computer, it seems easier to shell and invoke Regedit than build and maintain code.

[ 03 August 2002, 05:49: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#68512 - 2002-08-03 05:44 AM Re: KiXtart Golf Solution(s)
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hoby, you are absolutely right.
just wanted to ask if there is someone wanting wicked pure kix way of doing these instead of "normal" boring regedit [Wink]
_________________________
!

download KiXnet

Top
#68513 - 2002-08-03 11:30 PM Re: KiXtart Golf Solution(s)
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Me, me, me, [Big Grin]

I'd like it in a UDF. Why??? I'm an administrator who likes to completely protect the wkstas in his domain against dangerous users.
Therefore I disabled REGEDIT for normal users. Adding one entry through Kix is easy, but what if it where > 20? [Confused]

Please make it a UDF (please use variables which mean something in the UDF...)

By the way where can I find the final KiX Golf script you guys use? Are there competitions for beginners??
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#68514 - 2002-08-04 12:01 AM Re: KiXtart Golf Solution(s)
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Patrick:

The scoring solutions are within this thread. Be advised, however, that the scipts only import the .REG files provided in the Kixtart Golf challenge. They do not work with arbitraty .REG files since some of the registry value formats are missing.

The KiXtart Golf challenges are open to everybody, whether you're a beginner or not. The next one will be in about two weeks (don't have time managing it this weekend and next weekend). Just give it a try, at some point solutions will be posted and those might be improved as well. Meaning, if you can't finish your own script you can borrow inspiration from the other posted scripts.
_________________________
There are two types of vessels, submarines and targets.

Top
#68515 - 2002-08-04 12:18 AM Re: KiXtart Golf Solution(s)
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Jens,

I'll try it next time... Wasn't looking for the kixregedit script, but the script which calculates the score...
This one perhaps:
Topic: New KixGolf.kix (version 3) ???

(Going to bed now... will catch up tomorrow night and try to think of a new golf challenge idea)

[ 04 August 2002, 00:31: Message edited by: MightyR1 ]
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#68516 - 2002-08-04 03:18 AM Re: KiXtart Golf Solution(s)
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
pat, you may as your own person write the script with usable variable names.
you you need to do is with notepad replace the $ to something understandable...
anyway, patricks post gave some hope of need for this kindof function.
and adding all registry types to the final script should not add more than 30 strokes.

other thing then is to get it to work with the new stuff like escape chars, when it seems easiest to work with something else than the winning script... hoby's script is a good example.
_________________________
!

download KiXnet

Top
#68517 - 2002-08-05 11:34 PM Re: KiXtart Golf Solution(s)
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Of course I'm able to change the script... (Have to look up the way how it was done again [Wink] )

All I'm saying is that understanding a script from someone else with non-descriptive vars can make it harder to understand. So why not use more descriptive vars and let the KixGolf script count only the vars, no matter what their length is.
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#68518 - 2002-08-05 11:56 PM Re: KiXtart Golf Solution(s)
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mmm...
they can be translated easily with notepad's replace.
the only thing that comes along is that if you really use meaning var names the code actually grows to about 1200.
one reason is just that you would need to use many variables instead of current use of $ in 10-15 purposes.

that also makes it harder to read [Big Grin]

if you read the last golf's code, it's pretty much unreadable and still, it works a charm.

maybe it just isn't needed for everyone to understand everything.
but maybe it just is that someone of the golfers like me need to make that code to udf.

anyway, if I do that, I would some support.
what are the exceptions and formats needed for full compliance.

so that's why I also ask for hoby's reply as I think his code is closest to good.
_________________________
!

download KiXnet

Top
#68519 - 2002-08-06 12:08 AM Re: KiXtart Golf Solution(s)
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
I'll wait and see...

If you need a tester, here I am.

(Can get my hands on Win95 Dutch, Win2K Pro/Server US, NT4 US/Dutch, WinXP Pro Dutch)
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
Page 2 of 3 <123>


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

Who's Online
0 registered and 837 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.257 seconds in which 0.152 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