login

Author Topic: Painting Rock Foliage.  (Read 1370 times)

Epifire

  • Master Modder
  • Frequent Poster
  • ***
  • Posts: 423
  • Didn't know I was a Mandalorian did ya :P
  • Awards Admin for SWBFgamers.com ICW Tournament
    • View Profile
    • Awards
  • Steam ID:
Painting Rock Foliage.
« on: April 15, 2015, 11:06:06 AM »
Welp as you can guess by the title I'm trying to use the foliage system like how Pandemic did with their rocks on Rhen Var. Just a simple set I made here that were all separated to use by the population placement system.
Spoiler (click to show/hide)

So far I'm just getting nothing in ZE which is sorta strange, cause there's no typos in the .prp file I made and I've cross referenced it with several other stock .prp files. Do the referenced meshes need to be in the regular MSH folder or somewhere else?
photobucket limit image removed

Sereja

  • Master Modder
  • This Man Has No Life
  • ***
  • Posts: 1257
  • Waiting for medal.
  • Awards Award for extensive modding contributions and/or donations to TWD Battlefront Recognizes an exceptional artist on this site. Halloween Modding Contest 2012 To recognize Modders that make a most excellent contribution within the Month Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • Awards
Re: Painting Rock Foliage.
« Reply #1 on: April 15, 2015, 12:00:20 PM »
Nah, if the game, didn't find a grass msh - it crashed for sure. Perhaps you add some wrong lines in .prp. Usualy, the layer should looks like this:
Spoiler (click to show/hide)
Or perhaps you forget to add grass tills with ZE brush.
According your pic - the half of the rocks, most likely will be underground.
Beauty is, the way to perfection.

Hail to the Ukraine!  :mf:

Epifire

  • Master Modder
  • Frequent Poster
  • ***
  • Posts: 423
  • Didn't know I was a Mandalorian did ya :P
  • Awards Admin for SWBFgamers.com ICW Tournament
    • View Profile
    • Awards
  • Steam ID:
Re: Painting Rock Foliage.
« Reply #2 on: April 15, 2015, 12:36:37 PM »
The screenshot was just the rocks in XSI just to show you what I'm wanting to put in-game. They're centered for export, individually (not shown in that shot). This is what my .PRP file looks like...

I did use the different layer brushes, but nothing came up. I had thought maybe they were underground but going beneath the terrain didn't show anything.

Code: [Select]
Layer(0)
{
    SpreadFactor(0.3);
    Mesh()
    {
        File("Env_Pointy_Rock_1.msh", 600);
        Frequency(25);
        Scale(1);
        Stiffness(0.0);
        CollisionSound("");
        ColorVariation(0.2);
    }

    Mesh()
    {
        File("Env_Pointy_Rock_2.msh", 600);
        Frequency(25);
        Scale(1);
        Stiffness(0.0);
        CollisionSound("");
        ColorVariation(0.2);
    }

    Mesh()
    {
        File("Env_Pointy_Rock_3.msh", 600);
        Frequency(25);
        Scale(1);
        Stiffness(0.0);
        CollisionSound("");
        ColorVariation(0.2);
    }

    Mesh()
    {
        File("Env_Pointy_Rock_4.msh", 600);
        Frequency(25);
        Scale(1);
        Stiffness(0.0);
        CollisionSound("");
        ColorVariation(0.2);
    }
}

Layer(1)
{
    SpreadFactor(0.1);
    Mesh()
    {
        File("Env_Tiny_Rock_1.msh", 600);
        Frequency(25);
        Scale(1);
        Stiffness(0.0);
        CollisionSound("");
        ColorVariation(0.2);
    }

    Mesh()
    {
        File("Env_Tiny_Rock_2.msh", 600);
        Frequency(25);
        Scale(1);
        Stiffness(0.0);
        CollisionSound("");
        ColorVariation(0.2);
    }

    Mesh()
    {
        File("Env_Tiny_Rock_3.msh", 600);
        Frequency(25);
        Scale(1);
        Stiffness(0.0);
        CollisionSound("");
        ColorVariation(0.2);
    }

    Mesh()
    {
        File("Env_Tiny_Rock_4.msh", 600);
        Frequency(25);
        Scale(1);
        Stiffness(0.0);
        CollisionSound("");
        ColorVariation(0.2);
    }
}

