Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 08:22

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Resource] ASCII String & Byte Array Converter

Discussion on [Resource] ASCII String & Byte Array Converter within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
[Resource] ASCII String & Byte Array Converter

#deleted
FuriousFang is offline  
Thanks
3 Users
Old 11/13/2010, 22:33   #2
 
iGeorge112's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 68
Received Thanks: 13
Thank you
iGeorge112 is offline  
Old 11/13/2010, 23:24   #3
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
Code:
Encoding.ASCII.GetBytes(stringVal);

Encoding.ASCII.GetString(bytesVal);
Err.. that does just that lol
kinshi88 is offline  
Thanks
1 User
Old 11/13/2010, 23:41   #4
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
Quote:
Originally Posted by kinshi88 View Post
Code:
Encoding.ASCII.GetBytes(stringVal);

Encoding.ASCII.GetString(bytesVal);
Err.. that does just that lol
Not exactly... =P
You're forgetting about the input. I'm not saying it was hard. It's not. Just takes time to make the input. I just made it so I could develop my message packet.

Code:
if (e.KeyChar == (char)Keys.Enter)
            {
                try
                {
                    string[] ByteArray = ByteArrayBox.Text.Replace("\n", ":").Split(':');
                    byte[] newbuffer = new byte[ByteArray.Length];
                    int n = 0;
                    while (n != ByteArray.Length && ByteArray[n] != "")
                    {
                        newbuffer[n] = (byte.Parse(ByteArray[n]));
                        n++;
                    }
                    StringTextBox.Text = Encoding.ASCII.GetString(newbuffer, 0, newbuffer.Length);
                }
                catch { MessageBox.Show("The Array you inputed contains errors. Please check your Array.", "Format Error"); }
            }
FuriousFang is offline  
Old 11/14/2010, 11:21   #5


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
This is a specific thing that you need, may I add that it`s extremely simple. I really do not see the point of this release/resource/w/e.
KraHen is offline  
Old 11/14/2010, 15:25   #6
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
That is very useful.
†he Knight is offline  
Old 11/14/2010, 16:15   #7
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
Quote:
Originally Posted by JuiceDCodeR View Post
That is very useful.
Your comment was:
- Spam
- Just for Postcount
- Just wanted to say something

And another thing is that you have NO use for it, You dont know how it works, you know **** about it. I actually was up untill 3am working with getstrings, getbytes(along with Encryptions to them) So I do know how it works before you go saying nor do I.

@Fang: Pretty useless tool tbh.
Code:
byte[] Array = Encoding.ASCII.GetBytes("Black Ops is SICK!!");
Console.WriteLine("Bytes of 'Black Ops is SICK!! := {0}", Array);
string ArrayReversed = Encoding.ASCII.GetString(Array);
Console.WriteLine("Reversed := {0}", ArrayReversed);
Reversed is not the correct keyword to use but meh.
But at least you gave something to the community that has never been released before so I got to give you credits for that.
_DreadNought_ is offline  
Old 11/14/2010, 16:23   #8
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
Quote:
Originally Posted by _DreadNought_ View Post
Your comment was:
- Spam
- Just for Postcount
- Just wanted to say something

And another thing is that you have NO use for it, You dont know how it works, you know **** about it. I actually was up untill 3am working with getstrings, getbytes(along with Encryptions to them) So I do know how it works before you go saying nor do I.

@Fang: Pretty useless tool tbh.
Code:
byte[] Array = Encoding.ASCII.GetBytes("Black Ops is SICK!!");
Console.WriteLine("Bytes of 'Black Ops is SICK!! := {0}", Array);
string ArrayReversed = Encoding.ASCII.GetString(Array);
Console.WriteLine("Reversed := {0}", ArrayReversed);
Reversed is not the correct keyword to use but meh.
But at least you gave something to the community that has never been released before so I got to give you credits for that.
Haahaha Spam?
I Don't Know how to use it?

You seriously gotta stop chasing me... You act lifeless and pathetic..
†he Knight is offline  
Old 11/14/2010, 18:06   #9
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
Quote:
Originally Posted by KraHen View Post
This is a specific thing that you need, may I add that it`s extremely simple. I really do not see the point of this release/resource/w/e.
Please read previous posts. I stated that it was extremely simple; however, since I"m the only one that put it into an app to help code, I'm taking that it's a very useful release (if you know how to code packets and need to know what the offsets might be).
FuriousFang is offline  
Old 11/14/2010, 19:01   #10
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 506
Let me enjoy this bitchfight with an ice cold beer.
Basser is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Would S4 Resource Tool work with Korean Resource Files
12/04/2010 - S4 League - 12 Replies
Hi i tried to test it out and had to download the game due to 445mb patch when i try the s4 resource with korean resource files they open up would they work? or not? Ashley :)
[C++] string zwischen string
11/11/2010 - C/C++ - 6 Replies
tag gibts direkt ne funktion, mit der man einen passenden string zwischen dem string suchen kann? also meine net .find() sondern sowas ähnliches, die in diesem beispiel "mein string sucht" Bsp: "<span id=\"lalala\">"+string mein_string+"</span>" understanden? :-)
ASCII Art [Sammelthread]
10/09/2010 - Off Topic - 7 Replies
Elitepvpers ASCII Art Hi Elitepvpers.. Ich dachte mir dass wir hier einen ASCII Art Bilder Sammelthread aufmachen könnten..Hier könnt ihr also alle eure ASCII Bilder posten die ihr im Inet gefunden habt oder auch selbstgemacht habt. Ich hoffe dass der Thread nicht gleich geclosed wird.. Lg, Dawi95!
[Converter] Free Music Converter
07/19/2010 - Music - 1 Replies
Moin, ich hab für euch mal einen kleinen Musik Converter gemacht! Mit dem Converter könnt ihr die standart files convetieren, wie *.mp3 , *.wav , *.wma und noch mehr! hier ein pic: http://i30.tinypic.com/dy9mqe.png



All times are GMT +1. The time now is 08:24.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.