Results 1 to 10 of 10

Thread: Problem with map coordinates (SOLVED)

  1. #1

    Default Problem with map coordinates (SOLVED)

    Hello. I have a problem with the "spawn army" in Age of Charlemagne. The coordinates of the map in Custom Battle are not correct. Does anyone know where I can check the true coordinates of the map? Any help would be appreciated, thanks.

    Coordinates entered in the script:

    LEON


    LINCOLN



    RESULTS:

    LEON


    LINCOLN
    Last edited by Miguel_80; February 08, 2018 at 12:15 PM.

  2. #2
    Commissar Caligula_'s Avatar The Ecstasy of Potatoes
    Join Date
    Dec 2013
    Location
    The alcoves in the Koningin Astridpark
    Posts
    5,871

    Default Re: Problem with map coordinates

    The Rome II Total Realism's team scripting toolkit might help you create a co-ordinates logger. https://steamcommunity.com/sharedfil.../?id=287927364
    The modder DETrooper (who I linked you to in the previous post you made) made a co-ordinates logger for historical battles that he and I used to create a few custom historical battles, so I imagine it can also log campaign map co-ordinates somehow.



  3. #3

    Default Re: Problem with map coordinates

    Thank you very much Caligula! This mod is very interesting to create personalized messages and other details what interests me.

    About the coordinates of Attila follows the same problem, doesn't give me the correct numbers the map of "Custom Battle". I'll have to test the coordinates by eye, hehehe! I need know the real dimensions of the campaign map. The one that comes out in the "Custom Battle" is of 1000x1000 pixels, but is not correct.


    EDIT:

    Spoiler for EXAMPLE
    The Abbess Fin of Northumbria


    Approximate location of the Abbess according to the "Custom Battle" map


    True coordinates of the Abbess: x 276, y 630
    Last edited by Miguel_80; February 08, 2018 at 05:11 AM.

  4. #4
    Commissar Caligula_'s Avatar The Ecstasy of Potatoes
    Join Date
    Dec 2013
    Location
    The alcoves in the Koningin Astridpark
    Posts
    5,871

    Default Re: Problem with map coordinates

    I don't have a clue whether this is at all helpful to you (and honestly, it's probably not) but I've got a really makeshift co-ordinate "logger" that works fairly well. I only use it for Historical Battles though, so it probably doesn't work for campaigns, but it might give you a few ideas. This is for the vanilla campaign, so even more useless for Age of Charlemagne but here we go.

    Take a screenshot of the Historical Battle screen.
    Spoiler Alert, click show to read: 
    Open it in Photoshop or something, and then create put this image on top of the other one in a layer.
    Spoiler Alert, click show to read: 
    Then drag a square from the location you want, to where the black/white/yellow lines meet, eg:
    Spoiler Alert, click show to read: 
    That box is 200x110 pixels, which are your X and Y co-ordinates. It works perfectly for calculating the position of historical battle UI locations, I've got no idea how it will work for the campaign.

    Good luck lols.



  5. #5

    Default Re: Problem with map coordinates

    SOLVED. I have found the real size data in the map_data.esf file.




    Spoiler for REAL MAP FOR DOWNLOAD (920x800)


    P.S: Good method Caligula. The problem with the AoC is that the maps in graphic format that are included in the DLC don't have the same dimensions.
    Last edited by Miguel_80; February 08, 2018 at 12:47 PM.

  6. #6
    Commissar Caligula_'s Avatar The Ecstasy of Potatoes
    Join Date
    Dec 2013
    Location
    The alcoves in the Koningin Astridpark
    Posts
    5,871

    Default Re: Problem with map coordinates (SOLVED)

    Would you like me to add your method to the Modder's Hub?
    Is it basically just draw a box from the top left and those are your co-ordinates? Eg London is at x=322 y=266 https://i.imgur.com/tqR6VrE.jpg
    Last edited by Commissar Caligula_; February 08, 2018 at 02:16 PM.



  7. #7

    Default Re: Problem with map coordinates (SOLVED)

    Yes of course. If for someone it can be useful, add it.

  8. #8

    Default Re: Problem with map coordinates (SOLVED)

    A little detail. On maps, the 0 coordinate of Y starts at the bottom. That is, to calculate correctly you have to flip the image vertically.



    Code:
    cm:create_force("cha_fact_kent", "cha_gen_armoured_spear,cha_gen_armoured_spear,cha_gen_armoured_sword", "cha_reg_gallicia_oviedo", 165, 275, "ARMY04_ID", true);

  9. #9
    Commissar Caligula_'s Avatar The Ecstasy of Potatoes
    Join Date
    Dec 2013
    Location
    The alcoves in the Koningin Astridpark
    Posts
    5,871

    Default Re: Problem with map coordinates (SOLVED)

    Much simpler just drawing the box from the bottom left corner and using the map the right way up.



  10. #10

    Default Re: Problem with map coordinates (SOLVED)

    I think it depends of the image program, where it place the coordinate Y = 0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •