![]() |
|
LC UpdateHelper - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Release Zone (https://lckb.dev/forum/forumdisplay.php?fid=190) +---- Forum: Episode 1 Releases (https://lckb.dev/forum/forumdisplay.php?fid=191) +----- Forum: Tools (https://lckb.dev/forum/forumdisplay.php?fid=163) +----- Thread: LC UpdateHelper (/showthread.php?tid=769) |
- ReeCube - 04-21-2012 Hello I have realized a tool that listen to your LC-Client and save all the changes in a list. If you are finish with your modifications, you can generate the zip-file of your changes for the launcher. Screenshots: Download: 2 Important: My Tool could still contains errors, so please check the created zip allways! - Koko - 04-21-2012 Looks very nice, thanks! - HateMe - 04-21-2012 nice idea and thx for the release ![]() i guess ur tool listening to the folder and sort out the changet files? and i see u are using Ionic.Zip plz put the .dll to the program or else it could give some errors ![]() if u wish i can give u the code how to embedded the dll and extract it to the directory on the start of the tool - ReeCube - 04-22-2012 Thanks for your feedbaks and your comments ![]() @HateMe > thank you very much for the hint with the dll... (i forgot it) > I uploaded the zip with all the necessary files. > And i would be very grateful for the code ![]() - HateMe - 04-22-2012 ok like this u make it extract form the resource for example now the ZipForge.dll first add the dll file to resources and set the settings to it as embedded resource (Eingebettete Ressource) apply this code to Form load and edit it to ur dll file using System.Reflection; using System.IO; ... private void Form1_Load(object sender, EventArgs e) { // Edit here string DllName = "ZipForge.dll"; string resourcephat = "Launcher2_1.Resources.ZipForge.dll"; /////////////////////////////////////////////////////////////////////////////////////////////////////////////// if (File.Exists(DllName) == false) { // if the dll is missing it get extrakted Assembly assembly = Assembly.GetExecutingAssembly(); // Namespace.Resources.Dllfilename.dll Stream file = assembly.GetManifestResourceStream(resourcephat ); // my resource BinaryReader bReader = new BinaryReader(file); FileStream fStream = new FileStream(@System.IO.Path.GetDirectoryName(Application.ExecutablePath) + "\\" + DllName , FileMode.Create); // where i want to copy the resource using (BinaryWriter bWriter = new BinaryWriter(fStream)) { bWriter.Write(bReader.ReadBytes((int)file.Length)); bReader.Close(); bWriter.Close(); } file.Close(); fStream.Close(); } } - ReeCube - 04-22-2012 Ty very much, i will add this to the next version ![]() - halohalo - 10-03-2012 Ty very much, i will add this to the next version you got a new version yet? - ReeCube - 10-05-2012 you got a new version yet? No sorry, have no time , but when i have time, i will update it - halohalo - 02-18-2013 Anyone can reupload? |