• 0

    posted a message on ---> Intellij support <--- [SOLVED]
    What I meant with "putting it in before launch" was : Run Configurations > Before Launch.

    TE: So I have a TileEntity which prints out the "x" variable. It does print it out but once I reload the world save (not the game) the nbt is still there, but it isn't printing anything anymore? And when I restart the game, the nbt is gone and it works(it updates)?..
    Posted in: Modification Development
  • 0

    posted a message on ---> Intellij support <--- [SOLVED]
    Maybe the Intellij version is the one causing the resource stuff.. As I've only seen Intellij IDEA 14 users have this problem? Might be wrong though :D

    Also, I didn't manually copy them to an artifact foldeR??

    EDIT: ALSO: My tileEntity doesn't seems to update after I restart the world? And it resets once I restart the game.. D: Does anybody know why :/ ?
     @Override
    public void updateEntity()
    {
     //super.updateEntity();
    
    if(listener != null)
     System.err.println(((TileEntityModule)listener).xCoord);
    
     if(ID.equals(""))
     ID = SignalHelper.generateCode();
    
     if(timer >= 20)
     {
     // System.err.println(this.ID + "  :: " + blockCoord.toString());
    
    timer = 0;
    
    }
     else
    timer++;
    }
    
    @Override
    public void writeToNBT(NBTTagCompound nbt)
    {
     super.writeToNBT(nbt);
    nbt.setInteger("timer", timer);
    nbt.setString("signal", ID);
    
    TileEntityModule tile = (TileEntityModule)listener;
    
    NBTTagCompound nbt2 = new NBTTagCompound();
    
    nbt2.setInteger("x", tile.xCoord);
    nbt2.setInteger("y", tile.yCoord);
    nbt2.setInteger("z", tile.zCoord);
    
    nbt.setTag("listener", nbt2);
    }
    
    @Override
    public void readFromNBT(NBTTagCompound nbt)
    {
     super.readFromNBT(nbt);
    timer = nbt.getInteger("timer");
    ID = nbt.getString("signal");
    
    NBTTagCompound nbt2 = nbt.getCompoundTag("listener");
    
    listener = (ISignalListener)worldObj.getTileEntity(nbt2.getInteger("x"), nbt2.getInteger("y"), nbt2.getInteger("z"));
    }
    Posted in: Modification Development
  • 0

    posted a message on ---> Intellij support <--- [SOLVED]
    Solved it by adding an artifact.

    Output directory: "projectName\build\classes\main"
    Directory content: pointing to the resource folder where the sub folder is "src\main\resources"

    Then basically just putting it in before launch.
    Posted in: Modification Development
  • 0

    posted a message on Infinte sprite sheets and standard block rendering
    Tile entities?

    EDIT: Didn't see that he didn't want to use them :D
    Posted in: Modification Development
  • 0

    posted a message on Crash in ServerTickEvent
    Why are you using a TickEvent in a tileEntity anyway?
    Posted in: Modification Development
  • 0

    posted a message on How do I define the player?
    Do you have a method with an EntityPlayer parameter? If that's the case: "job's done"
    Posted in: Modification Development
  • 0

    posted a message on ---> Intellij support <--- [SOLVED]
    Quote from GotoLink»

    Did you use 'gradlew genIntellijRuns', or did you set it manually ?

    Yep, I used that
    Posted in: Modification Development
  • 0

    posted a message on ---> Intellij support <--- [SOLVED]
    Quote from GotoLink»
    Well at this point your mod should work.
    IntelliJ is as simple to use for Forge modding as Eclipse.

    If you still have the same problem, we might have to review all your module settings one by one. Including run configurations, compile path...
    Assuming you didn't simply have a mistake in your code for the textures path.

    Run
    gradlew build

    Then test the mod in Minecraft. If it works, we'll be sure the fault is within IntelliJ.

    Textures works perfectly outside of Intellij .. I guess something is wrong with my setup of Intellij then?

    EDIT: Were these the ones you wanted to see?
    http://imgur.com/lPnvgbk,cJdnR05
    Posted in: Modification Development
  • 0

    posted a message on ---> Intellij support <--- [SOLVED]
    As long as I get help with the second problem :3
    Posted in: Modification Development
  • 0

    posted a message on ---> Intellij support <--- [SOLVED]
    Yea, my stuff is in build/classes as I don't have an out folder in there.
    Posted in: Modification Development
  • 0

    posted a message on ---> Intellij support <--- [SOLVED]
    Quote from GotoLink»
    1/ TileEntity#writeToNBT(NBTTagCompound)

    2/ You might want to restart and recompile the project after setting the resources folder in the module settings. This should happen automatically by importing the build.gradle file at the time of creating the project.

    1. Thanks, forgot about that! How'd I implement it though, as it isn't returning a NBTTag? Do I just have to supply the parent one to it?
    2. The module settings were automatically setup when I made the project.


    [quote=master801;/members/master801;/forums/mapping-and-modding/minecraft-mods/modification-development/2290227-saving-tileentity-and-intellij-support?comment=11]
    How do you setup your workspace? But first, try looking in your the folders "build"; "eclipse"; and "gradle" for the folder. They might be oddly placed?

    These are mine:

    CLEAN.bat
     gradle clean --refresh-dependencies

    BUILD.bat
     gradle --refresh-dependencies setupDecompWorkspace idea
    It seems like the build folder has the files, eclipse only has the normal minecraft stuff and gradle only has the wrapper .. ?

    edit :What the hell happend to the quote o.O?
    Posted in: Modification Development
  • 0

    posted a message on ---> Intellij support <--- [SOLVED]
    No,
    Does that mean I've set the project up wrong ? :3
    Posted in: Modification Development
  • 0

    posted a message on ---> Intellij support <--- [SOLVED]
    I don't seem to have one of those folders? Could it be called something else or is it generated at some point?
    Posted in: Modification Development
  • 0

    posted a message on ---> Intellij support <--- [SOLVED]
    The only problem now is that the stuff there is untouched.. So I don't know what else might be wrong :Y
    Posted in: Modification Development
  • 0

    posted a message on ---> Intellij support <--- [SOLVED]
    Hmm.. I would believe that it is setup correctly. But I am not sure :/
    Do you mean like that ^?
    Posted in: Modification Development
  • To post a comment, please .