Good vs. Evil

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
44 its fun :p
but the only reason I program in it right now is so I can get a working example of the communication protocol as I have not much else that I easily know how to send data to
(actually as I am currently using text anyway I could have used apache+php+javascript+html. But...lua is more fun and I totally didn't forget the other option )
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
45 and...its growing out of hand again, an os.load would have been nice but because of cc...... >_<
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
46 @Someone Else 37 my script is getting big so I would like to separate it a bit however computercraft removed the os.load() function (unless I am mistaken)

I also very much dislike the api loading it got replaced with due to how that works.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
46 currently its 87 lines long and all I did was making functions. It will be a while before I am done with them and I then still need to make a main loop that uses them
 

Someone Else 37

Forum Addict
Feb 10, 2013
1,876
1,440
168
48 87 lines is... nothing compared to some of what I've been dealing with in classes.

That said, when the only text editor is the one packaged with CC, I see your point.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
48 that is why I use a normal text editor (the files are in {your save}/computercraft/{your computer id})

The problem I have is that most of it is a table and it currently is 114 lines long and I haven't even been dealing correctly with possible "corrupt" bits. It also still doesn't work correctly
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
48 it is however already able to use the correct function to parse the next incoming string (thus both positive integer and negative integer).
The functions that need multiple transmissions of data don't work yet though and it possibly need a "small" rewrite of the most important function >_< (the one that handles that incoming data and parsing it to a normal number)

I probably also need a parser for whole strings instead of just a single character (which will use the single character function) however it will also be slow as shit as I can only send 4 bits at a time (thus half a byte).

So...yea... if I ever make this public.avoid this functionality whenever possible :p
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
48 yes. However what I currently make is just so I can get the logic down and have an example program (in the wrong language) which can help me when I make the real thing.

This is also the reason I am also very limited in the amount of bits I can send (I have only 8 wires and one of them is ground (unless I screwed up in my logic and I actually need 2 ground wires if that is the case then well...shit). I use 2 wires to let the sender know if the receiver is ready for more data and to let the sender know if the received data makes sense.
Another wire is used to check if the send data got influenced by for example bad cables/connectors.
The rest of the wires I can actually use to send data