Category | Scripting |
Created | 21.10.2017 16:09 |
Richie Richie (rtwj2014) | 21.10.2017 16:09 |
---|---|
I have this error popping up and i dont know what to change or how to fix it? can someone help me or show me what the line should be like? the error is Scripts/irrigator.lua:142: unexpected symbol near 'false' and here is the line its referring too local particleNode = Utils.loadParticleSystem self.xmlFile, currentPS, keyPS, self.components, false, nil, self.baseDirectory); here is the whole code lua in that line local fillType = Fillable.fillTypeNameToInt[t]; if fillType ~= nil then local currentPS = {}; local particleNode = Utils.loadParticleSystem self.xmlFile, currentPS, keyPS, self.components, false, nil, self.baseDirectory); self.sprayParticleSystems[fillType] = currentPS; self.sprayParticleSystems[fillType].foldMinLimit = Utils.getNoNil(getXMLFloat(self.xmlFile, keyPS.."#foldMinLimit"), 0); self.sprayParticleSystems[fillType].foldMaxLimit = Utils.getNoNil(getXMLFloat(self.xmlFile, keyPS.."#foldMaxLimit"), 1); end i=i+1; end |
Bjoern J (Bluebaby210) | 22.10.2017 11:24 |
---|---|
The function is called Utils.loadParticleSystem(), in your code is missing the ( after "loadParticleSystem". |
Richie Richie (rtwj2014) | 22.10.2017 18:38 |
---|---|
Thank you for the reply. i have now fixed that error and ofcoarse a new one pops up unfortunalty.would you happen to know how to fix this one or what i am missing now? thank you in advance here is the beginning of the error first part Error: Can't load resource 'dataS/scripts/vehicles/specializations/SetTurnedOnEvent.lua'. Error: Can't load resource 'dataS/scripts/vehicles/specializations/SprayerAreaEvent.lua'. second part Warning: No spray usage specified for 'E:/FS17Mods/PortageCounty/FS15_Optima_1036_v1_2_final_converted/optima1036.xml'. This sprayer will not use any spray. Error: Running LUA method 'update'. E:/FS17Mods/PortageCounty/FS15_Optima_1036_v1_2_final_converted/Scripts/irrigator.lua:167: attempt to call field 'loadSample' (a nil value) and here is the lua line its referring to now self.sampleSprayer = Utils.loadSample(xmlFile, {}, "vehicle.spraySound", nil, self.baseDirectory); |
Rob Van Den Berg (thudge) | 03.11.2017 17:22 |
---|---|
have you tried self.sampleSprayer = SoundUtil.loadSample(xmlFile, {}, "vehicle.spraySound", nil, self.baseDirectory); |
Richie Richie (rtwj2014) | 06.11.2017 14:32 |
---|---|
Thank you that fixed that error but another one arises. Luas can be a pain being converted to 17 |
Note: Log in to post. Create a new account here.