Post: Releasing Projects and Sources!
12-15-2012, 08:41 PM #1
BriceC
Computer Programmer
(adsbygoogle = window.adsbygoogle || []).push({}); Im done messing with these and i have no use for them anymore so here..Do what you want with them, if you use them and re-release please give credits.

Downloads:
{VB} FF Viewer.rar You must login or register to view this content.
{C#} W@W Fastfile Editor.rar You must login or register to view this content.
{C#} Real Time COD MW3.rar You must login or register to view this content.
{C#} Modern Warfare 2 CodeBrowser.rar You must login or register to view this content.
(Most Updated) {C#} Beautifier All Version.rar You must login or register to view this content.

{C#} Optimize and De-Optimize Code's private void button3_Click(object sender, EventArgs e)
{
source.Text = Regex.Replace(source.Text, @"(
){2,}", "

");
source.Text = Regex.Replace(source.Text, @"\t", "");
source.Text = Regex.Replace(source.Text, @"\( ", "(");
source.Text = Regex.Replace(source.Text, @" \)", ")");
source.Text = Regex.Replace(source.Text, @"\[ ", "[");
source.Text = Regex.Replace(source.Text, @" \]", "]");
source.Text = Regex.Replace(source.Text, ", ", ",");
source.Text = Regex.Replace(source.Text, @" \+ ", @"+");
source.Text = Regex.Replace(source.Text, " - ", "-");
source.Text = Regex.Replace(source.Text, " = ", "=");
source.Text = Regex.Replace(source.Text, " == ", "=");
source.Text = Regex.Replace(source.Text, " != ", "!=");
source.Text = Regex.Replace(source.Text, @" \+= ", @"+=");
source.Text = Regex.Replace(source.Text, " -= ", "-=");
source.Text = Regex.Replace(source.Text, @" \+\+ ", @"++");
source.Text = Regex.Replace(source.Text, " < ", "<");
source.Text = Regex.Replace(source.Text, " > ", ">");
source.Text = Regex.Replace(source.Text, "; ", ";");
source.Text = Regex.Replace(source.Text, "for ", "for");
source.Text = Regex.Replace(source.Text, "if ", "if");
source.Text = Regex.Replace(source.Text, "\\s+\\n", "");
MessageBox.Show("Code Simplified Successfully!", "Success!");
}
}
}

private void beautify()
{
indentChar = '\t';
bool whiteSpace = false,
whiteSpacePrev = false,
newLine = false,
nextEndLine = false,
inForLoop = false;
int srcLen = ActiveEditor.Text.Length;
System.Text.StringBuilder dst = new System.Text.StringBuilder(srcLen + (srcLen >> 2));
string prevChar = String.Empty;
string escapedChar = String.Empty;
foreach (char ch in ActiveEditor.Text)
{
nextChar = ch.ToString();
if (escapedChar.Length > 0)
{
escapedChar += nextChar;
if ((escapedChar[0] == 'u' || escapedChar[0] == 'U'Winky Winky && escapedChar.Length < 5)
continue;
if (escapedChar.Length >= 3)
{
dst.Length--;
char escCh;
string escapedCharLower = escapedChar.ToLower();
try
{
if (escapedCharLower[0] == 'x' || escapedCharLower[0] == 'u'Winky Winky
{
escCh = (char)int.Parse(escapedCharLower.Substring(1), System.Globalization.NumberStyles.HexNumber);
}
else
{
int oct = (int.Parse(escapedCharLower[0].ToString()) << 6) + (int.Parse(escapedCharLower[1].ToString()) << 3) + int.Parse(escapedCharLower[2].ToString());
escCh = (char)((byte)oct);
}
if (escCh >= ' ' && escCh <= '~'Winky Winky
{
dst[dst.Length - 1] = escCh;
prevChar = escCh.ToString();
}
else
dst.Append(escapedChar);
}
catch
{
dst.Append(escapedChar);
}
escapedChar = String.Empty;
continue;
}
else
continue;
}
if (nextEndLine)
{
if (ch != ';'Winky Winky
dst.Append("
" + spaces(level));
nextEndLine = false;
}
whiteSpacePrev = whiteSpace;
whiteSpace = false;
if (prevChar == "\\" && inString != StringType.None)
{
if (ch == 'x' || ch == 'X' || ch == 'u' || ch == 'U' || (ch >= '0' && ch <= '9'Winky Winky)
escapedChar = nextChar;
}

switch (ch)
{
case ' ':
case '\t':
case '\r':
case '\n':
if (!newLine)
whiteSpace = true;
nextChar = String.Empty;
break;
case '{':
if (inString == StringType.None)
{
removeWhitespaceAtEnd(dst);

newLine = true;
dst.Append("
" + spaces(level) + "{
");
nextChar = String.Empty;
dst.Append(spaces(++level));
}
break;
case '}':
if (inString == StringType.None)
{
newLine = true;
if (--level < 0)
{
dst.Append("
<<< Bogus level >>>
");
level = 0;
}
removeWhitespaceAtEnd(dst);
if (!endsWith(dst, "
"))
dst.Append("
");
dst.Append(spaces(level) + "}");
nextEndLine = true;
nextChar = String.Empty;
}
break;
case ';':
if (inString == StringType.None)
{
nextChar = String.Empty;
if (endsWith(dst, "
"))
dst.Length -= 2;
dst.Append(";");
if (!inForLoop)
dst.Append("
" + spaces(level));
newLine = true;
}
break;
case '\'':
if (inString != StringType.DoubleQuote &&
prevChar != "\\")
inString = (inString == StringType.None ? StringType.SingleQuote : StringType.None);
break;
case '\"':
if (inString != StringType.SingleQuote &&
prevChar != "\\")
inString = (inString == StringType.None ? StringType.DoubleQuote : StringType.None);
break;
case '(':
if (endsWith(dst, "for"))
inForLoop = true;
break;
case 'Winky Winky':
inForLoop = false;
break;
}

if (!whiteSpace)
{
prevChar = ch.ToString();
if (whiteSpacePrev)
{
if (!newLine)
dst.Append(" ");
whiteSpace = false;
}
if (nextChar != String.Empty)
{
dst.Append(nextChar);
newLine = false;
}
}

} // For loop
ActiveEditor.Text = dst.ToString();
MessageBox.Show("Code Beautified Successfully!", "Success!");
}

enum StringType
{
None,
SingleQuote,
DoubleQuote
}
string spaces(int level)
{
return new string(indentChar, level);
}

void removeWhitespaceAtEnd(System.Text.StringBuilder dst)
{
int x = dst.Length - 1;
while (dst[x] == ' ' || dst[x] == '\t'Winky Winky
--x;
dst.Length = x + 1;
}

bool endsWith(System.Text.StringBuilder dst, string check)
{
int x = dst.Length - check.Length,
y = 0;
while (dst[x] == check[y++])
{
++x;
if (y == check.Length)
break;
}
return x == dst.Length;
}


Optimizer Code void*Optimise()
********{
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*{",*"{");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("{*",*"{");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*{*",*"{");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*(",*"(");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("(*",*"(");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*(*",*"(");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*=",*"=");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("=*",*"=");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*=*",*"=");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*;",*";");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace(";*",*";");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*;*",*";");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*\"",*"\"");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*\"*",*"\"");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("\"*",*"\"");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*,",*",");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace(",*",*",");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*,*",*",");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*<",*"<");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("<*",*"<");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*<*",*"<");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*>",*">");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace(">*",*">");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*>*",*">");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*&&",*"&&");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("&&*",*"&&");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*&&*",*"&&");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*++",*"++");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("++*",*"++");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*++*",*"++");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*--",*"--");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("--*",*"--");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("*--*",*"--");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("****",*"");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("********",*"");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("************",*"");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("****************",*"");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("********************",*"");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("************************",*"");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("****************************",*"");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("********************************",*"");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("************************************",*"");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("**",*"*");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("***",*"*");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace("****",*"*");
************textEditorControl1.Text*=*textEditorControl1.Text.Replace(Environment.NewLine,*"");
********}*
(adsbygoogle = window.adsbygoogle || []).push({});
12-18-2012, 02:25 AM #2
Cant open W@W FastFile Editor Form1.cs, when i click it it just opens in notepad with ASCII characters lol.... ohh and the VB FFViewer's link doesnt exist Not Happy or Sad
12-19-2012, 12:18 PM #3
O.o cheers for this Happy
12-19-2012, 06:06 PM #4
BriceC
Computer Programmer
Originally posted by EyeX32 View Post
Cant open W@W FastFile Editor Form1.cs, when i click it it just opens in notepad with ASCII characters lol.... ohh and the VB FFViewer's link doesnt exist Not Happy or Sad


updated try now.

---------- Post added at 12:06 PM ---------- Previous post was at 12:05 PM ----------

Originally posted by NippleBear View Post
O.o cheers for this Happy


updated links some werent working.
12-19-2012, 10:58 PM #5
Originally posted by Elite
updated try now.

---------- Post added at 12:06 PM ---------- Previous post was at 12:05 PM ----------



updated links some werent working.


The W@W FastFile Editor Form1.cs file doesn't open, when I double click it justs opens Notepad and it shows ASCII characters. Can you send me the Form1.cs file that works?
12-19-2012, 11:04 PM #6
BriceC
Computer Programmer
Originally posted by EyeX32 View Post
The W@W FastFile Editor Form1.cs file doesn't open, when I double click it justs opens Notepad and it shows ASCII characters. Can you send me the Form1.cs file that works?


let me take a look at that.

---------- Post added at 05:04 PM ---------- Previous post was at 05:02 PM ----------

Originally posted by EyeX32 View Post
The W@W FastFile Editor Form1.cs file doesn't open, when I double click it justs opens Notepad and it shows ASCII characters. Can you send me the Form1.cs file that works?


hmm must have fked up somewhere along the line... :( hmm im not sure how..

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo