- First off to make this work for your Server, You will need
- Microsoft Visual Studio 2005 0r 2008
- Now to config it to your server Open Neoncube.sln in visual Studio
- Clik on neoncube in the left pannel {Exspand}
- Source Files {Exspand}
- Doubble click Main.cpp
- Goto line 201 you will see some configs Change
- //Server Name
- strcpy(settings.szServerName, "Your Sever Name here");
- //Your News page
- strcpy(settings.szNoticeURL, "http://www.google.com");
- //Server ip
- strcpy(settings.szPatchURL, "http://www.google.com");
- //Link to your patch.txt
- strcpy(settings.szPatchList, "patch/patch.txt");
- //Name of the Exe used
- strcpy(settings.szExecutable, "Trose.exe");
- //Location of your Rars
- strcpy(settings.szPatchFolder, "patch/");
- //Link to your Reg page
- strcpy(settings.szRegistration, "http://www.google.com");
- Edit the data to fit your server
- Then go to line 1531
- And change
- if(patchFilename == "TriggerVFS.rar" || "Launcher.rar")
- to
- if(patchFilename == "TriggerVFS.rar" || patchFilename == "Launcher.rar")
- Then go to line 2489
- For Os Rose Osi or Osp
- Change
- strcpy(settings.szRagExeCall, "TRose.exe @TRIGGER_SOFT@ _server 127.0.0.1");
- to
- strcpy(settings.szRagExeCall, "TRose.exe @TRIGGER_SOFT@ _server your ip");
- And for Arc Irose
- strcpy(settings.szRagExeCall, "TRose.exe @TRIGGER_SOFT@ _server 127.0.0.1");
- to
- strcpy(settings.szRagExeCall, "yourguard.exe Your ip");
- then go to line 755
- and change
- system("Updater.exe NewLauncher.exe neoncube.exe");
- to
- system("Updater.exe NewLauncher.exe MyLauncher.exe");
- and change
- system("Updater.exe NewTriggerVFS.dll TriggerVFS.dll neoncube.exe");
- to
- system("Updater.exe NewTriggerVFS.dll TriggerVFS.dll MyLauncher.exe");
- ***NOTE***
- MyLauncher.exe is the name of the exe that is currently running.
- save all compile and done The new exe and client folder will be located in client files of the sourcse.
- The system.ini & Skin file are moved into 3ddata /control/system this all needs to be here to work
- (Out of site out of mined)
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
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.