Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • SirNiloc

SirNiloc

Forge Modder
 View Profile  See their activity
  • Content Count

    18
  • Joined

    July 4, 2014
  • Last visited

    July 9, 2015

Community Reputation

0 Neutral

About SirNiloc

  • Rank
    Tree Puncher
  • Birthday 05/02/1996

Converted

  • Gender
    Male
  • Location
    USA
  • Personal Text
    Hello!
  1. SirNiloc started following [SOLVED][1.8] Server Crash java.lang.NoClassDefFoundError February 1, 2017
  2. SirNiloc

    [SOLVED][1.8] Server Crash java.lang.NoClassDefFoundError

    SirNiloc replied to SirNiloc's topic in Modder Support

    Here is my player class package _indev.inprogress; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.World; import com.sirniloc.sirocelot.SirOcelot; import com.sirniloc.sirocelot.entity.SirOcelotLivingBase; import com.sirniloc.sirocelot.network.CommonProxy; import com.sirniloc.sirocelot.network.packets.Packet_001_Skill; import com.sirniloc.sirocelot.network.packets.SendPacket; import com.sirniloc.sirocelot.skills.SkillHandler; public class SirOcelotPlayer extends SirOcelotLivingBase { public final static String EXT_PROP_NAME = SirOcelot.MODID+"Player"; private final EntityPlayer player; public SirOcelotPlayer(EntityPlayer player) { super(player); this.player = player; } public static final void register(EntityPlayer player) { player.registerExtendedProperties(SirOcelotPlayer.EXT_PROP_NAME, new SirOcelotPlayer(player)); } @Override public void init(Entity entity, World world) { } /* public int getDamage(int amount) { //int con = this.player.getDataWatcher().getWatchableObjectInt(CONSTITUTION_WATCHER); int damage = 0; // These two lines are the same as before con -= amount; if(con < 0){ damage = con*-1; con = 0; } // Update the data watcher object with the new value //this.player.getDataWatcher().updateObject(CONSTITUTION_WATCHER, con); // note that we no longer need to call 'sync()' to update the client return damage; } public void fillCon() { //this.player.getDataWatcher().updateObject(CONSTITUTION_WATCHER, this.maxConstitution); } // Simple change public final int getCurrentConstitution() { return this.player.getDataWatcher().getWatchableObjectInt(CONSTITUTION_WATCHER); } public final void setCurrentConstitution(int amount) { this.player.getDataWatcher().updateObject(CONSTITUTION_WATCHER, (amount < this.maxConstitution ? amount : this.maxConstitution)); } /** * Makes it look nicer in the methods save/loadProxyData */ public static void saveProxyData(EntityPlayer player) { SirOcelotPlayer playerData = (SirOcelotPlayer) SirOcelotPlayer.get(player); NBTTagCompound savedData = new NBTTagCompound(); playerData.saveNBTData(savedData); CommonProxy.storeEntityData(getSaveKey(player), savedData); } public static void loadProxyData(EntityPlayer player) { SirOcelotPlayer playerData = (SirOcelotPlayer) SirOcelotPlayer.get(player); NBTTagCompound savedData = CommonProxy.getEntityData(getSaveKey(player)); if(savedData != null) { playerData.loadNBTData(savedData); } } public final void sync() { for(int j = 1; j <= SkillHandler.SKILL_COUNT; j++){ int id = j; int level = skills.getSkillLevel(j); SendPacket.sendServerToClient(SirOcelot.getChannels(), new Packet_001_Skill(id,level), player); } } }[\code]
    • July 9, 2015
    • 5 replies
  3. SirNiloc

    [SOLVED][1.8] Server Crash java.lang.NoClassDefFoundError

    SirNiloc posted a topic in Modder Support

    I may just be doing something dumb and have tunnel vision coding. This is the error package com.sirniloc.sirocelot; import java.util.EnumMap; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.FMLCommonHandler; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.network.FMLEmbeddedChannel; import net.minecraftforge.fml.common.network.NetworkRegistry; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import _indev.inprogress.SirOcelotEventHandler; import _indev.inprogress.SirOcelotPlayer; import com.sirniloc.sirocelot.input.KeyBindingHandler; import com.sirniloc.sirocelot.network.ChannelHandler; import com.sirniloc.sirocelot.network.CommonProxy; @Mod(modid = SirOcelot.MODID, name = SirOcelot.NAME, version = SirOcelot.VERSION) public class SirOcelot { public static final String NAME = "SirOcelot"; public static final String MODID = "sirocelot"; public static final String VERSION = "0.0"; @SidedProxy(clientSide = "com.sirniloc.sirocelot.network.ClientProxy", serverSide = "com.sirniloc.sirocelot.network.CommonProxy") public static CommonProxy proxy; 35. static EnumMap<Side, FMLEmbeddedChannel> channels = NetworkRegistry.INSTANCE.newChannel(MODID, new ChannelHandler()); public static final boolean DEVMODE = true; public static SirOcelotPlayer clientPlayer; @Instance("sirocelot") public SirOcelot instance; @EventHandler public void preInit(FMLInitializationEvent event){ System.out.println("PREINIT SirOcelot started"); preInitKeys(); System.out.println("PREINIT SirOcelot finished"); } @EventHandler public void init(FMLInitializationEvent event){ System.out.println("INTIT SirOcelot started"); System.out.println("INTIT SirOcelot finished"); } @EventHandler public void postInit(FMLInitializationEvent event){ System.out.println("POST SirOcelot started"); initEvents(); System.out.println("POST SirOcelot finished"); } private void preInitKeys() { if(FMLCommonHandler.instance().getEffectiveSide().isClient()){ FMLCommonHandler.instance().bus().register(new KeyBindingHandler()); KeyBindingHandler.preInit(); } } private void initEvents(){ MinecraftForge.EVENT_BUS.register(new SirOcelotEventHandler()); } public static EnumMap<Side, FMLEmbeddedChannel> getChannels(){ return channels; } public static SirOcelotPlayer getClientPlayer(){ return clientPlayer; } }
    • July 8, 2015
    • 5 replies
  4. SirNiloc

    Sir's Modding Team

    SirNiloc posted a topic in Minecraft General

    Hello guys/gals! First off I'm not sure if this is the best place to put this but here goes nothing. I have always worked on mods solo and it takes loads of time, so now I think I'll try making a team. The team would be mostly democratic. If you would like to help I would sure appreciate it! 1: Texture 2: More Programmers 3: Model and Animation Artist 4: Sound 5: Testers* 6: Other - so anything you think you could help with please pm me! Nickname: Email: Age: Job: Experience: please PM applications but responding here is also fine ___________________________________________________________________________________________________________ Example Nickname: SirNiloc Email: email@mail.com Age: 19 Job: Programmer Experience: I have made some private mods as well as Sir's Mod(http://www.planetminecraft.com/mod/sir-2766752/).
    • January 16, 2015
  5. SirNiloc

    [How-To]Build multiple separate projects with Gradle

    SirNiloc replied to GotoLink's topic in ForgeGradle

    Mine won't build. * What went wrong: A problem occurred evaluating project ':Project1'. > Could not find method processResources() for arguments [build_60m7ce4rho9j76mu eei15hel03$_run_closure2@1698f66] on project ':Project1'.
    • August 8, 2014
    • 24 replies
  6. SirNiloc

    [1.7.2] Can you change a particle's color?/how to use firework particle colors

    SirNiloc replied to SirNiloc's topic in Modder Support

    Thanks so much I'll take a look at it.
    • July 11, 2014
    • 2 replies
  7. SirNiloc

    [1.7.2] Can you change a particle's color?/how to use firework particle colors

    SirNiloc posted a topic in Modder Support

    So I was wondering how you could change a particle's color like fireworks. Or if that is something else how do I spawn those.
    • July 10, 2014
    • 2 replies
  8. SirNiloc

    [1.7.2] [Solved]Overlay/GUI crashes server but works on singleplayer

    SirNiloc posted a topic in Modder Support

    I can play singleplayer fine but when I try to start a server it crashes. I've look through and can't seem to find the problem. I am also very new to GUIs. Any suggestions?
    • July 10, 2014
  9. SirNiloc

    [Solved] [1.7.2] Custom Combat - Better alternative to entity.setHealth()?

    SirNiloc replied to SirNiloc's topic in Modder Support

    Thank you so much I used the 2nd and it worked great!
    • July 5, 2014
    • 13 replies
  10. SirNiloc

    [Solved] [1.7.2] Custom Combat - Better alternative to entity.setHealth()?

    SirNiloc replied to SirNiloc's topic in Modder Support

    damageEntity is protected so i can't access it or I just don't know how
    • July 4, 2014
    • 13 replies
  11. SirNiloc

    [Solved] [1.7.2] Custom Combat - Better alternative to entity.setHealth()?

    SirNiloc replied to SirNiloc's topic in Modder Support

    I'll take a look thnx
    • July 4, 2014
    • 13 replies
  12. SirNiloc

    [Solved] [1.7.2] Custom Combat - Better alternative to entity.setHealth()?

    SirNiloc replied to SirNiloc's topic in Modder Support

    Yes that's what I thought it would do, the thing is I don't know where to put it, I have been using the .setHealth in there becasue I don't know were else to put .attackEntityFrom.
    • July 4, 2014
    • 13 replies
  13. SirNiloc

    [Solved] [1.7.2] Custom Combat - Better alternative to entity.setHealth()?

    SirNiloc replied to SirNiloc's topic in Modder Support

    I do know that is the problem I can go through the crashlogs. I just don't know exactly how to use line 86.
    • July 4, 2014
    • 13 replies
  14. SirNiloc

    [Solved] [1.7.2] Custom Combat - Better alternative to entity.setHealth()?

    SirNiloc replied to SirNiloc's topic in Modder Support

    • July 4, 2014
    • 13 replies
  15. SirNiloc

    [Solved] [1.7.2] Custom Combat - Better alternative to entity.setHealth()?

    SirNiloc replied to SirNiloc's topic in Modder Support

    I've tried that but it crashes and im not sure why. I have the special combat stuff called in LivingAttackEvent if that would mess things up.
    • July 4, 2014
    • 13 replies
  16. SirNiloc

    [Solved] [1.7.2] Custom Combat - Better alternative to entity.setHealth()?

    SirNiloc posted a topic in Modder Support

    So I have been working on a mod that adds lots of stuff that I randomly think up or that gets suggested to me. Anyway I have started work on adding Dungeons and Dragons type skills. The problem is when I use them for combat it is really buggy. For example I am an Elf who is level 1 with 1 Constitution, 2 Strength, and 3 Dexterity. IN my code i have some equations to calculate the resulting damage. Then I use entity.setHealth(calcHealth); (float health = entity.getHealth(); float calcHealth = health - getTotal(a, d); ) which looks good on the outside but when the entity "dies" it sometimes does a spazzy death animation and keeps fighting. Sorry if this is confusing, and thanks in advance.
    • July 4, 2014
    • 13 replies
  • All Activity
  • Home
  • SirNiloc
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community