Layer(2)
{
    SpreadFactor(0.3);
    Mesh()
    {
        File("Env_Slab_Rock_1.msh", 600);
        Frequency(25);
        Scale(1);
        Stiffness(0.0);
        CollisionSound("");
        ColorVariation(0.2);
    }

    Mesh()
    {
        File("Env_Slab_Rock_2.msh", 600);
        Frequency(25);
        Scale(1);
        Stiffness(0.0);
        CollisionSound("");
        ColorVariation(0.2);
    }

    Mesh()
    {
        File("Env_Slab_Rock_3.msh", 600);
        Frequency(25);
        Scale(1);
        Stiffness(0.0);
        CollisionSound("");
        ColorVariation(0.2);
    }
}
« Last Edit: April 15, 2015, 12:42:03 PM by Epifire »
photobucket limit image removed

Snake

  • So little free time, so much to mod..
  • Moderators
  • Internet Addict
  • ****
  • Posts: 2541
  • "Play to win, not to not lose"
  • Awards Special Award for players of the EA Reboot of SWBF Recognizes someone who most generously donated funds to the site or the site Special Award for those that play the original SWBF To recognize Modders that make a most excellent contribution within the Month Intergalactic Clan War 1 Participant Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • =AaTc=
    • Awards
  • PSN: Octa-king
  • Tunngle ID: aatcsnake
Re: Painting Rock Foliage.
« Reply #3 on: April 15, 2015, 01:05:50 PM »
Try inserting a stock mesh for some prp rock and see if it shows up correctly.
=AaTc= Forever

SALLY....

-Retired Modder

Epifire

  • Master Modder
  • Frequent Poster
  • ***
  • Posts: 423
  • Didn't know I was a Mandalorian did ya :P
  • Awards Admin for SWBFgamers.com ICW Tournament
    • View Profile
    • Awards
  • Steam ID:
Re: Painting Rock Foliage.
« Reply #4 on: April 15, 2015, 02:21:05 PM »
Yeah I used both the assets and the actual stock .prp file for the test (renaming the .prp to the mod id of course) but still nothing. I think my builder setup is somehow bugged.

I'm inserting the assets, painting the terrain (any and all layer types) but just getting nothing.
photobucket limit image removed

Snake

  • So little free time, so much to mod..
  • Moderators
  • Internet Addict
  • ****
  • Posts: 2541
  • "Play to win, not to not lose"
  • Awards Special Award for players of the EA Reboot of SWBF Recognizes someone who most generously donated funds to the site or the site Special Award for those that play the original SWBF To recognize Modders that make a most excellent contribution within the Month Intergalactic Clan War 1 Participant Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • =AaTc=
    • Awards
  • PSN: Octa-king
  • Tunngle ID: aatcsnake
Re: Painting Rock Foliage.
« Reply #5 on: April 15, 2015, 05:05:59 PM »
Did you add it to the map req? It might already be in the map req but marked out, I can't remember. If it is, then remove the dashes and it should work.
=AaTc= Forever

SALLY....

-Retired Modder

Epifire

  • Master Modder
  • Frequent Poster
  • ***
  • Posts: 423
  • Didn't know I was a Mandalorian did ya :P
  • Awards Admin for SWBFgamers.com ICW Tournament
    • View Profile
    • Awards
  • Steam ID:
Re: Painting Rock Foliage.
« Reply #6 on: April 15, 2015, 09:23:37 PM »
Did you add it to the map req? It might already be in the map req but marked out, I can't remember. If it is, then remove the dashes and it should work.

Erm... Actually I really don't know jack diddly about the req file's purpose so I've never messed with it. Given my inadequate knowledge of this part, I'll repost it and see what to make of it.

Code: [Select]
ucft
{
    REQN
    {
        "config"
    }

    REQN
    {
        "class"
    }

    REQN
    {
        "texture"
        "Kej1_map"
    }


    REQN
    {
        "texture"
        "platform=pc"

    }

    REQN
    {
        "path"
        "Kej1"
    }
    REQN
    {
        "congraph"
        "Kej1"
    }
    REQN
    {
        "envfx"
      --  "Kej1"
    }
    REQN
    {
        "world"
        "Kej1"
    }
    REQN
    {
        "prop"
     --   "Kej1"
    }
    REQN
    {
        "boundary"
        "Kej1"
    }
    REQN
    {
        "config"
    --    "flyerspray"
    --    "walkerstomp"
    --    "hailfire_wake"
    --    "dustwake"
    }

}


If the problem is my req file, that'd be a relief.
photobucket limit image removed

