Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alchemy is fixed!
#10
(11-22-2022, 08:38 PM)King Mocker Wrote: The program just accepts whatever word you enter as long as the letters are correct if the wordlist isnt found.

Without the wordlist , just entered UCPE and it took it.

The wordlist for me is stored in a sub folder in the alchemy folder.
So, I had to add a ./ to the path on line 223,    filename$ = "./wordlists/" + Left$(try$, 1)

Edit:
and line 221,  If Not _DirExists("./wordlists") Then isaword = 1: GoTo checksfinished

Right I just figured it out from code:
Code: (Select All)
    DictionaryCheck:
    If Not _DirExists("wordlists") Then isaword = 1: GoTo checksfinished
    WIPE "23"
    filename$ = "wordlists/" + Left$(try$, 1) '                                                        select dictionary file of first letter of try-word
    Open filename$ For Input As #1
    getaword:
    isaword = 0
    While Not EOF(1)
        Input #1, dictword$ '                                                                          read each word from dictionary
        If try$ = dictword$ Then isaword = 1: Exit While '                                             if word is found, don't look any further
    Wend
    Close
    checksfinished:

If can't find folder it allows any legal changes regardless if word exists or not.

I was putting Alchemy bas source in the same folder as the wordlists, wrong! Should be up one folder so wordlists is sub folder.

OK another mystery explained. ;-)) And shame on me for only testing real words (the first time around!)
b = b + ...
Reply


Messages In This Thread
Alchemy is fixed! - by PhilOfPerth - 11-21-2022, 05:54 AM
RE: Alchemy is fixed! - by bplus - 11-21-2022, 09:44 AM
RE: Alchemy is fixed! - by PhilOfPerth - 11-22-2022, 12:10 AM
RE: Alchemy is fixed! - by King Mocker - 11-22-2022, 03:52 PM
RE: Alchemy is fixed! - by bplus - 11-22-2022, 06:08 PM
RE: Alchemy is fixed! - by King Mocker - 11-22-2022, 06:46 PM
RE: Alchemy is fixed! - by bplus - 11-22-2022, 07:58 PM
RE: Alchemy is fixed! - by bplus - 11-22-2022, 08:14 PM
RE: Alchemy is fixed! - by King Mocker - 11-22-2022, 08:38 PM
RE: Alchemy is fixed! - by bplus - 11-22-2022, 08:43 PM
RE: Alchemy is fixed! - by PhilOfPerth - 11-22-2022, 11:18 PM
RE: Alchemy is fixed! - by bplus - 11-22-2022, 11:34 PM
RE: Alchemy is fixed! - by PhilOfPerth - 11-22-2022, 11:49 PM
RE: Alchemy is fixed! - by bplus - 11-22-2022, 11:55 PM
RE: Alchemy is fixed! - by PhilOfPerth - 11-23-2022, 12:44 AM
RE: Alchemy is fixed! - by bplus - 11-23-2022, 01:30 AM
RE: Alchemy is fixed! - by King Mocker - 11-23-2022, 02:06 AM
RE: Alchemy is fixed! - by PhilOfPerth - 11-23-2022, 02:25 AM
RE: Alchemy is fixed! - by james2464 - 11-23-2022, 06:57 PM
RE: Alchemy is fixed! - by SMcNeill - 11-24-2022, 02:09 AM
RE: Alchemy is fixed! - by bplus - 11-24-2022, 03:05 AM
RE: Alchemy is fixed! - by SMcNeill - 11-24-2022, 03:11 AM
RE: Alchemy is fixed! - by bplus - 11-24-2022, 03:20 AM
RE: Alchemy is fixed! - by SMcNeill - 11-24-2022, 03:23 AM
RE: Alchemy is fixed! - by bplus - 11-24-2022, 03:53 AM
RE: Alchemy is fixed! - by SMcNeill - 11-24-2022, 04:07 AM
RE: Alchemy is fixed! - by bplus - 11-24-2022, 04:19 AM
RE: Alchemy is fixed! - by bplus - 11-24-2022, 04:35 AM
RE: Alchemy is fixed! - by bplus - 11-24-2022, 05:24 AM
RE: Alchemy is fixed! - by SMcNeill - 11-24-2022, 05:32 AM
RE: Alchemy is fixed! - by PhilOfPerth - 11-24-2022, 08:05 AM



Users browsing this thread: 1 Guest(s)