Re: DIS: Re: OFF: First Official Cartographor Report
Okay, I sent a pull request your way to fix the default thing for the interactive version. I set the default to 0, and then changed changes.json to manually set the rank to 1. Annoying, but it works, and it describes what's actually happening too. The capitalization one is harder. If you wanted, you could fix it in generate.py by capitalizing (call .title() or whatever, although there's a weird problem with apostrophes that could be really annoying someday) each field, field title, and default. You'd have to make an exception for owner, because some people like having their names lower case (learned that the hard way on my first Promotor report). The problem with that approach is that it makes the code messy (special case handling everywhere, even more tightly bound, etc.). Alternatively, you could fix it in changes.json, by capitalizing everything and setting the display override on the things you aren't setting at the moment (owner and type) to a capitalized version. It's cleaner from a code perspective, but you have to remember to capitalize everything. I've mostly coded both solutions up and can submit whichever you prefer as a PR. Thanks for writing up such an interesting economy, it's going to be fun to play! -Aris On Sat, Feb 24, 2018 at 12:57 PM, Aris Merchantwrote: > It's cool, I just wanted you to know. I'll have a look at your code and see > if anything occurs to me (it probably won't, I'm not an awe inspiring > programmer, and I haven't used Python in ages). > > -Aris > > On Sat, Feb 24, 2018 at 12:55 PM Reuben Staley > wrote: >> >> Thanks, reply-to! >> >> On 02/24/2018 06:54 AM, Reuben Staley wrote: >> > This can all be explained by the logistics of the Python code I'm using. >> > >> > >> Minor unofficial CoE on the interactive version: the land that >> > doesn't have >> > >> a facility shows a rank of one. It should either not show up, be >> > N/A, or 0. >> > >> > This is because after I've generated the entire map, I fill in all the >> > flags that aren't set with their default values. The default value for >> > the rank is 1. I did this because there's not a clause that says "flag B >> > exists only if flag A exists." I want there to be a system for >> > dependency, I just haven't implemented it yet. >> > >> > > Oh, and also, your capitalization is confusing. "None" is >> > capitalized, but >> > > the each facility type isn't. I'd suggest just capitalizing >> > everything, >> > > possibly including the land type flags (so B, W, A, instead of b, w, >> > and a). >> > >> > Okay. Changes are written in JSON format. JSON has true, false, and >> > null. Python has True, False, and None. When Python turns the JSON into >> > Python objects, it changes them. But to put them into the HTML file, it >> > turns the capitalized constants into strings. >> > >> > My focus for this code was being able to put all the changes in a single >> > JSON file and not have to deal with changing the python at all. The >> > reason these issues exist are because I was trying to allow the code to >> > be flexible, but it just isn't yet. I honestly didn't think anyone would >> > care because no one posted any complaints when I uploaded the prototype >> > to Agora Discussion. But apparently people just weren't paying >> > attention. >> > >> > I'll see what I can do to fix these, but just know that since the HTML >> > is not required by the ruleset, it's very low on my life priority list >> > at the moment. >> > >> > On 02/24/2018 01:36 PM, Aris Merchant wrote: >> >> Oh, and also, your capitalization is confusing. "None" is capitalized, >> >> but >> >> the each facility type isn't. I'd suggest just capitalizing everything, >> >> possibly including the land type flags (so B, W, A, instead of b, w, >> >> and a). >> >> >> >> -Aris >> >> >> >> On Sat, Feb 24, 2018 at 12:28 PM Aris Merchant < >> >> thoughtsoflifeandligh...@gmail.com> wrote: >> >> >> >>> Minor unofficial CoE on the interactive version: the land that >> >>> doesn't have >> >>> a facility shows a rank of one. It should either not show up, be N/A, >> >>> or 0. >> >>> >> >>> -Aris >> >>> >> >>> On Sat, Feb 24, 2018 at 9:32 AM Reuben Staley >> >>> >> >>> wrote: >> >>> >> CARTOGRAPHOR'S WEEKLY REPORT: 2018-02-24 >> >> >> >> View an interactive version of this report here: >> https://agoranomic.org/Cartographor/maps/map-2018-02-24.html >> >> LAND TYPE MAP >> - >> >> LONGITUDE >> >> - 6543210123456 + >> - - >> 6 * 6 >> 5 * 5Aether (*) >> 4 * 4(B)lack >> L 3 * 3(W)hite >> A 2 * 2 >> T 1 BBBWW 1 >> I 0 BBWWW 0 >> T 1
Re: DIS: Re: OFF: First Official Cartographor Report
It's cool, I just wanted you to know. I'll have a look at your code and see if anything occurs to me (it probably won't, I'm not an awe inspiring programmer, and I haven't used Python in ages). -Aris On Sat, Feb 24, 2018 at 12:55 PM Reuben Staleywrote: > Thanks, reply-to! > > On 02/24/2018 06:54 AM, Reuben Staley wrote: > > This can all be explained by the logistics of the Python code I'm using. > > > > >> Minor unofficial CoE on the interactive version: the land that > > doesn't have > > >> a facility shows a rank of one. It should either not show up, be > > N/A, or 0. > > > > This is because after I've generated the entire map, I fill in all the > > flags that aren't set with their default values. The default value for > > the rank is 1. I did this because there's not a clause that says "flag B > > exists only if flag A exists." I want there to be a system for > > dependency, I just haven't implemented it yet. > > > > > Oh, and also, your capitalization is confusing. "None" is > > capitalized, but > > > the each facility type isn't. I'd suggest just capitalizing > everything, > > > possibly including the land type flags (so B, W, A, instead of b, w, > > and a). > > > > Okay. Changes are written in JSON format. JSON has true, false, and > > null. Python has True, False, and None. When Python turns the JSON into > > Python objects, it changes them. But to put them into the HTML file, it > > turns the capitalized constants into strings. > > > > My focus for this code was being able to put all the changes in a single > > JSON file and not have to deal with changing the python at all. The > > reason these issues exist are because I was trying to allow the code to > > be flexible, but it just isn't yet. I honestly didn't think anyone would > > care because no one posted any complaints when I uploaded the prototype > > to Agora Discussion. But apparently people just weren't paying attention. > > > > I'll see what I can do to fix these, but just know that since the HTML > > is not required by the ruleset, it's very low on my life priority list > > at the moment. > > > > On 02/24/2018 01:36 PM, Aris Merchant wrote: > >> Oh, and also, your capitalization is confusing. "None" is capitalized, > >> but > >> the each facility type isn't. I'd suggest just capitalizing everything, > >> possibly including the land type flags (so B, W, A, instead of b, w, > >> and a). > >> > >> -Aris > >> > >> On Sat, Feb 24, 2018 at 12:28 PM Aris Merchant < > >> thoughtsoflifeandligh...@gmail.com> wrote: > >> > >>> Minor unofficial CoE on the interactive version: the land that > >>> doesn't have > >>> a facility shows a rank of one. It should either not show up, be N/A, > >>> or 0. > >>> > >>> -Aris > >>> > >>> On Sat, Feb 24, 2018 at 9:32 AM Reuben Staley > > >>> wrote: > >>> > CARTOGRAPHOR'S WEEKLY REPORT: 2018-02-24 > > > > View an interactive version of this report here: > https://agoranomic.org/Cartographor/maps/map-2018-02-24.html > > LAND TYPE MAP > - > > LONGITUDE > > - 6543210123456 + > - - > 6 * 6 > 5 * 5Aether (*) > 4 * 4(B)lack > L 3 * 3(W)hite > A 2 * 2 > T 1 BBBWW 1 > I 0 BBWWW 0 > T 1 BBWWW 1 > U 2 * 2 > D 3 * 3 > E 4 * 4 > 5 * 5 > 6 * 6 > + + > - 6543210123456 + > > OWNERSHIP MAP > - > > LONGITUDE > > - 6543210123456 + > - - > 6 * 6 > 5 * 5Agora, Aether (*) > 4 * 4Agora, Non-Aether (.) > L 3 * 3 > A 2 * 2 > T 1 . 1 > I 0 . 0 > T 1 . 1 > U 2 * 2 > D 3 * 3 > E 4 * 4 > 5 * 5 > 6 * 6 > + + > - 6543210123456 + > > PRESERVATION MAP > > > LONGITUDE > > - 6543210123456 + > - - > 6 f 6 > 5 f 5(t)rue > 4 f 4(f)alse > L 3 f 3 > A 2 f 2 > T 1 ftttf 1 > I 0 ftttf 0 > T 1 ftttf 1 > U 2 f 2 > D 3 f 3 > E 4 f 4 > 5 f 5 > 6
Re: DIS: Re: OFF: First Official Cartographor Report
Thanks, reply-to! On 02/24/2018 06:54 AM, Reuben Staley wrote: This can all be explained by the logistics of the Python code I'm using. >> Minor unofficial CoE on the interactive version: the land that doesn't have >> a facility shows a rank of one. It should either not show up, be N/A, or 0. This is because after I've generated the entire map, I fill in all the flags that aren't set with their default values. The default value for the rank is 1. I did this because there's not a clause that says "flag B exists only if flag A exists." I want there to be a system for dependency, I just haven't implemented it yet. > Oh, and also, your capitalization is confusing. "None" is capitalized, but > the each facility type isn't. I'd suggest just capitalizing everything, > possibly including the land type flags (so B, W, A, instead of b, w, and a). Okay. Changes are written in JSON format. JSON has true, false, and null. Python has True, False, and None. When Python turns the JSON into Python objects, it changes them. But to put them into the HTML file, it turns the capitalized constants into strings. My focus for this code was being able to put all the changes in a single JSON file and not have to deal with changing the python at all. The reason these issues exist are because I was trying to allow the code to be flexible, but it just isn't yet. I honestly didn't think anyone would care because no one posted any complaints when I uploaded the prototype to Agora Discussion. But apparently people just weren't paying attention. I'll see what I can do to fix these, but just know that since the HTML is not required by the ruleset, it's very low on my life priority list at the moment. On 02/24/2018 01:36 PM, Aris Merchant wrote: Oh, and also, your capitalization is confusing. "None" is capitalized, but the each facility type isn't. I'd suggest just capitalizing everything, possibly including the land type flags (so B, W, A, instead of b, w, and a). -Aris On Sat, Feb 24, 2018 at 12:28 PM Aris Merchant < thoughtsoflifeandligh...@gmail.com> wrote: Minor unofficial CoE on the interactive version: the land that doesn't have a facility shows a rank of one. It should either not show up, be N/A, or 0. -Aris On Sat, Feb 24, 2018 at 9:32 AM Reuben Staleywrote: CARTOGRAPHOR'S WEEKLY REPORT: 2018-02-24 View an interactive version of this report here: https://agoranomic.org/Cartographor/maps/map-2018-02-24.html LAND TYPE MAP - LONGITUDE - 6543210123456 + - - 6 * 6 5 * 5 Aether (*) 4 * 4 (B)lack L 3 * 3 (W)hite A 2 * 2 T 1 BBBWW 1 I 0 BBWWW 0 T 1 BBWWW 1 U 2 * 2 D 3 * 3 E 4 * 4 5 * 5 6 * 6 + + - 6543210123456 + OWNERSHIP MAP - LONGITUDE - 6543210123456 + - - 6 * 6 5 * 5 Agora, Aether (*) 4 * 4 Agora, Non-Aether (.) L 3 * 3 A 2 * 2 T 1 . 1 I 0 . 0 T 1 . 1 U 2 * 2 D 3 * 3 E 4 * 4 5 * 5 6 * 6 + + - 6543210123456 + PRESERVATION MAP LONGITUDE - 6543210123456 + - - 6 f 6 5 f 5 (t)rue 4 f 4 (f)alse L 3 f 3 A 2 f 2 T 1 ftttf 1 I 0 ftttf 0 T 1 ftttf 1 U 2 f 2 D 3 f 3 E 4 f 4 5 f 5 6 f 6 + + - 6543210123456 + FACILITIES -- (-1, -1): Preserved Rank 1 Mine, owned by Agora (-1, +1): Preserved Rank 1 Orchard, owned by Agora (+1, -1): Preserved Rank 1 Farm, owned by Agora (+1, +1): Preserved Rank 1 Mine, owned by Agora LOCATIONS OF ENTITIES - Player This report omd ( 0, 0) o ( 0, 0) Aris ( 0, 0) DFF[1] ( 0, 0) Quazie ( 0, 0) P.S.S.[2] ( 0, 0) Gaelan ( 0, 0) nichdel ( 0, 0) G. ( 0, 0) Cuddle Beam ( 0, 0) Trigon ( 0, 0) Telnaior ( 0, 0) Corona ( 0, 0) pokes ( 0, 0) Murphy ( 0, 0) VJ Rada ( 0, 0) [1]: In Full, 天火狐 [2]: In Full, Publius Scribonius Scholasticus ALTERNATING LAND TYPE - The alternating land type has been switched 0 times. The current value is Black. CHANGES IN LAND TYPE AND OWNERSHIP -- None -- Trigon
Re: DIS: Re: OFF: First Official Cartographor Report
Oh, and also, your capitalization is confusing. "None" is capitalized, but the each facility type isn't. I'd suggest just capitalizing everything, possibly including the land type flags (so B, W, A, instead of b, w, and a). -Aris On Sat, Feb 24, 2018 at 12:28 PM Aris Merchant < thoughtsoflifeandligh...@gmail.com> wrote: > Minor unofficial CoE on the interactive version: the land that doesn't have > a facility shows a rank of one. It should either not show up, be N/A, or 0. > > -Aris > > On Sat, Feb 24, 2018 at 9:32 AM Reuben Staley> wrote: > > > CARTOGRAPHOR'S WEEKLY REPORT: 2018-02-24 > > > > View an interactive version of this report here: > > https://agoranomic.org/Cartographor/maps/map-2018-02-24.html > > > > LAND TYPE MAP > > - > > > > LONGITUDE > > > > - 6543210123456 + > > - - > > 6 * 6 > > 5 * 5Aether (*) > > 4 * 4(B)lack > > L 3 * 3(W)hite > > A 2 * 2 > > T 1 BBBWW 1 > > I 0 BBWWW 0 > > T 1 BBWWW 1 > > U 2 * 2 > > D 3 * 3 > > E 4 * 4 > > 5 * 5 > > 6 * 6 > > + + > > - 6543210123456 + > > > > OWNERSHIP MAP > > - > > > > LONGITUDE > > > > - 6543210123456 + > > - - > > 6 * 6 > > 5 * 5Agora, Aether (*) > > 4 * 4Agora, Non-Aether (.) > > L 3 * 3 > > A 2 * 2 > > T 1 . 1 > > I 0 . 0 > > T 1 . 1 > > U 2 * 2 > > D 3 * 3 > > E 4 * 4 > > 5 * 5 > > 6 * 6 > > + + > > - 6543210123456 + > > > > PRESERVATION MAP > > > > > > LONGITUDE > > > > - 6543210123456 + > > - - > > 6 f 6 > > 5 f 5(t)rue > > 4 f 4(f)alse > > L 3 f 3 > > A 2 f 2 > > T 1 ftttf 1 > > I 0 ftttf 0 > > T 1 ftttf 1 > > U 2 f 2 > > D 3 f 3 > > E 4 f 4 > > 5 f 5 > > 6 f 6 > > + + > > - 6543210123456 + > > > > FACILITIES > > -- > > > > (-1, -1): Preserved Rank 1 Mine, owned by Agora > > (-1, +1): Preserved Rank 1 Orchard, owned by Agora > > (+1, -1): Preserved Rank 1 Farm, owned by Agora > > (+1, +1): Preserved Rank 1 Mine, owned by Agora > > > > LOCATIONS OF ENTITIES > > - > > > > Player This report > > > > omd ( 0, 0) > > o( 0, 0) > > Aris ( 0, 0) > > DFF[1] ( 0, 0) > > Quazie ( 0, 0) > > P.S.S.[2]( 0, 0) > > Gaelan ( 0, 0) > > nichdel ( 0, 0) > > G. ( 0, 0) > > Cuddle Beam ( 0, 0) > > Trigon ( 0, 0) > > Telnaior ( 0, 0) > > Corona ( 0, 0) > > pokes( 0, 0) > > Murphy ( 0, 0) > > VJ Rada ( 0, 0) > > > > [1]: In Full, 天火狐 > > [2]: In Full, Publius Scribonius Scholasticus > > > > ALTERNATING LAND TYPE > > - > > > > The alternating land type has been switched 0 times. > > The current value is Black. > > > > CHANGES IN LAND TYPE AND OWNERSHIP > > -- > > > > None > > > > -- > > Trigon > > >