Commit graph

497 commits

Author SHA1 Message Date
DarkGuardsman
e4261ab264 Toyed with fluids
Most likely will not fix the issue but i'll keep working on it.
2013-09-04 14:19:16 -04:00
DarkGuardsman
b8c95c191a import changes 2013-09-03 03:10:22 -04:00
DarkGuardsman
8677d4e5b2 changed block registration to custom system 2013-08-29 17:23:42 -04:00
DarkGuardsman
85461fce89 Finished merging steampower into fluid mechanics
Steam Power is finally back with its other half basic pipes. Its been a
long time since these two mods were once the same exact mod. Now they
are rejoined though steam power was left rusting in the archive a bit
too long. Most of its content was remove and needs to be rewrote from
scratch. Fluid Mechanics aka basic pipes has since then become a nice
mod and is mostly bug free. Now with the addition of steampower maybe
just maybe now the mod will become more useful to the end user.
2013-08-28 15:41:31 -04:00
DarkGuardsman
aba24c9af3 changed how src folder is stored
its no longer stored in src/minecraft but right into the src folder. Not
sure why it was not this way to start with
2013-08-28 15:25:06 -04:00
DarkGuardsman
244f31a805 Merge remote-tracking branch 'steampower/master' 2013-08-28 14:04:58 -04:00
DarkGuardsman
e14862eb09 removed files to allow merge 2013-08-28 14:03:34 -04:00
DarkGuardsman
0913d085ea moved textures 2013-08-26 16:49:56 -04:00
DarkGuardsman
fa33b00e58 moved tools, and parts to core
This was planned to give more options to the other sub mods of the core.
The parts item will be expanded adding more and more sub items for
crafting. The tool was already expanded to add a multi-meter.
2013-08-26 14:25:27 -04:00
DarkGuardsman
150d76038c moved itemBlockHolder to core mod 2013-08-26 12:45:11 -04:00
DarkGuardsman
3c851b1dac misc 2013-08-24 08:03:46 -04:00
DarkGuardsman
b2eeb365b4 misc 2013-08-24 08:03:25 -04:00
DarkGuardsman
11e71b6ddd Removed all errors 2013-08-08 12:38:35 -04:00
DarkGuardsman
591a5a2499 Rework in progress
I want to facepalm over and over again until i can remember why i coded
some of this the way i did. Mostly i'm deleting everything and starting
over
2013-08-08 11:44:27 -04:00
DarkGuardsman
9a35e08b60 added license from AL 2013-08-08 11:00:54 -04:00
DarkGuardsman
abe4dd4cdf removed old version files 2013-08-08 11:00:41 -04:00
DarkGuardsman
9fcf0a9a1f Fixed stack over flow with pathfinder
As well clamped down max results too look for each path run and max
results for both pumps. This should help prevent the error from coming
up again.
2013-07-31 00:25:45 -04:00
DarkGuardsman
fdbb423145 Fixed liquid path finder
Wasn't finding fillable block correctly and still really isn't due to
the fact it can ID air correctly.
2013-07-30 23:09:14 -04:00
DarkGuardsman
391c54f968 Fixed drain fighting itself
Though that i could just let the drain do both fill/drain at the same
time. However, i did think the drain would try to self feed liquid into
itself. Should be fixed now by re-adding the meta sensitive canDrain
2013-07-30 23:08:29 -04:00
DarkGuardsman
eccb1aea7c Fixed NPE in tank fluid packet 2013-07-30 23:07:09 -04:00
DarkGuardsman
bdf725ea5b Fixed a redstone issue with the pumps
The construction pump would not turn on due to the super.can() needing
redstone to be off while con pump needed it to be on.
2013-07-30 21:55:34 -04:00
DarkGuardsman
cd7995661f Reworked the pumps
Construction pump now extends the basic pump. This was mainly done to
reduce duplicate code and make coding the two pumps easier.
2013-07-30 03:10:54 -04:00
DarkGuardsman
3b3be98019 Changed Drain
Drain no longer does draining of fluids on its own. It now only path
finds and fills areas. Pump will not have to drain fluid threw the drain
using it more of a origin point or a path finder.
2013-07-30 03:10:02 -04:00
DarkGuardsman
4581cf0bc7 Changed path finder to use set
Found out that set don't allow duplicate vars. Using Sets will fix this
issue with the path finder storing several of the same vector3

As well added a way to set the world of the path finder
2013-07-30 03:08:32 -04:00
DarkGuardsman
675ffd8a0d Fixed a NPE crash on network reading tiles
Forgot to check for null when pulling all the info from the network
parts.
2013-07-29 06:33:24 -04:00
DarkGuardsman
279ede1fb2 Fixed an issue with refresh on pathfinder
if a node become a result its was not being added to the result list if
the path finder was not cleared first. In most cases clearing the path
finder is not as effective as refreshing the nodes.
2013-07-29 06:32:34 -04:00
DarkGuardsman
69ffac2070 Finished new starter pump 2013-07-29 06:31:31 -04:00
DarkGuardsman
519fcb62c3 swapped Balance Tank method for read/write tiles method
Honestly shouldn't act to different from how its was seeing as nothing
really changed. Only thing that happened was that the load and write
part of BalanceCollectiveTank was split into two different methods. Will
need some testing though to check if everything works.

