Results 1 to 19 of 19

Thread: How to make arrows stay?

  1. #1
    Grimaldus's Avatar Libertus
    Join Date
    Mar 2013
    Location
    Good ol' germany
    Posts
    61

    Default How to make arrows stay?

    What do i have to edit to have permanent arrows stuck in the ground in Rage of the dark Gods? Actually i did manage them to stick in the ground with editing the fade_time and playtime of arrows_impact_ground in the descr_effect_impacts.txt but they were too transparent, you had to go very near to see them. Like if they already have started fading away but then decided otherwise sticking in the ground half-faded-away.

    So i changed the model from arrow_impact_ground.cas to arrow.cas
    That did work but now the arrows do always stick in the wrong direction in the ground. So when my archers shoot in the ground in front of my enemy it looks like they came from my enemys archers. Same thing when they shoot at me, them arrows stick in the wrong direction.

    Can someone help?

  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,131
    Blog Entries
    35

    Default Re: How to make arrows stay?

    fade_time is the way to go - if your GPU can handle it is another matter altogether.

    Wrong way round arrow - it's most likely the way the model is pointing in the CAS. Have you tried to darken the texture for the arrow_impact_ground.cas file? Simply open the CAS file with Notepad and check in the bottom for the name the texture involved.










  3. #3
    Grimaldus's Avatar Libertus
    Join Date
    Mar 2013
    Location
    Good ol' germany
    Posts
    61

    Default Re: How to make arrows stay?

    Will try that out asap. Thanks.

  4. #4
    Grimaldus's Avatar Libertus
    Join Date
    Mar 2013
    Location
    Good ol' germany
    Posts
    61

    Default Re: How to make arrows stay?

    The arrow_impact_ground.cas says texture/siege_rocket_launcher.tga
    But i can only find siege_rocket_launcher.dds and .texture.
    If i change the cas into texture/arrow.dds or texture/arrow.tga my game crashes.

    Isnt it strange that an arrow uses the texture of a siege rocket launcher?

  5. #5
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,131
    Blog Entries
    35

    Default Re: How to make arrows stay?

    The game automatically looks for DDS graphics if TGA is specified - best example are the textures for the strat models. Use the DDS file and experiment with it, do you know how to edit DDS files?










  6. #6
    Grimaldus's Avatar Libertus
    Join Date
    Mar 2013
    Location
    Good ol' germany
    Posts
    61

    Default Re: How to make arrows stay?

    I guess with gimp? Cant try it out yet.

  7. #7
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,131
    Blog Entries
    35

    Default Re: How to make arrows stay?

    GIMP DDS plugin

    When opening the DDS file with GIMP untick the 'Load mipmaps' field.
    When saving (exporting) as DDS do it in compression BC3 / DXT5 and Mipmaps set to 'Generate mipmaps'
    Last edited by Gigantus; December 03, 2013 at 10:04 PM.










  8. #8
    Grimaldus's Avatar Libertus
    Join Date
    Mar 2013
    Location
    Good ol' germany
    Posts
    61

    Default Re: How to make arrows stay?

    I can open and edit the dds file. But where can i change compression and tick "Generate mipmaps"?

  9. #9
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,131
    Blog Entries
    35

    Default Re: How to make arrows stay?

    Choose 'file\export to' - that option will bring up the choices that I mentioned.










  10. #10
    Grimaldus's Avatar Libertus
    Join Date
    Mar 2013
    Location
    Good ol' germany
    Posts
    61

    Default Re: How to make arrows stay?

    Ah. It shows up when i click on "export". Now i got it.

    I completely darkened the texture, but its still transparent. I think, there is no change at all. Maybe its something with that Alpha-Canal...
    After that, i clicked on "remove all transparency" in GIMP but again, no change at all.

  11. #11
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,131
    Blog Entries
    35

    Default Re: How to make arrows stay?

    I am just going through the steps:

    descr_effect_impacts.txt
    Code:
    effect arrow_ground_impact
    {
        type projectile
        {
            model        models_effects/arrow_projectile_ground_impact.CAS
            sort_for_speed
            clr_adjust_by_ambient_intensity
    
            fade_time    3
        }
    }
    CAS entry: textures\siege_rocket_launcher.tga

    Converted siege_rocket_launcher.texture file


    My unpacked game actually doesn't have either DDS or TGA. So maybe it's best to have a TGA, DDS and TEXTURE file of the same name. You can find a DDS<->TEXTURE converter here.

    Removing (put a semi colon in front of the line) this entry may also help - I actually have no idea what exactly it does: clr_adjust_by_ambient_intensity
    Last edited by Gigantus; December 05, 2013 at 08:57 PM.










  12. #12
    Grimaldus's Avatar Libertus
    Join Date
    Mar 2013
    Location
    Good ol' germany
    Posts
    61

    Default Re: How to make arrows stay?

    So i have to edit the .texture file? If yes, how?

  13. #13
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,131
    Blog Entries
    35

    Default Re: How to make arrows stay?

    No, not edit - merely convert your edited DDS file with the linked converter. Then place it in the same folder.










  14. #14
    Grimaldus's Avatar Libertus
    Join Date
    Mar 2013
    Location
    Good ol' germany
    Posts
    61

    Default Re: How to make arrows stay?

    I did just as you said and it worked. Thanks a lot, my battlefields looking better then ever.
    (I did not put a semi colon in front of clr_adjust_by_ambient_intensity, so that was not the problem)

    PS: Would you post this in the submod section of CoW? And, if not, do i have the permission to do so?

  15. #15
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,131
    Blog Entries
    35

    Default Re: How to make arrows stay?

    I am not in charge of that forum (admin wise but not modding wise) but I don't see a reason why you couldn't post a thread in the sub mod section. Did you determine which graphic format was the correct one?

    We do have a general M2TW forum for text based tutorials where you may wish to post your findings instead (or as well).










  16. #16
    Grimaldus's Avatar Libertus
    Join Date
    Mar 2013
    Location
    Good ol' germany
    Posts
    61

    Default Re: How to make arrows stay?

    I dont have a clue which one was correct. I think it was the .dds, because i converted the .texture (unedited) to .dds and then it worked. The .texture is still there, so im not quite sure.
    Maybe the original .texture had no transparency and thats why it worked? Dont know.

  17. #17
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,131
    Blog Entries
    35

    Default Re: How to make arrows stay?

    Simply remove two of the three files and then try one file at a time.










  18. #18
    Grimaldus's Avatar Libertus
    Join Date
    Mar 2013
    Location
    Good ol' germany
    Posts
    61

    Default Re: How to make arrows stay?

    The .texture file is the correct one.
    Again, thanks for helping me out that patiently.

  19. #19
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,131
    Blog Entries
    35

    Default Re: How to make arrows stay?

    Thanks for confirming.










Posting Permissions

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