Post: [RELEASE] MW2 MOTD Changer SOURCE Code
06-17-2013, 02:21 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hi Guys this is just one more program I did to my Programming Notepad and I want to share the source code with you guys Happy ...
There might be some problems while using the Enable more characters than usual feature on a save game that has never got his MOTD changed by a Mod Menu...
The normal MOTD Function works fine, but the Allow more characters one might only work with a save that has been MOTD modded via .CFG Menu or something like that...

So here is a picture to guide you with the source code : You must login or register to view this content.

And here is the source code .. Enjoy!
*NOTE : YOU WILL NEED PACKAGE.IO DLL FILE!
Package.IO Download : You must login or register to view this content.

Source :
    
//Credits to MW2TopTenWORLD for making and releasing
//This Source Code!
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using PackageIO;

namespace Programming_NotePad
{
public partial class motdchanger : DevComponents.DotNetBar.Metro.MetroForm
{
string path;
string motd;

public motdchanger()
{
InitializeComponent();
}

private void motdchanger_Load(object sender, EventArgs e)
{
MessageBox.Show("Program made as part of Programming Notepad!");
textBox1.MaxLength = 28;
}

private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if (checkBox1.Checked == true)
{
textBox1.MaxLength = 300;
}
if (checkBox1.Checked == false)
{
textBox1.MaxLength = 28;
}
}

private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog openmotd = new OpenFileDialog();
openmotd.Title = "Open your GPAD0_MP.PRF FILE!";
openmotd.Filter = "GPAD0_MP Files | *.prf";
if (openmotd.ShowDialog() == DialogResult.OK)
{
path = openmotd.FileName;
Reader readmotd = new Reader(openmotd.FileName , Endian.Little , 0L);
readmotd.ReadString(2Cool Man (aka Tustin);
readmotd.Position = 78;
label2.Text = readmotd.ReadString(2Cool Man (aka Tustin);
}
}

private void button2_Click(object sender, EventArgs e)
{
motd = textBox1.Text;
Writer writemotd = new Writer(path, Endian.Little, 0L);
writemotd.Position = 78;
writemotd.WriteString(motd);
MessageBox.Show("The New MOTD has been sucessfully inputed!");

}
}
}


Enjoy!!
-MW2TopTenWORLD
(adsbygoogle = window.adsbygoogle || []).push({});

The following 2 users say thank you to MW2TopTenWORLD for this useful post:

*xActionMods*, ImGsus
06-17-2013, 03:42 PM #11
Originally posted by master0wn3r View Post
nice!, i might have some trouble later because im not coding C# very long Smile


kk no problem.. also Add my Skype diogo.verissimo4 if you dont wanna post here on NGU Winky Winky
06-17-2013, 04:16 PM #12
Master0wn3r
I’m too L33T
Originally posted by MW2TopTenWORLD View Post
kk no problem.. also Add my Skype diogo.verissimo4 if you dont wanna post here on NGU Winky Winky


i have added you :P

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo