Results 1 to 8 of 8

Thread: How do you fix "unexpected in condition parsing: "recruit_pool"?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    stoogeofstooges's Avatar Decanus
    Join Date
    Jul 2010
    Location
    Pennsylvania
    Posts
    541

    Default How do you fix "unexpected in condition parsing: "recruit_pool"?

    Error message:

    Script Error in data/export_descr_buildings.txt, at line 41, column 148
    Unexpected in condition parsing: 'recruit_pool'

    All I did was add this line:

    recruit_pool "Magyar Town Militia" 1 0.2 2 0 requires factions { hungary, }

    here is the entry where I added it:
    Code:
    wooden_wall city requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, } 
            {
                convert_to 2
                capability
                {
                    recruit_pool "Conquistadores"  1   0.4   3  0  requires factions { spain, portugal, }  and hidden_resource america
                    recruit_pool "Dismounted Conquistadores"  1   0.4   3  0  requires factions { spain, portugal, }  and hidden_resource america
                    recruit_pool "Town Militia"  1   0.2   2  0  requires factions { england, scotland, france, hre, denmark, spain, portugal, Normans, } 
                    recruit_pool "Italian Militia"  1   0.2   2  0  requires factions { milan, venice, papal_states, sicily, } 
                    recruit_pool "EE Town Militia"  1   0.2   2  0  requires factions { poland, }
    		recruit_pool "Magyar Town Militia"  1   0.2   2  0  requires factions { hungary, } 
                    recruit_pool "EE Archer Militia"  1   0.2   2  0  requires factions { russia, } 
                    recruit_pool "SE Town Militia"  1   0.2   2  0  requires factions { byzantium, } 
                    recruit_pool "ME Town Militia"  1   0.2   2  0  requires factions { moors, turks, mongols, timurids, } 
                    recruit_pool "ME Archer Militia"  1   0.2   2  0  requires factions { egypt, } 
                    recruit_pool "Peasant Spearmen"  1   0.2   2  0  requires factions { Saxons, } 
                    wall_level 1
                    gate_strength 1
                    tower_level 1
                    free_upkeep bonus 3
                    happiness_bonus bonus 1
                    recruitment_slots 2
    I deleted the added line and returned the entry to normal but it still crashed at startup loading. Anything I can do to fix this instead of re-doing all my recruitment entries?

    Also, I don't have notepad since i'm using a mac, and I read about using the view -> status bar and then looking at the numbers at the bottom trick, but i can't do that in textedit.
    Last edited by stoogeofstooges; February 09, 2012 at 10:04 PM.

  2. #2

    Default Re: How do you fix "unexpected in condition parsing: "recruit_pool"?

    So let me get this straight,

    you added the unit and it crashed,

    Subsequently you deleted the entire entry again and retried and it crashed again with the same error?

    My first question would be, are you sure you're looking at the right line ? Perhaps you accidently removed a bracket or something somewhere? Upload your EDU and I'll have a look at it.

    Also, column 148 would be way to the right of this entry so maybe there is something there ?, I copied it into notepad and it only has 86 columns.
    Last edited by ilmrik; February 10, 2012 at 04:08 AM.

  3. #3
    stoogeofstooges's Avatar Decanus
    Join Date
    Jul 2010
    Location
    Pennsylvania
    Posts
    541

    Default Re: How do you fix "unexpected in condition parsing: "recruit_pool"?

    Quote Originally Posted by ilmrik View Post
    So let me get this straight,

    you added the unit and it crashed,

    Subsequently you deleted the entire entry again and retried and it crashed again with the same error?

    My first question would be, are you sure you're looking at the right line ? Perhaps you accidently removed a bracket or something somewhere? Upload your EDU and I'll have a look at it.

    Also, column 148 would be way to the right of this entry so maybe there is something there ?, I copied it into notepad and it only has 86 columns.
    Okay, I added the line for Magyar Town Militia where it currently is in the file, and then when it crashed, I deleted the line for Magyar Town Militia and it still crashed with the same error. That's it. I added a bunch of new units into the edu, but all of them worked fine (they could be recruited, no errors) up until this one. I will upload my edu file as an attachment around 3 this afternoon.

  4. #4
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: How do you fix "unexpected in condition parsing: "recruit_pool"?

    How I'd fix it without understanding anything:

    Delete the line, copy+paste another line, and change the relevant text.

  5. #5
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: How do you fix "unexpected in condition parsing: "recruit_pool"?

    Quote Originally Posted by stoogeofstooges View Post
    Error message:

    Script Error in data/export_descr_buildings.txt, at line 41, column 148
    Unexpected in condition parsing: 'recruit_pool'

    All I did was add this line:

    recruit_pool "Magyar Town Militia" 1 0.2 2 0 requires factions { hungary, }
    If removing the only change you are aware of making did not fix the problem then I suspect your text editor is messing it up.

    Suggest using Notepad++ and trying again.

  6. #6
    stoogeofstooges's Avatar Decanus
    Join Date
    Jul 2010
    Location
    Pennsylvania
    Posts
    541

    Default Re: How do you fix "unexpected in condition parsing: "recruit_pool"?

    Quote Originally Posted by Taiji View Post
    If removing the only change you are aware of making did not fix the problem then I suspect your text editor is messing it up.

    Suggest using Notepad++ and trying again.
    I'm using a mac, so i can't get notepad, and i don't know what notepad++ is anyway, but thanks for the suggestion. I'm probably just going to get a vanilla copy of the edb and redo the additions I made. I only added in 5 or 6 units, so its not that big of a deal, and its not like i have to completely re-install the units.

  7. #7
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: How do you fix "unexpected in condition parsing: "recruit_pool"?

    Post the entire EDB that's causing the bugs. If its too big then compress it and upload the compressed version.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  8. #8
    stoogeofstooges's Avatar Decanus
    Join Date
    Jul 2010
    Location
    Pennsylvania
    Posts
    541

    Default Re: How do you fix "unexpected in condition parsing: "recruit_pool"?

    okay, I got it fixed, I'm not actually sure what I did that fixed it but I've stopped caring until it happens again.

Posting Permissions

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