Posts by SeNtiMeL
-
-
how to do it on the server? I have not created a config on the server ...
Yea i find this small bug, i compile old server version. Now i fix it. Server files updated. You can download new verison.
-
Thanks for your work on the mod - but seriously? 14 UU-M for a device that pulls 8 EU/t? I guess it goves me something to do with my extra UU-M but it seems expensive. It'd almost be cheaper to make a reactor.
Maybe cheaper, but you need uran and often to change used cells. If you think what 8 eu is to small, you can change value in config file. UU-M not problem with cactus farm and recyclers. Free energy generators must to be expensive for crafting, but it's work lifetime and no need to service. -
Hi Guys !
Now i finished working for fix bug's in SMP mode and updating this Addon.
Big thanks:
+ "icedfire" for great Addon.
+ "arsenic87" for tmpFix to 1.23 and SMP mode.
+ "Player" for support IC codingWhat changed in new release:
- fixed bug with textures in SMP
- fixed bug with GUI in SMP
- fixed bug conflict with mod_Planes
+ Now you can setup in server config ID, Day gen, Night gen (Max value 16 for day, 8 per Night)
+ Changed default value for Day generation to 8 (old 11)
+ changed Storage value to 32000 (old value is 16000)
+ changed energy out to 128 (old 512)
+ changed crafting recipe (it's more expensive now)Crafting recipe:
============================================PRP
ISI
AMCP - Carbon Plate
R - Reinforced Glass
I - Iridium
S - Solar Panel
A - Advanced Circuit
M - Advanced Machine
C - Red Crystal (discharged)
============================================And last. Our engineer give lifetime warranty to this panel
Sorry for my bad english -
Containers are used to synchronize these values, there are plenty examples for these in IC2.
Big thanks for help. Now all work fine
-
I try to port and fix addon Advanced Solar Panel to SMP mode. I already do it. All work at SSP, but in SMP is some small bugs. In SMP mode not display value "Generating:". And not display status "Sun is up" and "Sun is down". Gauge with energy storage work fine. How recieve and update this values in SMP ?
I can't find the documentation on the mechanism of synchronization of adjustments server and the client. Sample: i have adjustment value "generation" on client and server. I setup in client value "5" on server value "10". I need in SMP mode use only server values. How i can do it ?
And i need to update client GUI with server adjustment.
This is code:
TileEntity:Java
Display Morepackage net.minecraft.src; import ic2.common.TileEntityBaseGenerator; import java.util.Random; // Referenced classes of package net.minecraft.src: // BlockAdvancedSolarPanel, World, Block, ContainerAdvancedSolarPanel, // InventoryPlayer, Container public class TileEntityAdvancedSolarPanel extends TileEntityBaseGenerator { public TileEntityAdvancedSolarPanel() { super(1); initialized = false; sunIsUp = false; skyIsVisible = false; initialized = false; production = 512; ticker = randomizer.nextInt(tickRate()); } public short getMaximumStorage() { return 16000; } public int gaugeEnergyScaled(int i) { return (storage * i) / getMaximumStorage(); } public int gaugeFuelScaled(int i) { return i; } public boolean gainFuel() { boolean flag = false; if(ticker++ % tickRate() == 0 || !initialized) { updateVisibility(); initialized = true; } if(sunIsUp && skyIsVisible) { generating = 0 + BlockAdvancedSolarPanel.genDay; int i = storage + generating; storage = (short)i; return true; } if(skyIsVisible) { generating = 0 + BlockAdvancedSolarPanel.genNight; int j = storage + generating; storage = (short)j; return true; } else { generating = 0; return false; } } public void updateVisibility() { if(!worldObj.isDaytime()) { sunIsUp = false; } else { sunIsUp = true; } skyIsVisible = true; for(int i = yCoord + 1; i < 128; i++) { int j = worldObj.getBlockId(xCoord, i, zCoord); if(j != 0 && j != Block.glass.blockID) { skyIsVisible = false; return; } } } public boolean needsFuel() { return true; } public String getInvName() { return "Adv Solar Panel"; } public int tickRate() { return 128; } public String getLoopSound() { return "none"; } public int getLoopingTime() { return 256; } public Container getGuiContainer(InventoryPlayer inventoryplayer) { return new ContainerAdvancedSolarPanel(inventoryplayer, this); } public static Random randomizer = new Random(); public int ticker; public int generating; public int genDay; public int genNight; public boolean initialized; public boolean sunIsUp; public boolean skyIsVisible; }
GUI:Code
Display Morepackage net.minecraft.src; import net.minecraft.client.Minecraft; import org.lwjgl.opengl.GL11; // Referenced classes of package net.minecraft.src: // GuiContainer, ContainerAdvancedSolarPanel, FontRenderer, TileEntityAdvancedSolarPanel, // RenderEngine, InventoryPlayer public class GuiAdvancedSolarPanel extends GuiContainer { public GuiAdvancedSolarPanel(InventoryPlayer inventoryplayer, TileEntityAdvancedSolarPanel tileentityadvancedsolarpanel) { super(new ContainerAdvancedSolarPanel(inventoryplayer, tileentityadvancedsolarpanel)); tileentity = tileentityadvancedsolarpanel; } protected void drawGuiContainerForegroundLayer() { fontRenderer.drawString("Advanced Solar Panel", 38, 6, 0x404040); fontRenderer.drawString("Inventory", 8, (ySize - 96) + 2, 0x404040); fontRenderer.drawString((new StringBuilder()).append("Storage: ").append(tileentity.storage).append("/").append(tileentity.maxStorage).toString(), 45, 25, 0x404040); fontRenderer.drawString((new StringBuilder()).append("Max Output: ").append(tileentity.production).append(" EU/t").toString(), 45, 35, 0x404040); fontRenderer.drawString((new StringBuilder()).append("Generating: ").append(tileentity.generating).append(" EU/t").toString(), 45, 45, 0x404040); } protected void drawGuiContainerBackgroundLayer(float f) { int i = mc.renderEngine.getTexture("/GUIAdvancedSolarPanel.png"); GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); mc.renderEngine.bindTexture(i); int j = (width - xSize) / 2; int k = (height - ySize) / 2; drawTexturedModalRect(j, k, 0, 0, xSize, ySize); if(tileentity.storage > 0) { int l = tileentity.gaugeEnergyScaled(24); drawTexturedModalRect(j + 14, k + 25, 176, 14, l + 1, 16); } if(tileentity.skyIsVisible) { if(tileentity.sunIsUp) { drawTexturedModalRect(j + 19, k + 45, 176, 0, 14, 14); } else if(!tileentity.sunIsUp) { drawTexturedModalRect(j + 19, k + 45, 190, 0, 14, 14); } } } public TileEntityAdvancedSolarPanel tileentity; }
Big thanks for you help.
P.S. Sorry for my bad English -
Cannot reproduce bug.
Using IC2 V1.23 SMP + BuildCraft 2.3.3 onlyI using IC2 V1.23 + BC 2.2.4 in Ported Bukkit server 1337. I try at raw minecraft_server - no bug . Bug is only at ported IC 1.23 for CraftBukkit 1337.
-
It's only work in SMP. If load scrapbox at dispenser and pulse power it, scrap box not destroy in dispenser. But dispenser open it. Infinite resource is good, but it is cheat. Please fix it
-
I have IC2 + BC 2.2.2 server all is fine, but not griffers. Some not good people steal tech with wrench. It's not big problem with cheap tech, but MFSU and other advanced tech is very expencive. Personal safe and Trade o Mat have protection against the wrench, but other items not
Can you add option in config file to set what item can wrench ?P.S In Minecraft 1.7.3. version i use Bukkit and ported version IC8_55 and plugin LWC. I setup LWC to protect all IC machines. Protection work fine and wrench not work for other players. But in 1.8.1 with Bukkit and ported IC2 1.15 with LWC, this protection not work correct with machines. User can't destroy machines, but easy can wrench it. LWC doesn't intercept destruction of the block by wrench
-
This addon is best, but it's not work in SMP mode Can you add SMP support to yours addon ?