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
MultiZ WIP/Staging #27189
MultiZ WIP/Staging #27189
Conversation
Brings tablets into the light of modernity Makes their sprites look much more fancy
Ok lets tone down the steve jobs
Oops wrong save
…o VERTICALITY Conflicts: code/__DEFINES/atmospherics.dm code/controllers/subsystem/air.dm code/modules/atmospherics/environmental/LINDA_system.dm code/modules/atmospherics/machinery/atmosmachinery.dm tgstation.dme
ooo multiz pipes sounds fun |
why did you rename the folder back? the codebase standard is lowercase folder names or is this just temp |
@Iamgoofball literally wouldn't commit otherwise, every commit attempt reported the files as being "staged in the index", which is git terms for "fucked", they're super-reverted, but just for now, it'll be fixed before merge (though someone else might have to PR that to this PR for me since git is unhappy) @duncathan there's a stub/attempt at them in the PR, but they're a tad runtime-y at present. |
i love git |
HEAVY BREATHINGI want this. I want this now. YES YES YES YES YES YES ALL THE YES!! If I could help in any way, I would certainly like to try! A multi-Z station, even if PlanetStation were to fail, would be AMAZEBALLS! |
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.
I don't know if this will need special rules in the map loader. But if not...
Add a multiz_test.json in _maps like this
{
"map_name": "MultiZ Station",
"map_path": "map_files/debug",
"map_file": "multiz_test.dmm",
"minetype": "lavaland",
"transition_config":
{
"MAIN_STATION": "UNAFFECTED"
}
}
_maps/multiz_test.dm
Outdated
@@ -0,0 +1,21 @@ | |||
#if !defined(MAP_FILE) |
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 entire file should be just #define FORCE_MAP "multiz_test.json"
code/controllers/subsystem/multiz.dm
Outdated
var/list/zshadows | ||
|
||
/datum/subsystem/z_levels/New() | ||
NEW_SS_GLOBAL(SSz) |
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.
Remove these two lines
code/controllers/subsystem/multiz.dm
Outdated
@@ -0,0 +1,20 @@ | |||
var/datum/subsystem/z_levels/SSz | |||
|
|||
/datum/subsystem/z_levels |
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.
Replace these three lines with SUBSYSTEM_DEF(z_levels)
@@ -60,7 +50,7 @@ | |||
random_icon_states = list("gib1", "gib2", "gib3", "gib4", "gib5", "gib6") | |||
mergeable_decal = 0 | |||
|
|||
/obj/effect/decal/cleanable/blood/gibs/Initialize() | |||
/obj/effect/decal/cleanable/blood/gibs/New() | |||
..() |
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.
;(
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.
Seems you need to revert this entire file to upstream
@@ -11,7 +11,7 @@ | |||
icon_state = "ash" | |||
mergeable_decal = 0 | |||
|
|||
/obj/effect/decal/cleanable/ash/Initialize() |
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 one too
|
||
|
||
/turf/open/open_z/Entered(atom/movable/AM, atom/oloc) | ||
..() |
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.
Another performance worry
code/modules/multiz/z_helpers.dm
Outdated
LAZYINITLIST(SSz.vertical_connections) | ||
var/list/L = SSz.vertical_connections["[A]"] | ||
if(!L) | ||
L = list() |
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.
LAZYINITLIST(L)
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.
old branch.
code/modules/multiz/z_helpers.dm
Outdated
SSz.vertical_connections["[A]"] = L | ||
L = SSz.vertical_connections["[B]"] | ||
if(!L) | ||
L = list() |
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.
again
code/modules/multiz/zshadows.dm
Outdated
var/atom/owner | ||
|
||
/atom/movable/zshadow/Initialize() | ||
..() |
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.
. = ..()
code/modules/multiz/zshadows.dm
Outdated
return | ||
|
||
/atom/movable/zshadow/Destroy() | ||
if(!QDELETED(owner)) //Nothing destroys these if their owner exists, they *ARE* their owner as far as we're concerned |
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.
check the force
param
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.
Isn't ignoring force bad? that annoys me because I want to ignore force here.
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.
Almost nothing uses force atm, but we should support it in case we ever do decide we need it
For explosions, might just be as easy as reducing all power levels by some set amount for every level up/down |
@Cyberboss yes, it's something like that, as I said however, I've just not worked on it in a while (was ensuring the "core" was solid first) |
@RemieRichards maybe you could shout at me in IRC? |
content (on/off, volume_rate) aren't implemented. | ||
|
||
Use this for ruins and stuff I guess, or fix it up proper. | ||
*/ |
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.
honestly just remove zvent
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.
By that I mean that cross-z connections should only happen between nodes. Making that work shouldn't be too difficult, but having a vent like this is unnecessary complexity for a redundant gain (pipe up connected to a vent is basically the same)
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.
sure I guess, it just seemed cruel to kill it when it survived, semi-working, for such a long time.
rip zvent.
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.
I do appreciate the respect you had for this poor piece of oldmos
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.
;_;7
staged in the index just means the files have been git added, but not yet committed, there's absolutely no reason to revert that change |
I didn't revert it, technically. It was quite literally the only thing I could do to commit it (everytime I went to the commit it shat itself about said files), and as I have said, it will be sorted before merge time. |
ok |
Right, cleanup is done. |
dcae55f
to
c3ffeba
Compare
updating master
…ation into RemieRichards-VERTICALITY ok
@RemieRichards |
yes, though if you put a "zopen" turf on a zlevel, it will automatically connect it's Z level with the one below, which if you're mapping a multiz station you're likely to use zopens for like, balconies and things. |
Bay's multiz explosion code is not very complex, if you want to look at that. |
No need, I already have it planned (And I think Razharas is tackling it, I know he's been messing around with it atleast) |
Makes vines 3d
For now i pr the 3d vines RemieRichards#18 @RemieRichards Check em // |
Checking zlevel connection on creation or movement
if(zshadow) | ||
zshadow.SyncLoc() | ||
else | ||
if(GetAboveConnectedTurf(src)) |
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 is meant to be GetZOpenAbove(src)
(so that Zshadows lazy-create (the creation of a hole above them is already covered))
Makes explosions 3d
…o RemieRichards-VERTICALITY
@RemieRichards |
Makes bakuretsutachi 3d
*motivates remie |
Just reopen when this keeps going |
maybe we should make this a branch on the main repo |
That also works. |
That is a good idea, this is a long project and seeing it closed could be discouraging to the people working on it! |
You can also PR a branch
…On May 30, 2017 12:09 PM, "GunHog" ***@***.***> wrote:
That is a good idea, this is a long project and seeing it closed could be
discouraging to the people working on it!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27189 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHywesKcmCQLrF4OT7M8OYKTQnBgduyKks5r_D87gaJpZM4NZqk6>
.
|
I am aware. |
Help me/Motivate me to finish this.
TODO:
/Cleanable
to/cleanable
thus ruining git on windows OS.update_icon()
andupdate_icons()
(still 2 procs though) such that they atleast call..()
or some other method of cascading, to update Zshadows.Feel free to PR to this PR if you want to help.