FortressCraft Evolved

FortressCraft Evolved

评价数不足
Energy Tessaract
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
18.622 KB
2020 年 11 月 21 日 上午 8:45
2020 年 11 月 28 日 上午 9:35
6 项改动说明 ( 查看 )

订阅以下载
Energy Tessaract

描述
This mod adds Tessaract Battery and Tessaract Output.
Battery stores up to 1b power while Ouput delivers power from battery into machines.

Each Battery and Output has ID. Output connects to Battery with the same ID.
Use "E" and "Q" change the ID in the Output in order to select the Battery.

Tessaract Outputs have option to add Input Port (press R).
When Input is True, then you can deliver power into Output->Battery.

Item Tessaract:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2296459404

Mod requested by: J3lackSunn



Mod ID: 2294190463
29 条留言
Wariat117  [作者] 2022 年 8 月 31 日 上午 11:13 
----
that's why I made configurable ID in tessaracts :D
you decide where it has to be transfered etc
this way it doesn't have to go into complexity calculating where to go and how
you set it "go to A" and it just sends max possible to A and waits
----
Wariat117  [作者] 2022 年 8 月 31 日 上午 11:11 
"Not sure if separate blocks are strictly required, input/output ideally should be ambiguous"

ignoring input/output would not make it easier actually
but surely then one plug would have to be nominated as overseer of other plugs, count up power between them and decide where to transfer it to
would be a pain if numerous plugs would be connected to cables from numerous directions -> where to send it further? to all directions? how much to send?
send max possible to first direction then max to next then max to next etc etc? then which order it should go?
what if at the end of direction is another plug with junction?
etc etc complexity grows and groows
what would happen if they ended up looping?
Wariat117  [作者] 2022 年 8 月 31 日 上午 11:10 
"I was wondering about the complexity of undertaking such an endeavor. Was hoping there was existing functions that could be easily leveraged,"
not really -> all this stuff would have to be done yourself -> at best it will be possible to copy "transfer energy" and "search adjescent" code from batteries + adjust them to new functionality, but everything else simply doesn't exist
Wariat117  [作者] 2022 年 8 月 31 日 上午 11:10 
for sure it will be a pain to keep the stuff loaded after restart
iirc I have kept coordinates of tessaracts somewhere and I was just forcing the game to load their segments and as a result load machines and keep them loaded

game loads the player and CPH at start (there were numerous problems that climate control centre is not loaded by default -> I don't remember whether it was fixed or not)
from there it takes all lasers/conveyors and loads up everything connected (I don't remember every machine that had this loading effect tho)
basically if you build base "disconnected" from CPH then it won't be loaded on game restart

what I want to say -> the cables/plugs will need to copy this functionability to work properly ;d
Kosmoski 2022 年 8 月 31 日 上午 6:21 
the rest of what you describe sounds completely on point.

I was wondering about the complexity of undertaking such an endeavor. Was hoping there was existing functions that could be easily leveraged,

yeh chat limit is a pain lol.
Kosmoski 2022 年 8 月 31 日 上午 6:21 
for 3d models i personally would be more than content with full blocks with a texture, custom or remapped vanilla.

cables sorta are omni directional, bi-directional atleast, even in ac/dc a diode is required to prevent back flow but I digress, if you're unfamilliar with minecraft rf cables thats ok, im trying to think of another analog, I think the Pipez mod in MC might be a good example RF(electricity basically) can “flow” in any direction., Or the old Industrial Craft 2 cables, those are probably the best example.

modified “wired” Tesseract, I mean, maybe yah, that might emulate a power cable precisely,
battery, ptg, etc could be valid input, anything that can take power would be valid input including other batteries,. Not sure if separate blocks are strictly required, input/output ideally should be ambiguous much like a battery can receive or send power to adjacent blocks, even simultaneously, A non capacitive bridge of sorts,
Wariat117  [作者] 2022 年 8 月 31 日 上午 5:39 
limit of characters sucks lol
Wariat117  [作者] 2022 年 8 月 31 日 上午 5:39 
I haven't found any working program that can inject new 3d models into the game :V
So, no idea about that, surely sounds like a cancer to make such 3d models :D


"I mean more like omni directional transfer blocks"
but cables aren't omni directional :D


"Minecraft mod RF cables"
never heard of it


"In theory could have a "cable" and a "plug" plugs adjacent to valid blocks could pull, or push power and would trace cables for valid endpoints unless it can be done with a single block im not sure."
basically you want modified tessaracts from this mod but tessaracts are wireless and you want to add the wire connection between them (battery would be "input plug" while output would be "output plug")
Wariat117  [作者] 2022 年 8 月 31 日 上午 5:39 
it's possible to save ticks
-> cables would be pseudo-blocks (keep information about all connected plugs and don't tick)
-> if new cable is attached then looks for adjescent cables and tells them to inform all their connected plugs about new connection
-> now all plugs go ape ship validating all cables :V
(the same for placing cable next to plug -> inform plugs to validate cables)
^ there would have to be debounce mechanic, so when cables spam "validate everything" it doesn't do it as many times as cables who asked, but waits a bit until all cables ask to validate and then runs it once (maybe in the array of connections dedicate one plug that will validate and then inform all other plugs about result etc etc)
Wariat117  [作者] 2022 年 8 月 31 日 上午 5:38 
also the moment the plug is placed it checks for adjescent cables and adds itself as "connected plug" -> tick once and no more, wait for cables to tell it to update
and it can check all other connected plugs by asking any of the adjescent cables


long story short, sounds like a pain in the butt to code, but possible :D

btw
I haven't been messing with mods for a while and don't plan to come back to it, so it would have to be someone else to make such mod