
-----------------------------------
GreatPumpkin
Sat Mar 22, 2014 10:53 pm

Importing classes from custom library of folders?
-----------------------------------
What is it you are trying to achieve?
I'm trying to import classes from multiple folders in a single main file. It's been working so far, but now I'm trying to import a vehicleClass that references a unitClass from a separate folder.


What is the problem you are having?
I keep getting errors every way I try to import them.


Describe what you have tried to solve this problem



Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)

This is the import for my main file, the on above all my classes:



import cursorModule in "classes/cursorModule/cursorModule.tu",
    tileClass in "classes/tileClass/tileClass.tu",
    unitClass in "classes/unitClass/unitClass.tu",
    landUnitClass in "classes/unitClass/landUnitClass.tu",
    vehicleClass in "classes/vehicleClass/vehicleClass.tu",
    buttonClass in "classes/GUIClass/buttonClass.tu",
    GUIClass in "classes/GUIClass/GUIClass.tu"



And these are the import's I've tried in the vehicleClass



unit
class vehicleClass
    import unitClass in "classes/unitClass/unitClass.tu"



The error I get is:
Unable to open file ""classes/unitClass/unitClass.tu"" in 

unit
class vehicleClass
    import unitClass



The error I get is:
Unable to open file "unitClass" in Please specify what version of Turing you are using


-----------------------------------
Raknarg
Sat Mar 22, 2014 11:00 pm

RE:Importing classes from custom library of folders?
-----------------------------------
Put your code in a zip file and pm me or upload it here

-----------------------------------
GreatPumpkin
Sun Mar 23, 2014 5:24 pm

RE:Importing classes from custom library of folders?
-----------------------------------
I sent you a pm Raknarg.
