Any Tutorials that show how to add ClearArea and LevelArea for Placeable Mods?

User avatar
cwattyeso
Posts: 490
Joined: Tue Nov 27, 2018 3:58 pm
Contact:

Any Tutorials that show how to add ClearArea and LevelArea for Placeable Mods?

Post by cwattyeso » Fri May 03, 2019 12:56 pm

Currently in the process of making my first mod with the Giants Editor and trying to learn as much as I can along the way. I have got the model in the editor, I have it all setup with it's XMLs and everything. I can import it into game and place it, and all its functions work correctly. The only thing I'm missing is the ability to have the Object clear and level the area it's placed upon. Right now I have to flatten and edit the terrain in game with the terrain tools first. Looking at other placeable mods I see they have a ClearArea and LevelArea transform group set up, but I'm not sure what to place or how to configure that within the editor. Any tutorials that show how to do this?
Check out my YouTube Channel for Gaming Let's Plays at http://www.youtube.com/c/CwattyesoGamingforFun

User avatar
cwattyeso
Posts: 490
Joined: Tue Nov 27, 2018 3:58 pm
Contact:

Re: Any Tutorials that show how to add ClearArea and LevelArea for Placeable Mods?

Post by cwattyeso » Wed May 08, 2019 8:10 pm

Okay so with the lack of response or assistance from people, I've tried to muddle on with myself and have copied the ClearArea and LevelArea Transform Groups into my placeable mod. I've re-positioned them as best I can in the editor by adjusting the Start, Width and Height values for X & Z to match my own placeable more closely, and saved the i3d file. Must admit am a bit confused that the groups only have three points, and not four which would make more sense to me to create a proper rectangle area around an object. In the XML for the mod I have added the following based on similar that I've seen on other placeables, just substituting the node values for my mods own:

<clearAreas>
<clearArea startNode="16|0" widthNode="16|0|0" heightNode="16|0|1"/>
</clearAreas>

<leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30">
<levelAreas>
<levelArea startNode="17|0" widthNode="17|0|0" heightNode="17|0|1" groundType="dirt"/>
</levelAreas>
</leveling>

In game when I place the item now, it clears the terrain and stuff of grass and decorative foliage just fine and replaces it with dirt texture nicely. However the area of ground it levels is not right, instead of being a nice square area around the object, it's still quite a lot larger then the object and also on one side has a massive great triangle area that goes off quite a distance. It is also very aggressively levelling the terrain.

Can anyone offer me any further help on how to get this aspect of the mod right?
Check out my YouTube Channel for Gaming Let's Plays at http://www.youtube.com/c/CwattyesoGamingforFun

norfolk farmer
Posts: 281
Joined: Sat Oct 13, 2018 3:36 pm

Re: Any Tutorials that show how to add ClearArea and LevelArea for Placeable Mods?

Post by norfolk farmer » Wed May 08, 2019 9:07 pm

Maybe worth asking on FSUK.

User avatar
cwattyeso
Posts: 490
Joined: Tue Nov 27, 2018 3:58 pm
Contact:

Re: Any Tutorials that show how to add ClearArea and LevelArea for Placeable Mods?

Post by cwattyeso » Mon May 13, 2019 3:28 pm

Think I got the ClearArea and LevelArea sorted out, helps if when you are setting that up your object has no rotation values otherwise you get the wonky lines instead of a smooth rectangle.

Good thing is I got to work on it as Giants Failed it in it's first submission. Now just need to correct some other stuff.
Check out my YouTube Channel for Gaming Let's Plays at http://www.youtube.com/c/CwattyesoGamingforFun

Post Reply