Results 1 to 13 of 13

Thread: Logs Not Logging?

  1. #1
    Agamemnon's Avatar Roiyarugādo
    Join Date
    Jun 2010
    Location
    That insignificant, not very pretty mudball that we all live on and would prefer not to be destroyed
    Posts
    12,205

    Default Logs Not Logging?

    I want to do some descr_strat modding, and before I start moving region ownerships around I want to move all the armies over a bit so that there's no issues. However, when I move them and start the campaign I get a KTM, with no error log generated in the folder. I added the required line to preferences.cfg, I saved it, set it as read-only, etc. I even copied a mod's system.log into the logs folder so that it would overwrite and not necessarily regenerate. However, no matter what I do, the error logs don't exist - there's NOTHING in the logs folder when I try to check them.
    http://www.youtube.com/watch?v=7y2KsU_dhwI

    I was at a friend's house and got permission to spend the night there, when I felt that I'd made the wrong choice and prayed about it being the right one to stay at the friend's house. I still felt it wasn't, so I called for a ride home. I got home seven minutes after my mother died. Don't ing tell me that there is no God.

  2. #2
    Gigantus's Avatar Veni, Vici, Procudit
    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    27,694

    Default Re: Logs Not Logging?

    Your mentioning of making the cfg file read-only makes me think that you are modding the unpacked game in ti's original folders. Not a good idea.
    Use a basic mod set up like my Bare Geomod and transfer the files you want to mod there. It also provides a log setting in it's CFG file which places the log into the custom M2TW\logs folder.
    In my experience there is a roughly 15% chance that a log will not get generated. Simply repeat your crash and check again for the log. The game deletes the old log when it starts, so a failure to generate will result in no log at all.

  3. #3
    Agamemnon's Avatar Roiyarugādo
    Join Date
    Jun 2010
    Location
    That insignificant, not very pretty mudball that we all live on and would prefer not to be destroyed
    Posts
    12,205

    Default Re: Logs Not Logging?

    All I wanted to do was create a small mod where the Pope owns practically all Christendom, as a sort of "what if the Roman Empire, instead of falling, became more and more Barbarian until they became essentially a Barbarian kingdom, but with a theocratic government under the Pope?" I was in fact modifying the vanilla files as when I tried to make a modfolder, even when the game was completely vanilla except being in a different folder, the game CTD'd on loading without even a "unspecified error" message. However, I will try your bare modfolder.

    And I found in another thread a thing about logs and mods that Ishan wrote. I just copied his text into my preferences file, and it works like a charm. So far my game's working perfectly, but I will modfolder it.

    EDIT: Confused by that. ATM I'm only working with the Vanilla map, and while I'd love Kingdoms features I don't (yet) want to add or remove regions, and I want all the vanilla stuff to be there, just a different starting position, HRE religion, and expanded.txt. What files need to be in the data folder for it to work? Just the stuff I changed, or all the vanilla files, or what?

    EDIT2: It really doesn't help that I ran unpack_all.bat, but none of the Kingdoms campaigns seem to have unpacked...
    Last edited by Agamemnon; August 01, 2012 at 02:21 PM.
    http://www.youtube.com/watch?v=7y2KsU_dhwI

    I was at a friend's house and got permission to spend the night there, when I felt that I'd made the wrong choice and prayed about it being the right one to stay at the friend's house. I still felt it wasn't, so I called for a ride home. I got home seven minutes after my mother died. Don't ing tell me that there is no God.

  4. #4
    Gigantus's Avatar Veni, Vici, Procudit
    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    27,694

    Default Re: Logs Not Logging?

    Solving unpacking problems.
    Basic mapping.
    There are a good number of tutorials related to mapping in my 'Creating a World' link (signature).

  5. #5
    Agamemnon's Avatar Roiyarugādo
    Join Date
    Jun 2010
    Location
    That insignificant, not very pretty mudball that we all live on and would prefer not to be destroyed
    Posts
    12,205

    Default Re: Logs Not Logging?

    And once again I fixed my own problem while you were gone.

    I've made my modfolder. Now I wanted to add a second Pope (in Denmark) and a Protestant religion. I've successfully added Protestantism, but adding Protestant buildings causes a CTD upon loading. Hmm... Also, the priests are cardinals, so I assume there is a Pope in Denmark, but there is no "pope" tab or "college of cardinals" button.
    http://www.youtube.com/watch?v=7y2KsU_dhwI

    I was at a friend's house and got permission to spend the night there, when I felt that I'd made the wrong choice and prayed about it being the right one to stay at the friend's house. I still felt it wasn't, so I called for a ride home. I got home seven minutes after my mother died. Don't ing tell me that there is no God.

  6. #6
    Gigantus's Avatar Veni, Vici, Procudit
    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    27,694

    Default Re: Logs Not Logging?

    I think it is because you can have only one special faction - same with the rebels.
    The crash with buildings might have to do with formatting or perhaps you didn't set up your religion correctly (descr_religion and text\religion) or it's a simple typo in those files or the EDB. There are some tutorials regarding new religions if memory serves right.

  7. #7
    Agamemnon's Avatar Roiyarugādo
    Join Date
    Jun 2010
    Location
    That insignificant, not very pretty mudball that we all live on and would prefer not to be destroyed
    Posts
    12,205

    Default Re: Logs Not Logging?

    1. Ah, alright then. Makes sense now, I'll set that back.
    2. It's neither AFAIK, because I know the new religion works and the EDB is the only thing that causes a crash. Unfortunately, I've remade my buildings in EDB twice now, and it still doesn't work. I've also double-checked a million times. This is what I added to the bottom:
    Code:
    building temple_protestant
    {
        convert_to temple_protestant_castle
        religion protestant
        levels small_church_p church_p abbey_p cathedral_p huge_cathedral_p 
        {
            small_church_p city requires factions { hre, denmark, england, } 
            {
                convert_to 0
                capability
                {
                    agent priest  0  requires factions { hre, } 
                    agent priest  0  requires factions { denmark, } 
                    happiness_bonus bonus 1
                    religion_level bonus 2
                    agent_limit priest 1
                }
                material wooden
                construction  1 
                cost  800 
                settlement_min town
                upgrades
                {
                    church_p
                }
            }
            church_p city requires factions { hre, denmark, england, } 
            {
                convert_to 1
                capability
                {
                    agent priest  0  requires factions { hre, } 
                    agent priest  0  requires factions { denmark, } 
                    happiness_bonus bonus 1
                    religion_level bonus 4
                    agent_limit priest 1
                }
                material wooden
                construction  2 
                cost  1600 
                settlement_min large_town
                upgrades
                {
                    abbey_p
                }
            }
            abbey_p city requires factions { hre, denmark, england, } 
            {
                capability
                {
                    agent priest  0  requires factions { hre, } 
                    agent priest  0  requires factions { denmark, } 
                    happiness_bonus bonus 2
                    religion_level bonus 6
                    agent_limit priest 2
                }
                material wooden
                construction  3 
                cost  3200 
                settlement_min city
                upgrades
                {
                    cathedral_p
                }
            }
            cathedral_p city requires factions { hre, denmark, england, } 
            {
                capability
                {
                    agent priest  0  requires factions { hre, } 
                    agent priest  0  requires factions { denmark, } 
                    happiness_bonus bonus 2
                    religion_level bonus 8
                    agent_limit priest 2
                }
                material wooden
                construction  4 
                cost  6400 
                settlement_min large_city
                upgrades
                {
                    huge_cathedral_p
                }
            }
            huge_cathedral_p city requires factions { hre, denmark, england, } 
            {
                capability
                {
                    agent priest  0  requires factions { hre, } 
                    agent priest  0  requires factions { denmark, } 
                    happiness_bonus bonus 3
                    religion_level bonus 10
                    agent_limit priest 2
                }
                material wooden
                construction  6 
                cost  10000 
                settlement_min huge_city
                upgrades
                {
                }
            }
        }
        plugins 
        {
        }
    }
    building temple_protestant_castle
    {
        convert_to temple_protestant
        religion protestant
        levels small_chapel_p chapel_p 
        {
            small_chapel_p castle requires factions { hre, denmark, england, } 
            {
                convert_to 0
                capability
                {
                    agent priest  0  requires factions { hre, } 
                    agent priest  0  requires factions { denmark, } 
                    happiness_bonus bonus 1
                    religion_level bonus 4
                    agent_limit priest 1
                }
                material wooden
                construction  1 
                cost  800 
                settlement_min town
                upgrades
                {
                    chapel_p
                }
            }
            chapel_p castle requires factions { hre, denmark, england, } 
            {
                convert_to 1
                capability
                {
                    agent priest  0  requires factions { hre, } 
                    agent priest  0  requires factions { denmark, } 
                    happiness_bonus bonus 1
                    religion_level bonus 6
                    agent_limit priest 1
                }
                material wooden
                construction  2 
                cost  1600 
                settlement_min large_town
                upgrades
                {
                }
            }
        }
        plugins 
        {
        }
    }
    I don't see any issues with it, do you?
    http://www.youtube.com/watch?v=7y2KsU_dhwI

    I was at a friend's house and got permission to spend the night there, when I felt that I'd made the wrong choice and prayed about it being the right one to stay at the friend's house. I still felt it wasn't, so I called for a ride home. I got home seven minutes after my mother died. Don't ing tell me that there is no God.

  8. #8
    Gigantus's Avatar Veni, Vici, Procudit
    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    27,694

    Default Re: Logs Not Logging?

    Nothing on first glance. Maybe run the EDB checker to check the formatting. I do trust you got the required entries in text\export_buildings?

  9. #9
    Agamemnon's Avatar Roiyarugādo
    Join Date
    Jun 2010
    Location
    That insignificant, not very pretty mudball that we all live on and would prefer not to be destroyed
    Posts
    12,205

    Default Re: Logs Not Logging?

    No, because there is no such file in your Bare Geomod modfolder and in RTW the text files didn't matter, so I wasn't adding them until I finished the part that usually causes crashes (makes crashes easier to find).
    http://www.youtube.com/watch?v=7y2KsU_dhwI

    I was at a friend's house and got permission to spend the night there, when I felt that I'd made the wrong choice and prayed about it being the right one to stay at the friend's house. I still felt it wasn't, so I called for a ride home. I got home seven minutes after my mother died. Don't ing tell me that there is no God.

  10. #10
    Gigantus's Avatar Veni, Vici, Procudit
    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    27,694

    Default Re: Logs Not Logging?

    My apologies, you are right about export_buildings in Geomod.

    I think I can safely assume that the TXT file converted from String.Bin doesn't go against the rules when I am attaching it here. Try to solve your unpacking problem and then convert the string bin files (requires python less then version 3.0) .
    Attached Files Attached Files

  11. #11
    Agamemnon's Avatar Roiyarugādo
    Join Date
    Jun 2010
    Location
    That insignificant, not very pretty mudball that we all live on and would prefer not to be destroyed
    Posts
    12,205

    Default Re: Logs Not Logging?

    Ah, thank you!

    And I see. I installed the most recent Python, thinking newer was better. Apparently not for M2TW. Well, I'll DL an older one.

    But, with this file, I don't think I'll have any more issues at all. Thanks.
    http://www.youtube.com/watch?v=7y2KsU_dhwI

    I was at a friend's house and got permission to spend the night there, when I felt that I'd made the wrong choice and prayed about it being the right one to stay at the friend's house. I still felt it wasn't, so I called for a ride home. I got home seven minutes after my mother died. Don't ing tell me that there is no God.

  12. #12
    Gigantus's Avatar Veni, Vici, Procudit
    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    27,694

    Default Re: Logs Not Logging?

    My link goes to a suitable python version.

  13. #13
    Agamemnon's Avatar Roiyarugādo
    Join Date
    Jun 2010
    Location
    That insignificant, not very pretty mudball that we all live on and would prefer not to be destroyed
    Posts
    12,205

    Default Re: Logs Not Logging?

    Thanks.
    http://www.youtube.com/watch?v=7y2KsU_dhwI

    I was at a friend's house and got permission to spend the night there, when I felt that I'd made the wrong choice and prayed about it being the right one to stay at the friend's house. I still felt it wasn't, so I called for a ride home. I got home seven minutes after my mother died. Don't ing tell me that there is no God.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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