acdcmd: 6 extra game command

Reactions: 15
Posts: 718
Joined: 23 Nov 2011, 16:42
Location: Canada

acdcmd: 6 extra game command

Post by Acadie »

Author: Acadie
Description: Add 6 command to the game.
Commands:

cls
  • Alternative to the clear command on client sided. || 50 blank echo on server sided.
    [There is no clear command for server thus, 50 is based on the full screen text mode in a command shell prior to Windows 10. Echoing too many time will result some processing and penalties to the players connected in your server. The command is useless if you are remotely managing the server.]
ver
  • Display the current game and sofplus version.
time
  • Display the current time.

date
  • Display the current date.

call
  • Call (execute) either a script .cfg file or a function .func file.
  • The extension is required.
  • CALL <filename.func> /i switch will parse for the initialization function using the filename and _init suffix as function name. The initialization function accepts arguments.
chdir/cdir
  • List files and directories.
  • The CHDIR command is used to Change Directory.
  • 'CHDIR ..' change to the parent directory.
  • 'CHDIR /' or \ change to the root directory of the game.
  • If a directory name contains a space, the whole path must be enclosed in quotes (e.g. chdir "user/new folder/myfolder" || chdir "new folder/myfolder")
  • The CDIR command is used to list files and directories.
  • CDIR /d switch prints how many sub directories and files the selected directory has.
  • CDIR /s switch will display files and all sub directories.
  • The CHDIR alternative CD can be used only if the value of cd_nocd cvar is set to 1 on the command line --> SoF.exe +set cd_nocd "1"
Setup:
- Unzip and put the file to ./user/sofplus/addons


Changelog Last updated: January 25th 2023
Spoiler:
Attachments
acdcmd.zip
(6.06 KiB) Downloaded 56 times
acdcmd1.png
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests