-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not enough random bits for the town name generation (34 needed, 32 available) #275
Comments
I tried with 0.5.0 and it builds (but won't work as intended because #116). |
Well, it is delightful to see that my code and townnames are still helpful! (The code is also now on GitHub: https://github.com/MinchinWeb/openttd-minchinweb/tree/master/Names-Random ) As for the lack of (enough) random bits, that has to have been a change on the NML side since ca 2011 (the last time I pushed a release). What I can say is that my townname code was designed explicitly to use the entire available bit space. Not that it generates 2^32 names (I think it produces ~2 million town names), but it uses that bit space to control the relative frequency of prefixes, roots, and suffixes (i.e. so some names are more likely to appear, and the "bare" name is more likely that one with a prefix or suffix). I actually used a spreadsheet to ensure I was using the whole space! (Said spreadsheet is with the source code.) So I guess the question becomes: is the additional 2 random bits being used somewhere by NML (that it didn't used to) a bug, or necessary to manage the resonance issue (#116)? Because nothing has changed with my code, and it did used to compile without complaint. P.S. You're welcome to use my code as a test case for NML, if you want. |
P.P.S. I don't think the Resonance Issue (#116) affected this townname set, as the various sub-lists had different lengths. |
The error happens for:
First part needs 4 bits and uses GROUP_01_1_WATER which needs 7 bits With 0.5.0: All referenced groups share the same bits, which means they are interdependent. It's less visible than in #116 as the lists have different length, but a GROUP_04 result will always be associated with the two same GROUP_01_1_WATER results (if I correctly remember how the selection works) With 0.7.1: So for me nmlc is technically correct in how it assigns bits (if I exclude the missing reassignment ;) ), but that also means your nml can't be compiled with anything above 0.5.0. |
Ugg. This is just the first path that is used in the name generation (I think there's ~20), and they would all need to be reworked to reduce the number of bits used (i.e. not a small project). Any chance more (random) bits could be assigned for townname generation? That would solve the particular issue. It's not that I'm trying to generation 2^32 names, but the bit space is helpful to control which names are more or less likely to show up. If I had a much larger space, I'd like to make a townname list including several provinces, or even all of Canada, but the current set up doesn't really let me go bigger than Alberta. |
Hi,
I've tried compiling MinchinWeb's Random Town Name Generator from source and while it seemed like the "not enough random bits for town name generation" issue had been fixed in #185, I get this error using the latest release.
The text was updated successfully, but these errors were encountered: