Announcement

Collapse
No announcement yet.

I added a unit and...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • I added a unit and...

    now the cheat menu doesn´t work anymore!
    Anyone else having the same problem?

    The game loads, I start a new game and then when I try to use the cheat menu to see my new unit the game crashes and Windows blue screen appears.

    The unit I added is the Legion from CTP I by the way.

    ------------------
    "For each side the only acceptable outcome was the Total elimination of the other..."
    The Party seeks power entirely for its own sake. We are not interested in the good of others; we are interested solely in power. Not wealth or luxury or long life or happiness: only power, pure power.

    Join Eventis, the land of spam and unspeakable horrors!

  • #2
    Post the lines you added and to what files... the assumption I have is you didn't add all the required files and the editor realizes this when you open it. You should have changes in newsprite.txt, unit.txt, gl_str.txt, uniticon.txt and the graphic files you added.

    Rich

    Comment


    • #3
      *Here´s the unit, similar to other units

      ## UNIT 94
      UNIT_LEGION {
      Description DESCRIPTION_UNIT_SWORDSMAN
      DefaultIcon ICON_UNIT_LEGION
      DefaultSprite SPRITE_LEGION
      Category UNIT_CATEGORY_ATTACK
      Attack 15
      Defense 15
      ZBRangeAttack 0
      Firepower 1
      Armor 1
      MaxHP 10
      ShieldCost 320
      PowerPoints 100
      ShieldHunger 3
      FoodHunger 0
      MaxMovePoints 100
      VisionRange 1
      EnableAdvance ADVANCE_IRON_WORKING
      ObsoleteAdvance ADVANCE_GUNPOWDER
      ActiveDefenseRange 0
      LossMoveToDmgNone
      MaxFuel 0
      CantBuild
      CanEntrench
      CanExpel
      CanPillage
      ExertsMartialLaw
      DeathEffectsHappy
      SoundSelect1 SOUND_SELECT1_SWORDSMAN
      SoundSelect2 SOUND_SELECT2_SWORDSMAN
      SoundMove SOUND_MOVE_SWORDSMAN
      SOUND_ACKNOWLEDGE_SWORDSMAN
      SoundCantMove SOUND_CANTMOVE_SWORDSMAN
      SoundAttack SOUND_ATTACK_SWORDSMAN
      SoundWork SOUND_WORK_SWORDSMAN
      SoundVictory SOUND_VICTORY_SWORDSMAN
      SoundDeath SOUND_DEATH_SWORDSMAN


      CanAttack: Land
      CanAttack: Mountain
      CanSee: Standard
      MovementType: Land
      MovementType: Mountain
      Size: Small
      VisionClass: Standard

      CanReform {
      Sound SOUND_ID_REFORM_CITY
      Effect SPECEFFECT_REFORMCITY
      }
      }

      *The newsprite:
      SPRITE_LEGION 94

      *Gl_Str: (I can´t be wrong here )
      UNIT_LEGION "Legion"

      *The uniticon:
      ICON_UNIT_LEGION { FirstFrame "UPUP097L.TGA" Movie "NULL" Gameplay "UNIT_LEGION_GAMEPLAY" Historical "UNIT_LEGION_HISTORICAL" Prereq "UNIT_LEGION_PREREQ" Vari "UNIT_LEGION_STATISTICS" Icon "UPUP097a.TGA" LargeIcon "UPUP097L.TGA" SmallIcon "UPUP097b.TGA" StatText "UNIT_LEGION_SUMMARY" }


      *And last but not least the sounds, they were copied from other units:
      SOUND_ACKNOWLEDGE_SWORDSMAN "GUV240.WAV"
      SOUND_ATTACK_SWORDSMAN "Guax11.wav"
      SOUND_CANTMOVE_SWORDSMAN "GUV243.WAV"
      SOUND_DEATH_SWORDSMAN "GUVV78.wav"
      SOUND_MOVE_SWORDSMAN "Gumx11.wav"
      SOUND_SELECT1_SWORDSMAN "GUV241.WAV"
      SOUND_SELECT2_SWORDSMAN "GUV242.WAV"
      SOUND_SPECIAL_SWORDSMAN "GUAX15.WAV"
      SOUND_VICTORY_SWORDSMAN "NULL.WAV"
      SOUND_WORK_SWORDSMAN "NULL.WAV"

      WOW my first giga post!
      [This message has been edited by Carlos113 (edited February 02, 2001).]
      [This message has been edited by Carlos113 (edited February 02, 2001).]
      The Party seeks power entirely for its own sake. We are not interested in the good of others; we are interested solely in power. Not wealth or luxury or long life or happiness: only power, pure power.

      Join Eventis, the land of spam and unspeakable horrors!

      Comment


      • #4
        I don't see anything wrong there... as long as you have the corresponding tgas and such it should work. hmmm... I'll try to do the same thing and get back to you tomorrow sometime.

        Rich

        Comment


        • #5
          This is the tga I use (I made it, opinions?):







          ------------------
          "For each side the only acceptable outcome was the Total elimination of the other..."
          [This message has been edited by Carlos113 (edited February 03, 2001).]
          The Party seeks power entirely for its own sake. We are not interested in the good of others; we are interested solely in power. Not wealth or luxury or long life or happiness: only power, pure power.

          Join Eventis, the land of spam and unspeakable horrors!

          Comment


          • #6
            ummm? where's the pic found the mistake

            Comment


            • #7
              What?
              You can´t see the picture? it loads fine for me (when I said I wanted opinions, was about the shadow of the unit, the unit itself was copied from CTP I, hehe)

              and forgot to say THANKS for list.. err reading me

              visit my webpage it´s almost ready!

              ------------------
              "For each side the only acceptable outcome was the Total elimination of the other..."
              [This message has been edited by Carlos113 (edited February 03, 2001).]
              The Party seeks power entirely for its own sake. We are not interested in the good of others; we are interested solely in power. Not wealth or luxury or long life or happiness: only power, pure power.

              Join Eventis, the land of spam and unspeakable horrors!

              Comment


              • #8
                err... you said that you found the mistake, so what´s the problem?

                ------------------
                "For each side the only acceptable outcome was the Total elimination of the other..."
                The Party seeks power entirely for its own sake. We are not interested in the good of others; we are interested solely in power. Not wealth or luxury or long life or happiness: only power, pure power.

                Join Eventis, the land of spam and unspeakable horrors!

                Comment


                • #9
                  I found the problem, the TGAs were the cause!
                  Thanks, I will check my mod more before asking in the future... i´m so ashamed

                  ------------------
                  "For each side the only acceptable outcome was the Total elimination of the other..."
                  The Party seeks power entirely for its own sake. We are not interested in the good of others; we are interested solely in power. Not wealth or luxury or long life or happiness: only power, pure power.

                  Join Eventis, the land of spam and unspeakable horrors!

                  Comment

                  Working...
                  X