Community Forum

function xxx:load(xmlFile)

Forum Overview >> Farming Simulator 2009

CategoryFarming Simulator 2009
Created28.06.2009 09:56

Claudio Accotardi (Unknown) 28.06.2009 10:04
Is possible what different script call equal mod?
I explain, the variable xmlFile can be assign identical number for two different mod?
If two script is equal but the name of lua and name of function is different the variable xmlFile are equal or different?
Best regards

Stefan Geiger - GIANTS Software 29.06.2009 09:03
The integer that is given in the variable xmlFile is changing from call to call.
Even though it points to the same xml filename, it may have a different number. Thus, comparing xmlFile values, does not make any sense.

However you can use self.configFileName to check whether it is the very same xml file than that of another vehicle.

Claudio Accotardi (Unknown) 30.06.2009 19:19
Best regards

Claudio Accotardi (Unknown) 30.06.2009 19:52
I have write into function:
function Raba_Cultivator:load(xmlFile)
print("Amazon int: "..xmlFile.." Name xml:"..self.configFileName());
but don't work.
What I mistake?
Thanks in advance
Best regards

Stefan Geiger - GIANTS Software 01.07.2009 08:39
self.configFileName is not a function, it's a string value.

Simply use self.configFileName instead of self.configFileName()

Claudio Accotardi (Unknown) 01.07.2009 20:59
Everythibg's OK.
Best regards

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