
WrinkleysRule
Moderators-
Posts
419 -
Joined
-
Last visited
-
Days Won
94
Content Type
Profiles
Gallery
Downloads
Events
Forums
Articles
Everything posted by WrinkleysRule
-
PM them to me as a zip file and I will try to work out what is happening
-
How have you entered it in the maps placeables.xml ?
-
Do I understand correctly that you are using FS25 scripts and GE 10.4/5 to create a map for FS22 ???
-
You do realise that GE 10.4 doesn't work correctly with the latest version of the game (1.9.0.1) due to changes in the terrain shader and other items. Regarding loading crashes, what if anything is shown in the games log.txt
-
Apologise I have added the wrong version to the zip file will upload a new zip file tomorrow (09/08/25) as I have updated some of the other FS25 Scripts. Whilst testing the script I have come across a slight problem where the poles may not rotate enough (usually caused by a tight curve in a cubic spline ,sharp angle if using a linear spline) so causing the wires to crossover The soloution ( with thanks to @antler22) is to 1. Run the script with no. wires set to 0 2. Rotatet posts/poles so a better angle is created between the preceding and following posts 3. Rename last post/pole unique so you know where pole placement starts over (for examlpe pole1_A) 4. Run script again with wires set at desired level, this will put wires against all previous posts as well as new ones Delete second set of posts after marked end, as these are now redundant Works for fences as well Edit 15/06/25 This problem along with the upright problem has been solved in the latest version of this script 15/06/25 and is available at the beginning of this topic
-
Added updated FS25 Script Versions Zip This contains an updated Fence Power PLacement script (fixed some bugs) and a new Spline CSV Creator Panel OBJ_25 Spline CSV Creator Panel OBJ_25 ChangeLog Script operation is the same output has changed slightly A new CSVSpline transform group is automatically created in the Scenegraph and the new CSV spline is created in this TG. The new CSV spline ,spline.obj and csvData.txt are still added to the CSVData folder in the maps folder (same place as the map.i3d )which now has
-
There appears to be a bug in the code which I will investigate and correct. In the meantime I suggest opening the script in the Script Editor (Window -Script Editor) navigate to the Fence_Power_Placement_25 script and change the following line from line 252 setRotation(myId, rx, ry, rz); to line 252 setRotation(myId, 0, ry, 0);
-
This tutorial will show how to create fields with/without islands using the Field-Island Splines script in conjunction with the GE Field Toolkit (Scripts –Shared Scripts– Map – Farmland Fields – Field Toolkit). Download the Field-Island Splines zip file (found at the bottom of this tutorial) and unzip, place the script in the following folder Download the Field-Island Splines zip file (found at the bottom of this tutorial) and unzip, place the script in the following folder C:/Users/******/AppData/Local/GIANTS Editor 64bit 10.0.4/scripts (replacing ****** with your computer name) Field-Island Splines script This script is in two sections the top panel section ‘Create new points from FieldSpline/IslandSplines’ is used for creating fields with or without islands it basically works by using a spline to create the field edge then using a second spline to create island shapes and when the Create New Points is selected it creates a new list of polygonPoints in the polygonPoints Transform Group. If creating a field with islands then the field and island splines must be selected in order, top to bottom, if only creating a field then just select the field and Create New Points, field creation can then be carried on using the GE Field Toolkit. The bottom panel section ‘Create new Field Spline from existing points’ is used when modifying existing fields, because of the different ways some fields are created (when adding Islands points placement accuracy is important) it may be necessary to create a new fieldSpline from the original polygonPoints . When Create New Field Spline is selected a new fieldSpline ( with the name of the current field ) will be created using the existing points and placed in the polygonPoints Transform group the original points can then be deleted. Because some base game mod maps fields do not close the spline correctly when the script is executed (Create New Field Spline) the script will automatically add a new final point at the same location as the ‘S’ cv, so effectively closing the spline. Islands can be created in any shape and once created saved in a separate folder so creating a ready made album of different shaped islands that can be used in any field. The following sections show how the script can used. Creating a Field with Islands from scratch When inserting points one quick method is to select CTRL ‘B’ and select the cv with the left mouse button, keeping the left mouse button pressed move to the next placement point and press Insert repeat until shape completed Open GE and select Scripts –Shared Scripts – Map – Farmland Fields – Field Toolkit to activate the Field Toolkit panel In the Scenegraph select the fields Transform Group (TG) (gameplay –fields), in the Field Toolkit pop up select Create Field a new field will be created in the fields TG (numbered in the next available value) in this case field2 (this is the field that will be created first in this tutorial), also in this TG is the polygonPoints,nameIndicator and teleportindicater transform groups. Selecting the fields2 TG , CTRL ‘B’ , left mouse click to place the fields2 TG at the entrance of your field ,the Field Notes panel will obscure the actual placement so in the Field Toolkit under Field Notes select Toggle Visibility All to turn it off. When placing fields it is best to place the field TG at the entrance to the field and move the fieldMapIndicator to the centre of the field if required and leave the teleportindicator at the field entrance Select the polygonPoints TG and delete all the points. In GE Select Create –Spline and cut/paste into the polygonPoints TG (do not middle mouse drag as it will assign new translations to the spline) name this spline fieldSpline02 (to avoid confusion when more than one spline is used) in the Attributes Panel -Shape Tab change the Spline Type to Linear this spline type is the same format used by the Field Toolkit when creating fields. Ensure you have the Translate Spline CV panels in the Attributes Transform Panel if not then Select – View – Show – Physics Selection – Enable All , the Translate Spline CV panels is required as some of the cv’s require accurate placement for the fields/islands to work correctly Select the ‘S’ cv and delete it -- This will align the start of the spline to the polygonPoints TG (0,0,0) Select the ‘E’ cv and working clockwise place the spline around the edge of the field (using the method described earlier) place the final point as close to the ‘S’ cv then in the Translate Spline CV panels set the X, Y, Z coordinates to 0 (zero) this will place the ‘E’ cv exactly on the ‘S’ cv (there is no need to close the spline), accurate placement is required otherwise problems will occur with the field generation. Field Spline If just creating a field then Select the spline – Select Scripts –User Scripts -Field-Island Splines and Select -Create New Points a new list of points will be created in the fields transform, delete or save the spline to another TG and carry on with the field creation using the Field Toolkit in the normal way. Image below shows the spline selected, script executed , Toggle Debug Rendering activated, Align polygonPoints to terrain (this also calculates the new field size) and the insets shows the field Repainted and the various log entries. Single / Multiple Islands Create a second spline cut/paste into the polygonPoints TG (immediately below the fieldSpline ) and rename it to islandSpline, (again in the Attributes Panel -Shape Tab change the Spline Type to Linear ) then delete the ‘S’cv as detailed above. With the ‘E’ cv selected draw out your shape (using the method described earlier) the images below show the creation of both single and multiple islands. Single Island Multiple Islands The following image shows a fieldSpline and a three island spline (islandSpline_3) being used to create a field with three islands (suitable for power/pylons installation) In the following image I have duplicated the islandSpline_3 and moved the islands individually to different parts of the field by box selecting (click drag) one of the islands and moving it by the translation gizmo ( if box select is used Ctrl ‘B’ will place all points at the same location) to a different position, then with the spline selected freeze transform any rotation value that has occurred during the island moving, repeating the method for the other islands before selecting Create New Points. The splines have to be moved (to another TG or deleted) before Aligning or Renaming the polygonPoints otherwise they will become point 1,2,3 respectively Then In the Field Toolkit panel Align Polygon Points to Terrain - Select – Selected Field Rename Polygon Points - Select – Selected Field Repaint Fields - Select – Selected Field Validate - Select – Selected Field Note: If you have a duplicate points warning in the console log then delete the duplicates and Rename Polygon points. Modifying Existing Fields For this part I will be using a US map created by the New Mod from Game option but the method should work with other maps, I will also be using the island_3 spline from the previous section. With the field TG (in this case field14) selected, in the Field Toolkit Panel- Select Clear Fields (Selected Field), Clear Fruits (Selected Field), this should clear any terrain detail paint and any crops associated with this field. With the island_3 spline imported into the map cut/pasted it into the polygonPoints TG and then adjusted by the box selecting (click drag) method to suit the proposed new layout Important, when adjusting the island sections ensure that they do not overlap or intersect with any other part of the spline otherwise problems will occur when the new field/island boundaries are created. The image below shows the initial creation of the new island’s layout, the spline was rotated to suit the new layout , this rotation must be Freeze Transformed –(Edit – Freeze Transformations –Rotate) ensure that only the Rotation box is ticked if the Translate box is ticked deselect it. Next with the spline selected, in the Field Island Splines panel select the Create New Points button this will create the new points from the spline and place them in the polygonPoints TG below the spline (Fig. 2) Fig.2 The final steps are as follows, Cut/Paste the spline into another place (TG) in the Scenegraph (otherwise it wil be renamed as a point and cause problems ingame) In the Field Toolkit panel Align Polygon Points to Terrain - Select – Selected Field Rename Polygon Points - Select – Selected Field Repaint Fields - Select – Selected Field Validate - Select – Selected Field Note: If you have a duplicate points warning in the console log then delete all of the named points and Rename Polygon points. Save the map and open in Game, below is an image of the farmlands panel and the islands with a Courseplay course confirming the new island layout. Field Island Splines.zip
- 1 reply
-
- 1
-
-
Having done a bit of research and testing using the method in the video it would seem as long as it is done correctly there are no problems when using the AI or Courseplay as the following video and images show. AI Island.mp4 If modifying aan existing field then First select the field in the Scenegraph -- in the Clear Fields (Selected Field) and wait for the field to be cleared (back to underlying texture) then Clear Fruits(Selected Field) Debug Toggle Debug Rendering Select the last Polygon point (note first and last points share the same location) points have to be selected/created in order Ctrl 'D' to duplicate, Ctrl B to place continue until you have the desired shape and the last point is over the first duplicated point To get it aligned perfectly select the 'X' transform in the Attributes panel and Ctrl - Shift 'C' (to copy x,y,z translations) select the last point and then the 'X' translation panel and Ctrl - Shift -V to paste the copied coordinates into it. Select the field No TG - Align Polygon Points to Terrain (Selected Field) followed by Rename Polygon Points (Selected Field), Repaint Fields (Selected Field), Validate (Selected Field) In the console log you will see that the field size has been adjusted to suit the new layout The problem with the method in the video with lines all over the place appears to be not aligning the first and last duplicated point correcrtly Image below show the various steps
-
Log.txt from C:\Users\your computer name\Documents\My Games\FarmingSimulator2025 would be helpful as information provided isn't enough to find any problems.
- 3 replies
-
- foragewagon
- bdbssb
-
(and 1 more)
Tagged with:
-
Easiest way is to open map in game and use the landscaping tool Here's a video showing how to in GE https://www.youtube.com/watch?v=VVCabaREaaU
-
The above post is correct splines when used for any purpose must have no rotation on the 'Y' axis, otherwise problems like yours will occur. This problem is highlighted in the spline tutorials on this site. From the Splines The spline can now be given any name as long as it includes the name ' spline ' in any part of it i.e. road1_Spline or roadspline01 etc. Problems will occur if the spline transform or the spline itself does not have the correct rotation, whether in the transform group of the spline or the spline itself . The rotation has to be set at 0,0,0 for any of the scripts to work correctly. There are a couple of ways of ensuring this, one is to set up your spline in the position you want and freeze transform only the rotation, the other is to select the S cv of the spline and delete it, this brings S to the centre (rotating point) of the spline, then just use the E cv to create the rest of the spline so lessening the chance of inadvertently rotating the start of the spline.
-
F25 Spline Modifier Updated The script basically works the same as before with the following changes. New panel Layout Changes Set Offset Distance now allows decimal input Splines are now created directly into a Modified Splines TG in the Scenegraph Separate section in the lower section of the panel enables saving of any selected spline(s) and conversion of any single spline to an .OBJ file both are saved in a new Modified Splines folder in the same location as the the map.i3d. Tutorial updated to reflect changes
-
FS25 Import Placeables This is an updated version of the FS22 script which allowed the import into a map of all the placeable items in the placeables.xml (placeables.xml can be from a save game or another map) Original available here https://farmerboysmodding.com/index.php?/topic/2480-import-placeables/ With the changes made to placeables in FS25 the script will only import placeables that are not already in the map i.e. those who have not been preplaced using the placeables.xml <placeable isPreplaced="true" , any subsequent changes made to position/user attribute etc will still have to entered manually in the placeables.xml or by the Placeables Toolkit. However it will list all preplaced items in alphabetical order with their corresponding nodeId's for reference after the filepaths of the non preplaced items are printed in the console log. There are no requirements for setting any filepaths using the Script Editor. Installation and Use To use the script unzip the FS25_Import_Placeables.zip (available at the end of this tutorial) and copy/paste the folder to the location of your GIANTS Editor 64bit 10.0.4/scripts folder in this case it is, C:/Users/*****/AppData/Local/GIANTS Editor 64bit 10.0.4/scripts (replacing the *** with your computer name) Open GE and Select -- Scripts --FS25 Import Placeables When the script is first executed a check will be made to see if a 'placeholders' TG already exisits and if there is one or more instances of 'placeholders' TG's then a Warning will appear in the log with the duplicate 'placeholders' TG nodes for reference and investigation (if needed). A new placeholders TG will also have been created in the Scenegraph complete with the correct User Attributes (Placeholders.onCreate) With the Placeholders.onCreate added it will allow the placables to be seen in GE, the new placeable imports will be ignored when the map is opened in game and the placeables/preplaceables will be loaded as normal from the placeables.xml The script treats the preplaced placeables and normal placeables (those not preplaced and with a filename) in different ways. Normal placeables are loaded into placeholders TG in the Scenegraph and a print out of the file path to each one loaded will appear in the GE Console log. The name of each individual placeable in the Scenegraph will be its xml/i3d name not its placeable folder name. Preplaced placeables (if listed in the placeables.xml) are listed in the console log in alphabetical order together with their name and node Id's for reference (after the normal placeables filepaths). The following popup panel will also appear. Mod Folder Select the folder icon at the end of the Mod Folder line a file browser will appear navigate to where the folder containing any mods required by the map. For example if the map uses any external mods ( Required Mods ) in the normal My Games folder then the path would be :- C:/Users/****/Documents/My Games/FarmingSimulator2025/mods (obviously *** would be replaced by your computers name) Or if the mods folder is located elsewhere then something like this D:/Farming Simulator/FS25_mods Or if just importing from a map with no Required Mods D:/Farming Simulator/FS25_mods/FS25_SuperMap Basically the Mod Folder is the map/mods path where the placeables to be imported into the map are located. Note: All mods/maps must be unzipped for this to work correctly. Map Placeables XML Path Opening the file browser as before (selecting the relevant folder Icon) navigate to where the maps placeables.xml is located and select it. With the placeholders TG selected in the Scenegraph, select the Import Placeables button (move mouse away from the popup panel and wait for the Import Placeables button to turn back to white). The placeables will have been imported into the map at their relevant positions and a print out will appear in the consol log detailing the placeables file paths and also any preplaced placeables with their corresponding nodeId’s for reference. Some examples below the first using the default EU map (Zielonka) and the second using the Alma Missouri map EU map (Zielonka) Alma Missouri Limitations: Where fences/hedges/power lines have been created using the in game construction tool and then copy pasted into the placeables.xml from a save game these will not appear in their assigned position as any editing/deletion must be carried out in game and the placeables.xml manually adjusted from a new save game. The script relies on the placeables.xml being created correctly either by the Placeholders Toolkit or manually using the correct FS25 format (preplaced items must be created using the Placeables Toolkit to get the correct uniqueId) Script will only import placeables from i3ds so any placeables.xml script that does not have an i3dPath in its base.filename will not be loaded and an error message with the problem xml's filePath will be printed in the console log error message will also be printed if the mod directory doesn't have a mod associated with that map. The script will continue running until all placeables/preplaced types listed (including error messages) in the placeables.xml have been loaded It is possible to import all the placeables from one map into another (or even from a savegame) by opening the map in GE that is to receive the placeables and setting the Mod Folder to the donor maps filepath and Map Placeables XML Path to the donor maps placeables.xml then with the placeholders TG selected, select Import Placeables, placeables will be imported into the new map at their original positions. Placeables filepaths will still refer to the original map so adjustment will be needed if items kept. FS25 Import Placeables.zip
-
For those who want fence/power layouts to be in straight lines you could try this, with the spline type set to Linear only the spline control points are created when inserting. some corners may have a slight bend but this shouldn't affect fence/poewer placement. another example
-
This script can be modified by yourself to allow decimal entries to the offset by following these steps Open FS25 Spline Modifier.lua in GE script Editor and navigate to line 78 local offsetSlider = UIIntSlider.new(offsetSliderSizer, offset, -25, 25 ); replace with the following line local offsetSlider = UIFloatSlider.new(offsetSliderSizer, offset, -25, 25 ); Save and exit the Script editor Execute the script from the Script - Users Scripts menu you should now be able to enter a decimal value for the offset Offset max min values have been reduced to avoid distortion caused by inner and outer radius when setting high values. An updated script is currently being created and tested.
-
Try the links in this post there maybe some useful information for you
-
Comparison between my version and GE version of Set Terrain Height scripts with basically the same settings. My version GE version As you can see the GE version smooths the vertical drop and heights better
-
The GE version of Set terrain Height will probably best in your case as my script only gives basic smoothing, go to Scripts -- Shared --Map--Terrain -- Set terrain Height by Spline and set the following settings Width 5 (this will give a 10m overall width) Smoothing Distance 20
-
With those settings all you have done is create a flattened area 10m wide with no smoothing, with a 0 height setting the script assumes the area is already smooth.
-
An image of your terrain height panel with your settings would be helpful.
-
There is an update version of the parallel spline script available here
-
If you are referring to CSV distance then select the Set CSV Distance Box (left click select when cursor changes to <-->) and enter your chosen value. Set Offset Distance currently only Integer (whole number) entry changing to decimal entry can be done in a later update if required
-
Sorry I am a bit confused here as the script name in the lua file is FS25 Spline Modifier and displays as such in GE and the script editor -- Author:W_R -- Name:FS25 Spline Modifier -- Namespace: local -- Description: -- Icon: -- Hide: no -- AlwaysLoaded: no Also I would have thought it sensible to have the older versions in one folder and the FS25 versions in another instead of mixing the two together.
-
You will note that the scripts that are specifically for FS25 in your image are already annotated with FS25 or 25 so I don't see a problem. The other scripts mentioned ( three of which were definitely not created by me) may work with other versions