Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit 3063f68

Browse files
author
Yucong Sun
committed
Adding build/run.sh
1 parent 1e9699c commit 3063f68

File tree

5 files changed

+165
-76
lines changed

5 files changed

+165
-76
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

INSTALL

Lines changed: 0 additions & 76 deletions
This file was deleted.

build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
rm -rf build
5+
mkdir -p build && cd build
6+
7+
cmake ../driver
8+
9+
make install

config.lima

Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
#
2+
# Configuration file for the MudOS LPmud driver.
3+
#
4+
# This file is intended for use with the Lima Mudlib and its corresponding
5+
# version of the driver.
6+
#
7+
# The current versions are:
8+
#
9+
# Lima Mudlib: Lima 1.0b5
10+
# MudOS: MudOS v22.2b13
11+
#
12+
#
13+
# 951030, Deathblade: updated - reorganized, commented, etc
14+
#
15+
16+
# ------------------------------------------------------------------------
17+
#
18+
# Users of Lima: you should change the following definitions to match
19+
# your desires, needs, and setup. Simply follow the directions for each
20+
# option and things should work okay. Each option will be labeled on
21+
# whether it is required to be changed, or if it is optional. Anything
22+
# that is optional is subject to your discretion.
23+
#
24+
25+
#
26+
# [ REQUIRED ]
27+
#
28+
# This will be the name of your mud.
29+
#
30+
name : Lima Mud - FluffOS 2019 Demo
31+
32+
#
33+
# [ optional ]
34+
#
35+
# This will be the port number that your users will connect to
36+
#
37+
external_port_1: websocket 7878
38+
websocket http dir: ./build/bin/www
39+
40+
#
41+
# [ REQUIRED ]
42+
#
43+
# This should be the absolute pathname to where you placed your copy of
44+
# the Lima Mudlib.
45+
#
46+
mudlib directory : ./lib
47+
48+
# ------------------------------------------------------------------------
49+
#
50+
# You shouldn't change anything below this point unless you know what
51+
# you're changing.... =)
52+
#
53+
54+
#
55+
# NOTE: all paths below here are relative to the "mudlib directory"
56+
#
57+
58+
59+
#
60+
# this include file is found in the include directories specified below
61+
#
62+
global include file : <global.h>
63+
64+
#
65+
# debug.log and author/domain stats are stored here
66+
#
67+
log directory : /log
68+
69+
#
70+
# alternate debug.log file name (assumed to be in specified 'log directory')
71+
#
72+
debug log file : execute
73+
74+
#
75+
# the directories which are searched by #include <...>
76+
# for multiple dirs, separate each path with a ':'
77+
#
78+
include directories : /include
79+
80+
#
81+
# the file which defines the master object
82+
#
83+
master file : /secure/master
84+
85+
#
86+
# the file where all global simulated efuns are defined.
87+
#
88+
simulated efun file : /secure/simul_efun
89+
90+
#
91+
# file to swap to. not used if time to swap is 0
92+
# (not used by Lima)
93+
#
94+
swap file : /secure/swap/MudOS_swapfile
95+
96+
#
97+
# Directory to save binaries in. (if BINARIES is defined)
98+
# (not used by Lima)
99+
#
100+
save binaries directory : /secure/binaries
101+
102+
# if an object is left alone for a certain time, then the
103+
# function clean_up will be called. This function can do anything,
104+
# like destructing the object. If the function isn't defined by the
105+
# object, then nothing will happen.
106+
# This time should be substantially longer than the swapping time.
107+
time to clean up : 7200
108+
109+
# How long time until an unused object is swapped out.
110+
# Machine with too many players and too little memory: 900 (15 minutes)
111+
# Machine with few players and lot of memory: 10000
112+
# Machine with infinite memory: 0 (never swap).
113+
time to swap : 1800
114+
115+
# How many seconds until an object is reset again.
116+
time to reset : 1800
117+
118+
# Maximum number of bits in a bit field. They are stored in printable
119+
# strings, 6 bits per byte.
120+
maximum bits in a bitfield : 1200
121+
122+
# Max number of local variables in a function.
123+
maximum local variables : 30
124+
125+
# Maximum amount of "eval cost" per thread - execution is halted when
126+
# it is exceeded.
127+
maximum evaluation cost : 2000000
128+
129+
# This is the maximum array size allowed for one single array.
130+
maximum array size : 15000
131+
132+
# This is the maximum allowed size of a variable of type 'buffer'.
133+
maximum buffer size : 400000
134+
135+
# Max size for a mapping
136+
maximum mapping size : 15000
137+
138+
# Max inherit chain size
139+
inherit chain size : 30
140+
141+
# maximum length of a string variable
142+
maximum string length : 200000
143+
144+
# Max size of a file allowed to be read by 'read_file()'.
145+
maximum read file size : 200000
146+
147+
# max number of bytes you allow to be read and written with read_bytes
148+
# and write_bytes
149+
maximum byte transfer : 10000
150+
151+
# Reserve an extra memory area from malloc(), to free when we run out
152+
# of memory. If this value is 0, no area will be reserved.
153+
reserved size : 0

run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
./build/bin/driver config.lima

0 commit comments

Comments
 (0)