Community Forum

Where is bale information stored on Dedicated Server?

Forum Overview >> Scripting

CategoryScripting
Created25.08.2015 01:19


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.

Please help!

Thanks,
Alan

Emil Drefers (Unknown) 25.08.2015 08:17
Hi,

just wondering what you wanna do with that information and where the problem is?

The scripts for the baler can be found here:
http://ls-mods.de/scriptDocumentation.php

Cheers,
Emil

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.

Thank you,
Alan

Emil Drefers (Unknown) 26.08.2015 08:04
Hi,

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 ...
http://ls-mods.de/scriptDocumentation.php?lua_file=vehicles/specializations/BaleLoader

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.


Cheers,
Emil







Note: Log in to post. Create a new account here.