Neon revamp with ability to update itself and TriggerVFS.dll

This forum contains the items, weapons, resources or other files shared between players.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Forum rules
Client Editing is a delicate subject. osRose and osiRose will not support or use any Client Editing tool or results as a standard. So you are free to experiment, test, and develop there on Client Editing, but at your own risk :)
Don't share ANY files, graphics, items that don't belong to you.

Neon revamp with ability to update itself and TriggerVFS.dll

Postby wolfwing on Mon Mar 12, 2012 9:43 pm

THE SOURCE IS UPDATED TO VISUAL STUDIO 2010! IF YOU WANT TO COMPILE IT FOR VS2008 DOWNLOAD THE OLD FILES RELEASED BY ICON AND PUT IN MY MAIN.H AND MAIN.CPP

EDIT: Credits for the main patcher to core, credits for the guy who implemented auto delete of files, credits to ICON for the revamp, credits to me for this new update feature.

So I guess most users know the revamped version of neoncube by ICON.
I made some new features:
*Being able to update itself
*Being able to update TriggerVFS.dll

  1. First off to make this work for your Server, You will need
  2.  
  3. Microsoft Visual Studio 2005 0r 2008
  4.  
  5. Now to config it to your server Open Neoncube.sln in visual Studio
  6.  
  7. Clik on neoncube in the left pannel {Exspand}
  8. Source Files {Exspand}
  9. Doubble click Main.cpp
  10.  
  11. Goto line 201 you will see some configs Change
  12.  
  13.           //Server Name
  14. strcpy(settings.szServerName, "Your Sever Name here");
  15.         //Your News page
  16. strcpy(settings.szNoticeURL, "http://www.google.com");
  17.         //Server ip
  18. strcpy(settings.szPatchURL, "http://www.google.com");
  19.          //Link to your patch.txt
  20. strcpy(settings.szPatchList, "patch/patch.txt");
  21.         //Name of the Exe used
  22. strcpy(settings.szExecutable, "Trose.exe");
  23.         //Location of your Rars
  24. strcpy(settings.szPatchFolder, "patch/");
  25.         //Link to your Reg page
  26. strcpy(settings.szRegistration, "http://www.google.com");
  27.  
  28. Edit the data to fit your server
  29.  
  30. Then go to line 1531
  31.  
  32. And change
  33. if(patchFilename == "TriggerVFS.rar" || "Launcher.rar")
  34. to
  35. if(patchFilename == "TriggerVFS.rar" || patchFilename == "Launcher.rar")
  36.  
  37. Then go to line 2489
  38.  
  39. For Os Rose Osi or Osp
  40.  
  41. Change
  42.  
  43. strcpy(settings.szRagExeCall, "TRose.exe @TRIGGER_SOFT@ _server 127.0.0.1");
  44. to
  45. strcpy(settings.szRagExeCall, "TRose.exe @TRIGGER_SOFT@ _server your ip");
  46.  
  47. And for Arc Irose
  48.  
  49. strcpy(settings.szRagExeCall, "TRose.exe @TRIGGER_SOFT@ _server 127.0.0.1");
  50. to
  51. strcpy(settings.szRagExeCall, "yourguard.exe Your ip");
  52.  
  53. then go to line 755
  54. and change
  55. system("Updater.exe NewLauncher.exe neoncube.exe");
  56. to
  57. system("Updater.exe NewLauncher.exe MyLauncher.exe");
  58.  
  59. and change
  60. system("Updater.exe NewTriggerVFS.dll TriggerVFS.dll neoncube.exe");
  61. to
  62. system("Updater.exe NewTriggerVFS.dll TriggerVFS.dll MyLauncher.exe");
  63.  
  64. ***NOTE***
  65. MyLauncher.exe is the name of the exe that is currently running.
  66.  
  67.  
  68. save all compile and done The new exe and client folder will be located in client files of the sourcse.
  69. The system.ini & Skin file are moved into 3ddata /control/system this all needs to be here to work
  70. (Out of site out of mined)
  71.  


