Resolved Terasology not loading mods on latest git version

Discussion in 'Support' started by nh_99, May 20, 2013.

  1. nh_99

    nh_99 New Member

    I have been having an issue with the version of terasology in the develop branch of git where I can't run the game with mods. The game log says that there is no source in all of the mods when there clearly is and doesn't show the images for the modded tools that should be in the game.


    This is the log that I get: http://pastebin.com/S0rt9k2k

    This is what I get when I use gradlew idea to compile the mods: http://imgur.com/V8zfTB
  2. Cervator

    Cervator Project Lead and Community Wizard Staff Member

    Tested around a bit with nh_99 on IRC. Game works when started with "gradlew run" but despite a "gradlew idea" creating a valid project structure that can be opened in IntelliJ, and even show the modules in bold, hasCode = false for all modules.

    In looking at the startup logging vs. what I get on my system stuff I noticed includes:

    The encoded space probably doesn't matter, we tried plain C:\Terasology too. But "classes" vs. "out" differs.

    Parsing produces slightly fewer items on his system vs. mine too:

    Last big difference is my side scanning module URLs and finding things, nh_99 instead getting a ton of deserialization errors on all the module objects are are invoked on a normal run (which doesn't crash the game, just leaves none of it working)
    Immortius / mkalb / somebody - might need to ask for some ideas :)
  3. mkalb

    mkalb Active Member

    I don't have time the next days, but I can look at it at the weekend.
  4. Immortius

    Immortius Lead Software Architect Staff Member

    Hmm, I just did a clean setup of Terasology from latest develop with no issue, so not sure. Sounds like the mod code hasn't been compiled though.

    I guess the questions I would ask are:
    * Have you checked whether the classes subdirectories exist in each mod with code, and are populated?
    * Have you turned on "Make Project Automatically" in IntelliJ (I would recommend this). Otherwise you can choose Build->Rebuild project which should also compile all the mods. (Remember, running Terasology in IntelliJ doesn't cause the mods to compile because Terasology doesn't depend on them).

    Although 'gradlew run' should have compiled the mods.
  5. Cervator

    Cervator Project Lead and Community Wizard Staff Member

    It seemingly did, as running from the command line allowed the game modules to work. But running from inside IntelliJ fails to find stuff. It is almost like running via IntelliJ looks for compiled stuff in the wrong place ("out" vs "classes" ?)
  6. nh_99

    nh_99 New Member

    I rebuilt the project and it is working now. Thanks!
  7. nh_99

    nh_99 New Member

    So, I figured out it was just working because of the forced gradle compile. As requested from Cervator here is a screenshot of my project structure: projectstrucute.PNG
  8. nh_99

    nh_99 New Member

    Another one: projectstructure2.PNG
  9. Cervator

    Cervator Project Lead and Community Wizard Staff Member

    Thanks :)

    Two more small requests, screenie not needed just copy paste

    1) Under Project Settings / Project what is the project compiler output? For me it is C:\LocalStorage\Terasology\Terasology\out (on my work laptop, anyway)
    2) Under the Terasology module, on the Paths tab, is Compiler Output set to inherit? If not, what are the settings?
    3) On a sample module with code (although probably any one works), again on the Paths tab, is Compiler Output hard-set to a value and if so which? My example: C:\LocalStorage\Terasology\Terasology\mods\portals\classes
  10. nh_99

    nh_99 New Member

    1) Compiler output: C:\Users\Noah\IntelliJ Projects\Tera-Git\classes
    2) Inherit, yes
    3) Inherit

    EDIT: As a note, there is no out folder in my project.
  11. nh_99

    nh_99 New Member

    I changed the output to out but it still won't run with mods even though all of their source is there. Is there something that I a missing?
  12. Cervator

    Cervator Project Lead and Community Wizard Staff Member

    Looks like we found it. Still might be able to narrow down the root cause (modules, #3 above, shouldn't be on inherit, but how did that happen), but found a fix in tweaking the compiler output for modules anyway :)

    I'll leave further details / testing / wiki fun for nh_99 - thanks for sticking with it!
  13. nh_99

    nh_99 New Member

    Yeah, I am going to do a bit of further testing just to see if something might have caused it. I am not completely sure, but could it have something to do with windows 8?
  14. Cervator

    Cervator Project Lead and Community Wizard Staff Member

    Maaayyyybe ... I don't think we have a lot of devs on Win8 yet. Still, that would be a long shot. Sort of the same thing with Java 7 - no real reason it should work differently, but most are using 6 still.
  15. mkalb

    mkalb Active Member

    Can you try this at the console/command line:
    <Close IntelliJIDEA>
    gradlew clean cleanIdea
    gradlew idea
    <Open IntelliJIDEA>
  16. nh_99

    nh_99 New Member

    Found out why this was happening. Instead of opening the project like I should have I was importing it from gradle.
    • Informative Informative x 1

Share This Page