I'm having this error while playing on Italia Emilia map:
Error: Running LUA method 'update'.
D:/Mods FS22/FS22_RealLifeNumbers/RealNumbersContractRewards.lua:568: attempt to index local 'contractFruitType' (a nil value)
Could you help me? The game doesn't totally crash but it freezes for a few seconds then it goes back to normal. But it does happens a lot
I got the map running, but no errors. It must be triggered by a specific type of mission or fruittype. My missions is dropping in numbers rather quickly. After a few minutes the number of missions were down to two. This is probably due to the game issue with missions everybody is waiting to get fixed. Could you e-mail me a copy of missions.xml from your savegame folder?
JS39, happy to hear that you solved the problem. By default neither chicken nor sheep produce manure or slurry. That is the reason that there are no numbers for these in my script and xml file. You are welcome to send me your modified script. You will find the e-mail at the top of the script.
Hello, so on the test server it runs so far and it also only brings something if you have a chicken coop with slurry trigger. We have created everything ourselves and there is currently nowhere to load. Since we took a barn of a user for our purposes, we can not simply upload this where. Us it was just too unreal that in the LS the chickens do not make at least liquid manure because you can take it as fertilizer.I have made it together with Forever and if it runs ne while successfully we can send it to you with pleasure.On the server we had to make the anmimals xml also in the modsettings.
Hello have the error or the problem in the script now found itself and supplemented. it now runs on server and liquid manure is also produced by the chickens must only look if the values so everything passz, But maybe I can send it to you and you could look over it. Thank you
Hello Kaj-Aage Henneberg, we found the chickens in LS22 a bit too unreal since you do not give liquid manure or dung. By the way, we are the group that use your Reallifenumbers mod successfully on a server for a very long time ;-) Forever is also with us.
But now to our problem. We have now added liquid manure to a large chicken coop (5000 chickens). So manure trigger built and the whole then entered in the animals xml so that a chicken lays less than 28 eggs a month because you should also take into account Mausser and so on. Now in the SP Game with rln everything works great but on server it loads when entering to 60% and then comes an error line 1801 animal Scaling. I have nachgescgaut there it is about liquid manure but since I'm not a scripter I do not know exactly what the problem is and we hope for your help. A real game without rln is unthinkable for us.I post times the error of the client log. In the server game log was nothing to find .
2022-07-13 00:11 before: Age mth 0 : 5
2022-07-13 00:11 Error: Running LUA method 'loadSharedI3DFileFinished'.
C:/Users/Frank/Documents/My Games/FarmingSimulator2022/mods/FS22_RealLifeNumbers/RealNumbersAnimalScaling.lua:1801: attempt to concatenate a nil value
2022-07-13 00:15 Application restart (soft restart) We hope you can help us. Best regards JS39 from LS Real
Is there anyway to add a 3rd cycle? trying to make a "geo" for SE USA, and would like to add an additional month in the planting window as well an additional harvesting month, or is there a way to do that currently?
My script only modifies the game parameters of the vanilla game. It does not replace the original growth model. So my script can operate only within the limits of what was originally planned by Giants.
I don't believe it is within my skills to replace in-game models and I also think it is inappropriate.
The new HOFBergmann map is not compatible with RealLifeNumbers. HOFBergmann has a non-standard definition of animals. I will try to make a version of the my_animalsTypes.xml file that works with the HOFBergmann map.
Hi strauts6,
My internet is not working. It will be days before I can get a technician to look at it. I will look into this as soon as possble. It is likely a warning, that some parameter is not defined. This happens most often, if you use some of the mods that generate extra contracts.
Is it possible to disable output to log?
Or would this line change frequency of mission updates in log?
local runMinute = minute % 10; -- remainder in line 441
Hi, is it possible to disable mission info output in log file? Log file now consists 99% of this
2022-04-04 20:23 fertilize
2022-04-04 20:23 fieldArea = 9.2863
2022-04-04 20:23 fieldId = 54
2022-04-04 20:23 vehicleUseCost is not defined
Sometimes this info is not written to log, but when it is and every 10 in-game minutes, it causes massive stuttering and lag when trying to speed up time.
I think I found the conflict. The conflict is with a mod called Net Wrap Addon (It's on the game mod hub)
Could you perhaps fix it so they can both work? If I'm not mistaken there is also the Twine Wrap Addon made by the same person, so I think it would conflict too!
I think I have a mod conflict but I don't know which one. Could you please help me track it down? I get this error: Running LUA method 'loadSharedI3DFileFinished'.
D:/Mods FS22/FS22_RealLifeNumbers/RealNumbersStorePrices.lua:245: bad argument #1 to 'find' (string expected, got nil) in the RealNumbersStorePrices.lua loading
While I wait for your answer I will try testing one mod by time
Hallo, Wir nutzen auf unserem MP Serverspiel ja noch die 1.0.0.8 da die 1.0.0.ja Probleme machte.
Es ist ja der erweiterte Kreditrahmen normal bis 2 Millionen. Diesen haben wir auf 4 Millionen erhöht da wir auf einer 4 Fachen Karte spielen und bei 0 anfingen. Aber bei 500 Tausend geht nichts mehr beim leihen. Ist da ein Fehler bekannt? Wir werden eventuell mal zum testen auf die ganz neue Version wechseln ob die nun geht. Wir haben in den game Settinges des Servers über FTP im Ordner modSettings den Reallifenumbers Ordner mit den xml reinkopiert. Wenn Du die Log oder was brauchst wo könnte ich Dir das dann hochladen? Danke für Deine Arbeit.
Hello, We use on our MP server game yes still the 1.0.0.8 because the 1.0.0.ja made problems.
It is indeed the extended credit line normal to 2 million. We’ve increased this to 4 million because we’re playing on a four-fold card and starting at 0. But at 500 grand, there’s nothing to borrow. Is there a known mistake? We will eventually switch to the new version to test whether it is now possible. We have copied the Reallifenumbers folder with the xml in the game settings of the server via FTP in the modSettings folder. If you need the log or what you need where could I upload it to you then? Thank you for your work.
Hallo, ja so sah es aus. Habe nun aber die loan xml aus den Server ModSettings heraus gelöscht und nun konnte ich Kredit über die 500K Vanilla hinaus aufnehmen.
Aber wir haben die neue Version 1.0.1.0 getestet und auch die haut uns wieder die client log voll mit Errors über die RealNumbersContractRewards. Wir sind nun wieder auf die 1.0.0.8 gegangen auf dem Server.Forever hat Dich wie er sagte ja auch schon kontaktiert. Er spielt ja auch bei unserem Serverspiel mit. Ob Du das script nich eventuell so schreiben könntest das es anstatt der xml über die savegames ausgelesen werden könnte. Wir haben nämlich die Vermutung das das Serverspield arauf nicht zugreifen kann. Wir haben den Wasserpreis geändert über die xml in den Filltypes den bei uns kosten 1000l Wasser gerade mal 1 Euro und ein Stall mit 500 Kühen teilweise in Aufzucht nimmt mit Deinem normalen Wert im Monat 10000 Euro nur für Wasser, das ist leider etwas heftig und macht den realen Bauern Arm ;-) auch bei einer Änderung der Farmlandpreise sahen wir auf Server keine Änderung.Grüße und Danke JS39
Hello, yes it looked like that. But I have now deleted the loan xml from the server ModSettings and now I was able to take out credit beyond the 500K vanilla.
But we have tested the new version 1.0.1.0 and it again hits the client log full of errors about the RealNumbersContractRewards. We have now gone back to 1.0.0.8 on the server. As he said, Forever has already contacted you. He also plays in our server game. Could you possibly write the script in such a way that it could be read out via the savegames instead of the xml? We have the assumption that the server game cannot access it. We have changed the water price via the xml in the filltypes, with us 1000l of water costs just 1 euro and a barn with 500 cows partly reared takes 10000 euros a month with your normal value just for water, which is unfortunately a bit heavy and makes the real farmer arm ;-) even with a change in farmland prices we saw no change on the server. Greetings and thanks JS39
Version 1.0.0.10 has been renumbered to version 1.0.1.0 so that the newest version will be listed at the top of the download list. No other changes hav been made. between 1.0.0.10 and 1.0.1.0.
hello, i am having an issue, i added XML files\UK\my_Contracts.xml by mistake, i have deleted it but only if i have XML files\UK\my_animalTypes.xml the XML files\UK\my_Contracts.xml are activated in game i only want the animaltypes, how can i fx the issue??
Hello Horpestad. If I understand you correctly, you want to use the script RealNumbersAnimalScaling.lua but not the script RealNumbersContractRewards.lua.
You can disable individual scripts in the file modDesc.xml. There is information in the modDesc.xml file on how to comment out a script so that it will not be used. If you comment out RealNumbersContractRewards.lua, it will not matter if you have lost the xml file for that script. If you want another copy of the XML file you deleted, you can always download the mod again.
The majority of scripts are independent of each other and can be commented out in modDesc.xml.
The only script that MUST be active is RealNumbersCalendarInfo.lua.
Im Mod Settings Ordner ist bei mir reallifenumbers gar nicht angelegt. Nur andere Mods obwohl ich immer mit Reallifenumbers spiele. Sowohl auf Server im MP wie auch im SP.
In the Mod Settings folder reallifenumbers is not created at all. Only other mods although I always play with reallifenumbers. Both on servers in the MP and in the SP.
In that case you may have forgotten to read the install instructions. It is inside the Unzipme zip file. It explains how to create the folders and place the xml files inside.
In the xml files, each item has parameter values. When using the scripts alone, the parameters are sometimes just scaled with one factor, like yield and pricePerLiter.
However, I was told that the scripts which only use xml files to define the parameters will not work in Multiplayer. He found that the script where the parameters are defined inside the script works best in Multiplayer mode.
Das heisst dann wen es mir richtig übersetzt wurde das wenn man die xml nicht verändert es am besten im MP auf Server funktionieren müsste?
That means who it was translated to me correctly that if you did not change the xml it would work best in the MP on server?
Hallo, wo finde ich den die my_contracts xml file? Habe Sie irgendwie nirgends gefunden.Grüße JS39. Hello, where can I find the my_contracts xml file? I didn’t find you anywhere.Greetings JS39
In the folder FarmingSimulator2022/modSettings/RealLifeNumbers/savegamex, where the "x" is a number. savegame1 if you are playing savegame1. savegame2 if you are playing savegame2, and so on. This is where you place all the xml files coming with RealLifeNumbers.
Regarding the problem reported by JS39. I experienced a sudden failure in the script RealNumbersContractRewards.lua. 5 minuttes into the game a lot of error messages where written to the log complaining that the calculation of vehicleUseCost failed. I saved the game and stopped it, and reloaded the same game. Then the error messages did not come back. This could possibly be something that is triggered when new missions are generated, and the new missions have not been read into the game. I don't know the answer yet. Just wanted to let you know that I have seen an issue, and is disappeared after restarting the savegame. I will take a closer look in the weekend.
Hallo und Danke, war etwas im Stress die Tage aber werde morgen mal schauen das ich Ihnen die gewünschten Daten sende.
Hello and thank you, was something in stress the days but will look tomorrow times that I send you the desired dates.
JS39, for some reason I cannot reply to your posting.
You error happens at line 526 in the script.
if fieldArea < RN.contractRewards.SMALL_FIELD[missionName] then
This line asks if the field area is so small that we should use the high contract rate. This is relevant only to harvest contracts.
I tested it on a game with a harvest contract for a small field of 4.5 ha. My log file gives me these lines:
2022-02-08 21:08 Field id = 23
2022-02-08 21:08 Field area = 4.50 ha
2022-02-08 21:08 Reward per ha = 102 £/ha
2022-02-08 21:08 Payment = 458.78 £
2022-02-08 21:08 Rented equipment deduction = 44.98 £
The field area is 4.5 ha, so it should apply the high contract rate of 102 £/ha. So it seems to work on my game.
It would be best if you could mail me the log file and the my_Contracts.xml file.
108 Comments for RealLifeNumbers
Hi kahenneberg!
I'm having this error while playing on Italia Emilia map:
Error: Running LUA method 'update'.
D:/Mods FS22/FS22_RealLifeNumbers/RealNumbersContractRewards.lua:568: attempt to index local 'contractFruitType' (a nil value)
Could you help me? The game doesn't totally crash but it freezes for a few seconds then it goes back to normal. But it does happens a lot
Cannot get the Reply icon to respond.
JS39, happy to hear that you solved the problem. By default neither chicken nor sheep produce manure or slurry. That is the reason that there are no numbers for these in my script and xml file. You are welcome to send me your modified script. You will find the e-mail at the top of the script.
Hello have the error or the problem in the script now found itself and supplemented. it now runs on server and liquid manure is also produced by the chickens must only look if the values so everything passz, But maybe I can send it to you and you could look over it. Thank you
Hello Kaj-Aage Henneberg, we found the chickens in LS22 a bit too unreal since you do not give liquid manure or dung. By the way, we are the group that use your Reallifenumbers mod successfully on a server for a very long time ;-) Forever is also with us.
But now to our problem. We have now added liquid manure to a large chicken coop (5000 chickens). So manure trigger built and the whole then entered in the animals xml so that a chicken lays less than 28 eggs a month because you should also take into account Mausser and so on. Now in the SP Game with rln everything works great but on server it loads when entering to 60% and then comes an error line 1801 animal Scaling. I have nachgescgaut there it is about liquid manure but since I'm not a scripter I do not know exactly what the problem is and we hope for your help. A real game without rln is unthinkable for us.I post times the error of the client log. In the server game log was nothing to find .
2022-07-13 00:11 before: Age mth 0 : 5
2022-07-13 00:11 Error: Running LUA method 'loadSharedI3DFileFinished'.
C:/Users/Frank/Documents/My Games/FarmingSimulator2022/mods/FS22_RealLifeNumbers/RealNumbersAnimalScaling.lua:1801: attempt to concatenate a nil value
2022-07-13 00:15 Application restart (soft restart) We hope you can help us. Best regards JS39 from LS Real
Hello dear author. Is there any problem with this mod and Precision Farming?
Is there anyway to add a 3rd cycle? trying to make a "geo" for SE USA, and would like to add an additional month in the planting window as well an additional harvesting month, or is there a way to do that currently?
The new HOFBergmann map is not compatible with RealLifeNumbers. HOFBergmann has a non-standard definition of animals. I will try to make a version of the my_animalsTypes.xml file that works with the HOFBergmann map.
Hi strauts6,
My internet is not working. It will be days before I can get a technician to look at it. I will look into this as soon as possble. It is likely a warning, that some parameter is not defined. This happens most often, if you use some of the mods that generate extra contracts.
Hi, is it possible to disable mission info output in log file? Log file now consists 99% of this
2022-04-04 20:23 fertilize
2022-04-04 20:23 fieldArea = 9.2863
2022-04-04 20:23 fieldId = 54
2022-04-04 20:23 vehicleUseCost is not defined
Sometimes this info is not written to log, but when it is and every 10 in-game minutes, it causes massive stuttering and lag when trying to speed up time.
Thank you for the update!
Hi again! I'm also trying to use lAlt command and it doesn't work at all. Do you think that diferent keyboard language would interfere somehow?
I think I found the conflict. The conflict is with a mod called Net Wrap Addon (It's on the game mod hub)
Could you perhaps fix it so they can both work? If I'm not mistaken there is also the Twine Wrap Addon made by the same person, so I think it would conflict too!
I think I have a mod conflict but I don't know which one. Could you please help me track it down? I get this error: Running LUA method 'loadSharedI3DFileFinished'.
D:/Mods FS22/FS22_RealLifeNumbers/RealNumbersStorePrices.lua:245: bad argument #1 to 'find' (string expected, got nil) in the RealNumbersStorePrices.lua loading
While I wait for your answer I will try testing one mod by time
Hallo, Wir nutzen auf unserem MP Serverspiel ja noch die 1.0.0.8 da die 1.0.0.ja Probleme machte.
Es ist ja der erweiterte Kreditrahmen normal bis 2 Millionen. Diesen haben wir auf 4 Millionen erhöht da wir auf einer 4 Fachen Karte spielen und bei 0 anfingen. Aber bei 500 Tausend geht nichts mehr beim leihen. Ist da ein Fehler bekannt? Wir werden eventuell mal zum testen auf die ganz neue Version wechseln ob die nun geht. Wir haben in den game Settinges des Servers über FTP im Ordner modSettings den Reallifenumbers Ordner mit den xml reinkopiert. Wenn Du die Log oder was brauchst wo könnte ich Dir das dann hochladen? Danke für Deine Arbeit.
Hello, We use on our MP server game yes still the 1.0.0.8 because the 1.0.0.ja made problems.
It is indeed the extended credit line normal to 2 million. We’ve increased this to 4 million because we’re playing on a four-fold card and starting at 0. But at 500 grand, there’s nothing to borrow. Is there a known mistake? We will eventually switch to the new version to test whether it is now possible. We have copied the Reallifenumbers folder with the xml in the game settings of the server via FTP in the modSettings folder. If you need the log or what you need where could I upload it to you then? Thank you for your work.
Version 1.0.0.10 has been renumbered to version 1.0.1.0 so that the newest version will be listed at the top of the download list. No other changes hav been made. between 1.0.0.10 and 1.0.1.0.
hello, i am having an issue, i added XML files\UK\my_Contracts.xml by mistake, i have deleted it but only if i have XML files\UK\my_animalTypes.xml the XML files\UK\my_Contracts.xml are activated in game i only want the animaltypes, how can i fx the issue??
Im Mod Settings Ordner ist bei mir reallifenumbers gar nicht angelegt. Nur andere Mods obwohl ich immer mit Reallifenumbers spiele. Sowohl auf Server im MP wie auch im SP.
In the Mod Settings folder reallifenumbers is not created at all. Only other mods although I always play with reallifenumbers. Both on servers in the MP and in the SP.
Hallo, wo finde ich den die my_contracts xml file? Habe Sie irgendwie nirgends gefunden.Grüße JS39. Hello, where can I find the my_contracts xml file? I didn’t find you anywhere.Greetings JS39
Regarding the problem reported by JS39. I experienced a sudden failure in the script RealNumbersContractRewards.lua. 5 minuttes into the game a lot of error messages where written to the log complaining that the calculation of vehicleUseCost failed. I saved the game and stopped it, and reloaded the same game. Then the error messages did not come back. This could possibly be something that is triggered when new missions are generated, and the new missions have not been read into the game. I don't know the answer yet. Just wanted to let you know that I have seen an issue, and is disappeared after restarting the savegame. I will take a closer look in the weekend.
JS39, for some reason I cannot reply to your posting.
You error happens at line 526 in the script.
if fieldArea < RN.contractRewards.SMALL_FIELD[missionName] then
This line asks if the field area is so small that we should use the high contract rate. This is relevant only to harvest contracts.
I tested it on a game with a harvest contract for a small field of 4.5 ha. My log file gives me these lines:
2022-02-08 21:08 Field id = 23
2022-02-08 21:08 Field area = 4.50 ha
2022-02-08 21:08 Reward per ha = 102 £/ha
2022-02-08 21:08 Payment = 458.78 £
2022-02-08 21:08 Rented equipment deduction = 44.98 £
The field area is 4.5 ha, so it should apply the high contract rate of 102 £/ha. So it seems to work on my game.
It would be best if you could mail me the log file and the my_Contracts.xml file.