stijnwop / hosesystem Goto Github PK
View Code? Open in Web Editor NEWHose system modification for Farming Simulator 2017
Hose system modification for Farming Simulator 2017
I have a suggestion to change the script HoseSystemRegister.lua:
function HoseSystemRegistrationHelper.loadVehicle(super, vehicleData, asyncCallbackFunction, asyncCallbackObject, asyncCallbackArguments)
local customEnvironment, _ = Utils.getModNameAndBaseDirectory(vehicleData.filename)
--if customEnvironment ~= nil then
local typeDef = VehicleTypeUtil.vehicleTypes[vehicleData.typeName]
local specializations = typeDef.specializations
local specializationNames = typeDef.specializationNames
for i = 1, #specializations do
local specializationName = specializationNames[i]
--if specializationName ~= nil and specializationName:lower() == string.format('%s.%s', customEnvironment, HoseSystemRegistrationHelper.HOSE_SYSTEM_SPEC_KEY):lower() then
local specialization = specializations[i]
if specialization.preLoadHoseSystem ~= nil then
super.xmlFile = loadXMLFile('TempConfig', vehicleData.filename)
local vehicleLoadState = specializations[i].preLoadHoseSystem(super, vehicleData.savegame)
if vehicleLoadState ~= nil and vehicleLoadState ~= BaseMission.VEHICLE_LOAD_OK then
HoseSystemUtil:log(HoseSystemUtil.ERROR, specializationName .. "-specialization 'preLoadHoseSystem' failed!")
if asyncCallbackFunction ~= nil then
asyncCallbackFunction(asyncCallbackObject, nil, vehicleLoadState, asyncCallbackArguments)
end
return vehicleLoadState
end
if not super.hoseSystemLoaded then
HoseSystemRegistrationHelper:register(super, typeDef.specializations, vehicleData.filename)
end
delete(super.xmlFile)
super.xmlFile = nil
end
--end
end
--end
end
To support Mods / Scripts like this:
zzz_ExtendStdVeh_HoseSystem.zip
<?xml version="1.0" encoding="utf-8" standalone="no" `?>
<l10n>
<texts>
<text name="typeDesc_liquidManureHose" text="Manguera purín"/>
<text name="function_liquidManureHose"
text="Con una manguera de purín, puede bombear líquido de la fuente al objetivo. Si es aplicable, podría extender la manguera de purín para alcanzar rangos más grandes."/>
<text name="configuration_ext_liquidManureHose" text="Extensible"/>
<text name="configuration_nor_liquidManureHose" text="Normal"/>
<text name="action_grabHose" text="Agarrar %s"/>
<text name="action_dropHose" text="Soltar %s"/>
<text name="action_attachHose" text="Enganchar %s"/>
<text name="action_detachHose" text="Soltar %s"/>
<text name="info_hoseRangeRestriction" text="El alcance de la manguera llego a su límite!"/>
<text name="info_hoseRangeRestrictionChainToLong" text="No eres un super humano!"/>
<text name="info_hoseParkingPlaceToShort" text="El %sm estacionamiento es demasiado pequeño para la manguera %sm !"/>
<!-- Input -->
<text name="input_mouseInteract" text="Presiona el botón del ratón %s a"/>
<text name="input_mouseInteractMouseLeft" text="izquierda"/>
<text name="input_mouseInteractMouseRight" text="derecha"/>
<text name="input_attachHose" text="Enganchar sistema de manguera"/>
<text name="input_detachHose" text="Soltar sistema de manguera"/>
<!-- Hose system pump motor -->
<text name="pumpMotor_changeDirection" text="Cambiar la dirección de la bomba a: %s"/>
<text name="pumpMotor_directionOut" text="vaciar"/>
<text name="pumpMotor_directionIn" text="llenar"/>
<text name="pumpMotor_activatePump" text="Activar bomba"/>
<text name="pumpMotor_deactivatePump" text="Desactivar bomba"/>
<text name="pumpMotor_warningTurnOffFirst" text="Primero apague la bomba!"/>
<text name="pumpMotor_warningUnitEmpty" text="La fuente de la unidad de la bomba esta vacía!"/>
<text name="pumpMotor_warningObjectEmpty" text="La bomba esta vacía!"/>
<text name="pumpMotor_warningInvalidFilltype" text="Esta carga no esta soportada!"/>
<!-- Hose system connector references -->
<text name="input_toggleManureFlow" text="Alternar flujo de purín"/>
<text name="input_toggleLock" text="Alternancia bloqueada"/>
<text name="action_toggleLockStateLock" text="Bloquear %s"/>
<text name="action_toggleLockStateUnlock" text="Desbloquear %s"/>
<text name="action_toggleManureFlow" text="%s flujo purín"/>
<text name="action_toggleManureFlowStateOpen" text="Abrir"/>
<text name="action_toggleManureFlowStateClose" text="Cerrar"/>
</texts>
</l10n>
Only the side that's dropped into the pit will be affected on the dirtmask.
Analysis:
If we have multiple hose sizes in diameter we don't want the coupling to fit in every situation.
Hallo.
This mod does not work for your mod [(http://www.farming-simulator.com/mod.php?lang=en&country=ru&mod_id=75812&title=fs2017)]
If I add it to an existing game, I get an error FS17_hoseSystem/specializations/HoseSystemRegister.lua:125: attempt to index field 'hoseSystemReferences' (a nil value)
.
And if I add these two mods at the same time, then hoses are not connected.
Only works if the arm mesh is enabled through a xml entry.
Some chance is on hoseSystem to Farming Simulator 19
New:
Fixes:
Improvements:
hoseSystem/src/HoseSystemReferences.lua
Line 112 in 661bcb5
D:/Farming Simulator 2017/Mods/FS17_hoseSystem/liquidManureHoses/3m/liquidManureHose3m.i3d (74.51) ms
Error: Running LUA method 'update'.
Mods/FS17_RealisticBeaconLights/VariableBeaconLights.lua:18: bad argument #1 to 'pairs' (table expected, got nil)
Hi, I have the following problem with this mod.
After downloading these modifications:
Fliegl STF 25000 VC
Zunhammer SKE 18.5 PUD
Kotte FRC for the Hosesystem.
When trying to connect a Hose to a barrel, I can not do anything, no description and also can not move.
Log in error such error:
Error: Running LUA method 'update'.
C:/Users/Piotr/Documents/My Games/FarmingSimulator2017/mods/FS17_hoseSystem/specializations/HoseSystemPlayerInteractiveHandling.lua:64: invalid option '' to 'format'
Someone will help. Because the mod is cool, I'm also waiting for help :)
There are checks all over the place checking if the current index > 1 or the inverted checks.
Fix this by setting the first and last index in the xml. This will also allows it to add more grabPoints.
e.g:
Nasty stuff.
Having the option to configure diffrent fillarms on your tank.
I have used the Master file here 1.2.
I seem to be getting a lot of warnings in my log.
Example:
HoseSystem [Warning] : The hoseSystemVehicle specialization in: FS17_Guellepack is outdated! Latest version is v1.2
My Slurry pack is the latest from Modhub 7.0.0.2
Everything seems to be working alright just warnings in my log.
Thanks!!
Attached log
pumpMotor_warningUnitEmpty
pumpMotor_warningObjectEmpty
<text name="input_mouseInteractMouseLeft" text="left"/> <!-- TODO TRANSLATION: description-->
Would it be possible to add support where we can run a hose to a water source like a lake/river and the other end to the trailer?
Please can you add Support for Front Docks like this:
https://cdn.discordapp.com/attachments/298902167564189697/374929811979632641/image.jpg
If i try to join my server, i get this error
Error: Running LUA method 'update'.
C:/Users/Jannis/Documents/My Games/FarmingSimulator2017/mods/FS17_hoseSystem_DEV/specializations/HoseSystemPlayerInteractiveHandling.lua:44: attempt to index field 'player' (a nil value)
and the synchronisation is never ending.
Hope you´ve got a solution ;)
I have this trouble in my map
HoseSystem [Warning] : HoseSystem is trying to load the fillTrigger XML file, but the file could not be found! Loading default fillTriggers..
HoseSystem [Warning] : HoseSystem is trying to load the fillTrigger XML file, but the file could not be found! Loading default fillTriggers..
HoseSystem [Warning] : HoseSystem is trying to load the fillTrigger XML file, but the file could not be found! Loading default fillTriggers..
Proposed: just flow.. or lock flow.
If you pump different fill types the text 'toggle manure flow' doesn't make any sense.
do you know any way to make it compatible with courseplay? So maybe refill the normal giants way when courseplay is active?
Write functionality to support manure docking.
FillArm
DockingArm
Connector
Is there a possibility for the system to be throw a callstack error on maps which have the HoseSystem built in?
Because I get the following Callstack-Error when connecting a hose to the slurry pit:
Error: Running LUA method 'update'.
C:/Users/Administrator/Documents/My Games/FarmingSimulator2017/mods/FS17_hoseSystem/specializations/objects/HoseSystemLiquidManureFillTrigger.lua:523: attempt to index field 'animatedObjects' (a nil value)
My entries in map01.xml are as follows:
<hoseSystemFillTriggers>
<hoseSystemFillTrigger identifier="cowLiquidManure">
<pit planeNode="0>0" planeMinY="-0.402" planeMaxY="0.482" />
<hoseSystemReferences>
<hoseSystemReference node="0>2" />
</hoseSystemReferences>
</hoseSystemFillTrigger>
<hoseSystemFillTrigger identifier="pigLiquidManure" >
<pit planeNode="0>0" planeMinY="-0.477" planeMaxY="0.5" />
<hoseSystemReferences>
<hoseSystemReference node="0>2|0" />
</hoseSystemReferences>
</hoseSystemFillTrigger>
</hoseSystemFillTriggers>
I have found a solution to the error, but I am at a loss of finding out the reason for the error to occur in the first place.
Original Entry:
local animatedObject = g_currentMission.animatedObjects[reference.lockAnimatedObjectSaveId]
Fixed Entry:
local animatedObject = nil;
if g_currentMission.animatedObjects ~= nil then
animatedObject = g_currentMission.animatedObjects[reference.lockAnimatedObjectSaveId]
end
These are the changes I have made in Lines 523 and 556.
It solves the problem, but I would be happy to know if you have a more elegant solution for it :-)
Thank you for looking into this!
Kind regards,
Farmer_Andy of www.modding-welt.com
This issue occurs when this mod is added , and the cause is a script Xentro has made for updating specifications on a upcomming mod.
Error: Running LUA method 'update'.
H:/Dropbox/FarmingSimulator/Dedi17/FS17_hoseSystem/specializations/HoseSystemRegister.lua:212: attempt to index local 'specializationNames' (a nil value)
His answer was to add a check after line 211
if specializationNames ~= nil then
but I can obviously not do that for every user that gets the conflict. Is this something you can add for the next update?
A holder where you can attach the tanker side of the hose to while not pumping, so it don't falls into the pit.
May as a prefab and as a placeable object. A buyable dynamic object would also be interesting, but sure it would fall to the side every time, you attach or detach the hose.
Setup a bootstrap script to source everything.
Extend your hoses to reach a larger range.
Allow option to set a threshold in meters for the parking offset taking affect.
So, for example when the hose >= 4 m enable offset.
Add possibility for vehicles without hose system to fill from our triggers.
Freeze the slurry shader plane.
Lookup temp:
g_seasons.weatherManager:isGroundFrozen() or g_seasons.weatherManager:currentTemperature()
Lookup the impact.
Good afternoon,
would be possible to add a feature, for supporting seperate pumps like this: https://bilder.landwirt.com/0714/7d06ca5a4f35262f246d55c8135841ab.jpg
With them, you can fill barrels which haven't got a pump itself.
I thought about an tag like hoseSystem isPump="true"
at the moment you can only fill the pump (if it got capacity), but not empty it at the same time.
Also, if the barrel is already filled up, the pump doesn't fill up from the pit, but from the barrel.
Best regards
When the flow isn't closed you will lose slurry, because there is still pressure on the connector.
The hose in the screenshot was connected to both the FRC and the slurry tank. I first disconnected the slurry tank side by driving away, hose started leaking as expected. I then drove the FRC away, the hose disconnected from it as well, but it kept the slurry leaking animation active indefinitely.
This test was done on the current ModHub version 1.1.0.0, on Goldcrest Valley.
Hi,
it would be great MCompany running factories could be accepted by the hose system, e.g. mappers have to add a special trigger to their factory to be supported by the hosesystem.
Add support for placeables and all fillTriggers.
Request count is high.. so high prio.
Two strategies:
Detailed features will follow.
When it is to FS 19?.
Im using this hose system mod and i found a problem here. when im using the STF 25000 VC and at the controls the game is showing 2 Y and 2 R button. now, the problem is: this is double input bug. I don't know why, but that won't work. I can't play without this mod because it makes the game more realistic.. please help me to solve it. That new update won't helped with it
when parking a hose it should be possible to store it in another way than just straight.
Maybe defining 5 Points in the vehicle xml to adjust the hoses to.
Workaround: Adding a hose-mesh to your vehicle and toggle visibility when adding the hose
In future updates replace the Lua calculation to a shader to add more smooth movement of the mesh.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.