Loading ...
Sorry, an error occurred while loading the content.

Re: [cc2-dev-l] Fwd: Re: [Q] Wizard Template Building

Expand Messages
  • mark@profantasy.com
    This mailbox has been closed -- your message has not been received by Mark. After 13 years of being mark@profantasy.com, unmanageable levels of spam have
    Message 1 of 2 , Jun 12, 2007
    • 0 Attachment
      This mailbox has been closed -- your message has not been received by Mark.

      After 13 years of being mark@..., unmanageable levels of spam have forced me to close this e-mail account. My new email address uses “markf” instead of “mark”. Please add my new address to your contacts and resend your message.

      Thanks,

      Mark Fulford
    • dalton_spence
      I have some questions about how the CC3 New Drawing Wizard [NEWWIZ] command places and scales the selected map furniture symbols, and I m hoping that the
      Message 2 of 2 , Jun 12, 2007
      • 0 Attachment
        I have some questions about how the CC3 New Drawing Wizard [NEWWIZ]
        command places and scales the selected map furniture symbols, and I'm
        hoping that the programmers involved in the wizard's development
        frequent this list. (A general overview of the wizard's algorithm
        between finishing the design selections and displaying the blank map
        would also be nice. ;) ) The original thread on the cc2-l list starts
        at < http://games.groups.yahoo.com/group/cc2-l/message/58014 >

        --- In cc2-l@yahoogroups.com, "dalton_spence" <dalton.spence@...>
        wrote:

        --- In cc2-l@yahoogroups.com, "Ralf Schemmann" <ralf@> wrote:
        >
        > Phew, Dalton you're going beyond my knowledge of the specifics
        involved in the NEWWIZ command. :P
        >
        > On Thu, 07 Jun 2007 16:42:43 +0200, dalton_spence
        <dalton.spence@> wrote:
        >
        > > But how is the scaling factor calculated if the proportions change
        > > (ie.: you rescale it from 1000x800 to 400x500)? Is it the smallest
        > > of X- or Y-axis ratios? Or just one of them (and if so, which
        > > one)? And where exactly are these "hard coded" map furniture
        > > positions relative to the map borders? I need to know this so I
        > > can properly size/center my own custom map furniture symbols so
        > > they won't touch or overlap it. (A map furniture building tutorial
        > > would be nice. ;) )
        >
        > I /think/ it's laways relative to the larger of the two values. Why
        don't you give it a test? ;)

        The results are a bit odd. I used the above test case (400x500) on
        the DD3 template, with the following results;

        +--Sheet: TEXT ----------------------
        |
        |Symbol Reference: color 0 (black) layer 0 (MERGE)
        | line style 0 (Solid) fill style 0 (Hollow)
        | line width 0.00000 tag # 0 pen :0.000 mm 2nd color 0
        | Name: Map Title
        | Low extents: 64.56822,420.53607,0.00000
        | High extents: 157.38074,439.28607,0.00000
        | At: 62.50000,437.50000,0.00000
        | Scale: 0.62500,0.62500,0.00000
        | Rotate XY: 0.00000°
        | Attribute Map Title:: Test Map
        |
        |Symbol Reference: color 0 (black) layer 0 (MERGE)
        | line style 0 (Solid) fill style 0 (Hollow)
        | line width 0.00000 tag # 0 pen :0.000 mm 2nd color 0
        | Name: copyright
        | Low extents: 311.25000,31.99420,0.00000
        | High extents: 380.00000,39.80670,0.00000
        | At: 379.13824,31.25000,0.00000
        | Scale: 0.62500,0.62500,0.00000
        | Rotate XY: 0.00000°
        | Attribute copyright notice: © 2007 Dalton Spence
        |
        +-----------------------------------------
        +--Sheet: CARTOUCHES ----------------------
        |
        |Symbol Reference: color 0 (black) layer 0 (MERGE)
        | line style 0 (Solid) fill style 0 (Hollow)
        | line width 0.00000 tag # 0 pen :0.000 mm 2nd color 0
        | Name: Compass Rose 1 n
        | Low extents: 319.98047,437.50000,0.00000
        | High extents: 349.39453,477.81250,0.00000
        | At: 334.68750,437.50000,0.00000
        | Scale: 0.62500,0.62500,0.00000
        | Rotate XY: 0.00000°
        |
        |Symbol Reference: color 0 (black) layer 0 (MERGE)
        | line style 0 (Solid) fill style 0 (Hollow)
        | line width 0.00000 tag # 0 pen :0.000 mm 2nd color 0
        | Name: Scale Bar n
        | Low extents: 33.41060,31.25000,0.00000
        | High extents: 98.98647,66.02460,0.00000
        | At: 62.50000,31.25000,0.00000
        | Scale: 0.50000,0.50000,0.00000
        | Rotate XY: 0.00000°
        | Attribute Scale: 50
        |
        +-----------------------------------------

        It looks like scaling and x-positioning depends on the attribute tag.
        The y-coordinate positions seem more straight forward; 700 and 50
        times the y-scale ratio for upper and lower symbols respectively. A
        third and fourth test with 1000x600 and 800x1000 maps indicates that
        while this y-scale ratio is applied to most map furniture, symbols
        with a Scale attribute use some other formula for both the attribute
        value and symbol scaling. I'd really love to use that formula (or
        better yet the attribute value itself) in the OnNewMacro note to
        build a "Source Maps" style border. ;)

        > > So, if all map furniture symbols are scaled by the same factor,
        > > will the value assigned to the "Scale" text attribute in a
        > > scalebar symbol be the percentage value of the scale factor? So
        > > all custom scalebars using that attribute tag have to be 100 units
        > > long?

        > I would need to test this. Why don't you try it out with teh basic
        CC3 Overland wizard - make a copy of the three woizard files (fcw,
        txt, png) with new names and experiment with the template (e.g.
        rescale the scale bar symbol in the tempalte and see what happens
        with it).

        <sigh> Reverse engineering was never really my strong point. Are
        there any ProFantasy programmers who actually worked on the NEWWIZ
        command reading this that would know the answers? Or should I check
        with the "CC2-dev-l"s? ;) (Checking actual source code or development
        notes is probably harder than is sounds, given how busy everyone must
        be over there with the Cartographer's Annual, new product development
        and dealing with Vista related problems.)

        > > To be clear, this happens *before* the "blank" map is saved under
        > > its new name by the wizard? (I want to use this to build custom
        > > border scales and scalebars.)

        > No, this happens after the map gets saved. You can see this, when
        starting a new map: Load an overland symbol catalog, then start a new
        map based on the "CD Pro standard city" wizard. When the "Save"
        dialog pops up, you can see that the overland catalog is still
        loaded. After saving the map, the default city catalog gets
        loaded ... the template does that in the OnNewMacro macro.

        Something I've noticed; if the program crashes between initial save
        and bringing up the blank map, it may be saved with only some of the
        map furniture placed. Does this mean that rest is placed after the
        save but before the OnNewMacro is run?

        > >> OnOpenMacro is executed everytime the map itself is opened.
        > >
        > > Would it also be run after the OnNewMacro note was? Or should its
        > > code be included there?

        > No, it's not run when a new map is created, so you have to include
        the code in both macros.

        Good to know.

        --

        Dalton "who remembers well what being a programmer was like" Spence

        --- End forwarded message ---
      Your message has been successfully submitted and would be delivered to recipients shortly.