Skip to content
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

Draft
wants to merge 43 commits into
base: master
Choose a base branch
from

Conversation

covertcorvid
Copy link
Member

@covertcorvid covertcorvid commented Aug 10, 2024

About The Pull Request

This ups some version numbers, fixes a NAMEOF call, and updates atmos to use an actual library API instead of weird DLL hacks.

This still needs experimental testing but I'm partly putting this up just to be able to do my own code review

References yogstation13/Yogstation#13479 and Citadel-Station-13/Citadel-Station-13#16061

Why It's Good For The Game

I love the idea of not having weird DLL hacks, also the firelocks seem to work better.
Also also people will actually be able to compile and run the code in 515 now.

Testing Photographs and Procedure

Atmos tests:

  • Analyzed a turf
  • Analyzed a pipe
  • Can breathe
  • Ran plasma constrictors
  • Ran storm drive
  • Depressurized a room
  • Flooded a room with plasma

Changelog

🆑 juypterkat, covertcorvid
fix: Firelocks respond to depressurization better
refactor: A lot of the atmos subsystem got reorganized at minimum
add: auxmos might be handling fusion now if I understood this correctly
server: Updated auxmos to 2.5.2 and my fork - PreCompile.sh changed
server: Also updated rustg
/:cl:

covertcorvid and others added 20 commits June 15, 2024 12:44
* Bumps rust_g to the latest version

* Partial port of tgstation/tgstation#56183

Co-authored-by: AnturK <[email protected]>

* Re-formats fname params

---------

Co-authored-by: AnturK <[email protected]>
* Bump to rustg v3.1.0

* Implement rustg_icon_states

* Update dependencies.sh

* Update rust version too

* Revert "Implement rustg_icon_states"

This reverts commit 42db8ec27adc74e3b9742da35aa32d0bc452e4da.

* Bump to 3.1.1
* GAGS Rustg

* Bump rust-g to 3.1.2

* Move to tmp

* Copy json configs into tests

* Fix tests

* Begone tabs

* Optimize greyscale_layer init
code/__DEFINES/atmospherics.dm Outdated Show resolved Hide resolved
code/__DEFINES/atmospherics.dm Show resolved Hide resolved
Comment on lines +184 to +186
#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"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did I actually use these anywhere?

@@ -169,6 +200,80 @@
#define rustg_http_request_async(method, url, body, headers, options) RUSTG_CALL(RUST_G, "http_request_async")(method, url, body, headers, options)
#define rustg_http_check_request(req_id) RUSTG_CALL(RUST_G, "http_check_request")(req_id)

/// Generates a spritesheet at: [file_path][spritesheet_name]_[size_id].png
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how much I needed any of this

@@ -549,7 +549,7 @@
if(!istype(T))
return
var/datum/gas_mixture/environment = T.return_air()
if(!istype(environment))
if(!environment)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this safe?

@@ -2,7 +2,6 @@
//Datum gets created in master.dm because for whatever reason global code in there gets runs first
//In case we ever figure out how to manipulate global init order please move the datum creation into this file
/datum/debugger
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be completely honest I do not know what the debugger does and had to remove it from world.dm to stop everything from hanging on startup

@@ -9,7 +9,7 @@
config/starmap/starmap.json

# Ignore compiled linux libs in the root folder, e.g. librust_g.so
/*.so
#/*.so
Copy link
Member Author

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

@@ -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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be auxtools logging?

auxmos_path = "./libauxmos.so"
else if (fexists("./auxtools/libauxmos.so"))
auxmos_path = "./auxtools/libauxmos.so"
else if (fexists("[world.GetConfig("env", "HOME")]/.byond/bin/libauxmos.so"))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we still need to look in home?

@@ -4,11 +4,10 @@ SUBSYSTEM_DEF(callbacks)
wait = 1
priority = FIRE_PRIORITY_CALLBACKS

/proc/process_atmos_callbacks()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

global proc moved to bindings.dm, this is fine

@@ -100,22 +100,22 @@
if(node2)
node2.disconnect(src)
nodes[2] = null
nullifyPipenet(parents[2])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renames caused a lot of purely aesthetic changes, decide whether to keep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants