System Terrain Generator

U are a noob

Mega Super Ultra Cool Member
Reaction score
152
Ok, got a major update. It won't put trees on rocks anymore, though they may be right up on the edge. Also, it won't produce destructables near units. And last, you can give it a specific region to be generated, but it will not be a perfect square. Might be a plus, actually. :p

Good job on the update. Theres only one more thing you need and thats path ways.
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
> Theres only one more thing you need and thats path ways.

ShockedEmoticon.gif
Riiiight. :p I don't really have any idea how to do that. Yet. But I might never. Besides, where would the pathways go? :rolleyes: I'm open to suggestions as to how to accomplish this.
 

elmstfreddie

The Finglonger
Reaction score
203
Have a region variable with an array, then the person using the system makes regions where they want paths and adds those regions to the region array variable :confused:
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
> Have a region variable with an array, then the person using the system makes regions where they want paths and adds those regions to the region array variable

Ok, that would give you a path, BUT:

1. It wouldn't terrain the rest of the map.

2. If you wanted to specify a tile, then all the rest would have to be left out.

3. If you didn't specify a tile, it would give you a mixture of all the different terrain types.
 

elmstfreddie

The Finglonger
Reaction score
203
Think ghan, think. Just have an if/then/else when it looks and check if your position is within any of the regions. If it is, then make it a certain tile, otherwise do the randomizaiton. Or not just 1 tile, but you get the idea.
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
> Just have an if/then/else when it looks and check if your position is within any of the regions. If it is, then make it a certain tile, otherwise do the randomizaiton.

Sooo... that would have to replace my current region system. :( Oh, well. Sounds like it might work, too. I'll give it a try. :p
 

Tinki3

Special Member
Reaction score
418
>where would the pathways go?

No where special, or most probably no where at all.
Just there for looks.
Or what not.

IMO, flag the paths.
Waste of time.
Don't know about you, but I wouldn't want to have a map that generates
random walkways that don't actually lead to anywhere with a "point".
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
Ok, well I think that the path thing is too complicated. It occured to me that you could simply take the one region that I have, resize and move it, set the terrain-type variables to whatever you want, then run the terrain generator trigger. Do that several times, and you're done with your path. Kind of messy, but it looks to be the best way.
 

Naminator

Coming Back To Life
Reaction score
76
Good job!. I use to make this kind of system by creating trees and other things at the map init. But this one is much better than creating trees only. :p
Like it!.
 

elmstfreddie

The Finglonger
Reaction score
203
If your updates have been true how about updating your screenshots... Your screenshots are still of v.0000000001 lol
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
> If your updates have been true how about updating your screenshots... Your screenshots are still of v.0000000001 lol

Lol. Yep, I suppose they are. I made some new ones. :rolleyes:
 

elmstfreddie

The Finglonger
Reaction score
203
Okay, cool, good.

Except something seemed weird...
There was more trees in the dirt than the grass?!
Try making it so there's a higher chance for a tree to be created if the tile is grass than if the tile is dirt :p
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
Ok, I did that. There's a 15% chance to create a tree in the dirt, and a 25% chance if it's in the grass. Though, I had to split the destructable generator because it was hitting the execution limit earlier. Also, good luck modifying this properly if you have a different tileset than Lordaeron Summer. :rolleyes:
 

elmstfreddie

The Finglonger
Reaction score
203
Possibly if there's a terrain type variable type then at map init they could define some variables... like
TreeType[1] = Ashenvale Canopy Tree
TreeType[2] = Ashenvale Tree
TerrainType[1] = Ashenvale - Dirt
TerrainType[2] = Ashenvale - Leaves
etc...
Then in the triggers you use the variables, :p
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
> Possibly if there's a terrain type variable type then at map init they could define some variables... like
Then in the triggers you use the variables

Uhh... that's what I do now. :p
 

elmstfreddie

The Finglonger
Reaction score
203
Then why is it so hard if your terrain type is not the summer thing?

(okay maybe I should stop commenting and open up the map?)
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
> Then why is it so hard if your terrain type is not the summer thing?

Because the conditions check for Summer-specific terrain types. Rocks, dirt, grass for the tree placement. It would get a bit difficult to rearrange all of those into the right types to check if you have a different tileset.

> (okay maybe I should stop commenting and open up the map?)

It wouldn't hurt. :rolleyes:
 

elmstfreddie

The Finglonger
Reaction score
203
Just add a bunch of conditions, using dirt types from every pallet, rock types from every pallet, tile types from every pallet, lol :D
That would work. And also the person wouldn't need to change anything... ;)
(yes I tested as this point, I have a feeling if you used this in multiplayer the lag window would come up with lots of people... IT probably wouldn't lag as much if done in JASS ;))
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
> Just add a bunch of conditions, using dirt types from every pallet, rock types from every pallet, tile types from every pallet, lol
That would work. And also the person wouldn't need to change anything...

I'm not amused. :p I think people should figure it out for themselves. :rolleyes:

> IT probably wouldn't lag as much if done in JASS

Hmm. That would be possible if I knew JASS.
 

elmstfreddie

The Finglonger
Reaction score
203
> IT probably wouldn't lag as much if done in JASS

Hmm. That would be possible if I knew JASS.

lol :D
I only figure that because of all the if/then/elses it runs (because of the loops). GUI if/then/elses call functions for every condition.. and it's kinda messy.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top