replace the large_laserlockicon

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

    #1

    replace the large_laserlockicon

    I want to change the ObjectTemplate.WarningHud.warningIcon Ingame\GeneralIcons\Action_Icons\large_laserlockic on.tga to ObjectTemplate.WarningHud.warningIcon Ingame\GeneralIcons\Action_Icons\large_laservarnin g.tga

    I have placed the new icon in the same map as the orginal.
    It has the same size and all. But as soon as someone trigger the laserwarning BF2 CTD.

    Soo what do I do wrong :cry: ?
  • imported_Dingo

    #2
    Re: replace the large_laserlockicon

    rebuild the atlas, check the official forums of bf2 editor and search for atlas

    Comment

    • HakunaMatata

      #3
      Re: replace the large_laserlockicon

      Thx, working on it. But now everything looks like crap
      and its still CTD:ing.

      Comment

      • wolfi

        #4
        Re: replace the large_laserlockicon

        With the patch, they updated the altas files.
        I noticed that but i didnt change the alpha channel on my atlas.
        Thats what happened:
        - http://photobucket.com/albums/c32/fr...benwoller/wtf/ :laugh:

        So be sure to have the correct alpha channel.
        And while saving in dds format, choose interpolated alpha, not explicit, no MipMaps.

        Comment

        • imported_Dingo

          #5
          Re: replace the large_laserlockicon

          god we love those patches!

          Comment

          • HakunaMatata

            #6
            Re: replace the large_laserlockicon

            This is how it ended up: http://web.telia.com/~u19119089/

            Could you explain the alphachannel a bit please?
            Im running on patch 1.03

            I am wery much a modnovice (but a dedicated one)

            Comment

            • wolfi

              #7
              Re: replace the large_laserlockicon

              Yea i guess its the alpha channel.
              But sorry, i cant help you since english isnt my first language
              Maybe you will get the information you need here:
              - http://www.ypoart.com/tutorials/Alpha-about.htm
              - http://graphicssoft.about.com/od/pho.../bllps504h.htm
              - http://www.dummies.com/WileyCDA/Dumm...e/id-1616.html

              Good luck

              Comment

              • HakunaMatata

                #8
                Re: replace the large_laserlockicon

                Thx alot.

                My english could also be alot better :-)

                Do you knew if there is a way to get and show tha angle of the threat?
                And how to get a warning when someone "paints" you with the targetdesignator (SIMRAD)?

                Comment

                • wolfi

                  #9
                  Re: replace the large_laserlockicon

                  Do you knew if there is a way to get and show tha angle of the threat?
                  um, i didnt understand this question, lol

                  Add this to a vehicle of your choice to get the warning:
                  Code:
                  rem ---BeginComp:WarningHud ---
                  ObjectTemplate.createComponent WarningHud
                  ObjectTemplate.WarningHud.firstWarningSound HUD_Laser_Track_Warning
                  ObjectTemplate.WarningHud.secondWarningSound HUD_Laser_Track_Warning
                  ObjectTemplate.WarningHud.warningIcon Ingame\GeneralIcons\Action_Icons\large_laserlockicon.tga
                  rem ---EndComp ---
                  And to make the vehicle visible for target systems such as the planes in bomb mode add this:
                  Code:
                  ObjectTemplate.addTemplate LaserTarget_vehicle

                  Comment

                  • HakunaMatata

                    #10
                    Re: replace the large_laserlockicon

                    Ill try to explain.
                    Is there a way for thetanker to knew if the guy with the "SRAW" is behind, in front or on the sides of the tank.

                    About the SIMRAB. I would like to get a warnig as son as it paints the tank. Not wait until the "bomb" is fired.

                    Comment

                    • wolfi

                      #11
                      Re: replace the large_laserlockicon

                      Hmm, never worked with the simrad.
                      And i doubt theres a way to show the tank driver who the guy with the AT missile is :/

                      I found something that looks like a missile indicator.
                      It has been removed from the game, for whatever reason..

                      Comment

                      • HakunaMatata

                        #12
                        Re: replace the large_laserlockicon

                        So has the simrad. The roumer is that it lagged the game. Its a funny tho. If you "paint" a guy, you get a targetlock on him every time he gets into a LaserTarget_vehicle :-) unless you "paint" something else.

                        Thank you for your help, its much appreciated. If you by accident solves my problems you knew were to find me.

                        Ill start working on the alphachannel stuff now. Have a nice weekend.

                        Comment

                        • wolfi

                          #13
                          Re: replace the large_laserlockicon

                          rgr, good luck

                          Comment

                          • HakunaMatata

                            #14
                            Re: replace the large_laserlockicon

                            eee, sorry to disturb you again but: http://web.telia.com/~u19119089/ it works!

                            Unfortunate that image is too small. Is i possible to make it bigger? Or is the size defined in the sourcecode?

                            Comment

                            • wolfi

                              #15
                              Re: replace the large_laserlockicon

                              I think it can be bigger, but you will have to do it with the atlas tools.
                              I dont know how this works, i wish id know it but i dont..
                              - http://developer.nvidia.com/object/t...las_tools.html
                              - http://developer.nvidia.com/object/n...ure_tools.html

                              Comment

                              Working...