mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 05:23:22 +01:00
BAPI - spacemandmm dmm reading (#19118)
More bapi work, docs, etc. The actual changes seen from DM side, is that all maps are parsed and checked by spacemandmm. It does not really add much safety for us, as everyone uses strongdmm anyways (which uses spacemandmm), but I will need to do that anyways in future work. The bapi call is on every map in the maploader, so if it does not work, if it crashes or panics or whatever, we'll see it immediately (cause the maps don't load). It should work fine, though, unless the setup is wrong. I wrote more about safety and other things in readme text file in rust/bapi dir. So, yeah. The point of this PR is to do something meaningful with bapi, and see if the whole workflow and setup and everything works correctly, before doing any further work in future PRs. --------- Co-authored-by: DreamySkrell <> Co-authored-by: AuroraBuildBot <action@github.com>
This commit is contained in:
co-authored by
DreamySkrell <>
AuroraBuildBot
parent
a40c981263
commit
a78701f553
@@ -50,7 +50,8 @@ GLOBAL_DATUM_INIT(_preloader, /dmm_suite/preloader, new)
|
||||
/dmm_suite/proc/load_map_impl(dmm_file, x_offset, y_offset, z_offset, cropMap, measureOnly, no_changeturf, x_lower = -INFINITY, x_upper = INFINITY, y_lower = -INFINITY, y_upper = INFINITY)
|
||||
var/tfile = dmm_file//the map file we're creating
|
||||
if(isfile(tfile))
|
||||
tfile = file2text(tfile)
|
||||
// tfile = file2text(tfile)
|
||||
tfile = bapi_read_dmm_file("[tfile]") // `tfile` is of type `File`, this makes it into just a string of its path
|
||||
|
||||
if(!x_offset)
|
||||
x_offset = 1
|
||||
|
||||
Reference in New Issue
Block a user