Hello all, I am wondering if AppGameKit has a limit on the size of source code files, as I am making a word game with a very large word list (39,416 words). I am using Tier 1 and I did some forum searching. I came across this thread:
http://forum.thegamecreators.com/?m=forum_view&t=196495&b=41 My programming skills aren't the best, so I went with multiple arrays rather than one large array. I'm still unsure as to what a binary tree is, so I have not attempted that. Reading the file at startup took far too long.
I grabbed a word list from sil.org and wrote a tool in C# to parse the word list, limiting it to 7 letter words and splitting it into arrays. Each letter has its own array of 2 characters, 3 characters and so forth, maxing out at 7 characters.
Example:
word_2_a$[]
word_3_a$[]
...
word_7_z$[]
I tested the output file with just the letter A, and it happily compiled in both 1076 and 108b6. I pasted the rest of the list in, and originally had the list as a single large file (39,600 lines), called dictionary.agc and initialised the arrays before populating with my word list. After a certain amount of time compiling, the compiler crashed with the error,
Compiling: main.agc
Process terminated with status -1073741571 (1 minutes, 55 seconds)
(The above error is from 1076, I think 108b6 was the same.)
I figured the list was too long, so I split it up into separate code files, from A to Z (dictionary_a.agc, dictionary_b.agc...), compiling after each code file's inclusion. It compiles with no problems to R. When I got to S, It crashed out with the same error. I split S up into two code files (2000 lines each) and the first one compiled, but the second didn't.
I thought maybe there was an error in the second S list, so I deleted it and went ahead with T. Crashed out, same error. So I am wondering if there is source code size limit in AGK. The error does not come up anywhere on the forums, so I figured I would ask here.
I have attached the output of my tool for anyone who wants to try it. There are two files - one is the raw word output, and the other is a rough Tier 1 file. The Tier 1 array declarations are at the bottom of the file. I usually move them to the top, and encase the entire list into a function, "InitDictionary()"
Thanks in advance.