Deamond Posted May 28, 2013 Share Posted May 28, 2013 Hello all! I made an .exe file with icon for game and server. Why i do it? Just because i dont like an bat files for run programs. If you dont like icon, sorry, this is first version and if you have an ideas how to improve it, please tell me. This is just simple C++ compiled .exe files with cmd commands inside it, nothing else. So after putting it in your game folder, you dont need old .bat files to run game and server. I'm think it would work good, but if you have a trouble with it - tell me. All settings of server i put in server_settings.bat file, editing this file is just like edit original runServer.bat. I put in this file some hints for people who dont know how it work. Just put all files from archive in your ...\Program Files\Avoiron\ folder, and it will work. Just remember, server_settings.bat MUST be in Avoiron\bin folder. Thanks for reading. Link: http://zalil.ru/34536746 P.S. Sorry for my bad English, its not my native language. Link to comment Share on other sites More sharing options...
Vackin Posted May 28, 2013 Share Posted May 28, 2013 Do you have MD5 checksum for this file? Link to comment Share on other sites More sharing options...
Deamond Posted May 28, 2013 Author Share Posted May 28, 2013 No, but i can create... Link to comment Share on other sites More sharing options...
Deamond Posted May 28, 2013 Author Share Posted May 28, 2013 newexe.zip 31a8f52ed090e0ef99d78a88e28bca09 Avorion.exe b7b110be8da24f034ea063f02ff0af38 Server.exe fb0c054bfb17dc998ab058c9c3583086 server_settings.bat 918ed0360237a0cfaaeb10d069da6201 Link to comment Share on other sites More sharing options...
Vackin Posted May 28, 2013 Share Posted May 28, 2013 It telling it malicious file? Link to comment Share on other sites More sharing options...
Deamond Posted May 28, 2013 Author Share Posted May 28, 2013 What? What this is mean? Im compiling it itself, and can ever give you an source. Nothing else i write in post! Link to comment Share on other sites More sharing options...
Boxelware Team koonschi Posted May 28, 2013 Boxelware Team Share Posted May 28, 2013 I will not take any responsibility for any damage of any kind caused by third party tools. You download this stuff at your own risk. If it is truly malicious, it will be removed from the forum. Posting .exe files in forums is usually not a good idea. You should rather post the source maybe? And give people some instructions on how to compile it themselves? Link to comment Share on other sites More sharing options...
Boxelware Team koonschi Posted May 28, 2013 Boxelware Team Share Posted May 28, 2013 Those batch scripts will be removed soon, anyways. Link to comment Share on other sites More sharing options...
Deamond Posted May 28, 2013 Author Share Posted May 28, 2013 If it is truly malicious, it will be removed from the forum. Ok, just check it. It is not malicious. You should rather post the source maybe? And give people some instructions on how to compile it themselves? Bad idea. I made this .exes for people who dont have skills in programming, so if i post an source with instructions this work was just an waste of time. I think no one wants to install C++ builder and get it to work only for replace batch files with .exe. Exept me ofcource. I will post the sources today, but i think this would be interesting only for developers. Link to comment Share on other sites More sharing options...
Boxelware Team koonschi Posted May 28, 2013 Boxelware Team Share Posted May 28, 2013 Moved to mods. And I guess people would appreciate it if you post the source code, even if they don't use it. Link to comment Share on other sites More sharing options...
Deamond Posted May 29, 2013 Author Share Posted May 29, 2013 Hello, all! That is sources for my .exe files. For taking it works we need any C++ builder. For exemple i'm take Microsoft Visual Studio 2010 Express Edition, if you have another - ask me. 1)We need to start a new project with premade for "Win32 Console Application" with any name. 2)When we in wizard, just click "Finish" button. 3)Then delete all from "YourName.cpp", it default open when you create solution. 4)Then copy all code from this code box to YourName.cpp: #include "stdafx.h" #include "stdlib.h" int _tmain(int argc, _TCHAR* argv[]) { system("bin\\Avorion.exe bin\\SpaceServer.exe"); return 0; } 5)After this you need to create emty text file with name "resource.rc" in folder where you have your project. Exemple : "E:\AvorionClient". Open this file with notepad and enter the text from this code box: IDI_APP ICON "icon.ico" 6) You need an icon image for .exe file you want to create. You need to use any image with 32x32 size and named "icon.ico" . When you create or find it - place your .ico in folder with "resource.rc". 7) In visual studio find "Resource Explorer" then right click on Resource Files and left click on Add -> Existing Item, find your resource.rc and add to your project. 8 ) Press F5 button on keyboard, answer yes, then you can see an black box of cmd for a second and then it dissapear, its normal. 9) Find in eplorer folder named "Debug" in your project folder, open it and find "NameOfYorProject.exe" - this is a new execute file for you game. Copy it to ./Avorion/ folder and it will run the game with singleplayer. Then you can rename it with name what you like. Instructions for server excecute file: You need to repeat all actions from 1 to 9 but with replace of code in action №4 with this code: #include "stdafx.h" #include "stdlib.h" int _tmain(int argc, _TCHAR* argv[]) { system("CALL bin\\server_settings.bat"); return 0; } All other action are similar. When you do so, you need to create an "server_settings.bat" in your ./Avorion/bin/ client folder and add this code in it: .\bin\SpaceServer.exe --datapath "C:\sdata" For now you can chandge all options like you have an old .bat file in this settings file. All settings you can find on Wiki. This executable file now run only server for multiplayer, without running client. Thats all, now you have an estetic, good like execute files with icon what you want. Thanks for reading! Link to comment Share on other sites More sharing options...
Deamond Posted May 29, 2013 Author Share Posted May 29, 2013 If any one have question, please ask me. Moderator or Admin, please check my post for an orthography errors. I cant do this because its not my native language. Also you can change text for better understanding. Link to comment Share on other sites More sharing options...
Boxelware Team koonschi Posted May 31, 2013 Boxelware Team Share Posted May 31, 2013 Looks good. Thanks for posting the source code, this is really highly appreciated. 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