Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

File_Layout.txt

Sterling Parker edited this page Oct 23, 2019 · 1 revision

For historical purposes only. Do not edit.

Permalink: https://github.com/caligari87/Oblige/blob/e3dbc44e1649e40a65df8da0cc65d13be592fa03/notes/File_Layout.txt

Win32 File Layout
=================

Oblige-3.xx/    <<< working & install directory (chdir to it)

  Oblige.exe

  README.txt
  TODO.txt
  GPL.txt

  CONFIG.cfg
  LOGS.txt

  temp/
    TEMP.wad

  scripts/
    oblige.lua
    planner.lua
    builder.lua
    ...etc...
 
  games/
  engines/
  mods/

  data/
    doom_falls.wad
    quake_tex.wd2
    ...etc...
 


UNIX Installation Layout
========================

PREFIX = /usr  |  /usr/local  |  /opt

$PREFIX/bin/Oblige

$PREFIX/share/oblige-3.xx/   <<< install directory

  scripts/
    oblige.lua
    planner.lua
    ...
   
  games/
  engines/
  mods/

  data/
    doom_falls.wad
    quake_tex.wd2
    ...etc...

  README.txt
  GPL.txt

$HOME/.oblige/      <<< working directory (chdir to it)
  CONFIG.cfg
  LOGS.txt

  temp/
    TEMP.wad
    MAPHEAD.tmp



Paths in the Code:
==================

1. Working directory, find it, chdir to it.
   Open CONFIG.cfg, LOGS.txt and temp/XXX using relative paths.

2. Install directory.
   Open scripts/XXX and data/XXX using absolute paths
   (But files in the working directory can override them).

3. Default Save directory:
   working directory on Win32,
   $(HOME) on Linux.
Clone this wiki locally