Community Forum

g_currentModDirectory issues with original LS09

Forum Overview >> Farming Simulator 2009

CategoryFarming Simulator 2009
Created14.02.2010 21:56


Heady Planet-ls (Headshot XXL) 14.02.2010 22:01
Hello,

i have found a bug: http://ls-mods.de/scriptDocumentation.php?class=utils#getFilename
the variable "g_currentModDirectory" does not work in LS09, but in LS09 gold edition.

but the content was created months before the LS09 gold edition released.

Christian Ammann - GIANTS Software 15.02.2010 11:16
Hi Christoph,

What do you mean g_currentModDirectory doesn't work?

Cheers

Heady Planet-ls (Headshot XXL) 15.02.2010 21:43
with the function "Utils.getFilename("fruitTypesilage.png", g_currentModDirectory)"
i get a error in log: "Error: Can't load resource: fruitTypesilage.png".

the png file is in the zip.

in ls09 the file was not found, but in ls09 gold edition the file was found.




Christian Ammann - GIANTS Software 16.02.2010 10:17
Hi Christoph,

What does print(g_currentModDirectory); say?

Cheers

Heady Planet-ls (Headshot XXL) 16.02.2010 11:33
LS09 Gold Edition: "...Eigene Dateien/My Games/FarmingSimulator2009/mods/aFilltypSilage/"
LS09: "" <-- nothing

Stefan Geiger - GIANTS Software 22.02.2010 10:24
This is right, the variable g_currentModDirectory was only introduced in the Gold Edition.


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