AllForFun / modpack

This is AllForFun's Modpack. Open Sourced awesomeness
MIT License
5 stars 2 forks source link

ReadStone’s redstone block is configureable #28

Closed benaubin closed 9 years ago

benaubin commented 10 years ago

You can set the side that the redstone block pops out

nasuno commented 10 years ago

Don't get me wrong. The redstone block is just grand. Also the ability to designate its direction is spectacular. How is this direction determined by the user ingame?

benaubin commented 10 years ago

It probably will be configured in a config file

nasuno commented 10 years ago

Cool. In a folder located alongside the folder created for the mod output? I'll put the moduledata output from my program (Which I am almost done with. The first part of anyway) in the same location. What are you naming the folder and its location? Thanks.

nasuno commented 10 years ago

Wait. Won't the immense number of redstone blocks getting spawned all at the same time cause much lag? I would think it would, or am I mistaken? As opposed to only a redstone signal being emitted? It seems so much more minecraft will have to process. Can we eliminate the overhead please or is it not possible for the readstone to behave like a redstone block? Edit: Also if it is configured in the config file (delay presets also there?) then I would not be able to have some directing forward with one above it directing upwards. Please I hope there is a solution. Edit: Plus since they are coordinate stored I will be able to plot there location. This will have no use if I have to use circuitry to write text/otherstuff on thin 4walls floor and ceiling.

benaubin commented 10 years ago
  1. I do not know how to make the read stone act like a redstone block
  2. Seems like there could be a solution
  3. Yeah.. @jaredlll08 - maybe you need to do redstone output instead
nasuno commented 10 years ago

Also this will be so amazing. Thanks for the hard work guys!

nasuno commented 10 years ago

So I am assuming that If I place a block in the wrong location and have to delete and replace it that the text file (1's and 0's) will remain and I can make changes this way ingame without effect on these files? This is good and probably how you have it already. That would nevermind require the block changing somehow from the others in a way other then the text file and minecraft would probably freak out. Ignore me - in such a case then, the file should be deleted upon destruction/pickup. Wait you should be able to make it work since you have already made them separate entities in order to designate each there own file. Sorry I'm just thinking about it while I write my end. So you should be able to do it. IDK whatever, keep up the good work! (Would require them to not be stackable in your inventory. Since its so, you could append to there name in your inventory the name of the text file :) That would be sweet, but I ask too much already. Not stackable once placed anyhow. I digress, back to work *Whip sound!

nasuno commented 10 years ago

Tested a file I uploaded you but it didn't work right, outside of the build env. hold on.

Lets try that again. If it works for you, you'll get the idea.

This is messy pre automation and pre Exception Handling. Its function in the grand scheme should be obvious. Have not tested this outside a .NET 4.0 build environment. Subsequent versions of this will have different forms to choose from. Output to make what blocks to scan/edit modular in the main program. End product will have minimal interaction. https://mega.co.nz/#!pRVDRAzb!p4P5sIzENM22-avwYB6vfxh65JZ77jO5hnLWU9UiUoA To clarify, you just leave the scan active. No need for 3 till the blocks are all accounted for. Don't output (this programs output) to C: drive or it will crash. I have already fixed this but not in this exe. Supply it with the root folder of any others with no admin requirements. Using the minecraft chat window I plan to allow for issuing instructions to this as well. For full screen minecraft. A menu system with your helps I can see in the future.

benaubin commented 10 years ago

wait.. huh?

benaubin commented 10 years ago

The write blocks write to their own file in the mc directory. The mod is written with forge (needs forge to run). The blocks do not destroy their files when they are destroyed, as there is not a simple way to do that

nasuno commented 10 years ago

Thats just fine. I understood that to be the case. This is for use when deploying readstones.

benaubin commented 10 years ago

Ok :)

nasuno commented 10 years ago

Can now detect the pattern of digits 0 through 9. Next comes the alphabet and symbols. Then graphs and meters.

One of these for each block in the series

    ' Read state of file VAR_FirstModuleConfigLocation and update internal copy of ButtonTopLeft with its VAR_State_of_ButtonTopLeft
    VAR_LineBeingRead_of_FirstModuleConfigLocation = ReadLineWithNumberFrom(VAR_FirstModuleConfigLocation, 4)
    VAR_State_of_ButtonTopLeft = ReadLineWithNumberFrom(VAR_LineBeingRead_of_FirstModuleConfigLocation, 1)
    If VAR_State_of_ButtonTopLeft = VAR_State_On Then
        Button1.BackgroundImage = My.Resources.lamp_on
    End If
    If VAR_State_of_ButtonTopLeft = VAR_State_Off Then
        Button1.BackgroundImage = My.Resources.lamp_off
    End If

