Hober wrote:
Haapavuo wrote:
Did you mean that I should write a script that detects which .NET version is installed?
No. Sorry for being unclear.
I meant a batch file, which would have the advantage of being able to run on any Windows machine new enough to run Portal 2, no .NET required. The disadvantage would be that batch scripts are harder to write. You might even be able to use PowerShell, but that would require PowerShell to be installed, which is only true (by default) on Windows 7.
I was complaining about the fact that these .NET and Java solutions are overkill for the job, but I don't really have the ability to complain since I haven't written any code either. Honestly, I'm not intimidated by task of writing a batch script, I just don't know all of the steps that your patcher goes to: reading registry keys, what files to look for, how exactly to edit the extras file and so on.
Plus, the script, when zipped, would probably be less than 1KB. [/programmer]
You are right. The problem here is that I can only write C# .NET Windows Forms and C++ console programs. I wanted the program to have a nice GUI so it's easy to use. I have no idea how to use WinApi to do that. Maybe I should start learning... Console programs are good sometimes but not for this.
As far as I know, many Windows users already have the newest .NET framework installed since it is pretty widely used. I think it is easier & faster to install .NET and use my program than modifying the extras.txt yourself and copying the map files to the portal2\maps folder.
I can't write anything else than console programs for Mac or Linux users. Though majority of Portal 2 players are using Windows. That is why I'm sticking with C# Windows Forms. It is easy to use and fast to learn. And it's powerful.
And what comes to the size, I wouldn't complain about it. It is the same if the file is 80kb or 1kb. With 8mbit/s internet connection the file will be downloaded in a second.