+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 20 of 44

Thread: Positions Editor

  1. #1
    For the Glory lead MichaelM's Avatar
    EU3 CompleteFor The GloryHeir to the ThroneDivine Wind

    Join Date
    Jun 2004
    Location
    Norman, Oklahoma
    Posts
    3,239

    Positions Editor

    At Hive's request, I've been working for the last week or so on porting my EU3 positions editor to EU2. I think it's time to release an initial version so people can discover lots of bugs that I didn't find.

    You can download it here (page also has the source code).

    I do not have any custom maps installed, so I'd like to know how (and if) it works with any of those. It expects 2020 provinces, but if you know Java, it's trivial to change it to 1615 and recompile; it doesn't require any other libraries.

    So, what do you think?

    Clausewitz Tools: Clausewitz Save Game and History Editor ||| Clausewitz Map Positions Editor (beta)
    EU2: EU2 Map Positions Editor (alpha) ||| EU2 Event Generator
    Made with EugFile: an open-source Java library for reading and writing files in the Paradox format.


    Whatever you do, do it all for the glory of God. — I Corinthians 10:31b (NIV)

  2. #2
    Lex Superior
    EU3 OwnerHoI AnthologyEU3 CompleteHeir to the ThroneDivine Wind

    Join Date
    Oct 2002
    Location
    Under A Bloodred Sky
    Posts
    10,829
    Thanks a lot for your effort.

    Unfortunately, I got a bunch of errors when opening it (perhaps because it was the standard vanilla map and not with 2020 provinces?). Maybe it was just me who made an error. Either way, I don't have time to fiddle around with it untill next week. But this tool will definately make modding a whole lot easier.
    All religions have been made by men - Napoleon Bonaparte

    Check out Age of Imperialism 2.5 for EUII

    Icq me: #173002032

  3. #3
    For the Glory lead MichaelM's Avatar
    EU3 CompleteFor The GloryHeir to the ThroneDivine Wind

    Join Date
    Jun 2004
    Location
    Norman, Oklahoma
    Posts
    3,239
    Quote Originally Posted by Hive
    Thanks a lot for your effort.

    Unfortunately, I got a bunch of errors when opening it (perhaps because it was the standard vanilla map and not with 2020 provinces?). Maybe it was just me who made an error. Either way, I don't have time to fiddle around with it untill next week. But this tool will definately make modding a whole lot easier.
    I did some checking and found two possibilities:

    1. If you're running Java 1.6, then you just need to add "-Xmx256m" to the .bat file (like: "java -Xmx256m -jar ..."). This should fix the problem. I've updated the batch file on my site to do the same thing.

    2. If you're running Java 1.5, then there's some trouble. I could not get it to run with 1.5 at all; it always gave an OutOfMemoryError, even when I increased the maximum memory to 768 megabytes. I'm not sure what causes this yet.

    Clausewitz Tools: Clausewitz Save Game and History Editor ||| Clausewitz Map Positions Editor (beta)
    EU2: EU2 Map Positions Editor (alpha) ||| EU2 Event Generator
    Made with EugFile: an open-source Java library for reading and writing files in the Paradox format.


    Whatever you do, do it all for the glory of God. — I Corinthians 10:31b (NIV)

  4. #4
    Just call me Yoda in private!
    EU3 Collectors Edition OwnerFor The Glory

    Join Date
    Mar 2005
    Location
    Toulouse, France - EU
    Posts
    20,187
    Very interesting. Thanks!
    For the Glory: A Europa Universalis Game
    Go to FTG forum!

    AGCEEP High Council Member
    AGCEEP Website

    Relisez les couplets IX et XI de la Marseillaise

  5. #5
    For the Glory lead MichaelM's Avatar
    EU3 CompleteFor The GloryHeir to the ThroneDivine Wind

    Join Date
    Jun 2004
    Location
    Norman, Oklahoma
    Posts
    3,239
    Quote Originally Posted by YodaMaster
    Very interesting. Thanks!
    If this helps the AGCEEP map appear sooner, it's worth it!

    Clausewitz Tools: Clausewitz Save Game and History Editor ||| Clausewitz Map Positions Editor (beta)
    EU2: EU2 Map Positions Editor (alpha) ||| EU2 Event Generator
    Made with EugFile: an open-source Java library for reading and writing files in the Paradox format.


    Whatever you do, do it all for the glory of God. — I Corinthians 10:31b (NIV)

  6. #6
    Just call me Yoda in private!
    EU3 Collectors Edition OwnerFor The Glory

    Join Date
    Mar 2005
    Location
    Toulouse, France - EU
    Posts
    20,187
    Quote Originally Posted by MichaelM
    If this helps the AGCEEP map appear sooner, it's worth it!
    Yes, it could when tbl files will be ready.
    For the Glory: A Europa Universalis Game
    Go to FTG forum!

    AGCEEP High Council Member
    AGCEEP Website

    Relisez les couplets IX et XI de la Marseillaise

  7. #7
    Lex Superior
    EU3 OwnerHoI AnthologyEU3 CompleteHeir to the ThroneDivine Wind

    Join Date
    Oct 2002
    Location
    Under A Bloodred Sky
    Posts
    10,829
    So uhm... any chance of your EU3 scenario editor for EU2 as well?
    All religions have been made by men - Napoleon Bonaparte

    Check out Age of Imperialism 2.5 for EUII

    Icq me: #173002032

  8. #8
    For the Glory lead MichaelM's Avatar
    EU3 CompleteFor The GloryHeir to the ThroneDivine Wind

    Join Date
    Jun 2004
    Location
    Norman, Oklahoma
    Posts
    3,239
    Quote Originally Posted by Hive
    So uhm... any chance of your EU3 scenario editor for EU2 as well?
    Well... EU2's scenarios are so different from EU3's that I might have to recode most of it. And since school just started, I'm going to be short on time very soon.

    I actually thought Paradox's editor was pretty good except for all the bugs; it might be rather time-consuming to re-create all those forms from the side bar. Plus, I don't use the lightmaps, so mine would be a lot uglier. But I guess ugly still beats unusable, so maybe I'll give it a try.

    So in conclusion, that's a resounding "Maybe".

    Clausewitz Tools: Clausewitz Save Game and History Editor ||| Clausewitz Map Positions Editor (beta)
    EU2: EU2 Map Positions Editor (alpha) ||| EU2 Event Generator
    Made with EugFile: an open-source Java library for reading and writing files in the Paradox format.


    Whatever you do, do it all for the glory of God. — I Corinthians 10:31b (NIV)

  9. #9
    Lex Superior
    EU3 OwnerHoI AnthologyEU3 CompleteHeir to the ThroneDivine Wind

    Join Date
    Oct 2002
    Location
    Under A Bloodred Sky
    Posts
    10,829
    Quote Originally Posted by MichaelM
    So in conclusion, that's a resounding "Maybe".
    Good enough for me.

    About the Paradox editor, it doesn't work on maps with 2020 provinces...
    All religions have been made by men - Napoleon Bonaparte

    Check out Age of Imperialism 2.5 for EUII

    Icq me: #173002032

  10. #10
    Mad Medievalist Third Angel's Avatar
    Deus Vult!For The GloryMount & Blade: WarbandCrusader Kings IICrusader Kings II Holy Knight

    Join Date
    Feb 2005
    Location
    in a Dwarf Fortress
    Posts
    2,076
    Quote Originally Posted by MichaelM
    [...]

    I do not have any custom maps installed, so I'd like to know how (and if) it works with any of those. It expects 2020 provinces, but if you know Java, it's trivial to change it to 1615 and recompile; it doesn't require any other libraries.

    So, what do you think?
    Hi, I am quite interested in your positions' editor since I am working on a scenario for MWATK.

    I can run your program just fine with the vanilla map.
    It does load but gives weird results with WATK, the map is there but there are many black strips here and there.
    It does not load at all with MWATK, giving only a list of errors in the DOS dialog box.

    Hope you keep working on this.

  11. #11
    For the Glory lead MichaelM's Avatar
    EU3 CompleteFor The GloryHeir to the ThroneDivine Wind

    Join Date
    Jun 2004
    Location
    Norman, Oklahoma
    Posts
    3,239
    Hmm... Refresh my memory: do custom maps have to be the same size as the Paradox map? If not, that's probably the issue.

    Clausewitz Tools: Clausewitz Save Game and History Editor ||| Clausewitz Map Positions Editor (beta)
    EU2: EU2 Map Positions Editor (alpha) ||| EU2 Event Generator
    Made with EugFile: an open-source Java library for reading and writing files in the Paradox format.


    Whatever you do, do it all for the glory of God. — I Corinthians 10:31b (NIV)

  12. #12
    Great job Michael!


    Maps have to be the same size: 18944x7296 px.

  13. #13
    For the Glory lead MichaelM's Avatar
    EU3 CompleteFor The GloryHeir to the ThroneDivine Wind

    Join Date
    Jun 2004
    Location
    Norman, Oklahoma
    Posts
    3,239
    In that case, I'd have to actually see what shows up to have any idea of what's wrong.

    Third Angel, can you post the errors you get with MWATK?

    Clausewitz Tools: Clausewitz Save Game and History Editor ||| Clausewitz Map Positions Editor (beta)
    EU2: EU2 Map Positions Editor (alpha) ||| EU2 Event Generator
    Made with EugFile: an open-source Java library for reading and writing files in the Paradox format.


    Whatever you do, do it all for the glory of God. — I Corinthians 10:31b (NIV)

  14. #14
    Lex Superior
    EU3 OwnerHoI AnthologyEU3 CompleteHeir to the ThroneDivine Wind

    Join Date
    Oct 2002
    Location
    Under A Bloodred Sky
    Posts
    10,829
    Couldn't the problem be solved by just using an extracted ID map as source instead of the tbl files?
    All religions have been made by men - Napoleon Bonaparte

    Check out Age of Imperialism 2.5 for EUII

    Icq me: #173002032

  15. #15
    For the Glory lead MichaelM's Avatar
    EU3 CompleteFor The GloryHeir to the ThroneDivine Wind

    Join Date
    Jun 2004
    Location
    Norman, Oklahoma
    Posts
    3,239
    What do you mean by an extracted ID map? Like what shows now, but saved as such instead of read from id.tbl?

    Clausewitz Tools: Clausewitz Save Game and History Editor ||| Clausewitz Map Positions Editor (beta)
    EU2: EU2 Map Positions Editor (alpha) ||| EU2 Event Generator
    Made with EugFile: an open-source Java library for reading and writing files in the Paradox format.


    Whatever you do, do it all for the glory of God. — I Corinthians 10:31b (NIV)

  16. #16
    Mad Medievalist Third Angel's Avatar
    Deus Vult!For The GloryMount & Blade: WarbandCrusader Kings IICrusader Kings II Holy Knight

    Join Date
    Feb 2005
    Location
    in a Dwarf Fortress
    Posts
    2,076
    Quote Originally Posted by MichaelM
    In that case, I'd have to actually see what shows up to have any idea of what's wrong.

    Third Angel, can you post the errors you get with MWATK?
    Sorry I did not get back to you earlier. Here's what I get:

    WATK

    MWATK

  17. #17
    For the Glory lead MichaelM's Avatar
    EU3 CompleteFor The GloryHeir to the ThroneDivine Wind

    Join Date
    Jun 2004
    Location
    Norman, Oklahoma
    Posts
    3,239
    All right, I finally tracked it down (I had WATK lying around after all). It turns out Inferis's description of id.tbl is wrong. I'm going to assume that was just an oversight on his part, since it was his program that produced the map for WATK.

    inferis.org says that the id.tbl file is a series of 6-byte blocks, formatted as <start-x><province id><end-x>. This is incorrect; it's actually a series of 4-byte blocks, with the end x of one block becoming the start x for the next.

    Now, I got around this with the vanilla map because there is always a 1-pixel bit of province 0 between provinces; I had just assumed that it was padding and skipped it. But WATK's map does not have this. This meant that I was skipping valid map data, leading to wild inaccuracies.

    This has now been fixed for the second alpha, which is now online. Download it from the same place (here). Enjoy!

    Third Angel, can you check if by chance this solves the MWATK errors as well?

    Clausewitz Tools: Clausewitz Save Game and History Editor ||| Clausewitz Map Positions Editor (beta)
    EU2: EU2 Map Positions Editor (alpha) ||| EU2 Event Generator
    Made with EugFile: an open-source Java library for reading and writing files in the Paradox format.


    Whatever you do, do it all for the glory of God. — I Corinthians 10:31b (NIV)

  18. #18
    Lex Superior
    EU3 OwnerHoI AnthologyEU3 CompleteHeir to the ThroneDivine Wind

    Join Date
    Oct 2002
    Location
    Under A Bloodred Sky
    Posts
    10,829
    Quote Originally Posted by MichaelM
    What do you mean by an extracted ID map? Like what shows now, but saved as such instead of read from id.tbl?
    I just meant that an extracted ID map from EU2 is just like the map in EU3 - so I just figured it would be easier for you, since you have the EU3 editor so well worked out.
    All religions have been made by men - Napoleon Bonaparte

    Check out Age of Imperialism 2.5 for EUII

    Icq me: #173002032

  19. #19
    For the Glory lead MichaelM's Avatar
    EU3 CompleteFor The GloryHeir to the ThroneDivine Wind

    Join Date
    Jun 2004
    Location
    Norman, Oklahoma
    Posts
    3,239
    Quote Originally Posted by Hive
    I just meant that an extracted ID map from EU2 is just like the map in EU3 - so I just figured it would be easier for you, since you have the EU3 editor so well worked out.
    Ah, I see. If this version still doesn't work, I might try that approach.

    By the way, if anyone downloaded the new version already, please download it again; I had forgotten to update the .jar file in the compiled version.

    Clausewitz Tools: Clausewitz Save Game and History Editor ||| Clausewitz Map Positions Editor (beta)
    EU2: EU2 Map Positions Editor (alpha) ||| EU2 Event Generator
    Made with EugFile: an open-source Java library for reading and writing files in the Paradox format.


    Whatever you do, do it all for the glory of God. — I Corinthians 10:31b (NIV)

  20. #20
    Count of Averland Basileios II's Avatar
    EU3 Collectors Edition OwnerEU3 CompleteFor The GloryHeir to the ThroneMount & Blade: Warband
    200k ClubVictoria 2Divine WindCrusader Kings IIWar of the Roses

    Join Date
    Sep 2001
    Location
    Köln/Poreč
    Posts
    444
    Whenever I´m saving any changes tp province.csv the game will not load anymore. The error message says something about "Unable to open gfx\interface\piw\.txt".
    Ceterum censeo Carthaginem esse delendam

+ Reply to Thread
Page 1 of 3 1 2 3 LastLast

Posting Permissions

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