Jump to content

Deamond

Members
  • Posts

    11
  • Joined

  • Last visited

Deamond's Achievements

0

Reputation

  1. Deamond

    Execute file

    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.
  2. Deamond

    Execute file

    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!
  3. Hello, all! I think we need to start topic with fun stuffs that we find in galaxy. All of us know about asteroid clusters, but sometimes it can take fun forms like this: So long single asteroid line :)
  4. Deamond

    Execute file

    Ok, just check it. It is not malicious. 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.
  5. Deamond

    Execute file

    What? What this is mean? Im compiling it itself, and can ever give you an source. Nothing else i write in post!
  6. Deamond

    Execute file

    newexe.zip 31a8f52ed090e0ef99d78a88e28bca09 Avorion.exe b7b110be8da24f034ea063f02ff0af38 Server.exe fb0c054bfb17dc998ab058c9c3583086 server_settings.bat 918ed0360237a0cfaaeb10d069da6201
  7. Deamond

    Execute file

    No, but i can create...
  8. Deamond

    Execute file

    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.
  9. Another question... I cant understand, where settings are write when i start multiplayer server without game, in Ram only? If so, how to change it? Because if i restart server, all server data gone.
  10. Is it possible to change the location of player-settings/game-settings/logs/temps from .../Roaming/Avorion to game folder(like: C:\Program Files\Avorion\serverData)? This important for making game server, because disk C:\ often dont have many disk space. If this doesnt possible with this client version, can i request adding this feature to the new version? Also maybe you can just recompile the game client/server with this settings, please. I think, this option changes is not hard to apply, but be very useful for making server more easy to config (for faster editing settings and player data's). Thanks for reading.
  11. Hello! Can you answer, how to place a not iron turrets? If i choose titanium from drop-down list, nothing change.
×
×
  • Create New...