• 0

    posted a message on [WIP] The Precursor -- I'm Back after 2 Years!
    I know, I know. Necropost!

    I just have to mention that I'm back into modding The Precursor, it's all explained in the first post.
    Post any suggestions and I'll do my best to get some content posted here!

    -Muserae
    Posted in: WIP Mods
  • 0

    posted a message on Adding an Int goes for 1 player and not all
    Quote from Rinnsal

    well, you need to do this through packet handlers and store it server-side. also, incrementing should only be done server-side, so everytime you mine the client tells the server "heya, mined, pls increment the number".


    You don't happen to know a good tutorial about packets, do you? I never messed with servers before xD
    Posted in: Modification Development
  • 1

    posted a message on [Forge] How to check if helmet eqiuped
    you want to make an if statement using minecraft.thePlayer.inventory.armorInventory[3];
    Posted in: Modification Development
  • 0

    posted a message on Telling which world you're in
    Going by what Crudedragos said:

    I tried mc.theWorld.getWorldInfo() awhile ago and got some weird thing, not knowing it extended to .getWorldName
    When I did mc.theWorld.getWorldInfo().getWorldName(), I only got MpServer regardless of the world name.
    Posted in: Modification Development
  • 0

    posted a message on Telling which world you're in
    Quote from qwertysam

    Hmm... I can't seem to get this method to work either. Could you please give me an example of it being used? Such as to find the name of the current world you have open?


    I'm not 100% on how to show the world name, although this is the code that does it in the world select screen


    SaveFormatComparator var6 = (SaveFormatComparator)GuiSelectWorld.getSize(this.parentWorldGui).get(par1);
    String var7 = var6.getDisplayName();

    For ModLoader:
    ModLoader.getMinecraftInstance().thePlayer
    is the same as
    mc.thePlayer

    ModLoader.getMinecraftInstance().theWorld
    is the same as
    mc.theWorld
    Posted in: Modification Development
  • 0

    posted a message on Adding an Int goes for 1 player and not all
    I'm working on something for multiplayer. I made it so when an ore is mined, secretInt += 5. If player two mines an ore, player one gets the += 5, and not the one that mined it. Player one will get it if they mine it also. I don't know if this is just because it's the LAN server, or if there's something else wrong. Could anyone help with this?

    If I didn't explain this well enough, please tell me :)

    ~Muserae
    Posted in: Modification Development
  • 1

    posted a message on Armor movement speed
    My guess is because you have -100F, players are defaulted as 0.1F
    I'd go something like 0.05F or something

    If that doesn't work, it might be because it's in a mod_ class and not EntityPlayer. It sucks that you'd have to edit a base, but the ModAPI will stop that when it comes out, hopefully anyway.
    Posted in: Modification Development
  • 0

    posted a message on Telling which world you're in
    instead of mc, you need to do ModLoader.getMinecraftInstance().

    Some classes don't have access to mc, so you use the above thing instead.
    Posted in: Modification Development
  • 0

    posted a message on [May 23, 2012][ModLoader]Muserae's Modding Tutorials
    Quote from HakuYuki

    I've looked at tens of different tutorials, and tried everythng possible, but I cannot get rid of these errors. Any advice?



    From what I can guess, you've added or edited a class that has an error in it. If you maximize the one with the error, you can look for a class with the same X, that's where the problem is.
    Posted in: Tutorials
  • 0

    posted a message on Post your Picture
    Figured I'd do all the girls a favor.

    Posted in: General Off Topic
  • 0

    posted a message on [WIP] The Precursor -- I'm Back after 2 Years!
    Sorry to anyone who's watching the mod progression. I try to work when I can, but there's so much going on right now in my life. I barely have any free time right now. Hopefully things will slow down after Christmas break when the new semester starts. Right now what I've been working on is the new skill system, I fix a bug and another comes up; really close to finishing the skill base. I'm also thinking of new ideas of things to add, I'll make a poll on what you think should be added.

    ~Muserae
    Posted in: WIP Mods
  • 1

    posted a message on [1.2.5] Muserae's Tweaks
    I'm a little busy for the next few days, I have to take a 3 hour test tomorrow, for example.
    I'll get to it as soon as I can, don't you worry.

    -Muserae
    Posted in: Minecraft Mods
  • 0

    posted a message on Adding an Integer doesn't update GUI
    Quote from SpitefulFox

    Are you editing base files? :o


    Ya, I have to :/
    Posted in: Modification Development
  • 0

    posted a message on Adding an Integer doesn't update GUI
    Quote from meeees

    I'm not quite sure what you're trying to do, it looks like an xp counter for only killing zombies, is that right?
    well the only advice I have is to make sure the gui is referencing the variable right, it'd be easier if I could see the gui code, if you don't wanna post it just pm it to me, because it's kind of hard to find problems when you can't see everything that could be a factor
    the other thing would be that you're trying it on mobs other than zombies even tho the zombie check is in there


    Really the only one necessary is the display code, which is here:
      drawString(fontRenderer, (new StringBuilder()).append("").append(mc.thePlayer.testShow2).toString(), 10, 25, 0xffffff);
    Posted in: Modification Development
  • 0

    posted a message on Adding an Integer doesn't update GUI
    I have this integer, and I'm pretty sure this is the problem. I have it named testShow2 to test if it'll update or not. When I put testShow2++ in onUpdate, it updates in the GUI, but when I do what's below, it stays shown as 0. How can I get so when it does testShow2 += 50, it'll update it in my GUI?

    EntityPlayer
        public void onKillEntity(EntityLiving par1EntityLiving)
        {
    	 EntityPlayer playerItem = ModLoader.getMinecraftInstance().thePlayer;
    	 if(par1EntityLiving instanceof EntityMob)
    	 {
    	  if(playerItem != null && playerItem.getCurrentEquippedItem().itemID == Item.bow.shiftedIndex)
    	  {
    	   this.triggerAchievement(AchievementList.killEnemy);
    	   if(par1EntityLiving instanceof EntityZombie)
    	   {
    	    testShow2 += 50;
    	    //this.spawnSkillExp(this.worldObj, 1, 50);
    	   }
    	  }
    	  else
    	  {
    	   this.triggerAchievement(AchievementList.killEnemy);
    	   if(par1EntityLiving instanceof EntityZombie)
    	   {
    	    testShow2 += 50;
    	    //this.spawnSkillExp(this.worldObj, 1, 50);
    	   }
    	  }
    	 }
        }


    -Muserae
    Posted in: Modification Development
  • To post a comment, please or register a new account.