And this for pattern matching

        If Val(VAR_State_of_ButtonTopLeft) = 1 And Val(VAR_State_of_ButtonTopCenter) = 1 And Val(VAR_State_of_ButtonTopRight) = 1 And Val(VAR_State_of_ButtonUpperMiddleLeft) = 1 And Val(VAR_State_of_ButtonUpperMiddleRight) = 1 And Val(VAR_State_of_ButtonCenterLeft) = 1 And Val(VAR_State_of_ButtonCenterCenter) = 0 And Val(VAR_State_of_ButtonCenterRight) = 1 And Val(VAR_State_of_ButtonLowerMiddleLeft) = 1 And Val(VAR_State_of_ButtonLowerMiddleRight) = 1 And Val(VAR_State_of_ButtonBottomLeft) = 1 And Val(VAR_State_of_ButtonBottomCenter) = 1 And Val(VAR_State_of_ButtonBottomRight) = 1 Then VAR_Module01_Identifier = "zero"

Please forgive my not having done this in years.

benaubin commented 10 years ago

Hey, jared left the team - and I have a bit else on the plate - this might take a bit of time (2 weeks or so)

nasuno commented 10 years ago

Hope it wasn't my poor skills that put him off. Or my ramblings.

jaredlll08 commented 10 years ago

No you were fine, i just dont have the time to take on any more mods right now.

On Friday, October 17, 2014, nasuno notifications@github.com wrote:

Hope it wasn't my poor skills that put him off. Or my ramblings.

— Reply to this email directly or view it on GitHub https://github.com/AllForFun/modpack/issues/28#issuecomment-59487740.

benaubin commented 10 years ago

Yeah. You're awesome, @nasuno - if you have any other ideas, please give them to us :)

nasuno commented 10 years ago

Thought I should update that tool I've been using. You will see the bug is still there. It's not broken, I'll get to it. https://mega.co.nz/#!4RsyHJ6I!kLr0ID8hE1bFhIAtR0nsUA1UdJDTfgzHhC87or9UXNc

nasuno commented 10 years ago

I want to make sure I understand correctly

0,-1596,56,762.txt

x: 762 east y: 56 above the bottom of the game environment z: -1596 south f: 0 facing

Let me know if I am wrong please.

benaubin commented 10 years ago

Sort of. 0,-1596,56,762.txt is...

Value Description
0 The dimension
-1596 X value in the f3 menu
56 Y value in the f3 menu
762 Z value in the f3 menu
ID Dimension
-1 The End
0 Overworld
1 Nether
nasuno commented 10 years ago

I get it. Thanks.

benaubin commented 10 years ago

You're welcome! I am having fun playing with markdown

nasuno commented 10 years ago

I'm taking care of the left over files when blocks are removed. Unless you already had a solution.

benaubin commented 10 years ago

Ok! Thanks. If you deleted all the files after checking them, the ones that are in use will come back.

nasuno commented 10 years ago

So I've https://mega.co.nz/#!9c10RLZQ!bzOEni836BtAbM5Oh5zpdEZRANvYofEHmXRB4AjCLWY takes first 5by7 panel created ingame and auto produces config forms for them as they are created. Hands free during minecraft placement. Would like to have something to work with. No preset but at 1/2 seconds and redstone signal only as a minimum to progress better. Please try this out on your work and let me know if all is well? Change watchpath to wherever your game is saving the files that the readblocks produce. Please share with me the first few files created by this with blocks layed out like so.. top layer left to right, move down a layer, left to right, etc. until last row, row 7, 5 long. In different orientations (facing south, east, up, down, etc..). -only if it will be a while till you have something working.

nasuno commented 10 years ago

Should look something like this testing.txt, a chore to make by hand.

