BuildCraft|Core

BuildCraft|Core

7M Downloads

multiblock structures

AEnterprise opened this issue ยท 12 comments

commented

i'll be trying to make a multiblock refinery

could somebody asign this to me?

commented

Done. I would suggest to work this out of the "Next Gen" branch. This is a potentially a very significant modification. Let me know if you need a tutorial on RPCs ;-)

commented

RPCs? what are those?

commented

Remote Procedure Calls. In other words, you should not have to create packets for data synchronization. Regular tiles descriptions should be sent through the means of NetworkData annotations, but that's as other parts of the code work. Messages between client and server should be sent via RPC, look at the implementation of the blueprint library (https://github.com/BuildCraft/BuildCraft/blob/NextGen/common/buildcraft/builders/TileBlueprintLibrary.java#L233 for the call, and https://github.com/BuildCraft/BuildCraft/blob/NextGen/common/buildcraft/builders/TileBlueprintLibrary.java#L263 for the actual reception of data).

It's supposed to be extensively documented, but let me know if there are missing pieces.

commented

Note that RPC are available on NextGen only. That was too distributive to go to 5.x

commented

will do, thanks

commented

working on multiblocks now, you can folow my progress on my fork, comments and corrections are always welcome

commented

Thanks @AEnterprise! Will definitely follow your progress :-)

commented

Sorry to bother you guys with this but i don't know how on earth i managed to do it but from the moment i place the refinery control in the world nothing works as it should. you can walk around, place blocks, destroy blocks but internaly something is completely broken and i can't find the problem, i can't just close the world, i have to open the task mananger and terminate the java process cause it gets completely stuck.

Could somebody please help me? i can't find the problem but i'm very new to modding so i must have missed something somewhere

Sorry :-[

commented

try using jvisualvm to see the state of all the threads. if one is stuck on
a wait, you'll see it; if one is stuck in a loop, you'll see it.

On Fri, Mar 21, 2014 at 5:11 AM, AEnterprise [email protected]:

Sorry to bother you guys with this but i don't know how on earth i managed
to do it but from the moment i place the refinery control in the world
nothing works as it should. you can walk around, place blocks, destroy
blocks but internaly something is completely broken and i can't find the
problem, i can't just close the world, i have to open the task mananger and
terminate the java process cause it gets completely stuck.

Could somebody please help me? i can't find the problem but i'm very new
to modding so i must have missed something somewhere

Sorry :-[

Reply to this email directly or view it on GitHubhttps://github.com//issues/1502#issuecomment-38208846
.

"Getting information off the Internet is like taking a drink from a fire
hydrant."
- Mitchell Kapor

commented

made some great progress:

  • the infinite loop has been fixed
  • added a gui that tells if the multiblock is valid or not
  • the multiblock can be build facing north, east, south and west

next step will be the hardest: making it work

i still need new textures for the blocks
and feel free to download my code and test it out, it is possible i missed something (but i hope not)

commented

got some trouble with the gui, could somebody take a look:
http://mod-buildcraft.com/forums/index.php?topic=278

commented

could somebody look at my code cause i'm getting sick of this. i keep running intro stuff that shouldn't heapen. Nullpointers on code that should work. input.getFluidAmount() return 0 when the tank has liquid in it and input.getFluid.amount just crashes the game. I realy need a fresh set of eyes. I already got some code from others and they say it should work but even with that code i run intro crashes :-(