Foliage Creator - Can it get any easier?

Поделиться
HTML-код
  • Опубликовано: 8 янв 2025

Комментарии • 67

  • @farmerboyz2020
    @farmerboyz2020 Год назад

    these script videos have been a total game changer thank you for taking the time and explaining in detail how to set them up and use them it has definitely saved me lots of time.

    • @bauerbrown
      @bauerbrown  Год назад +1

      Glad you like them! Saving time is ultimately the name of the game, especially when you get into bigger maps. There are more scripts than just those, I'll get videos done on them sooner or later.

  • @stewarty114
    @stewarty114 Год назад

    This is great, had the chance to check it out at weekend and I can say it works perfectly following your instructions and the foliage looks so much better than I could ever possibly make it... now to do full map in it. Great Vid Bauer.

    • @bauerbrown
      @bauerbrown  Год назад

      I get a lot of use out of this script myself!

  • @CajunWolffe
    @CajunWolffe Год назад

    Good video. I think I have my foliage figured out after this one.

  • @FlexibleGames
    @FlexibleGames Год назад

    OH, that's how you get the second drop down for forest!

  • @knarffen64
    @knarffen64 7 месяцев назад

    gotta love all your Videos. I have a problem on a map, where I paint forest in the foilage layer, but when it paint it, its slightly off, from where I paintede it, like 10 meters to the right and I also have stripes in the foilage. Do you know what can cause this problem?

    • @bauerbrown
      @bauerbrown  7 месяцев назад

      So it's not putting the foliage where you paint? The infoLayer resolution not being the right size would cause the foliage to placed in the wrong area, but it's usually off much more than 10 meters. Stripes huh? I've had a similar issue, but only with the Field dimensions infoLayer, and that shouldn't affect your foliage script. Do you have field dimensions turned on in the script by any chance? If so, try turning it off by making the file path just empty quotes like this -> local pathFruitDensityGrle = " ". I'm not thinking that's the issue, but it could cause problems and it's best to just eliminate that chance.

    • @knarffen64
      @knarffen64 7 месяцев назад

      @@bauerbrown yeah. I do not have the fielddimension enabled, cause I dont use it, I use splines paint fields that way. I'm on a 2x map so mapDEM is 2049 and my infolayerfarmland is 2048. I have tried the infolayer_fruitDensity as both 2048 and 4096 it keeps painting both terraindetail and foliage like 10 years to the right and it leaves stripes. I have tried where the resolutions was off, on a prior map, and when I set the resolution correct, it was bang on. So yeah it kinda Wierd, same with the stripes it leaves in the terrain paint texture, ill see if I can make a link to some Video - thx for the reply

    • @knarffen64
      @knarffen64 7 месяцев назад

      @@bauerbrown drive.google.com/drive/folders/1jcQ1956ZRAr90cDSpQk9wwd2CI5GXD8g?usp=sharing

  • @George-qm3wu
    @George-qm3wu Год назад

    im having some issues when i paint it paints in big blocks and i cant figure out how to make the blocks smaller

    • @bauerbrown
      @bauerbrown  Год назад

      When you paint everything, or just the foliage?

    • @George-qm3wu
      @George-qm3wu Год назад

      both the foliage and the fields@@bauerbrown

    • @bauerbrown
      @bauerbrown  Год назад

      @@George-qm3wu Sounds like your infoLayer resolution needs to be increased - I cover that in one of the videos (field dimensions or foliage, I can't remember which). If your infoLayer is 2048, make it 4096.

  • @JohnnyRayThompson
    @JohnnyRayThompson 7 месяцев назад

    Kind of wish there was a way to make the forest foilage thicker, tried making that number bigger but it seams to stop at 1000000. So I run script about 5 times to get the look I want.

    • @bauerbrown
      @bauerbrown  7 месяцев назад +1

      That seems to be about the max - I ran across the same issue myself once or twice, but it's never really much of a problem. In the end, it's still way better than doing it by hand! :)

    • @JohnnyRayThompson
      @JohnnyRayThompson 7 месяцев назад

      @@bauerbrown that is true

  • @olatheschmidt-wd2mf
    @olatheschmidt-wd2mf Год назад

    Please help.
    I keep getting
    Error: DensityMap internal error
    What does that mean?
    And also foliage created!
    But I have all the weight files right and and when I change the fruit density dimensions it doesn’t seem to change anything. Im missing something somewhere or not understanding something along the way.

    • @bauerbrown
      @bauerbrown  Год назад

      Double check the path to fruitdensity.grle at the top of the script.

    • @bauerbrown
      @bauerbrown  Год назад

      Double check the path to fruitdensity.grle at the top of the script, and double check you are using the correct channel when running the script.

  • @j.o.t.u.n.n
    @j.o.t.u.n.n Год назад

    Is it possible to make your own ground textures? I've tried it just paints black but I could put my normal maps on existing textures. Can you also recommend a fourm

    • @bauerbrown
      @bauerbrown  Год назад

      Yes, of course, it's definitely possible. Textures for FS22 have much more specific criteria than they did for FS19. See this post to learn what is required. forum.giants-software.com/viewtopic.php?t=186771# -- you can find the forum at that same website or at gdn.giants-software.com

    • @j.o.t.u.n.n
      @j.o.t.u.n.n Год назад

      ​@@bauerbrown giants editor has made me appreciate unity so much more thanks for your help

  • @Farm_Sim_Brisco
    @Farm_Sim_Brisco Год назад

    hey Bauer, love these scripting tools and great video you've made explaining them :).. on my first attempt running the script i didn't get any foliage appear on the ground, i noticed you have a foliage creator and an FS22 foliage creator in your menu, was wondering if i had the wrong version?

    • @bauerbrown
      @bauerbrown  Год назад +1

      There are definitely different versions, however they both work in GE 9+. Keep the console open when running and watch for messages. If you get "foliage created" the resolution of the fruitdensity.grle needs to be adjusted.

    • @Farm_Sim_Brisco
      @Farm_Sim_Brisco Год назад

      @@bauerbrown i managed to place down foliage once today but it didn't work a second time lol

    • @bauerbrown
      @bauerbrown  Год назад

      @@Farm_Sim_Brisco Did you notice what message the console is displaying?

    • @Farm_Sim_Brisco
      @Farm_Sim_Brisco Год назад

      i just tried it and got an error message.. Error: C:/Users/mrbri/AppData/Local/GIANTS Editor 64bit 9.0.3/scripts/FoliageCreator.lua:78: '}' expected near '='

    • @bauerbrown
      @bauerbrown  Год назад

      @@Farm_Sim_BriscoPart of the script is missing. Be very careful when you change or add attributes. Did you try to add an additional section? It's missing a curly bracket, you can try to add it back in if you think you can figure it out, if not, just reinstall.

  • @landonmauldin42
    @landonmauldin42 Год назад

    question I’m new to the pc side of fs 22 and learning how giants editor works and scripts work. I found a map I really like. It’s become my favorite map actually but it needs some changes one being. The entire grass texture is meadow grass. I want to change that to normal grass and leave the plantable grass meadow grass cause I’m trying to use lazy e moddings meadow texture that’s thicker and taller. Is this something that would be very hard to do ?

    • @bauerbrown
      @bauerbrown  Год назад

      At one point, yes, it would have been extremely time consuming. But now that GE has implemented "limit to texture" and "limit to foliage state," you can swap out the entire map with literally a few mouse clicks. Just pick the foliage state you want to limit to (meadow grass) and then choose what you want to replace it with and start painting. Easy Peezy :)

    • @landonmauldin42
      @landonmauldin42 Год назад

      @@bauerbrown do you have a video on how that part works so I have something I can reference to while I’m doing it.

    • @bauerbrown
      @bauerbrown  Год назад

      @@landonmauldin42 Not specifically on that part alone, but if you go way back to one of the very beginning videos about how the paint brush works, there is likely to be mention of it in there. Limit to texture is in the video - limit to foliage and foliage state is a recent function of GE and has only been mentioned in videos. It's not difficult at all. Literally, just pick the foliage and foliage state from a drop down list and then start painting.

    • @landonmauldin42
      @landonmauldin42 Год назад

      @@bauerbrown yea I found it. Thanks alot. Your videos have taught me so much. Until watching them I was completely lost. I have been working on a map that the maker never updated after he built it when fs 22 came out. It’s one of my favorite maps. It’s almost had a complete make over from new crops to texture and updated light and texture. You wouldn’t happen to know how to add a rebind to a key I want to move the alt to a button on my gaming mouse.

    • @bauerbrown
      @bauerbrown  Год назад

      @@landonmauldin42 What mouse do you have? You should be able to use the software for that mouse to rebind any of the buttons. Not only that, but you should be able to make profiles so the buttons are mapped one way for GE, another for the game, and yet another for something else. If you are not aware of having software for your mouse, a quick Google search should get you all sorted out.

  • @kevydd-h2p
    @kevydd-h2p 7 месяцев назад

    Hey bauerbrown, im just starting a new map, a 4km elm creek map. All error and warning free in game and test runner other than the one error we all have.
    Trying out this foliage creator today and i have a error in the console.
    Density Map Modifier: num channels is beyond range for 10 channel Density Map.
    Density Map Modifier: first channel =0, numChannels = 10, channel offset =5
    And also have a beyond range for 3 channel
    And last line
    Density Map Modifier firstChannel =0, numChannels =8, channel offset =0
    ERROR: Density Map internal error.
    Foliage created.
    I have a feeling the answer could be starring right at me lol but im just not seeing it lol.
    Any help would be greatly appreciated

    • @bauerbrown
      @bauerbrown  7 месяцев назад

      Jeez, sounds like you have a good one going on there! I'm honestly not sure about those errors, but I've had something similar with my own. It started after I heavily modified the code to accept foliages that were not part of the original script. My version works, even though it throws a few errors. Is yours at least working for you, and have you modified the code in any way?

    • @kevydd-h2p
      @kevydd-h2p 7 месяцев назад

      @bauerbrown Umm no, haven't altered anything in the script other than the file path. Nothing is showing up on map when i execute the script. Im not using the field dimensions at the moment so ive blanked that out for now so that is currently
      PathFieldDimensions = " ";
      I copied file path from the grle in the data folder and the only thing there that looks a bit odd is
      My Games has a space in there, i tryed MyGames without a space just in case and didn't help . I also tryed changing the the grle to 8192 x 8192 just incase it may have been that, and no luck their either. Ive been reading through the ls-modding forum and apparently thats normal to have those show up in the consol, after running the script however
      ERROR internal error certainly shouldn't be normal lol.

    • @bauerbrown
      @bauerbrown  7 месяцев назад

      @@kevydd-h2p I was pretty sure that I was error-free with that script at some point, but I could be wrong. Maybe I had errors the entire time and just never noticed before, LOL. I do know for sure that it won't like having spaces anywhere in the file path, so I would address that for sure. It's possible the script became corrupted somehow. You can always try downloading a fresh version of the script and giving that a shot - at least you can rule out that being the issue or not. I just tested mine and it does give me very similar errors, including the internal error. I'd say there is a good chance that it's working, but your infoLayer resolution is not right. The foliage is likely showing up, just not in the area that you expect it to. I always make sure I test it on a blank map before I get started on my project, or you can test it on a blank map that is the same size. This way it will be easier to spot if foliage is showing up in the wrong areas. I've already tested it and gave it a really right texture, like concrete, and that made it easier to spot.

    • @kevydd-h2p
      @kevydd-h2p 7 месяцев назад

      @bauerbrown It's working now, have no idea how or why lol, but its laying down textures and foliage exactly where i want it too.
      I did try taking that space out of the file path name, and i got a different error saying it couldnt load the grle file. So i put that space back in and seems to running fine. 🤷‍♂️ lol
      I still need to go and find the scripts from farmerboys modding,
      I thought i had them but apparently i dont. So ill get my self familiar with the foliage creator then ill learn the tree one which is what sparked the interest in this in the first place. I really liked the natural forestry look you achieved in your tree video. My previous map is ok but kinda blah with tree placement.
      Any way thanks very much for your help and time, much appreciated 👍👍

    • @bauerbrown
      @bauerbrown  7 месяцев назад

      @@kevydd-h2p The tree creator can't be beat - I'll never manually plant another forest again! LOL. I have a few variations of the script that I've been working on, I'll have to finish them up and make them available at some point.

  • @PNWCollin
    @PNWCollin Год назад

    ive tried for hours and it doesnt work for me, i have all my file paths correct and have removed all the original foliage on the map, i have the spots lit up with the correct one(Forest) and it doesnt even load it just does nothing

    • @PNWCollin
      @PNWCollin Год назад

      and everytime i open GE in notepad++ my top line i added is gone again

    • @bauerbrown
      @bauerbrown  Год назад

      The line you added in GE just gets relocated, if you search for it (CTRL+F) I'm sure you'll find it. You can leave the original foliage, that wouldn't make a difference. Make sure the console is open when you run the script just in case it throws an error - you'll be able to see it. You will also be able to see in the console if you get any other messages like "Foliage Created." Set up your "forest" section in the script so it paints the terrain as well as plants foliage, set the texture for something bright, like concrete. Run the script and check the entire map for that particular concrete pattern. If you see the concrete in a different area, your GRLE resolution is not correct and needs to be adjusted. What size map are you making, bigger than 2km?

    • @PNWCollin
      @PNWCollin Год назад

      ​@@bauerbrown
      /GIANTS Editor 64bit 9.0.3/scripts/Foliage.lua:64: unexpected symbol near '='

    • @PNWCollin
      @PNWCollin Год назад

      @@bauerbrown you know, i just added the script the other way and it worked, your tutorial was very great and i am glad you did one

    • @bauerbrown
      @bauerbrown  Год назад

      Awesome! I'm glad you got it working! It always pays to keep the console open if you're experiencing an issue, it will usually point you in the right direction.

  • @lumprana8994
    @lumprana8994 Год назад +2

    i wish You are talking about a very wonderful topic. But you speak a lot. Please shorten the words and stop laughing. Thank you

    • @bauerbrown
      @bauerbrown  Год назад

      Sure, I'll get right on that.

  • @cyberfarmer5949
    @cyberfarmer5949 Год назад

    You must be getting weary with me lol... I finally got the Foliage Creator to show up in the InfoLayer Painting menu and everything seems like its working but when I paint, nothing appears. No errors in the log but this is what it says:
    DensityMapModifier: numChannels is beyond range for 10-channel DensityMap C:/Users/cyber/Documents/My Games/FarmingSimulator2022/mods/FS22_LoneWolf_OK/maps/mapUS/data/densityMap_fruits.png
    DensityMapModifier: firstChannel = 0, numChannels = 10, channelOffset = 5
    DensityMapModifier: called from =C:/Users/cyber/AppData/Local/GIANTS Editor 64bit 9.0.4/scripts/FoliageCreator.lua

    • @bauerbrown
      @bauerbrown  Год назад +1

      It's trying to tell you that your PNG is out of range. Did you create your own PNG for your infoLayer? It requires an 8bit PNG for a 10 channel density map, and it sounds like you might be at 24 or 32 bit PNG. Re-create your infoLayer with an 8 bit PNG and I believe that should get you all sorted out.

    • @cyberfarmer5949
      @cyberfarmer5949 Год назад

      @@bauerbrown Yes I created my own in gimp. I changed it to 8-bit and it still didn't work. I sent my map to a friend and it worked on his end, so I think I must have something wrong in the script itself in GE.

    • @bauerbrown
      @bauerbrown  Год назад

      @@cyberfarmer5949 So you created another 8 bit PNG, and then re-created the infoLayer? I'm just making sure, because I'm not aware of anything in the script itself that will cause that error.

    • @cyberfarmer5949
      @cyberfarmer5949 Год назад

      @@bauerbrown I finally got it. fruitDensity_ground and fieldDimensions were both 4096. Resized them, now it works. Thanks Bauer

    • @bauerbrown
      @bauerbrown  Год назад

      @@cyberfarmer5949 Awesome! I'm glad you got it working! What size map are you making? A regular 2km?