Results 1 to 30 of 55

Thread: spearmen with secondary CTD

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Father of the EB Isle Member Aymar de Bois Mauri's Avatar
    Join Date
    Nov 2003
    Location
    Staring West at the setting sun, atop the Meneltarma
    Posts
    11,561

    Default Re: spearmen with secondary CTD

    Quote Originally Posted by JeromeGrasdyke
    Ok. I'll do some tests on the code and see if there is a work-around.
    Let's hope there is a way to solve the problem.

    Thank you kindly for your concern...
    Last edited by Aymar de Bois Mauri; 02-16-2005 at 12:04.

  2. #2
    CA CA JeromeGrasdyke's Avatar
    Join Date
    Dec 2002
    Location
    At a new top-secret (non-CA) location, surrounded by lots of steel and glass, high atriums, hordes of lovely marketing ladies, and with a new and spacious desk with plenty of room for body-moving.
    Posts
    257

    Default Re: spearmen with secondary CTD

    So, having tested it with the current code ... it works fine. What I did in detail: I added valid secondary weapon stats to the Triarii by copying and pasting the ones from the Legionary Cohort, and gave the Triarii model in descr_model_battle.txt a second skeleton of fs_swordsman.

    There were some problems running with shadows, which I assume to be a temporary thing due to current Work In Progress (so had to turn them off), and then fought a couple of custom battles, one with the Triarii and one against. Both worked without any problems, although the AI choose to fight with the inferior primary weapon.

    So, in essence it should work fine. If someone could replicate that with a vanilla 1.2 build, and if it crashes test without shadows, and post up the results that would be good. It is just remotely possible (though unlikely) that there was a crash but that it was fixed sometime between the release of 1.2 and now.


    Correction: this was bs - "note that there is an aditional param which is not explicitly zero'ed in the standard blank secondary data" - my eyes playing tricks on me ;)
    Last edited by JeromeGrasdyke; 02-16-2005 at 16:58.
    "All our words are but crumbs that fall down from the feast of the mind."
    -- from 'The Prophet' by Kahlil Gibran

  3. #3
    Member Member Legionario's Avatar
    Join Date
    Feb 2005
    Location
    Aetruria
    Posts
    91

    Default Re: spearmen with secondary CTD

    First off..thanks for your committing....

    second,can you be more specific about this?

    (note that there is an aditional param which is not explicitly zero'ed in the standard blank secondary data
    Also as I see it now,unless we turn off shadows,this is not going to work is it?
    Are these same issues for both patches?
    I mean same thing with 1.1 and 1.2,or do they behave differently?
    Thanks a lot....
    Il dado è tratto....

  4. #4
    Member Member Stuie's Avatar
    Join Date
    Aug 2001
    Location
    Upper Gwynedd, PA
    Posts
    406

    Default Re: spearmen with secondary CTD

    And I'd like to know more about this:

    Quote Originally Posted by JeromeGrasdyke
    current Work In Progress

  5. #5
    Alienated Senior Member Member Red Harvest's Avatar
    Join Date
    Jan 2003
    Location
    Searching for the ORG's lost honor
    Posts
    4,657

    Default Re: spearmen with secondary CTD

    Jerome,

    What is the parameter that should be adjusted? I tried what you suggested, but it CTD's and takes DX9 out of action in the process (requiring a reboot to run RTW again.)

    The unit starts to melee with swords, it switched to them as it charged then got in about two or three strokes, then CTD with an invalid page fault. This happened both with and without any shadows enabled. So I must be missing some part or 1.2 exe can't handle it. Here are the stats I tried. I set the final timing value = 1 for both of them instead of the default 0.73 for the primary.

    stat_pri 7, 7, no, 0, 0, melee, simple, piercing, spear, 25 ,1
    stat_pri_attr no
    stat_sec 9, 4, no, 0, 0, melee, simple, piercing, sword, 25 ,1
    stat_sec_attr no

    Added the fs_swordsman to descr_model_battle.txt of course.

    Hope this helps.
    Rome Total War, it's not a game, it's a do-it-yourself project.

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

    Default Re: spearmen with secondary CTD

    It seems that you guys have messed up when adding lines. I did a quick test with greek pikemen;
    - I first edited out the the long_pike attribute. The game ran fine and I saw pikemen using their secondary weapons automatically and when alt-clicking.
    - I then edited out the phalanx formation and again the game ran fine.

    Since so many experienced modders have problems with it (), my advise is to just copy everything related to greek pikemen and then edit out the long_pike and phalanx values. You then have an unit with spears and a sword as secondary weapon.

    Or am I making a fool out of myself and overlooking something?

    Red Harvest
    You forgot the spear attribute in primary weapon attributes.

    My greek pikemen attributes were:
    formation 1, 1, 2, 2, 8, square
    stat_health 1, 0
    stat_pri 8, 6, no, 0, 0, melee, blade, piercing, spear, 25 ,1
    stat_pri_attr spear
    stat_sec 5, 2, no, 0, 0, melee, simple, piercing, sword, 25 ,1
    stat_sec_attr no
    Last edited by Duke John; 02-17-2005 at 07:36.

  7. #7
    Alienated Senior Member Member Red Harvest's Avatar
    Join Date
    Jan 2003
    Location
    Searching for the ORG's lost honor
    Posts
    4,657

    Default Re: spearmen with secondary CTD

    I'll have to give that a try later. I didn't use it because it is supposed to be optional according to the text in the file. That will give it a large anti cav bonus so the mount effects should probably be eliminated to avoid "double dipping" I tested this sans secondary weapon a week or two ago and decided that triarii should not get the "spear" attribute and a mount effect at the same time.
    Rome Total War, it's not a game, it's a do-it-yourself project.

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

    Default Re: spearmen with secondary CTD

    If you do not give the unit the spear attribute then the engine might CTD because it cannot decide which weapon to use. They are both equal in attributes and that might the only thing it looks for.

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