generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Help I feel like I'm being an inefficient poop

Previous Thread :: Next Thread 
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
29 Nov 2014 10:53 PM
Using the gates roblox created (and, or, and inverter) I created an adder but my xor seems to poop.

Right now it's like (A = input 1, B = input 2):

A or B (to check for non 0 & 0)
not [A and B] (to check for non 1 & 1)

And and those 2 together to get my xor.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
29 Nov 2014 10:54 PM
Is it too much to have those many gates for a simple x0RRRr ;[[
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
29 Nov 2014 10:56 PM
I mean it works but, like, I mean
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
29 Nov 2014 11:26 PM
wut
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
29 Nov 2014 11:32 PM
my xor is using 4 gates (stamper -> wiring)
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
29 Nov 2014 11:38 PM
oh okay

whats xor do (And yes I know its something you made not a part of lua)
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
29 Nov 2014 11:39 PM
It's like, 1 of the input has to be the opposite of the other.

1 XOR 0 = 1
0 XOR 1 = 1
0 XOR 0 = 0
1 XOR 1 = 0
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
29 Nov 2014 11:42 PM
is there a reason to not do

if x ~= y then
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
29 Nov 2014 11:42 PM
Well, I'm using the logic gates found in stamper.
Not anything to do with scripting :)) I should of gone to GD with this, I'm dumb this is like a building problem I think.
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
29 Nov 2014 11:43 PM
I think hardly anyone uses wiring, so that'll be a tough thing to get help for.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
29 Nov 2014 11:44 PM
Sorry my mistake

I can't think of a better way to do it, but then again I don't build much especially with the stamper
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
29 Nov 2014 11:44 PM
Well it doesn't really only relate to wiring I guess:

If you only had AND, OR, and NOT, how would you make an XOR :)
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
29 Nov 2014 11:45 PM
Even though AND and OR can be made with NOT alone, but Roblox is nice to give me more bl0x
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
29 Nov 2014 11:48 PM
I thought of something I might be wrong but

why check 4 times

couldn't you do

1 and 1, 0
0 and 0, 0
otherwise, 1
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
29 Nov 2014 11:49 PM
so what you're doing is
if (input1 and input2) or (not input1 and not input2) then

and you want want to reduce that to basically:
if input xor input2 then

??
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
29 Nov 2014 11:49 PM
So a NAND, and an OR which is exactly what I'm doing :)

To do 1 & 1 = 0, I use an AND then a NOT (to make it NAND)
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
29 Nov 2014 11:50 PM
Well, I guess. Using just the logic gates Roblox gives me (no scripting or anything involved from me).
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
29 Nov 2014 11:51 PM
Oh, yeah no, I can't visualize that.
gl homie
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
29 Nov 2014 11:52 PM
Well, what I'm doing now is a NAND and an OR, both connected with an AND:

NAND to check for no 1 & 1
OR to check for no 0 & 0
ANDing those give me 1 if those are both false (meaning 1 & 0 or 0 & 1 are being used)
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
30 Nov 2014 12:06 AM
Oh lord, I read your reply it was slightly wrong.
What I was doing is:

if (input1 or input2) and (not input1 and not input2) then
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
30 Nov 2014 03:55 PM
This is why I need a better way D:
LOOK AT THIS MADNESS
prntscr/5bvucz

Just to add numbers qqqqq
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
30 Nov 2014 04:03 PM
Man, I love making logic gates with the stamper tools.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image