Configuration file for module: E:\testing.txt Button_y7x1: z:\0,160,99,273.txt Button_y7x2: z:\0,160,99,272.txt Button_y7x3: z:\0,160,99,271.txt Button_y7x4: z:\0,160,99,270.txt Button_y7x5: z:\0,160,99,269.txt Button_y6x1: z:\0,161,99,273.txt Button_y6x2: z:\0,161,99,272.txt Button_y6x3: z:\0,161,99,271.txt Button_y6x4: z:\0,161,99,270.txt Button_y6x5: z:\0,161,99,269.txt Button_y5x1: z:\0,162,99,273.txt Button_y5x2: z:\0,162,99,272.txt Button_y5x3: z:\0,162,99,271.txt Button_y5x4: z:\0,162,99,270.txt Button_y5x5: z:\0,162,99,269.txt Button_y4x1: z:\0,163,99,273.txt Button_y4x2: z:\0,163,99,272.txt Button_y4x3: z:\0,163,99,271.txt Button_y4x4: z:\0,163,99,270.txt Button_y4x5: z:\0,163,99,269.txt Button_y3x1: z:\0,164,99,273.txt Button_y3x2: z:\0,164,99,272.txt Button_y3x3: z:\0,164,99,271.txt Button_y3x4: z:\0,164,99,270.txt Button_y3x5: z:\0,164,99,269.txt Button_y2x1: z:\0,165,99,273.txt Button_y2x2: z:\0,165,99,272.txt Button_y2x3: z:\0,165,99,271.txt Button_y2x4: z:\0,165,99,270.txt Button_y2x5: z:\0,165,99,269.txt Button_y1x1: z:\0,166,99,273.txt Button_y1x2: z:\0,166,99,272.txt Button_y1x3: z:\0,166,99,271.txt Button_y1x4: z:\0,166,99,270.txt Button_y1x5: z:\0,166,99,269.txt

nasuno commented 10 years ago

Updated https://mega.co.nz/#!sZ8hXDKK!BYJf7KQ114GeJEdeNmNujPPMb55g1kYpMlXds4_Q30c used a backgroundworker.

benaubin commented 10 years ago

Just so you know, the write stone writes, and won't popup with a window. The read stone reads, and to select a file, you have to choose it.

nasuno commented 10 years ago

I have been working on the assumption that they both write a file based on there location. So you can just throw them down one after the other. having to stop between each will be not so fun. Is this a big deal to change? If I want the file associated with the write block file then I will make them match outside of minecraft. I thought I had expressed this clearly. Sorry if I am causing problems I just don't want to manually create each of these. will take minutes each to get right instead of fraction of a second to throw down next block. All I have written is based on writing to locations which are coordinates as well. Trying to automate everything hands free. The other tool I posted is based on this as well. Did you download it? This is all due to my telling you how I had originally planed this. I should have kept my mouth shut.

benaubin commented 10 years ago

Ok. It's fine - sorry. So if I understand correctly, you want the read stones to receive data through a block in the coordinates? If you program writes to a file, you can choose it, which also lets it allow for wireless redstone

benaubin commented 10 years ago

Although I'm on mac, so I can't use your tool

benaubin commented 10 years ago

although write stones create their own file based on creation

nasuno commented 10 years ago

Look I was pretty excited about all of this and have got a great deal of work done but then you sounded uninterested in the project and now are expressing to me that we were not communicating well for a while. What I want is simple.

WriteBlock Has config (one file for all WriteBlocks)file that stores some preset values for how often to update the 1 or 0 file. also produces on deployment a file with its location as name containing the 1 if it has current leading to it. and a 0 if it does not. File creation with a 0 as default until first timer corrects value. The timer update method ingame up for debate. shift+right click on block to cycle through presets?

ReadBlock Has config (one file for all ReadBlocks)file that stores some preset values for how often to read the value of the file it created at deployment. That file being its location containing a 0 as default value. If that read value is a 0 ReadBlock produces no power if it is a 1 the ReadBlock produces power.

This I think would be a simple task for someone with some minecraft api and java knowledge yet you pester me to give you money and have not even expressed an understanding of the project to me.

One of my tools I posted you was for creating 5x7 templates the newest one was for creating the modular forms for my program to process data on blocks in use. I already have the code for updating the blocks and all of the templates about 200 I have created for my program to be able to cycle each panel through ingame and all of there detection patterns. Working on a ingame menu atm for cataloging all this data ingame.

I have got a lot of work done based on some assumptions I had made about you following along. I have someone local that might be able to help me with this if you haven't the time or interest in this please be honest with me.

I had hoped these tasks would be easy as I had others in mind. Also you should be honest about the mac thing up front before offering services.

benaubin commented 10 years ago

I am sorry - I have never meant to pester you about money. Also, this is a project I do in my free time (I don't have a lot). I never knew you were using windows, so I'm sorry about that. Also, I have other projects that I need to work on. I believe what we have done so far is good. You should be able to do everything you need with it. If you can't please tell us. Although we have made the read and write stones.

benaubin commented 10 years ago

Java does work on Mac and Windows, so it shouldn't mater if I have a Mac or not.

benaubin commented 10 years ago

Anyways, I am interested, but I don't have a ton of time. Sorry :frowning:

benaubin commented 9 years ago

Unless you still would like help, I am going close this. Sorry.