Jump to content




Help Turtleupgrade Working But Turtle Not Appearing In Cctab

help

8 replies to this topic

#1 louitzie

  • Members
  • 50 posts

Posted 21 August 2013 - 04:36 AM

my turtleUpgrade is working but its turtle isnt appearing in CCTab and TurtleUpgrade.isSecret() is false

please help me

#2 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 21 August 2013 - 09:37 PM

Post code? We can't really help unless we have more info.

#3 louitzie

  • Members
  • 50 posts

Posted 22 August 2013 - 04:43 AM

package louis.arduino;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import dan200.computer.api.IHostedPeripheral;
import dan200.turtle.api.ITurtleAccess;
import dan200.turtle.api.ITurtleUpgrade;
import dan200.turtle.api.TurtleSide;
import dan200.turtle.api.TurtleUpgradeType;
import dan200.turtle.api.TurtleVerb;
public class ArduinoTurtle implements ITurtleUpgrade {
@Override
public int getUpgradeID()
{
  return 64;
}
@Override
public String getAdjective()
{
  return "Arduino";
}
@Override
public TurtleUpgradeType getType()
{
  return TurtleUpgradeType.Peripheral;
}
@Override
public ItemStack getCraftingItem()
{
  return new ItemStack(Arduino.blockarduino);
}
@Override
public boolean isSecret()
{
  return false;
}
@Override
public IHostedPeripheral createPeripheral(ITurtleAccess turtle, TurtleSide side)
{
  return new ArduinoPeripheral();
}
@Override
public boolean useTool(ITurtleAccess turtle, TurtleSide side, TurtleVerb verb, int direction)
{
  return false;
}
@Override
public Icon getIcon(ITurtleAccess turtle, TurtleSide side)
{
  return Arduino.blockarduino.getIcon(0, 0);
}
}

thats the turtleUpgrade file

btw this mod is for personal use, i just want to know why its only working with the recipe

#4 GopherAtl

  • Members
  • 888 posts

Posted 22 August 2013 - 11:13 AM

Pretty sure they're not supposed to appear automatically, you'll just have to add the peripheral to a creative tab. Adding a turtle with the peripheral directly, I'm not positive, but I would think it would require reflection, which is generally discouraged.

#5 louitzie

  • Members
  • 50 posts

Posted 22 August 2013 - 01:22 PM

ok but whats the point of isSecret if it isnt working

#6 GopherAtl

  • Members
  • 888 posts

Posted 22 August 2013 - 01:59 PM

Easter eggs in vanilla CC. Also, it used to auto-add them all, until the possible permutations of turtles with a lot of peripheral mods installed got completely out of control, especially since the change to allow dual peripherals if the turtle didn't have a tool.

#7 louitzie

  • Members
  • 50 posts

Posted 22 August 2013 - 04:41 PM

oh, I see the permutations make sence, I didnt know that you could have 2 peripherals on a turtle. thanks for the answer.

#8 electrodude512

  • Members
  • 167 posts
  • LocationEastern USA

Posted 22 August 2013 - 10:12 PM

How were the amount of permutations out of control? I have ~80 mods and 3-4 pages of upgrade permutations isn't terrible. You can just search through them with creative search.

#9 GopherAtl

  • Members
  • 888 posts

Posted 23 August 2013 - 02:14 AM

I stopped counting turtle upgrades at 20 in miscp, without getting to the end of the list. So 20 basic types for just turtle + that peripheral. Combined with 5 different basic tools, that's 60 peripheral+tool turtle types. Combined with the 2 vanilla cc turtle peripherals, that's another 40, for 100. Combined with /each other/, as any two of them also make a valid combination, that's 19+18+17+....+1, or 190 more, for a grand total of 310 permutations added by MiscPeripherals alone. And it gets exponentially worse for each addon after that.

Sure, if you know exactly what you're looking for, then you filter by the name of it. Great for you. People who know exactly what they're looking for are the minority; though. The more general case is someone who doesn't know what they're looking for, and a list of peripherals is a lot less overwhelming to them than a list of all the hundreds of possible permutations of those peripherals with turtles.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users