Please or Register to create posts and topics.

[Tutorial] Editing Valve's 7.5 format .VTF files

PreviousPage 2 of 2

When i install the newest version i get this error The application has failed to start because its side by side configuration is incorrect, how do i solve this problem.

Hey Haggis! You might want to take a look into this other thread with the same issue... it's related to the versions of MS Visual C++ 2005 Service Pack you have installed.

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]

Thanks Jose, i have installed a few runtimes, but it is still not working. If i uninstall and put an older version of vtfedit in, it works, but when i install the latest version of vtfedit, i get this error.

I resettet my computer, reinstalled vtfedit, and i have the same issue like haggis.
The old version of vtfedit works, but when the version error shows up. And the latest version just dont start (Side by side problem). I also installed the visual c++ service pack (64 bit). Still doesnt work :/

EDIT: Finally Works. @Haggis If you have a 64 bit system, just download the archived version of vtfedit and run the 32 bit .exe (x86)

Sorry, that I didn't answer quickly.
I don't quite know if how I can prove it is safe.At least here is the Source-code and if anyone wants the C# Project, send me a PM. I know I should have used the simple URL method.
Code

Spoiler
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
bool did = false;

private void Form1_Load(object sender, EventArgs e)
{
if (MessageBox.Show("The User (you) is responsable for any corrupted, damaged or lost data.rnThe Creator of this Program is NOT responsable for any corrupted, damaged or lost data.rnDo you accept?rnTIPP: Always make backups!", "Terms of Servive", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
{
MessageBox.Show("rnrnBecause you didn't accept, I may not give you access to this program :(rnrn", "No Access...", MessageBoxButtons.OK, MessageBoxIcon.Error);
Application.Exit();
}
else
{
this.AllowDrop = true;
this.DragEnter += new DragEventHandler(Form1_DragEnter);
this.DragDrop += new DragEventHandler(Form1_DragDrop);
}
}

void Form1_DragEnter(object sender, DragEventArgs e)
{

if (e.Data.GetDataPresent(DataFormats.FileDrop))
{
e.Effect = DragDropEffects.Copy;
did = false;
lbs.Items.Clear();
lba.Items.Clear();
lbe.Items.Clear();
TopMost = true;
Activate();
}
else
e.Effect = DragDropEffects.None;
}

private void Form1_DragDrop(object sender, DragEventArgs e)
{
int i = 0;

string[] fileList = (string[])e.Data.GetData(DataFormats.FileDrop, false);

if (!did)
{
while (i < fileList.Length)
{
byte[] text = File.ReadAllBytes(fileList[i]);

switch (text[8])
{
case 5:
text[8] = 4;
File.WriteAllBytes(fileList[i], text);
lbs.Items.Add(fileList[i]);
break;

case 4:
lba.Items.Add(fileList[i]);
break;

default:
lbe.Items.Add(fileList[i]);
break;
}

i++;
}
MessageBox.Show("Finished", "Finished Converting!", MessageBoxButtons.OK, MessageBoxIcon.Information);
TopMost = false;
did = true;
}
}
}
}

The code looks safe to me, although I'm not really a C# programmer. And the file size of the executable seems right for that code.

Falsi sumus crusto!

I know, I should have read the Externalfilerules FIRST. :notwant:
Sorry for that.
Only that I don't find a good catagory.

PreviousPage 2 of 2