Page 41 of 50 FirstFirst ... 163132333435363738394041424344454647484950 LastLast
Results 801 to 820 of 986

Thread: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

  1. #801

    Default Re: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

    Quote Originally Posted by quantumlive.dk View Post
    Please give a concret example on LEVEl 3 Change region's ownership.
    Give first 500000 to the new faction (see in Level1 how). Start the game as the new owner, buy region, save, exit. Use the save to make a hybrid.




  2. #802

    Default Re: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

    @ Steph

    How to determine the number and the sequence of in game portrait appearances

    You will need to download this tool: http://www.twcenter.net/forums/showthread.php?t=438386 or use taw's esf 2 xml converter.

    1. Use the attached xml_split.rb replacing the one in my tool or in taw's converter:

    2. Convert esf2xml.

    3. Open the PORTRAIT_ALLOCATOR and the xml of the culture you want changed. For every character you'll find 4 PORTRAIT_ALLOCATION like this one:



    4. I think all are obvious now. Determine the pool limits(?) (here is 95-39) and the sequence (here is 89 85 59 etc.). repeat to all 4 instances of the character.

    5. Save xml. When you are done with all cultures convert back xml2esf and you are done.

    Attached are your xml files unchanged.




  3. #803
    Steph's Avatar Maréchal de France
    Patrician Artifex

    Join Date
    Apr 2010
    Location
    Pont de l'Arn, France
    Posts
    9,174

    Default Re: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

    Ok, I tried that. I exported to XML, then I get a PORTRAIT_ALLOCATOR sub folder, with every factions.
    I edited one (Russia for instance) and tried to change it, but then when I tried to convert back to esg, it generated a file with a time stamp "15:17" (but it is 20:12). And if I edit this new startpos with EsfEditor, it has not been changed.
    What did I do wrong?

  4. #804

    Default Re: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

    Hmm.. there are many thinks that might have happened. You did not receive any error message? Did you use my tool or plain taw's converter?

    Anyway attached is the portraits in esf format. I changed only russia-culture generals using the sequence from 1 to 20.




  5. #805
    Steph's Avatar Maréchal de France
    Patrician Artifex

    Join Date
    Apr 2010
    Location
    Pont de l'Arn, France
    Posts
    9,174

    Default Re: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

    I used your tool, with the modified file for split
    No error message.
    It generates an esf but un modified one.

    I'm supposed to change the individual XML files, with only the portrait allocation for one faction?
    Then it should use it and pack it together with the large xml to recreate the esf?

    Another question. Here there is a sequence with 1-20. What happens if we reach 21? Does it cycle? Crash? or else??

  6. #806

    Default Re: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

    It cycles.

    If you use my tool: after esf2xml you'll find in XML Folder a PORTRAIT_ALLOCATOR folder and esf.xml (which holds the rest content of esf). Copy PORTRAIT_ALLOCATOR folder on your desktop, make your changes in the xml you like, copy back PORTRAIT_ALLOCATOR folder in XML Folder of S2C (menu XML Folder) replacing existing and execute xml2esf. When it will finish converting, it will ask you if you want to replace existing startpos with new one (it renames any esf you convert to startpos but this is not a problem you can rename it later if you want). Check the size of the new file and if it is about the same with input file that will be replaced, answer yes and you are done. If it has very small size or 0 then convertion failed due to an illegal change in XML(s).




  7. #807
    Steph's Avatar Maréchal de France
    Patrician Artifex

    Join Date
    Apr 2010
    Location
    Pont de l'Arn, France
    Posts
    9,174

    Default Re: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

    I edited the XML directly in the PORTRAIT_ALLOCATOR folder. Why do I need to copy it to desktop?
    I got a new startpos.esf, the size was not 0, but it did not contain my changes. As if it was build directly from esf.xml and ignored the PORTRAIT_ALLOCATOR folder

  8. #808

    Default Re: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

    Quote Originally Posted by Steph View Post
    I edited the XML directly in the PORTRAIT_ALLOCATOR folder. Why do I need to copy it to desktop?
    Just a precaution for having a good copy available...

    I got a new startpos.esf, the size was not 0, but it did not contain my changes. As if it was build directly from esf.xml and ignored the PORTRAIT_ALLOCATOR folder
    It needs the folder as well, or it won't be able to be rebuilt. Can you make other changes (you'll need to edit or restore xml_split.rb)? If not then probably you have this problem: http://www.twcenter.net/forums/showt...3#post11357613 Is the portrait allocator I send you working?




  9. #809
    Steph's Avatar Maréchal de France
    Patrician Artifex

    Join Date
    Apr 2010
    Location
    Pont de l'Arn, France
    Posts
    9,174

    Default Re: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

    I did not have time to rest your portrait allocator.

    Also, I don't have shogun or ETW, only NTW. I don't know if your tool is supposed to work with any ESF.

  10. #810

    Default Re: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

    S2C works with any esf that Taw can convert to xml, that means for all games. I am using that very often for Empire/Napoleon. Also, if you are using your custom Taw converter, you can replace the S2C files with yours.




  11. #811

    Default Re: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

    If Im for example is Spain, then I give Florida to Great Britain.

    Then Im Great Britain and I have Florida but I cant select all the buildings in Florida. So this method does not working.

  12. #812

    Default Re: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

    Will anybody please give an example on Spain give Florida to britain on another way?

  13. #813

    Default Re: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

    Quote Originally Posted by quantumlive.dk View Post
    If Im for example is Spain, then I give Florida to Great Britain.

    Then Im Great Britain and I have Florida but I cant select all the buildings in Florida. So this method does not working.
    This is a very simple modification and should work.




  14. #814
    Geronimo2006's Avatar TAR Local Moderator
    Join Date
    Oct 2007
    Location
    Ireland
    Posts
    7,405

    Default Re: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

    Quote Originally Posted by husserlTW View Post
    Nothing has changed. Faction leader is included always in Characters and in Family if he is a King. To find which Character is the faction leader go first in ...\FACTION\GOVERNMENT and get the id from the second POSTS_ARRAY in 3rd line. Enter code name in CAMPAIGN_LOCALISATION and then in loc pack add the on screen name (|code name|on screen name|False|).

    Have in mind that if he is a King you have to use only the first line in CAMPAIGN_LOCALISATION even if he has 2 names. In this case you'll enter full name in on screen name in loc:

    |startpos_entry_here|George Cromwell|False|
    How do I change the ruler's gender? Also where is CAMPAIGN_LOCALISATION?
    Last edited by Geronimo2006; May 03, 2012 at 11:26 AM.
    Colonialism 1600AD - 2016 Modding Awards for "Compilations and Overhauls".



    Core i7 2600 @ 3.4ghz - NVIDIA GTX950 2GB

    Colonialism 1600 AD blog

  15. #815

    Default Re: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

    Quote Originally Posted by Geronimo2006 View Post
    How do I change the ruler's gender?
    in startpos :
    - to change an icon of the woman to the man's (for ui)
    - to change a name(link on locfile) of the woman to the man's

    it is a logic way


  16. #816

    Default Re: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

    Quote Originally Posted by Geronimo2006 View Post
    How do I change the ruler's gender? Also where is CAMPAIGN_LOCALISATION?
    In every FAMILY member and CHARACTER record.




  17. #817
    Steph's Avatar Maréchal de France
    Patrician Artifex

    Join Date
    Apr 2010
    Location
    Pont de l'Arn, France
    Posts
    9,174

    Default Re: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

    Ok, I tried again today.
    I have an Shogun 2Converter\ESF folder, and again a ESF folder (so ESF\ESF).

    I deleted everything from ESF\ESF, and tried to use Esf2Xml.
    I get in the XML foler and esf.xml file, and a PORTRAIT_ALLOCATOR folder.

    I edit Russia.xml from this folder, and then use Xml2Esf.

    It says conversion is about to start, I click on OK.

    Then very quickly I get a message "copy file" (because of startpos.esf), I select copy, then I get "Open file" window.

    I don't know if I supposed to select something here.

    I have a startpos.esf file, but it is always dated 01/05/2012 (date and time don't change), and my changes are not inside.

    It looks like if the tool would just make a copy of this startpos.esf file and not modify it at all.

    By the way, I tested your sample portraits, and it seems to be working. However, since the sequence is the same for all the entries (and I copied it for admiral), I have the same portrait for young/old generals. So I'd like to make the conversion work to be able to change it.
    Last edited by Steph; May 05, 2012 at 01:23 AM.

  18. #818

    Default Re: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

    For some reason conversion from xml2esf fails. Did you tried to reinstall nokogiri as i suggested? Have you ever done a succesfull convertion with Taw's xml2esf? Anyway if there is not an alternative, make your changes in xml (you can find them also here) and send them over to convert them back to esf.




  19. #819
    Steph's Avatar Maréchal de France
    Patrician Artifex

    Join Date
    Apr 2010
    Location
    Pont de l'Arn, France
    Posts
    9,174

    Default Re: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

    If you can just convert this "template", where the sequences of number are more random.
    I can use it then for all the others.

  20. #820

    Default Re: STARTPOS.ESF analysis and modifications. HYBRID startpos.esf

    European? What about the other cultures you made?




Posting Permissions

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