Also for NetworkFluidContainers its balance method was changed a bit to
maybe fix errors with fluid remaining in the tank that shouldn't have
fluid in them. Render will still need to be changed to fix this a little
better.
2013-07-29 03:55:26 -04:00
DarkGuardsman
a053839398 Levers can be placed on starter pumps 2013-07-29 03:51:23 -04:00
DarkGuardsman
baee873df8 Changed how pumps handle power 2013-07-29 03:50:58 -04:00
DarkGuardsman
4da59e8d3a working on start pump more
Doesn't work well or at all currently
2013-07-29 00:52:21 -04:00
DarkGuardsman
604703ab28 Fixed nbt writing crash 2013-07-29 00:51:57 -04:00
DarkGuardsman
357cffc9cd Fixed connection issues for ITileConnection 2013-07-29 00:51:32 -04:00
DarkGuardsman
55a42adce1 Changed start pump to drain multi sources
I've been avoiding this because i wanted to remove the starter pump.
However, seeing as early game it is needed i wanted to rework it. As
well since finite fluids are become more and more common i changed the
code. It will now drain sources within 20 blocks of itself. I'll still
need to redo the path finder, render, and several other parts to match
the change i want. I'm thinking of doing a buildcraft style pipe
extension from the base. However, with a full render and animation to go
with it. The other option that came to mind was a hose attachment
allowing it to be a basic version of the construction pump without the
drain.
2013-07-27 17:53:03 -04:00
DarkGuardsman
e9c61d427f Moved path finder call into the entityUpdate
This will reduce how many times its called per run limiting it to once
every second only if the result count is bellow the need.
2013-07-27 17:50:22 -04:00
DarkGuardsman
0b22ae29f5 more work on drain 2013-07-27 03:12:22 -04:00
DarkGuardsman
d2c64e34d0 Fixed construction pump requesting while off
Not off but there was not enough room for the full disc. The
construction pump when disabled was not removing itself from all valid
drains.
2013-07-27 01:10:45 -04:00
DarkGuardsman
a4fedc5ef8 Partly fixed drain method for drain block
It still needs more work especial with its half of the pathfinder. As
well i'm guessing tests need to be done on amount of fluid drained
compared to amount present.
2013-07-27 01:02:43 -04:00
DarkGuardsman
d8c167f06a Got fill part of the drain mostly working
It still needs more refinement, balancing, and bug fixes. Main issue
that was spotted but not confirmed yet was liquid being used even if not
filled.
2013-07-27 00:13:30 -04:00
DarkGuardsman
f773af8ff7 Worked on pathfinder 2013-07-26 20:52:11 -04:00
DarkGuardsman
309f9a620a Created a tool to test the drain collection sorter
This runs out side of minecraft even though it require minecraft code
and UE api code to work. This is main due to the use of the UE Vector3
class to do the testing with.
2013-07-26 17:10:13 -04:00
DarkGuardsman
ca6c94b390 fixed drain fluid block collection sorter
It has been tested and should be fully functional. As well i removed the
old drain sorter as the new collection sorter can world for both drain &
fill.
2013-07-26 17:09:30 -04:00
DarkGuardsman
93669e9a7c reformatting and cleanup 2013-07-26 02:15:47 -04:00
DarkGuardsman
c4dd1e7c4f Fixed generic tank not showing in creative menu 2013-07-25 15:28:45 -04:00
DarkGuardsman
fd94bf51c7 Fixed Tile Render texture 2013-07-25 15:28:32 -04:00
DarkGuardsman
1d4f383e8d Changed construction pump to need redstone input 2013-07-25 12:51:00 -04:00
DarkGuardsman
72682ea705 Changed how tiles request liquid from the drain
It now takes a fluidStack and amount allowing for the fluidStack to be
null. As well Fluid was changed to FluidStack so that the tag could be
included
2013-07-25 12:50:36 -04:00
DarkGuardsman
c18400cf95 Fixed release valve redstone input 2013-07-25 10:52:48 -04:00
DarkGuardsman
ff46fb58f5 Fixed crash on sink loading 2013-07-25 10:47:10 -04:00
DarkGuardsman
d0951bfe7e Fixed tank save issue
When i change the tank to extend TileEntityFluidStorage again to save
time. I forgot to change the tank to use the prefab fluidTank var so
that it would save correctly.
2013-07-25 09:56:39 -04:00