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
 

Re: Binary Decoder

Previous Thread :: Next Thread 
abx1 is not online. abx1
Joined: 13 Nov 2008
Total Posts: 4979
19 Jul 2012 05:57 PM
input="0101010001101000011010010111001100100000011010010111001100100000011011010111100100100000011000100110100101101110011000010111001001111001001000000110010001100101011000110110111101100100011001010111001000101110"
t={}
output=""
ansit={" ","!","''","#","$","%","&","`","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","/","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~"}
num2=0
function get_ansi(inp)
local num1=0
inp2=string.reverse(inp)
for d=1,8 do
if string.sub(inp2,d,d)=="1" then
if d==1 then num1=num1+1 end if d==2 then num1=num1+2 end if d==3 then num1=num1+4 end if d==4 then num1=num1+8 end if d==5 then num1=num1+16 end if d==6 then num1=num1+32 end if d==7 then num1=num1+64 end if d==8 then num1=num1+128 end
end
end
return num1
end
for i=1,string.len(input)/8 do
num2=get_ansi(string.sub(input,1,8))
if ansit[num2-31]~=nil then output=output..ansit[num2-31] end
input=string.sub(input,9)
end
print(output)


....I have no life. Officially.
Report Abuse
RA2lover is not online. RA2lover
Joined: 09 Nov 2008
Total Posts: 1254
19 Jul 2012 06:00 PM
someone teach this guy to use string.char.
Report Abuse
abx1 is not online. abx1
Joined: 13 Nov 2008
Total Posts: 4979
19 Jul 2012 06:02 PM
@RA2lover

I know how to use string.char. Its called being extremely bored to the point where you don't use it.
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
19 Jul 2012 06:16 PM
Why don't you just use tostring, tonumber, string.char and string.byte?

You can use tonumber to manipulate bases and string.char to convert numbers to characters.
Report Abuse
abx1 is not online. abx1
Joined: 13 Nov 2008
Total Posts: 4979
19 Jul 2012 06:17 PM
@Julien

I have literally nothing to do.
Wanted to take up as much time as possible.
Report Abuse
booing is not online. booing
Joined: 04 May 2009
Total Posts: 6594
19 Jul 2012 06:22 PM
^
And argue with people as much as possible? Gobwey
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
19 Jul 2012 07:59 PM
I personally think you did a good job at going away from the "norm" of doing things.

I made a way to get angles from a CFrame using math functions instead of toEulerAnglesXYZ. All the replies basically suggested "Why not use toEulerAnglesXYZ?"

Report Abuse
abx1 is not online. abx1
Joined: 13 Nov 2008
Total Posts: 4979
19 Jul 2012 08:12 PM
010000000100110101110010010011100110100101100011010011100110000101100011000011010000101000001101000010100101011101101000011110010010000001110100011010000110000101101110011010110010000001111001011011110111010100101110001000000100000101101110011001000010000001110111011001010010000001110011011101000110100101101100011011000010000001101111011011100010000001100110011011110111001000100000011101000110100001100001011101000010000001100011011011110110110001101100011000010110001001101111011100100110000101110100011010010110111101101110001000000110000101101110011001000010000001110100011010000110010100100000011100110110001101101000011001010110010001110101011011000110010101100100001000000111010001101001011011010110010100100000011010010111001100100000011100110111010001101001011011000110110000100000011101100110000101101100011010010110010000111111
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
19 Jul 2012 08:27 PM
[ Content Deleted ]
Report Abuse
NecroBumpist is not online. NecroBumpist
Joined: 12 Sep 2010
Total Posts: 4198
19 Jul 2012 08:29 PM
>I made a way to get angles from a CFrame using math functions instead of toEulerAnglesXYZ. All the replies basically suggested "Why not use toEulerAnglesXYZ?"

What did you expect?

Reinventing the wheel or solving and old problem is not something noteworthy unless you've contributed something novel in your own solution.
That's not to say that this is a futile activity or one that I've never partaken in. It's just not one worthy of much recognition.
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
19 Jul 2012 08:42 PM
@NecroBumpist

I expected you to realize that you cannot build something better if you do not know what you're working with.

I expected too much.
Report Abuse
DrAgonmoray is not online. DrAgonmoray
Joined: 29 Jul 2008
Total Posts: 17428
19 Jul 2012 08:43 PM
:O

abx1, you're alive! I remember you from Scripting Help from a really really long time ago.
Report Abuse
abx1 is not online. abx1
Joined: 13 Nov 2008
Total Posts: 4979
19 Jul 2012 09:09 PM
@DrAgonmoray

Yuupp. I remember teaching you some stuff. xD
Report Abuse
NecroBumpist is not online. NecroBumpist
Joined: 12 Sep 2010
Total Posts: 4198
19 Jul 2012 10:35 PM
@MrNicNac

I had thought that my diction would imply that problem is already well understood, but it appears that my wording was not strong enough since you did not infer my meaning as I had intended. Using your interpretation, my post would appear as a straw-man fallacy assuming the method you re-implented was previously not understood.
Sorry.

I also take wry amusement from your expectations of and disappointment in me.
Report Abuse
Aerideyn is not online. Aerideyn
Joined: 16 Jan 2010
Total Posts: 1882
19 Jul 2012 10:49 PM
In a game im developing in XNA - i could either use a pre-existing implementation of the transvoxel algorithm.. or i could wade through a 94 page paper and try and make one myself.

I chose to make it myself, I figure if absolutely understand what is going on enough to have built it ill be able to optimise/debug/modify it far beyond what i would otherwise be able to accomplish.

So mock him all you like.. but at least he has the attitude needed to gain a deeper understanding in a feild and will hence become a better scripter/programmer than the more lazy among us as a result.
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
20 Jul 2012 07:09 AM
"I also take wry amusement from your expectations of and disappointment in me."

Hehe...you must have adapted to doing that from a lot of disappointment.
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
20 Jul 2012 08:20 AM
[ Content Deleted ]
Report Abuse
aboy5643 is not online. aboy5643
Joined: 08 Oct 2010
Total Posts: 5458
20 Jul 2012 08:21 AM
@Oysi

Did they unban your country?
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
20 Jul 2012 08:23 AM
[ Content Deleted ]
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
20 Jul 2012 08:26 AM
[ Content Deleted ]
Report Abuse
agent767 is not online. agent767
Joined: 03 Nov 2008
Total Posts: 4181
20 Jul 2012 08:41 AM
Why would they not ban norway?
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
20 Jul 2012 09:19 AM
^
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
20 Jul 2012 09:35 AM
[ Content Deleted ]
Report Abuse
agent767 is not online. agent767
Joined: 03 Nov 2008
Total Posts: 4181
20 Jul 2012 09:48 AM
I am an atheist.
You don`t exist.
Report Abuse
DrAgonmoray is not online. DrAgonmoray
Joined: 29 Jul 2008
Total Posts: 17428
20 Jul 2012 12:31 PM
^
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