Commit graph

4040 commits

Author SHA1 Message Date
Rseifert
3cfa7d33fe Fixed the render issue better 2013-03-29 16:44:10 -04:00
Rseifert
24e4f1f853 Merged network pipe with old pipe
Now that the new network pipes function up to the same level as the old
pipes its time to retire the old pipe. Only thing left too do with the
new pipes after this is too refine the code, add PSI methods, and make
it more compatible with other mods. Though as far as i can tell it
should work with other mods. However, if a mod doesn't use some methods
right then the pipes will not fill them as fast.
2013-03-29 16:43:59 -04:00
Rseifert
6eaaa91849 corrected an update issue with the pipes
pipes would only update there connection once and never again due to a
missing !
2013-03-29 16:34:13 -04:00
Rseifert
99331db20c Changed tank update style
I believe i am now using the built in update system that sends a
description packet if the block is marked for update by the game. This
should simplify it a little and i think correct a few other errors with
updating server side.
2013-03-29 16:27:15 -04:00
Rseifert
6a2a2f8809 change the tank to better work with the network
The  fluid network use the get tank side method to better find which
tank to fill first. However, i neglected to use this method correctly in
the tank and most likely something else but I'll get to that later.
2013-03-29 16:14:05 -04:00
Rseifert
b9c64dff24 Fixed a big stack Overflow with Network
still need to add more measures against this if a TileEntityNetworkPipe
gets on the Fill list it will infinite loop tile it crashes.
2013-03-29 15:54:41 -04:00
Rseifert
50cf28cbdb got rid of stacks args for canConnect
as cool of an ideal as it was it didn't get used as much. As well if
someone wants they can check the connecting pipe's colorCode for stack
info or threw some other way.
2013-03-29 15:28:52 -04:00
Rseifert
26af793479 Cleanup on tank
fixed model rendering north and south connector wrong
fixed water gauge not rendering with a texture
changed read out string for the tank to use a formatted string
2013-03-29 15:11:11 -04:00
Rseifert
90539dd231 Some cleanup for the tank's render
Still haven't fixed that odd error with the connector rendering on the
wrong face. Though the plan is to remove the connector render as you
can't see it past the pipe.
2013-03-29 14:54:10 -04:00
Rseifert
f24732fed4 setting up tank for IConnectionProvider
for now I will just use it for connection rules for rendering, and trade
processing. However, in the future i might use this with the path finder
to make a more uniform movement of liquids in the connected tanks. Might
even have them update all as one entity instead of each one at a time.
Though that will take some time if i set it up just like the UE wire's
network. As i will have to make sure that the liquid always travels to
the lowest tank first, and saves to the lower tanks. Which means that
i'll end up storing the tank's Y pos or getting it during
saving/loading/processing.
2013-03-29 14:53:19 -04:00
Rseifert
24ce9b59aa No sure were that came from
Looks like my computer picked up some very old code and included it on
push.
2013-03-29 14:49:37 -04:00
Rseifert
bb02bce6e9 reworked Tank's fill pipe function
changed/ merged fill pipe and fill tank bellow into one method that
doesn't care what is bellow it as long as its an ITankContainer
2013-03-29 14:08:24 -04:00
Rseifert
b92214e864 updated LiquidHandler's comments and methods
Still need to work on this and maybe break it up into better classes.
2013-03-29 14:05:18 -04:00
Rseifert
e8d553c4ef added code for setColor() to pipe
as well caught myself on the setColor() function for the tank were i
left out the ! in from of the check for client.
2013-03-29 13:26:58 -04:00
Rseifert
b604dafa50 Reworked the tank a bit
*changed how it sends packets to only update if something changes or at
random points in time.
*changed the getColor() to use the blocks metadata and not a var
*added code to the setColor to change the blocks metadata
*Fixed load function to not set content if it read as unkown
2013-03-29 13:24:54 -04:00
Brian Ricketts
5aa4d2142b Push build 89 and bump to 0.3.0 (MC 1.5.1) 2013-03-29 03:37:22 -05:00
Brian Ricketts
cede7be524 Fixed sound paths 2013-03-29 03:32:24 -05:00
Rseifert
3dd19fc09d Fixed pipe connection for colors
Also change the name of a few classes in the process
2013-03-26 19:47:35 -04:00
Rseifert
ef6e6fde06 Fixed pipe update on load
ya that simple (face palm)
2013-03-26 18:16:30 -04:00
Rseifert
14578b179c Fixed network and pipes connections
Changed name of network part so save me from miss typing it every time
Fixed connection rules for pipes so that they will connect and render
Fixed networks merging and not crashing on merge
Fixed pipe gauge item's texture so it showed
Added a render for the network pipe (temp_use)
Bug connections/networks don't update on load just yet.
2013-03-26 18:11:38 -04:00
Rseifert
b685fda4c3 Created a new networkPipe base on UE's Conductor
My network code is about the same as UE's short of the fact i have to
still ably to net.minecraftForge.Liquids interfaces in order to keep my
mod compatibly with other mods. So its only logical that my network pipe
updates, reacts, and works the same as the UE conductor.  Though i will
be making change to mine in order to have it function with liquids more
and more.
2013-03-26 15:09:20 -04:00
Rseifert
0a020c24df Change out the canConnect methods
removed the old canConnect methods from every class that used it and
replaced it with the new one still matching how the class used the old
one. Though i'm concerned that the new method might increase processor
use a bit since it sifts threw all stacks that the pipe can handle
instead of the first valid one.
2013-03-26 13:49:00 -04:00
Rseifert
b6048c7cac Cleanup
removed old canConnect method from psiCreator and cleanup the comments
for the new one so they are easier to understand.
2013-03-26 13:27:47 -04:00
Brian Ricketts
a8487f8427 Fixed wrenchy things 2013-03-25 16:14:40 -05:00
Rseifert
ca9c037fa6 worked on pressure updating in the network
this will not be easy as i've forgot some of my hydraulic's class. As
well if the pressure or load changes i have to update the entire network
to the change and recalculate the network's pressure.
2013-03-25 13:49:50 -04:00
Rseifert
15759fb7f1 cleanup 2013-03-25 13:30:14 -04:00
Rseifert
dff62a74bf added code to apply pressure to IPsiRecievers
even if the tileEntity is a ITankContainer it will call
IPsiReceiver.onRecieve first then if there is anything left of the stack
it will call ITankContainer.fill. I still need rework this too work
better, and use the path finder but for now it will do.
2013-03-25 13:01:00 -04:00
Rseifert
5823ad2c85 reworked the network code
added comments and change comments in several places
added can connect method to psi receiver and change the receiver method
to get a liquid stack so it can pass that stack to the next network.
changed onOverCharge to onPressureChange that will check each time the
pressure network increases if one of the parts will bust.
2013-03-25 12:33:32 -04:00
Rseifert
2d41e3031d merged IPsiMachine with IFluidPipe
They are now known as ILiquidNetworkPart since any tileEntity can act as
a conveyor of liquids in the network as long as they use that interface
and its methods right. This allows for pipes, as well as guages, fluid
motors, and other things to exist in the network without its spliting or
changing the over all network.
2013-03-25 11:56:16 -04:00
Brian Ricketts
f531771e12 Fixed GUIs, IC2 log spam, and bad Manipulator
shift-right-wrench-doohigie-really-long-commit-message-click issue.
2013-03-25 04:08:29 -05:00
Brian Ricketts
87d22898a8 Removed BasicComponents 2013-03-23 01:56:24 -05:00
Brian Ricketts
39bcb6ffa1 Fixed textures. I have no clue if anything actually works. 2013-03-23 01:00:35 -05:00
Brian Ricketts
f222ce9b7f Update to 1.5.1
Still need to fix textures
2013-03-22 23:54:10 -05:00
Rseifert
c5d47c43cc Textures mostly done
Detector and turntable have yet to be finished but i've run out of time
to work on this today. If no one else fixes it by tommorow i will work
on it.
2013-03-18 01:10:02 -04:00
Rseifert
9df766ce28 Fixed crash on load
forgot to remove preload of old textures which would cause a crash since
the textures are missing.
2013-03-18 00:48:07 -04:00
Rseifert
d6f06e5276 mostly updated to 1.5
doing bug testing now too see what i missed or need to work on
2013-03-18 00:45:36 -04:00
Robert WC Seifert
1c02582307 Merge pull request #2 from AssemblyLine/Minecraft-1.5
Split textures for MC 1.5
2013-03-17 21:12:17 -07:00
Rseifert
9e0cfe6201 untested basic update to 1.5
Still have to bug test and add textures but it looks to be mostly done.
2013-03-18 00:08:52 -04:00
Rseifert
5b6781e811 got rid of render for detector
Get icon method for block now contains world xyz so you can get the
tileEntity for better texture control of blocks
2013-03-17 23:33:20 -04:00
Rseifert
8ceb2dba22 Starting the update to 1.5
Thought you guys had this handled but guess since i'm doing the same
thing for 5 other mods i'll do this as well.
2013-03-17 23:32:32 -04:00
Rseifert
8c110124e4 cleanup and reformating
trying to save myself grief later with the hydraulic system for when
other use it. I've split it into two parts api for working with FM and
core for using the pipe network system.
2013-03-14 08:42:11 -04:00
Rseifert
99578a289f Fixed pump 2013-03-14 07:48:19 -04:00
Rseifert
1d084e6301 renamed files & changed psi to use LiquidStack 2013-03-14 07:38:28 -04:00
Rseifert
a1a17343e8 Fixed Textures
Getting close to being done now that the pre update stuff is out of the
way. Now its on to testing and bug hunting. After that its on to working
on the new pipe system and getting it done some time this week.
2013-03-14 07:09:25 -04:00
Rseifert
74a7cce60e killed all the errors
This doesn't mean done as i'm sure there are bugs to smash plus i still
need to implement the new network system as well fix the pump.
2013-03-14 06:28:19 -04:00
RSeifert
feceea5b7b working on update to 1.5
Not done yet not sure if i will be any time soon.
2013-03-14 01:38:07 -04:00
RSeifert
01e0d80b85 renamed pump
mainly just a sync up
2013-03-12 22:58:16 -04:00
Brian Ricketts
e94ea438bc Push build #88 2013-03-12 13:49:46 -05:00
Brian Ricketts
deacd434a9 Cleaned up imports and reformatted RenderCrate.java and BlockCrate.java 2013-03-12 12:52:22 -05:00
Brian Ricketts
9f65322f78 Crate improvements
- Crate now accepts any IC2- or BC3-compatible wrench to drop keeping
  items
- Crate now renders item name and amount as a floating tag above itself
  when being looked at
- Item icon, name, and amount now glows on the side of the crate so it
  is visible at night
2013-03-12 12:51:10 -05:00