A little explaining on the Updater:
Updater.exe oldfilename newfilename runningexe
So there Updater takes 3 arguments, the first argument is the file to be renamed,
the second argument is the new filename, if the filename is the exe that is currently running, you don't have to parse the third argument.
Example1: Updater.exe NewLauncher.exe neoncube.exe
What happens: updater.exe checks if the second argument contains .exe in it, wich is the case.
Then it checks if neoncube.exe is running, if it's running it terminates the process.
Then it deletes neoncube.exe and renames NewLauncher.exe to neoncube.exe, after that it starts neoncube.exe.
Example2: Updater.exe NewTriggerVFS.dll TriggerVFS.dll neoncube.exe
What happens: updater.exe checks if the second argument contains .exe in it, wich is not the case.
Then it checks if neoncube.exe is running, if it's running it terminates the process.
Then it deletes TriggerVFS.dll and renames NewTriggerVFS.dll to TriggerVFS.dll, after that it starts neoncube.exe.

To use this with the patcher, put your launcher in the patch folder and rename it to NewLauncher.exe and pack it in a rar named Launcher.rar
The names are case sensitive!!!
Also TriggerVFS.rar needs NewTriggerVFS.dll in it.
Also I changed the Icon and skin.

NEONRevamp.rar
(2.54 MiB) Downloaded 1144 times

Updater.rar
(5.79 KiB) Downloaded 1019 times
Last edited by wolfwing on Sun Jun 10, 2012 10:02 pm, edited 1 time in total.
wolfwing
Clown
Clown
 
Posts: 502
Joined: Tue Mar 03, 2009 9:50 am

Re: Neon revamp with ability to update itself and TriggerVFS

Postby wolfwing on Fri Jun 01, 2012 4:25 pm

Updated the launcher and updater projects.
The launcher should now have a better look.
And the best thing is, the annoying DOS boxes are gone :D
wolfwing
Clown
Clown
 
Posts: 502
Joined: Tue Mar 03, 2009 9:50 am

Re: Neon revamp with ability to update itself and TriggerVFS

Postby Dagnarus on Fri Jun 01, 2012 5:19 pm

Wow nice release Wolfwing. :D
Image


aka larsgevers
Dagnarus
Smoulie
Smoulie
 
Posts: 52
Joined: Sun Nov 20, 2011 2:29 pm

Re: Neon revamp with ability to update itself and TriggerVFS

Postby wolfwing on Sat Jun 02, 2012 1:25 pm

I see that the updater and neonrevamp have different download counts....
Well they work together, so when you download one, you also need the other!
wolfwing
Clown
Clown
 
Posts: 502
Joined: Tue Mar 03, 2009 9:50 am

Re: Neon revamp with ability to update itself and TriggerVFS

Postby SherwinEly on Sat Jun 02, 2012 5:46 pm

nice release!
SherwinEly
Pomic
Pomic
 
Posts: 123
Joined: Mon Nov 17, 2008 6:36 am

Re: Neon revamp with ability to update itself and TriggerVFS

Postby wolfwing on Sat Jun 02, 2012 5:47 pm

Your welcome :D
Also, is your name on ragezone GMSherwin?
wolfwing
Clown
Clown
 
Posts: 502
Joined: Tue Mar 03, 2009 9:50 am

Re: Neon revamp with ability to update itself and TriggerVFS

Postby dbraders on Sat Jun 02, 2012 11:26 pm

awesome... Nice Release , thank's for share :D





I am Newbie :D , Please your guide ;)
dbraders
Jelly Bean
Jelly Bean
 
Posts: 12
Joined: Fri Mar 09, 2012 10:57 pm

Re: Neon revamp with ability to update itself and TriggerVFS

Postby wolfwing on Sun Jun 10, 2012 9:45 pm

Notice, I'm not sure, but I think I fucked up normal patching, looking at it now.
EDIT: to fix the error go to main.cpp and change
  1. if(patchFilename == "TriggerVFS.rar" || "Launcher.rar")

To:
  1. if(patchFilename == "TriggerVFS.rar" || patchFilename == "Launcher.rar")
wolfwing
Clown
Clown
 
Posts: 502
Joined: Tue Mar 03, 2009 9:50 am


Return to Submit client ressources

Who is online

Users browsing this forum: No registered users and 2 guests

cron