-
-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
515 Fixes and Auxmos 2.5.2 #2703
base: master
Are you sure you want to change the base?
Changes from all commits
8f926f6
1c90dd1
157a290
1bf6e5c
ef30335
a106f40
3648cca
54b5792
7bb7238
8cc2a73
ef9481b
e3ac2b1
6ffe372
e23cd7e
78898ac
71b2d0d
edebe50
6276d64
efea115
d28d9eb
7c4171f
3056b73
c383d92
f02b62c
610555c
685b8d3
3d7a4f1
f36f87f
551c79a
d44bba3
63e6820
6c80fd9
a7edf22
0c5e7e0
ec4e753
ff15bce
669afcb
e89242a
faf2f34
5348b78
dc3806d
2876ac3
171e3b9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
environment = "nsv13.dme" | ||
|
||
[langserver] | ||
dreamchecker = true | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/proc/auxtools_stack_trace(msg) | ||
CRASH(msg) | ||
|
||
/proc/auxtools_expr_stub() | ||
CRASH("auxtools not loaded") | ||
|
||
/proc/enable_debugging(mode, port) | ||
CRASH("auxtools not loaded") |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,8 +147,23 @@ | |
#define ATMOS_ADJACENT_ANY (1<<0) | ||
#define ATMOS_ADJACENT_FIRELOCK (1<<1) | ||
|
||
#define CANATMOSPASS(A, O) ( A.CanAtmosPass == ATMOS_PASS_PROC ? A.CanAtmosPass(O) : ( A.CanAtmosPass == ATMOS_PASS_DENSITY ? !A.density : A.CanAtmosPass ) ) | ||
#define CANVERTICALATMOSPASS(A, O) ( A.CanAtmosPassVertical == ATMOS_PASS_PROC ? A.CanAtmosPass(O, TRUE) : ( A.CanAtmosPassVertical == ATMOS_PASS_DENSITY ? !A.density : A.CanAtmosPassVertical ) ) | ||
#ifdef TESTING | ||
GLOBAL_LIST_INIT(atmos_adjacent_savings, list(0,0)) | ||
#define CALCULATE_ADJACENT_TURFS(T, state) if (SSair.adjacent_rebuild[T]) { GLOB.atmos_adjacent_savings[1] += 1 } else { GLOB.atmos_adjacent_savings[2] += 1; SSair.adjacent_rebuild[T] = state} | ||
#else | ||
#define CALCULATE_ADJACENT_TURFS(T, state) SSair.adjacent_rebuild[T] = state | ||
#endif | ||
|
||
//If you're doing spreading things related to atmos, DO NOT USE CANATMOSPASS, IT IS NOT CHEAP. use this instead, the info is cached after all. it's tweaked just a bit to allow for circular checks | ||
covertcorvid marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#define TURFS_CAN_SHARE(T1, T2) (LAZYACCESS(T2.atmos_adjacent_turfs, T1) || LAZYLEN(T1.atmos_adjacent_turfs & T2.atmos_adjacent_turfs)) | ||
//Use this to see if a turf is fully blocked or not, think windows or firelocks. Fails with 1x1 non full tile windows, but it's not worth the cost. | ||
#define TURF_SHARES(T) (LAZYLEN(T.atmos_adjacent_turfs)) | ||
|
||
#define CANATMOSPASS(A, O, V) ( A.CanAtmosPass == ATMOS_PASS_PROC ? A.CanAtmosPass(O, V) : ( A.CanAtmosPass == ATMOS_PASS_DENSITY ? !A.density : A.CanAtmosPass ) ) | ||
|
||
///Used to define the temperature of a tile, arg is the temperature it should be at. Should always be put at the end of the atmos list. | ||
///This is solely to be used after compile-time. | ||
#define TURF_TEMPERATURE(temperature) "TEMP=[temperature]" | ||
|
||
//OPEN TURF ATMOS | ||
#define OPENTURF_DEFAULT_ATMOS "o2=22;n2=82;TEMP=293.15" //the default air mix that open turfs spawn | ||
|
@@ -164,6 +179,9 @@ | |
#define ATMOS_TANK_PLASMA "plasma=70000;TEMP=293.15" | ||
#define ATMOS_TANK_O2 "o2=100000;TEMP=293.15" | ||
#define ATMOS_TANK_N2 "n2=100000;TEMP=293.15" | ||
#define ATMOS_TANK_BZ "bz=100000;TEMP=293.15" | ||
#define ATMOS_TANK_PLUOXIUM "pluox=100000;TEMP=293.15" | ||
#define ATMOS_TANK_TRITIUM "tritium=100000;TEMP=293.15" | ||
Comment on lines
+182
to
+184
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did I actually use these anywhere? |
||
#define ATMOS_TANK_AIRMIX "o2=2644;n2=10580;TEMP=293.15" | ||
|
||
//LAVALAND | ||
|
@@ -325,3 +343,8 @@ GLOBAL_LIST_INIT(pipe_paint_colors, sortList(list( | |
#define PIPENET_UPDATE_STATUS_DORMANT 0 | ||
#define PIPENET_UPDATE_STATUS_REACT_NEEDED 1 | ||
#define PIPENET_UPDATE_STATUS_RECONCILE_NEEDED 2 | ||
|
||
// NSV13 - auxmos | ||
#define ATMOS_ALARM_SEVERE "severe" | ||
#define ATMOS_ALARM_MINOR "minor" | ||
#define ATMOS_ALARM_CLEAR "clear" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
//THIS FILE IS AUTOMATICALLY GENERATED BY AUXMOS, PLEASE DO NOT TOUCH IT | ||
//PROC DEFINITIONS MAY MOVE AROUND, THIS IS NORMAL | ||
|
||
/* This comment bypasses grep checks */ /var/__auxmos | ||
|
||
/proc/__detect_auxmos() | ||
if (world.system_type == UNIX) | ||
return __auxmos = "libauxmos" | ||
else | ||
return __auxmos = "auxmos" | ||
|
||
#define AUXMOS (__auxmos || __detect_auxmos()) | ||
|
||
/turf/proc/__update_auxtools_turf_adjacency_info() | ||
return call_ext(AUXMOS, "byond:hook_infos_ffi")(src) | ||
|
||
/turf/proc/update_air_ref(flag) | ||
return call_ext(AUXMOS, "byond:hook_register_turf_ffi")(src, flag) | ||
|
||
/datum/controller/subsystem/air/proc/process_turfs_auxtools(remaining) | ||
return call_ext(AUXMOS, "byond:process_turf_hook_ffi")(src, remaining) | ||
|
||
/datum/controller/subsystem/air/proc/finish_turf_processing_auxtools(time_remaining) | ||
return call_ext(AUXMOS, "byond:finish_process_turfs_ffi")(time_remaining) | ||
|
||
/datum/controller/subsystem/air/proc/thread_running() | ||
return call_ext(AUXMOS, "byond:thread_running_hook_ffi")() | ||
|
||
/proc/finalize_gas_refs() | ||
return call_ext(AUXMOS, "byond:finalize_gas_refs_ffi")() | ||
|
||
/datum/controller/subsystem/air/proc/auxtools_update_reactions() | ||
return call_ext(AUXMOS, "byond:update_reactions_ffi")() | ||
|
||
/proc/auxtools_atmos_init(gas_data) | ||
return call_ext(AUXMOS, "byond:hook_init_ffi")(gas_data) | ||
|
||
/proc/_auxtools_register_gas(gas) | ||
return call_ext(AUXMOS, "byond:hook_register_gas_ffi")(gas) | ||
|
||
/datum/controller/subsystem/air/proc/process_turf_equalize_auxtools(remaining) | ||
return call_ext(AUXMOS, "byond:equalize_hook_ffi")(src, remaining) | ||
|
||
/datum/controller/subsystem/air/proc/process_excited_groups_auxtools(remaining) | ||
return call_ext(AUXMOS, "byond:groups_hook_ffi")(src, remaining) | ||
|
||
/datum/gas_mixture/proc/__auxtools_parse_gas_string(string) | ||
return call_ext(AUXMOS, "byond:parse_gas_string_ffi")(src, string) | ||
|
||
/datum/controller/subsystem/air/proc/get_max_gas_mixes() | ||
return call_ext(AUXMOS, "byond:hook_max_gas_mixes_ffi")() | ||
|
||
/datum/controller/subsystem/air/proc/get_amt_gas_mixes() | ||
return call_ext(AUXMOS, "byond:hook_amt_gas_mixes_ffi")() | ||
|
||
/proc/equalize_all_gases_in_list(gas_list) | ||
return call_ext(AUXMOS, "byond:equalize_all_hook_ffi")(gas_list) | ||
|
||
/datum/gas_mixture/proc/get_oxidation_power(temp) | ||
return call_ext(AUXMOS, "byond:oxidation_power_hook_ffi")(src, temp) | ||
|
||
/datum/gas_mixture/proc/get_fuel_amount(temp) | ||
return call_ext(AUXMOS, "byond:fuel_amount_hook_ffi")(src, temp) | ||
|
||
/datum/gas_mixture/proc/equalize_with(total) | ||
return call_ext(AUXMOS, "byond:equalize_with_hook_ffi")(src, total) | ||
|
||
/datum/gas_mixture/proc/transfer_ratio_to(other, ratio) | ||
return call_ext(AUXMOS, "byond:transfer_ratio_hook_ffi")(src, other, ratio) | ||
|
||
/datum/gas_mixture/proc/transfer_to(other, moles) | ||
return call_ext(AUXMOS, "byond:transfer_hook_ffi")(src, other, moles) | ||
|
||
/datum/gas_mixture/proc/adjust_heat(temp) | ||
return call_ext(AUXMOS, "byond:adjust_heat_hook_ffi")(src, temp) | ||
|
||
/datum/gas_mixture/proc/react(holder) | ||
return call_ext(AUXMOS, "byond:react_hook_ffi")(src, holder) | ||
|
||
/datum/gas_mixture/proc/compare(other) | ||
return call_ext(AUXMOS, "byond:compare_hook_ffi")(src, other) | ||
|
||
/datum/gas_mixture/proc/clear() | ||
return call_ext(AUXMOS, "byond:clear_hook_ffi")(src) | ||
|
||
/datum/gas_mixture/proc/mark_immutable() | ||
return call_ext(AUXMOS, "byond:mark_immutable_hook_ffi")(src) | ||
|
||
/datum/gas_mixture/proc/scrub_into(into, ratio_v, gas_list) | ||
return call_ext(AUXMOS, "byond:scrub_into_hook_ffi")(src, into, ratio_v, gas_list) | ||
|
||
/datum/gas_mixture/proc/get_by_flag(flag_val) | ||
return call_ext(AUXMOS, "byond:get_by_flag_hook_ffi")(src, flag_val) | ||
|
||
/datum/gas_mixture/proc/__remove_by_flag(into, flag_val, amount_val) | ||
return call_ext(AUXMOS, "byond:remove_by_flag_hook_ffi")(src, into, flag_val, amount_val) | ||
|
||
/datum/gas_mixture/proc/divide(num_val) | ||
return call_ext(AUXMOS, "byond:divide_hook_ffi")(src, num_val) | ||
|
||
/datum/gas_mixture/proc/multiply(num_val) | ||
return call_ext(AUXMOS, "byond:multiply_hook_ffi")(src, num_val) | ||
|
||
/datum/gas_mixture/proc/subtract(num_val) | ||
return call_ext(AUXMOS, "byond:subtract_hook_ffi")(src, num_val) | ||
|
||
/datum/gas_mixture/proc/add(num_val) | ||
return call_ext(AUXMOS, "byond:add_hook_ffi")(src, num_val) | ||
|
||
/datum/gas_mixture/proc/adjust_multi(...) | ||
var/list/args_copy = args.Copy() | ||
args_copy.Insert(1, src) | ||
return call_ext(AUXMOS, "byond:adjust_multi_hook_ffi")(arglist(args_copy)) | ||
|
||
/datum/gas_mixture/proc/adjust_moles_temp(id_val, num_val, temp_val) | ||
return call_ext(AUXMOS, "byond:adjust_moles_temp_hook_ffi")(src, id_val, num_val, temp_val) | ||
|
||
/datum/gas_mixture/proc/adjust_moles(id_val, num_val) | ||
return call_ext(AUXMOS, "byond:adjust_moles_hook_ffi")(src, id_val, num_val) | ||
|
||
/datum/gas_mixture/proc/set_moles(gas_id, amt_val) | ||
return call_ext(AUXMOS, "byond:set_moles_hook_ffi")(src, gas_id, amt_val) | ||
|
||
/datum/gas_mixture/proc/get_moles(gas_id) | ||
return call_ext(AUXMOS, "byond:get_moles_hook_ffi")(src, gas_id) | ||
|
||
/datum/gas_mixture/proc/set_volume(vol_arg) | ||
return call_ext(AUXMOS, "byond:set_volume_hook_ffi")(src, vol_arg) | ||
|
||
/datum/gas_mixture/proc/partial_heat_capacity(gas_id) | ||
return call_ext(AUXMOS, "byond:partial_heat_capacity_ffi")(src, gas_id) | ||
|
||
/datum/gas_mixture/proc/set_temperature(arg_temp) | ||
return call_ext(AUXMOS, "byond:set_temperature_hook_ffi")(src, arg_temp) | ||
|
||
/datum/gas_mixture/proc/get_gases() | ||
return call_ext(AUXMOS, "byond:get_gases_hook_ffi")(src) | ||
|
||
/datum/gas_mixture/proc/temperature_share(...) | ||
var/list/args_copy = args.Copy() | ||
args_copy.Insert(1, src) | ||
return call_ext(AUXMOS, "byond:temperature_share_hook_ffi")(arglist(args_copy)) | ||
|
||
/datum/gas_mixture/proc/copy_from(giver) | ||
return call_ext(AUXMOS, "byond:copy_from_hook_ffi")(src, giver) | ||
|
||
/datum/gas_mixture/proc/__remove(into, amount_arg) | ||
return call_ext(AUXMOS, "byond:remove_hook_ffi")(src, into, amount_arg) | ||
|
||
/datum/gas_mixture/proc/__remove_ratio(into, ratio_arg) | ||
return call_ext(AUXMOS, "byond:remove_ratio_hook_ffi")(src, into, ratio_arg) | ||
|
||
/datum/gas_mixture/proc/merge(giver) | ||
return call_ext(AUXMOS, "byond:merge_hook_ffi")(src, giver) | ||
|
||
/datum/gas_mixture/proc/thermal_energy() | ||
return call_ext(AUXMOS, "byond:thermal_energy_hook_ffi")(src) | ||
|
||
/datum/gas_mixture/proc/return_volume() | ||
return call_ext(AUXMOS, "byond:return_volume_hook_ffi")(src) | ||
|
||
/datum/gas_mixture/proc/return_temperature() | ||
return call_ext(AUXMOS, "byond:return_temperature_hook_ffi")(src) | ||
|
||
/datum/gas_mixture/proc/return_pressure() | ||
return call_ext(AUXMOS, "byond:return_pressure_hook_ffi")(src) | ||
|
||
/datum/gas_mixture/proc/total_moles() | ||
return call_ext(AUXMOS, "byond:total_moles_hook_ffi")(src) | ||
|
||
/datum/gas_mixture/proc/set_min_heat_capacity(arg_min) | ||
return call_ext(AUXMOS, "byond:min_heat_cap_hook_ffi")(src, arg_min) | ||
|
||
/datum/gas_mixture/proc/heat_capacity() | ||
return call_ext(AUXMOS, "byond:heat_cap_hook_ffi")(src) | ||
|
||
/datum/gas_mixture/proc/__gasmixture_unregister() | ||
return call_ext(AUXMOS, "byond:unregister_gasmixture_hook_ffi")(src) | ||
|
||
/datum/gas_mixture/proc/__gasmixture_register() | ||
return call_ext(AUXMOS, "byond:register_gasmixture_hook_ffi")(src) | ||
|
||
/proc/process_atmos_callbacks(remaining) | ||
return call_ext(AUXMOS, "byond:atmos_callback_handle_ffi")(remaining) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,5 @@ | ||
//#define EXTOOLS_LOGGING // rust_g is used as a fallback if this is undefined | ||
//#define AUXOOLS_LOGGING // rust_g is used as a fallback if this is undefined | ||
|
||
/proc/extools_log_write() | ||
|
||
/proc/extools_finalize_logging() | ||
|
||
GLOBAL_LIST_EMPTY(auxtools_initialized) | ||
|
||
#define AUXTOOLS_CHECK(LIB)\ | ||
if (!GLOB.auxtools_initialized[LIB] && fexists(LIB)) {\ | ||
var/string = LIBCALL(LIB,"auxtools_init")();\ | ||
if(findtext(string, "SUCCESS")) {\ | ||
GLOB.auxtools_initialized[LIB] = TRUE;\ | ||
} else {\ | ||
CRASH(string);\ | ||
}\ | ||
}\ | ||
|
||
#define AUXTOOLS_SHUTDOWN(LIB)\ | ||
if (GLOB.auxtools_initialized[LIB] && fexists(LIB)){\ | ||
LIBCALL(LIB,"auxtools_shutdown")();\ | ||
GLOB.auxtools_initialized[LIB] = FALSE;\ | ||
}\ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,13 @@ | |
#define WRITE_FILE(file, text) DIRECT_OUTPUT(file, text) | ||
#define READ_FILE(file, text) DIRECT_INPUT(file, text) | ||
//This is an external call, "true" and "false" are how rust parses out booleans | ||
#ifdef EXTOOLS_LOGGING | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should this be auxtools logging? |
||
#define WRITE_LOG(log, text) extools_log_write(log, text, TRUE) | ||
#define WRITE_LOG_NO_FORMAT(log, text) extools_log_write(log, text, FALSE) | ||
#else | ||
#define WRITE_LOG(log, text) rustg_log_write(log, text, "true") | ||
#define WRITE_LOG_NO_FORMAT(log, text) rustg_log_write(log, text, "false") | ||
#endif | ||
|
||
/// print a warning message to world.log | ||
#define WARNING(MSG) warning("[MSG] in [__FILE__] at line [__LINE__] src: [UNLINT(src)] usr: [usr].") | ||
|
@@ -253,7 +258,11 @@ | |
|
||
/* Close open log handles. This should be called as late as possible, and no logging should hapen after. */ | ||
/proc/shutdown_logging() | ||
#ifdef EXTOOLS_LOGGING | ||
extools_finalize_logging() | ||
#else | ||
rustg_log_close_all() | ||
#endif | ||
|
||
/* Helper procs for building detailed log lines */ | ||
/proc/key_name(whom, include_link = null, include_name = TRUE) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this wasn't actually the problem I was having but I'm wondering if I should leave the so file in anyways to be nice to that one guy who's trying to develop on linux