deathtaker26 Posted January 25, 2012 Author Share Posted January 25, 2012 I know Robin already released a very nice Auto Updater for eclipse Origins, but unfortunately not all webservers can share .ini files. This is because .ini files are sometimes used by webservers to set specific settings. Therefore, the webserver will not allow a client (Such as the AutoUpdater) to download the .ini file. My solution to this, Make a .xml based Auto Updater. You can download the source code and the file as an attachment. The Program is written in C# .net and can be edited using Microsoft Visual C# 2010 express. If you need an XML tutorial please, let me know.Please report all bugs to me and tell me if it worked or failed and on the operating system you used the program on.Current Features~Reads xml files~creates temporary files for information to be stored~Downloads from any http fileFeatures planned ahead:~Extract files from zip archive~Extract files from rar archive Link to comment Share on other sites More sharing options...
crzyone9584 Posted January 25, 2012 Share Posted January 25, 2012 My solution to the ini on the web server was rename it to a text file but have it saved as an ini on the clients machine. It worked with no problems. But still really nice. Link to comment Share on other sites More sharing options...
deathtaker26 Posted January 25, 2012 Author Share Posted January 25, 2012 Yeah you could just do that too, :| but the way my updates are working are a tad different for my game it's why I made it with xml because later I am making an xml and mysql based engine. (I will probably start that project in about a month or so…) Link to comment Share on other sites More sharing options...
Xbatz Posted January 25, 2012 Share Posted January 25, 2012 Good thing i have vb10 Link to comment Share on other sites More sharing options...
deathtaker26 Posted January 25, 2012 Author Share Posted January 25, 2012 Yeah, You'll find that most of my programs(not source edits) will be in C#2010.net Link to comment Share on other sites More sharing options...
ark0n Posted January 25, 2012 Share Posted January 25, 2012 This looks cool, I'm about to download it and check how it looks! Link to comment Share on other sites More sharing options...
seanmungo Posted January 25, 2012 Share Posted January 25, 2012 Nice! =) Link to comment Share on other sites More sharing options...
deathtaker26 Posted January 25, 2012 Author Share Posted January 25, 2012 Would you guys like a feature that backs up files being replaced by the update for roll backs Link to comment Share on other sites More sharing options...
Robin Posted January 25, 2012 Share Posted January 25, 2012 You could just re-name the file. You don't need it to be INI. Link to comment Share on other sites More sharing options...
deathtaker26 Posted January 25, 2012 Author Share Posted January 25, 2012 Well I needed practice in xml and web downloading so I just made this. The practice is for another project I have coming up. Link to comment Share on other sites More sharing options...
deathtaker26 Posted January 25, 2012 Author Share Posted January 25, 2012 Yes, I know this a double post but I'm posting a tutorial plugin for this here and to keep that clean im posting in a new reply:This plugin allows you to autolaunch a program, and you can always change the file location through the server to set different files after things load incase you add more things to you're updates that you want to run before you run eclipse.> Okay, so this is the Auto-Launch plugin for the soulz updater, Just add the code to the source code where instructed and compile using microsoft visual C# express and the build will be created.> First find this code in the read temp void:> ```> if ((reader.NodeType == XmlNodeType.Element) && reader.Name == "Update")> {> if (reader.HasAttributes)> {> update_version = reader.GetAttribute("Version");> addStatus("Update Versions: " + update_version);> > }> }> > ```> and under that add this (make sure this is still in the while(reader.read section but out side the if(reader.nodetype))> ```> //for auto Launch Plugin> if ((reader.NodeType == XmlNodeType.Element) && reader.Name == "Auto")> {> if (reader.HasAttributes)> {> > if (reader.GetAttribute("Launch") == "true")> {> Launch_File = reader.GetAttribute("file");> Auto_Launch = true;> }> else> {> Auto_Launch = false;> }> }> //end auto Launch Plugin> > ```than, add this code above deleteTemp(); in you're private void btnExit_click> ```> //begin auto Launch Plugin> if (Auto_Launch == true)> {> try> {> System.Diagnostics.Process.Start(Launch_File);> }> catch> {> MessageBox.Show("The update was successful, but the auto-start proccess couldn't be found.");> }> }> //end auto-launch plugin> > ```> > Now, in you're server file, update.xml add this line under ```> > ```> Rename the file="Eclipse.exe" part of that to be file="yourfilenamehere.exe" This allows you to remotely change the user's autostart program at any given time through the server as well! Link to comment Share on other sites More sharing options...
crzyone9584 Posted January 26, 2012 Share Posted January 26, 2012 Why release something thats no use? Seriously all it can do right now is download an xml file…. It doesn't even install or unzip any files that it downloads.... I'm sorry but before you release something such as an updater make sure it actually has the ability to update the game/program and not just the xml files. Link to comment Share on other sites More sharing options...
deathtaker26 Posted January 26, 2012 Author Share Posted January 26, 2012 @crzy ass it does, it reads information from the downloaded xml file (the one on the server) that xml file tells the updater what else to grab from the web server while the program is active, than updates the version information and deletes the temporary xml file, it will download what ever you tell it to. It doesn't extract anything no, this is because I want to make my own library to do this instead of using another person's library. since windows doesn't have a built in library.However the program currently downloads 1 file/update, the new updater plugin im making allows ftp download which can download an entire ftp directory of files. Link to comment Share on other sites More sharing options...
crzyone9584 Posted January 26, 2012 Share Posted January 26, 2012 I see. Maybe you should make that clear in your source code with comments and in your first post. From what i know about downloading things in C# it looked like all it did was download an xml file and thats it. You need to explain your software better and put comments in your source….. Download any open source and you will have comments. Comments maybe shitty but atleast it explains what the method does atleast. Link to comment Share on other sites More sharing options...
deathtaker26 Posted January 26, 2012 Author Share Posted January 26, 2012 fine w/e next time ill try and add more comments since obviously you can't read code and understand it through trying the programing and following the events that happen with the actions you do T_T Link to comment Share on other sites More sharing options...
crzyone9584 Posted January 26, 2012 Share Posted January 26, 2012 Why would i want to actually run when the industry standard is to have comments to explain the methods or explain your program good enough people understand. How you explain it inyour first post it sounded like you took Robins updater and put it in .NET…/down... damn kids annoy me... Link to comment Share on other sites More sharing options...
deathtaker26 Posted January 26, 2012 Author Share Posted January 26, 2012 The source wasn't inteaded for people to just jump in and learn stuff to it, was was put in case someone wants to make simple modifications to it. T_T And questions people have about parts of source I answer to them through forums and email. I don't have the slightest clue what you mean, and I don't think even you have the slightest clue of what you mean by "Industry Standard" there is no "Industry standard" to releasing source, especially if the program is freeware.Also, you should know I'm no kid I'm 17 and you annoy me just as much as I annoy you, so let's just agree to disagree here T_T Link to comment Share on other sites More sharing options...
crzyone9584 Posted January 26, 2012 Share Posted January 26, 2012 Your are a kid. Anyone younger by 5 yrs to me is a kid. so get use to getting called a kid. The Industry standard is something you will learn. Its taught in almost any high level programming class. As for the industry standards on comments its more of being a considerate programmer. Those who don't put comments are usually idiots.Have a fun read kid…http://class.ee.iastate.edu/cpre211/labs/commenting_guide.html Link to comment Share on other sites More sharing options...
Fuu Posted January 26, 2012 Share Posted January 26, 2012 @Crest:> **I'm 12** Link to comment Share on other sites More sharing options...
deathtaker26 Posted January 26, 2012 Author Share Posted January 26, 2012 @Fuu:> very funny fuu T_T but I'm pretty sure a 12 year old can't even understand .net let alone design a program with it -_-And also crzy ass grow the hell up. I mean honestly if you don't like my methods, don't use my programs, there's nothing else to it. Link to comment Share on other sites More sharing options...
Fuu Posted January 26, 2012 Share Posted January 26, 2012 @Crest:> -snip-Robin? Link to comment Share on other sites More sharing options...
evilbunnie Posted January 26, 2012 Share Posted January 26, 2012 @Crest:> very funny fuu T_T but I'm pretty sure a 12 year old can't even understand .net let alone design a program with it -_-When I was 12 I was doing that. In fact I was ten when I started. You're just thinking of your own past. Link to comment Share on other sites More sharing options...
crzyone9584 Posted January 26, 2012 Share Posted January 26, 2012 Never said i was using them…. I made a suggestion... Don't like how i made a suggestion. then don't respond... Show that "program" to any programmer for a REAL company and they would laugh at you. Been there dont that. Hence i comment everything know. or at least try to... I lost an internship over comments. A lot of companies require it... Just letting you know so when you get into the real business not no what ever you have going. Link to comment Share on other sites More sharing options...
deathtaker26 Posted January 26, 2012 Author Share Posted January 26, 2012 @Captain:> When I was 12 I was doing that. In fact I was ten when I started. You're just thinking of your own past.past being the keyword bro…omfg fine, you win I'll release a completely commented source just to get you 3 to shut up for christ sakes T_T I'll do it completely edited on my next release which uses the same concept only for FTP servers instead of HTTP servers... There go crazy... Link to comment Share on other sites More sharing options...
Marsh Posted January 26, 2012 Share Posted January 26, 2012 Comments and recognizable keywords are important and pushed by the industry. With that said Crest was nice enough to release a product to the community. Whether he has made the code with comments or not is completely up to him. We are not a professional market here. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now