Results 1 to 7 of 7

Thread: What does this Script Error message mean?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default What does this Script Error message mean?

    Messing around with changing some stuff, namely bodyguard units, cultures, etc., I've run into the following error, which occurs after a CTD when I try to start up the game:

    Script Error in bi/vi3/data/descr_building_battle.txt, at line 50, column 21
    Building db, expected faction, culture or season

    "vi3" is the name I gave to the changes I'm making, as it's based on the Viking Invasion 2 mod for BI. I'm just flailing around in there to see what sort of things I can change without, you know, wrecking the game. Looks like I found out.

    The error puzzles me as I haven't made any changes in descr_building_battle.txt. I *have* been making changes in the following files:

    EDU (changing faction generals)
    descr_strat (changing region ownership, starting units, and other things)
    descr_sm_factions (to change faction culture)

    Any thoughts?


    There is a much less pressing error I have also encountered, which is similarly puzzling to me. It seems to be related to changes made in descr_character. I wanted to change the Viking factions' models to Celtic ones - both the stratmap models, and battlemap ones.

    Works fine for the stratmap models - I can change family members and captains on the stratmap to use the "irish" models by typing, e.g. "stratmodel irish_captain". I can get family members on the battlefield to also use the celtic rather than viking model.

    But I get a CTD when changing the battle model of the captains from "viking_captain" to "celtic_captain". When I enter a battle with "celtic_captain", I get a CTD & the following message:

    Failed to find texture 'bi/vi3/data/models_unit/textures.Tribunus.psd.'

    I can avoid this by keeping "viking_captain". But since the method I used worked for the family member, I wonder why it doesn't work for the captain?
    One of the most sophisticated Total War modders ever developed...

  2. #2
    Primo's Avatar Protector Domesticus
    Join Date
    Jul 2011
    Location
    Germany
    Posts
    4,007

    Default Re: What does this Script Error message mean?

    Quote Originally Posted by CountMRVHS View Post
    Messing around with changing some stuff, namely bodyguard units, cultures, etc., I've run into the following error, which occurs after a CTD when I try to start up the game:

    Script Error in bi/vi3/data/descr_building_battle.txt, at line 50, column 21
    Building db, expected faction, culture or season

    "vi3" is the name I gave to the changes I'm making, as it's based on the Viking Invasion 2 mod for BI. I'm just flailing around in there to see what sort of things I can change without, you know, wrecking the game. Looks like I found out.

    The error puzzles me as I haven't made any changes in descr_building_battle.txt. I *have* been making changes in the following files:

    EDU (changing faction generals)
    descr_strat (changing region ownership, starting units, and other things)
    descr_sm_factions (to change faction culture)

    Any thoughts?
    You could try this Tool. It can be quite useful:
    http://www.twcenter.net/forums/showthread.php?t=282662



    Quote Originally Posted by CountMRVHS View Post
    There is a much less pressing error I have also encountered, which is similarly puzzling to me. It seems to be related to changes made in descr_character. I wanted to change the Viking factions' models to Celtic ones - both the stratmap models, and battlemap ones.

    Works fine for the stratmap models - I can change family members and captains on the stratmap to use the "irish" models by typing, e.g. "stratmodel irish_captain". I can get family members on the battlefield to also use the celtic rather than viking model.

    But I get a CTD when changing the battle model of the captains from "viking_captain" to "celtic_captain". When I enter a battle with "celtic_captain", I get a CTD & the following message:

    Failed to find texture 'bi/vi3/data/models_unit/textures.Tribunus.psd.'

    I can avoid this by keeping "viking_captain". But since the method I used worked for the family member, I wonder why it doesn't work for the captain?
    Find the texture of the celtic_captain, copy it and rename it to textures.Tribunus.psd

  3. #3

    Default Re: What does this Script Error message mean?

    Thanks for the reply.

    Any idea where the celtic_captain texture might be found? Not seeing anything with that name in models_unit/textures.
    One of the most sophisticated Total War modders ever developed...

  4. #4
    Primo's Avatar Protector Domesticus
    Join Date
    Jul 2011
    Location
    Germany
    Posts
    4,007

    Default Re: What does this Script Error message mean?

    Quote Originally Posted by CountMRVHS View Post
    Thanks for the reply.

    Any idea where the celtic_captain texture might be found? Not seeing anything with that name in models_unit/textures.
    Since i dont even have bi, i got really no idea.
    Did you get the error with the Tool?

  5. #5

    Default Re: What does this Script Error message mean?

    I lucked into finding the error, actually - for some reason it went away when I changed the relevant faction's culture back to its original setting.

    I'll check out that tool you linked to, though - looks helpful!


    Edit: Having some trouble changing unit ownership between factions, though. Here's what I'm doing:

    Step 1 - Go to EDU, where I add the faction name to the list of factions that can train that unit.

    Step 2 - Go to EDB, where I add the faction name to the list of factions that can train that unit at that particular building

    I then check my work, starting up a campaign, to see that the unit *can* be trained by the faction. It's a greyed-out peasant, but that's to be expected. So -

    Step 3 - I go to data/ui/units, where I copy & paste the TGA file from one faction (the faction that originally owned the unit) to the other (the faction I want to be able to train the unit).

    Check my work again, start up a campaign, and no more grey peasant.

    All is good until I go onto the battlefield with the new unit. On loading the battle, I get a CTD with the following error, again pointing me back to models_unit/textures:

    Failed to find texture
    bi/vi3/data/models_unit/textures/ATW_BONHEDDWYR.TGA

    Fair enough - I can't find that texture either! But the thing is, models_unit/textures is mostly full of DDS files anyway - so why would they need a TGA file in there?

    Clearly I'm missing something...

    Double-edit:

    Ah, descr_model_battle.txt! Add a texture line there and it appears I'm good!
    Last edited by CountMRVHS; July 26, 2011 at 01:34 PM.
    One of the most sophisticated Total War modders ever developed...

  6. #6
    Primo's Avatar Protector Domesticus
    Join Date
    Jul 2011
    Location
    Germany
    Posts
    4,007

    Default Re: What does this Script Error message mean?

    Quote Originally Posted by CountMRVHS View Post
    I lucked into finding the error, actually - for some reason it went away when I changed the relevant faction's culture back to its original setting.
    That means you have made a mistake converting your faction to the other culture or there are still entrys left which specife your faction as the old culture. The tool i´ve posted shuld be able to find the error.

    To the tga-files: The textures are all named example.tga.dds
    They are in reality all tga-files, thats the reason why they are game-intern reffered to as tga.

Posting Permissions

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