mirror of
https://gitlab.com/hoggit/developers/hoggit.git
synced 2025-11-10 15:43:28 +00:00
Added dependeny on config file in install
This commit is contained in:
parent
346fcff330
commit
c24de38b21
11
hoggit.lua
11
hoggit.lua
@ -1,5 +1,6 @@
|
||||
HOGGIT = {}
|
||||
dofile(lfs.writedir()..[[Scripts\HOGGIT\lib\error_handling.lua]])
|
||||
dofile(lfs.writedir()..[[Scripts\HOGGIT\lib\logging.lua]])
|
||||
dofile(lfs.writedir()..[[Scripts\HOGGIT\lib\utils.lua]])
|
||||
dofile(lfs.writedir()..[[Scripts\HOGGIT\lib\spawner.lua]])
|
||||
trigger.action.outText(HOGGIT.script_base, 25)
|
||||
trigger.action.outText(HOGGIT.log_base, 25)
|
||||
dofile(HOGGIT.script_base..[[\HOGGIT\lib\error_handling.lua]])
|
||||
dofile(HOGGIT.script_base..[[\HOGGIT\lib\logging.lua]])
|
||||
dofile(HOGGIT.script_base..[[\HOGGIT\lib\utils.lua]])
|
||||
dofile(HOGGIT.script_base..[[\HOGGIT\lib\spawner.lua]])
|
||||
|
||||
8
hoggit_config.lua.example
Normal file
8
hoggit_config.lua.example
Normal file
@ -0,0 +1,8 @@
|
||||
-- Copy this file to your GAME INSTALL'S Scripts folder (probably in C:\Program Files\Eagle Dynamics\DCS World\Scripts)
|
||||
-- NOT your Saved Games Scripts folder.
|
||||
-- Hoggit Framework Config.
|
||||
|
||||
-- Replace these values with the Scripts and Logs folders in your SAVED GAMES' Scripts
|
||||
-- folder (NOT your base install folder), with NO trailing slash.
|
||||
script_base = [[D:\Personal Folders\Saved Games\DCS.openbeta\Scripts]]
|
||||
log_base = [[D:\Personal Folders\Saved Games\DCS.openbeta\Logs]]
|
||||
@ -1,4 +1,4 @@
|
||||
logFile = io.open(lfs.writedir()..[[Logs\HOGGIT.log]], "w")
|
||||
logFile = io.open(HOGGIT.log_base..[[\HOGGIT.log]], "w")
|
||||
|
||||
function log(str)
|
||||
if str == nil then str = 'nil' end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user