This site has been archived and made available for preservation purposes. No edits can be made.

Page 1 of 6 123 ... LastLast
Results 1 to 10 of 56

Thread: EX | Easy server setup

  1. #1

    Post EX | Easy server setup

    Current version 0.2.0

    This script will help you to easily configure your server and adds all the necessary functions

    Thank Foxtacles, Volumed and remm for help

    Features
    • You can choose your own name, map(just name) and website of the server
    • Player position and inventory saves into files
    • Chat names, join, leave and death messages


    • Commands:
      • /?(help, commands) - show all commands
      • /save - manually save player data
      • /players - show players online
      • /weather - change game weather
      • /time - set game time(type "morning" for awesome landscape)
      • /sex - change player sex
      • /race - change player race
      • /pos - show your position data
      • /a(anim) - play animation
      • /age - age player
      • /young - young player

    Setup
    Just extract all files from the zip into server folder and dont forget to add scripts=ex.dll(ex.so for Unix) in the vaultserver.ini
    If you did everything correctly, you can see a script launch message in your server window

    Server settings
    In the server directory you will find Settings.ini:
    • name - Name of server
    • motd - Message of the day
    • map - Map name(just name, not location)
    • website - Server site
    • showposr - Show players online in server rules
    • serializeworld - Save world upon server shutdown(0 - No, 1 - Only load, 2 - only save, 3 - Save and load)
    • password - Server password
    • weather - Server weather(0 - dynamic(smooth) weather, -1 - random weather, id - weather id)
    • timescale - Сhanges how fast the in-game time progresses
    • respawn - Respawn delay in milliseconds
    • console - In-game console


    Download
    Source code
    Last edited by Smoria; 01-15-2015 at 03:57 PM.

  2. #2
    nice script )
    Lead tester from g-test.info gaming test community

    Notebook. Windows 7 64x, corei7, 8gb ram, GTX560m 2gb

  3. #3
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    Nice work. It would be nice if you could include source code, because C++ scripts can be quite harmful / malicious. It's not a requirement, though.

  4. #4
    Okay, I added the source to this topic

  5. #5
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    Suggestion:

    Instead of UIMessageAll / ChatMessageAll, you can simply use UIMessage / ChatMessage and pass zero as ID parameter
    (https://www.vaultmp.com/showwiki.php?title=UIMessage)

    Or even nicer for ChatMessage, you can use

    Code cpp:
    Chat << "This message goes to all players";
    Player player(playerID);
    player << "This message goes to player with playerID";

    Also, you don't have to define callbacks you don't use. If you define them, vaultmp will call them. So for performance reasons, you may want to comment them out / delete them.
    Last edited by foxtacles; 09-12-2012 at 10:43 PM.

  6. #6
    Thanks for suggestion
    Version 0.1.3:
    • New commands
    • More server settings
    Last edited by Smoria; 09-13-2012 at 10:18 PM.

  7. #7
    Quote Originally Posted by Smoria View Post
    Thanks for suggestion
    Version 0.1.3:
    • New commands
    • More server settings
    Love it. Nice job.

  8. #8
    One question. What are the ID's of the Race's! :O

  9. #9
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    You are using SetActorBaseRace and SetActorBaseSex in OnPlayerRequestGame - that won't have any effect. That is because race / sex are tied to the base model used by the player, which is determined only after OnPlayerRequestGame (because that is the return value of it - if you return zero base, vaultmp will automatically choose an unused base model).

    Note that all changes to base models are permanent (while the server is running). That is, if some player changes race to X and leaves the server, somebody else joins and gets the base which was used by the previous player, he will have race X.

    To avoid this, you can manage base models yourself and for example reserve certain base models for players. This can be done by controlling the return value of OnPlayerRequestGame

    If you do this, you should make sure that every player gets a unique base (by returning zero, vaultmp will make sure this is the case). Else several players will share some attributes (i.e. base values, race and sex - everything which has 'Base' in function name indicates that it is a base effect).
    Last edited by foxtacles; 09-13-2012 at 11:09 PM.

  10. #10
    I had set zero as base in On PlayerRequestGame and move SetActorBaseRace and SetActorBaseSex into OnSpawn and it's work fine
    Thanks for help

    Quote Originally Posted by Xolitude View Post
    One question. What are the ID's of the Race's! :O
    www.vaultmp.com
    Last edited by Smoria; 09-13-2012 at 11:59 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •