|Bad Touch (Unknown)||25.08.2015 01:22|
|Was wondering if you can tell me where the bale information can be accessed when playing MP on dedicated server. In regular MP (and in SP), they are stored in the g_currentMission_itemsToSave table, and I also see them in the g_currentMission_objectsToClassName table.
|Emil Drefers (Unknown)||25.08.2015 08:17|
just wondering what you wanna do with that information and where the problem is?
The scripts for the baler can be found here:
|Bad Touch (Unknown)||25.08.2015 16:02|
|I was wanting to display the number of bales on each field within my mod. As I say, it works perfectly in SP and in normal MP, but when on dedicated server, the information seems to disappear. It's not available anywhere, and I've looked. So why is it hidden during dedi server MP games? I know it's in the vehicles.xml file, but I don't think that's accessible either since it's on the dedi server.
I really would like to know where I can find the bale information.
|Emil Drefers (Unknown)||26.08.2015 08:04|
the vehicles.xml is only used when the game is saved/loaded.
A running game will keep the information about the bales in a certain table, which you have already noticed.
Let's have a look at the BaleLoader.lua ...
It contains the function "getBaleInRange()", which is executed on client and on server side.
This function just checks the contents of the afore mentioned table.
So, I would guess that your code is not yet perfect?
Please have a look at your code again or try to post your code (preferably via a link to pastebinc.om), so we can have a look and maybe test it too.
Note: Log in to post. Create a new account here.