Sereja

  • Master Modder
  • This Man Has No Life
  • ***
  • Posts: 1257
  • Waiting for medal.
  • Awards Award for extensive modding contributions and/or donations to TWD Battlefront Recognizes an exceptional artist on this site. Halloween Modding Contest 2012 To recognize Modders that make a most excellent contribution within the Month Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • Awards
Re: Painting Rock Foliage.
« Reply #7 on: April 16, 2015, 12:16:53 AM »
This line:
Code: [Select]
        "prop"
     --   "Kej1"
   
Means, your map can't accept props.
This should be the right way:
Code: [Select]
       "prop"
       "Kej1"
Beauty is, the way to perfection.

Hail to the Ukraine!  :mf:

Snake

  • So little free time, so much to mod..
  • Moderators
  • Internet Addict
  • ****
  • Posts: 2541
  • "Play to win, not to not lose"
  • Awards Special Award for players of the EA Reboot of SWBF Recognizes someone who most generously donated funds to the site or the site Special Award for those that play the original SWBF To recognize Modders that make a most excellent contribution within the Month Intergalactic Clan War 1 Participant Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • =AaTc=
    • Awards
  • PSN: Octa-king
  • Tunngle ID: aatcsnake
Re: Painting Rock Foliage.
« Reply #8 on: April 16, 2015, 07:12:17 AM »
Yep, just remove the dashes from the "prop" area and it should work.
=AaTc= Forever

SALLY....

-Retired Modder

Epifire

  • Master Modder
  • Frequent Poster
  • ***
  • Posts: 423
  • Didn't know I was a Mandalorian did ya :P
  • Awards Admin for SWBFgamers.com ICW Tournament
    • View Profile
    • Awards
  • Steam ID:
Re: Painting Rock Foliage.
« Reply #9 on: April 16, 2015, 02:16:28 PM »
It works!
Spoiler (click to show/hide)

It'll require some layer tweaking but at least it's showing up in-game (which is what really matters). Now there is one last thing that's still not quite working right which is the editor. I can paint the layers but it actually doesn't show up, it just works when I compile it. Maybe an option that controls that in the config file?
photobucket limit image removed

Snake

  • So little free time, so much to mod..
  • Moderators
  • Internet Addict
  • ****
  • Posts: 2541
  • "Play to win, not to not lose"
  • Awards Special Award for players of the EA Reboot of SWBF Recognizes someone who most generously donated funds to the site or the site Special Award for those that play the original SWBF To recognize Modders that make a most excellent contribution within the Month Intergalactic Clan War 1 Participant Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • =AaTc=
    • Awards
  • PSN: Octa-king
  • Tunngle ID: aatcsnake
Re: Painting Rock Foliage.
« Reply #10 on: April 16, 2015, 07:47:11 PM »
That's strange, I'm not sure about that.. Also, be careful about painting on slopes, often you'll get floating props.
=AaTc= Forever

SALLY....

-Retired Modder

Epifire

  • Master Modder
  • Frequent Poster
  • ***
  • Posts: 423
  • Didn't know I was a Mandalorian did ya :P
  • Awards Admin for SWBFgamers.com ICW Tournament
    • View Profile
    • Awards
  • Steam ID:
Re: Painting Rock Foliage.
« Reply #11 on: April 16, 2015, 07:51:18 PM »
That's strange, I'm not sure about that.. Also, be careful about painting on slopes, often you'll get floating props.

So far the slopes have actually worked pretty good. I exported my rock props to go through the ground a ways to help compensate for that. Just messing with figures now. As long as I know what's in what layer I'm good.

Mainly using them to skirt other larger rock props without having to make a whole other asset. Though to be fair I see myself still needing to make a lot more rocks yet. :wacko:

Also one last thing, is there a way to enable collision or shadows? Figured it'd be a long shot but I really like my shadows to work when I can.
photobucket limit image removed

Sereja

  • Master Modder
  • This Man Has No Life
  • ***
  • Posts: 1257
  • Waiting for medal.
  • Awards Award for extensive modding contributions and/or donations to TWD Battlefront Recognizes an exceptional artist on this site. Halloween Modding Contest 2012 To recognize Modders that make a most excellent contribution within the Month Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • Awards
Re: Painting Rock Foliage.
« Reply #12 on: April 17, 2015, 12:39:13 AM »
Perhaps, collision msh, should be inside the model. This line in .prp confirm this:
Code: [Select]
UseCollision();Shadow may work, if you put -highresshadow line in msh.option.
Beauty is, the way to perfection.

Hail to the Ukraine!  :mf: