Difference between revisions of "Simple Garage"

From Stunts Wiki
Line 4: Line 4:
 
Simple Garage operates by managing two directories: Stunts directory and a garage directory. When run, it looks for a configuration file called ''sgar.cfg'', where each line contains a configuration item, followed by an equals sign and its value. The following configuration items can be found:
 
Simple Garage operates by managing two directories: Stunts directory and a garage directory. When run, it looks for a configuration file called ''sgar.cfg'', where each line contains a configuration item, followed by an equals sign and its value. The following configuration items can be found:
  
stunts - ''The directory where Stunts can be found''
+
* stunts - ''The directory where Stunts can be found''
garage - ''The directory that will be used for parking cars (putting away from Stunts)''
+
* garage - ''The directory that will be used for parking cars (putting away from Stunts)''
locked - ''A list of car IDs separated by commas that should not be moved''
+
* locked - ''A list of car IDs separated by commas that should not be moved''
group - ''A list of car IDs preceded by a group name followed by a colon. There can be many groups''
+
* group - ''A list of car IDs preceded by a group name followed by a colon. There can be many groups''
  
 
For Simple Garage to work, all you need is to specify the two directories. The rest can be set up within the program environment. Commands can be used to list cars and move them back and forth between Stunts and the garage, creating and deleting groups, assigning cars to them, etc.
 
For Simple Garage to work, all you need is to specify the two directories. The rest can be set up within the program environment. Commands can be used to list cars and move them back and forth between Stunts and the garage, creating and deleting groups, assigning cars to them, etc.

Revision as of 02:37, 9 June 2022

Simple Garage, also known as sgar for its command line program file name, is a garage managing tool created by Cas. It has the particular characteristic of being command line based. Simple Garage features its own command line interpreter, but can also be called to perform individual commands, opening the door for external scripting. It can run in GNU/Linux as well as in DOS and Windows.

Configuration

Simple Garage operates by managing two directories: Stunts directory and a garage directory. When run, it looks for a configuration file called sgar.cfg, where each line contains a configuration item, followed by an equals sign and its value. The following configuration items can be found:

  • stunts - The directory where Stunts can be found
  • garage - The directory that will be used for parking cars (putting away from Stunts)
  • locked - A list of car IDs separated by commas that should not be moved
  • group - A list of car IDs preceded by a group name followed by a colon. There can be many groups

For Simple Garage to work, all you need is to specify the two directories. The rest can be set up within the program environment. Commands can be used to list cars and move them back and forth between Stunts and the garage, creating and deleting groups, assigning cars to them, etc.

Calling commands

Commands consist of a command name and often one or more parameters, separated by spaces.