Results 1 to 7 of 7

Thread: CTD in battles problem

  1. #1
    Boondock Saint Senior Member The Blind King of Bohemia's Avatar
    Join Date
    Feb 2003
    Location
    England
    Posts
    4,294

    Default

    I've added 2 new units: Scottish Pikemen and African Long Spearmen. I made a new custom bif file with topless black guys (very cool) and decided to elongate the spear weapons in the topless loon folder and this new one (which also contains African Warriors, basically black slav warriors) and add it as a fourth weapon in the 'Weapons' file. I start the battles with them and everything's fine for about 2 minutes until it crashes to desktop. This tends to happen when the opposing army is about halfway between us and their starting position. Can anyone tell me why this happens and hopefully tell me how to rectify it? Thanks.

  2. #2
    Senior Member Senior Member Duke John's Avatar
    Join Date
    May 2003
    Location
    Netherlands
    Posts
    2,917

    Default

    Did you have the problem when the enemy has Negro Pikemen or when your army has? It might be that from a distance everything seems fine but when getting closer other more detailed graphics are displayed. Do you have both the hi-res and low-res bif?
    It's not a problem with shields or coordinates since these are checked when pressing the buttons.

  3. #3
    Boondock Saint Senior Member The Blind King of Bohemia's Avatar
    Join Date
    Feb 2003
    Location
    England
    Posts
    4,294

    Default

    I haven't tried them as opposing units so it normally happens when I play. Some battles though with lots of units have worked fine. I have both bifs also.

  4. #4
    Senior Member Senior Member Lord Krazy's Avatar
    Join Date
    Jul 2002
    Location
    Elephant Free State
    Posts
    1,638

    Default

    I'v been thinking about this and I still don't know
    what is wrong .
    I tought the same as Duke John
    untill you said it worked with more units.
    I could be wrong but I tought that would lead
    to the low res bif being used more.

    What I do know is :

    These are generalizations but pretty constant
    On the basis you are talking about custom battles mostly.


    If the game boots with a prod11 present
    (it will boot without one )
    and a matching deadpage coords.txt
    (the deadpage coords.txt will give an error in VI
    only if you have double entry)
    That should mean the said files are in order.
    Regarding format and valid entries for the code.

    If you can get to the review panel to pick your units
    for the battle and go on to start the battle and let it run
    at all, means that the units :

    are tagged to the right texture\men bif in the prod11
    or a valid one anyhow.
    (could cause crash if not valid but before)

    The review panel bif is in order (will crash before if not)
    The names file is in order
    ( as you would have noticed before now )


    If the annimations are not glitching then
    the actionspage is in order and linked to the right textures\men bif also.
    ( this would not cause a crash if the bif is valid anyway)


    The lbm icons for battles are not needed
    and will not cause a crash.
    (I do notice if one is not present it slows things down ,
    but that could just be me .)

    The info pics are only for campaigns and not your problem

    So if you understand that then you know some of the things
    it's not.

    Seen as it works sometimes then you have gone beyond my knowledge of how a new unit can crash the game .
    If I get the battle to start with a new unit selected
    that's job done with regard to adding the unit for battles
    the rest is just making sure the right actionpage
    has been linked for the coordinates and angles.

    Remove the new units from the prod11 and deadpage coords
    and see if it works ok then.

    If not it's another problem


    btw after all that the first question should have been which version are you modding.

    LK




  5. #5
    Boondock Saint Senior Member The Blind King of Bohemia's Avatar
    Join Date
    Feb 2003
    Location
    England
    Posts
    4,294

    Default

    All of them are in order. I've added units before and experience no such problems. I feel it could be down to the elongated weapons. I'm using the Viking Invasion BTW.

  6. #6
    Senior Member Senior Member Lord Krazy's Avatar
    Join Date
    Jul 2002
    Location
    Elephant Free State
    Posts
    1,638

    Default

    Quote Originally Posted by [b
    Quote[/b] ]I feel it could be down to the elongated weapons
    I don't think so . It's not possible for the
    items coordinates to do such a thing as far as I know.
    weapons.txt provides the coords and scale

    The items texts define how they are displayed in relation
    to the unit sprite .
    So if it works at all it should work all the time.

    One easy way to find out if it's the items texts
    that are causing the problem , is to remove them ,
    leave the rest the same and see if it stops crashing.

    Does it happen at all if you have a battle without
    the units in question?

    LK

  7. #7
    Member Member Double_down's Avatar
    Join Date
    Jan 2003
    Location
    lone star state
    Posts
    17

    Default

    i had the samething happen to me when i first started creating units, it turned out to be a very simple mistake. i put my armour value to 0 which caused it to ctd anytime the unit got within a certain distence from the enemy. the lowest possible armour value is 1, i didnt know this and it took me forever to figure it out. if u cloned an exsisting unit to create the actionpage, weapons, deadpage, etc.. for ur new unit, u can copy & paste the original unit's prodfile line (that uses the same bif, ofcourse) onto ur new units prodfile line then see if it works.
    C:\My Documents\NEW-1.gif

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO