-
1 Attachment(s)
Public C# Launcher with screenies! Yaay
Duuh herro!
Been looking around for this earlier and only found launchers in AutoIT so I eventually made my own :)
It's nothing fancy really and I lack creativity (design speaking) so yeah :P I hope people can make use of it though ^^
So here's how it works;
-First you'll need a webhost. (That's where it'll download the updates from)
You'll put your update URL inside 'launcher.ini' aswell as the links you wish to display in the browsers.
http://i.imgur.com/NiLNMAu.png
-Create a folder called update so the link will be something like "http://yourlinkhere.com/update"
To create an update, you'll need to do the following;
1. Create version.txt in the update file we just created
2. Make sure your files are properly placed; (When the file extracts, it should extract them and replace the original files)
http://i.imgur.com/ISJwIKc.png
3. Now change your cabalmain's version to +1, for example if your cabalmain's version is 2, make it 3. You'll need resource hacker (Or that's what I use anyway, google is your bestfriend)
http://img703.imageshack.us/img703/1949/nozo.png
4. Put your update inside a self extracting archive (SFX) using silent mode (hide all) and overwrite all files, so it doesn't need the user to click anything.
5. Now upload your update to your "Update" folder on the webhost and name it "update(version)", it should look something like this;
http://i.imgur.com/CBWcoTz.png
6. Change version.txt to whatever your current version is; MAKE SURE YOU DO THIS AS THE LAST STEP!
Additional Info;
The update will download updates one by one in order to not mess the game files up, so if you have "update2", "update3", "update4", it will downloads update2 first then 3 then 4.
If you set the version.txt to a higher version without the update file being there it'll throw an exception.
If you set the version to something lower than your current cabalmain version, the updater WILL NOT update.
So, here it is, I kinda suck at explaining so lemme know if I missed anything xD
PS: If you have anything to ask or request please lemme know ~ I might add more to it when I get some more free time :P
https://mega.co.nz/#!MlB0ASaI!Qlxa2g...tBEqPwWFPTuRhU
-
Re: Public C# Launcher with screenies! Yaay
I was gonna dld and judge your code but I don't see a link ?
-
Re: Public C# Launcher with screenies! Yaay
Quote:
Originally Posted by
PunkS7yle
I was gonna dld and judge your code but I don't see a link ?
lmfao my bad I thought I put it there xD Updated.
And it's nothing pro really, just trying to be helpful c:
-
Re: Public C# Launcher with screenies! Yaay
Code:
private void button1_Click(object sender, EventArgs e)
{
if (File.Exists("C:/Windows/System32/drivers/etc/hosts"))
{
using (StreamReader reader = new StreamReader("C:/Windows/System32/drivers/etc/hosts"))
{
string str = reader.ReadToEnd();
if ((str.Contains("46.150.46.170 xtrap.cabalonline.com.br") && str.Contains("46.150.46.170 download.priston.com.br")) && str.Contains("46.150.46.170 path.pointblankonline.com.br"))
{
MessageBox.Show("Your xtrap is already fixed!", "Attention!");
}
else
{
reader.Dispose();
this.writehosts();
}
return;
}
}
this.writehosts();
}
This will throw an error if not ran as admin and on windows 8.1 especially even with a disabled user account control the launcher needs to be specifically ran as Admin to be able to edit the hosts file.
-
Re: Public C# Launcher with screenies! Yaay
mega.co.nz upload please ?
-
Re: Public C# Launcher with screenies! Yaay
Quote:
Originally Posted by
PunkS7yle
This will throw an error if not ran as admin and on windows 8.1 especially even with a disabled user account control the launcher needs to be specifically ran as Admin to be able to edit the hosts file.
That's why it's disabled lol. Would be nice if you don't show the source to everyone you know >.>
-
Re: Public C# Launcher with screenies! Yaay
It doesn't show as commented though. And I'm not showing the whole source am I ?
-
Re: Public C# Launcher with screenies! Yaay
Quote:
Originally Posted by
PunkS7yle
It doesn't show as commented though. And I'm not showing the whole source am I ?
Disabled** I'm failing too much lol my bad.
Anyway, reuploaded~ I hope you're happy now .-.
-
Re: Public C# Launcher with screenies! Yaay
I don't care so it doesn't make me happy or anything else though
-
Re: Public C# Launcher with screenies! Yaay
-
Re: Public C# Launcher with screenies! Yaay
can we have the source code pls?
i need them to modify the update check method
i want to make that with the cabalmain version (example: old version 369, new version 370 = update available)
-
Re: Public C# Launcher with screenies! Yaay
Quote:
Originally Posted by
Stricted
can we have the source code pls?
i need them to modify the update check method
i want to make that with the cabalmain version (example: old version 369, new version 370 = update available)
It's already using the cabalmain version. And its not obfuscated btw.
-
Re: Public C# Launcher with screenies! Yaay
Quote:
Originally Posted by
PunkS7yle
It's already using the cabalmain version. And its not obfuscated btw.
the screens in the start posts say other things
when I look at the screenshot to me then I see i must add a new version string and this is what i not want
-
Re: Public C# Launcher with screenies! Yaay
Quote:
Originally Posted by
Stricted
can we have the source code pls?
i need them to modify the update check method
i want to make that with the cabalmain version (example: old version 369, new version 370 = update available)
Well..
Quote:
Originally Posted by
PunkS7yle
It's already using the cabalmain version. And its not obfuscated btw.
^
And you don't need to add anything all you need to do is edit Product Version.
http://prntscr.com/32bzp8 < How it looks on punk's original cabalmain
If that's not what you mean then explain?
-
Re: Public C# Launcher with screenies! Yaay
ok thanks but i want only modify fileversion
-
Re: Public C# Launcher with screenies! Yaay
Quote:
Originally Posted by
Stricted
ok thanks but i want only modify fileversion
You'll need to change that anyawy for the DB Version, you can just set File version and product version to whatever your current version is?
-
Re: Public C# Launcher with screenies! Yaay
-
Re: Public C# Launcher with screenies! Yaay
Quote:
Originally Posted by
DevilMayCry4
We're not..? ._.
-
Re: Public C# Launcher with screenies! Yaay
with paramater? break or hus?
-
Re: Public C# Launcher with screenies! Yaay
Quote:
Originally Posted by
ijoo
with paramater? break or hus?
Husky
-
Re: Public C# Launcher with screenies! Yaay
Quote:
Originally Posted by
xDarkMoon
> Sublime Text screenshot
Good choice.
-
Re: Public C# Launcher with screenies! Yaay
Quote:
Originally Posted by
estsoft
> Sublime Text screenshot
Good choice.
Not using Atom..
???
-
Re: Public C# Launcher with screenies! Yaay
Quote:
Originally Posted by
estsoft
> Sublime Text screenshot
Good choice.
Thanks :o
-
Re: Public C# Launcher with screenies! Yaay
Quote:
Originally Posted by
PunkS7yle
Not using Atom..
???
Atom is inferior to ST3 atm, mostly due to the fact that it's so young. Also, that it runs on Node.js doesn't help, either
-
Re: Public C# Launcher with screenies! Yaay
Quote:
Originally Posted by
estsoft
Atom is inferior to ST3 atm, mostly due to the fact that it's so young. Also, that it runs on Node.js doesn't help, either
It had plenty of updates since I told you about it, and it's superior to st3 in terms of developing tools, it just lacks some normal text editor features ;<.
-
Re: Public C# Launcher with screenies! Yaay
Quote:
Originally Posted by
PunkS7yle
It had plenty of updates since I told you about it, and it's superior to st3 in terms of developing tools, it just lacks some normal text editor features ;<.
Not to mention that it's far slower and can only handle files up to 2mb. I'll gladly switch once they sort out all their issues and the project is more mature but, until then, ST works nicely for me :3 Plus, I already wrote a Vala build system, so...
-
Re: Public C# Launcher with screenies! Yaay
But atom has some neat packages <3
-
Re: Public C# Launcher with screenies! Yaay
Why not get em all D:
I have all the text editors im aware of, only I use sublime more often than the others c:
-
Re: Public C# Launcher with screenies! Yaay
Text editors = Pokemons confirmed (:
-
Re: Public C# Launcher with screenies! Yaay