Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

DREAM REWORK #2392

Closed
wants to merge 29 commits into from
Closed

DREAM REWORK #2392

wants to merge 29 commits into from

Conversation

Time-Green
Copy link
Contributor

@Time-Green Time-Green commented Jul 16, 2017

Dreaming

Now it actually lets you walk around in a dream world and do fuck all.

There will be alot of bugs, so make sure to report them

Picture of small piece of one of the two areas: https://i.gyazo.com/a8015a0a498038e08b1ae47938cfb907.png
🆑
experimental: Reworks dreaming. Thanks to kayozz for sounds and kmc for making a dream area
/:cl:

Mappers please map. I am horrible at it.
I will add this in future PRs:
Antag dreams (meetings?)
Nightmares
Holding onto life
(maybe more)
Mappers, feel free to add areas for nightmares or other not yet made code. It'll be unused but I'll use it later then.

Also I am gonna keep alot of stuff about this PR secret, so not too many pictures. Mystery is the fun part about features. Ask me directly for real info

I should mention to all coders. The isActive() proc checks if the person is still there, dreaming or not, and then pulls them back so you can use their mind. isActive(1) only checks for them and doesnt pull them back

@Kmc2000
Copy link
Contributor

Kmc2000 commented Jul 18, 2017

Speed merge

@Time-Green
Copy link
Contributor Author

This isn't WIP. I will add all the other stuff in seperate PRs

@AdamElTablawy
Copy link
Contributor

merge?

@@ -45,7 +45,8 @@
M.confused += power
if(ishuman(M) && ishuman(user) && M.stat != DEAD)
if(user.mind && (user.mind in ticker.mode.head_revolutionaries))
if(M.client)
if(M.isActive())
world << "11"
Copy link
Contributor

Choose a reason for hiding this comment

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

ZA WARUDO

var/name = "Dream Controller"
var/dreaming = FALSE
var/mob/living/carbon/owner
var/mob/living/carbon/human/dream/DB = /mob/living/carbon/human/dream
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm pretty sure you need to create an instance via new(), otherwise, this is just a typepath and not something that has any vars.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's done on line 30

Copy link
Contributor

Choose a reason for hiding this comment

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

You try to access the variables of DB on line 12, where it still doesn't exist (as /Dream starts first, then it calls /startDream, if I understand the code correctly, meaning you are still trying to access the variables before you ever first create the instance).

Is startDream (the place the DB instance is created) called somewhere outside Dream when you initialize the world or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Start dream is called at line 23
Also about the DB, yes its to make sure things dont get buggy, hence there's the ishuman check to make sure it's actually has variables and I can acces it
The reason I dont put it directly in new is because I don't need to create the mobs for every single human, just for those that fall asleep, it'd be a waste to create them even for someone that will never use it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nvm i couldve just straight up called new() and it would've used the path of the actual var, sorry i understand now

@Kmc2000
Copy link
Contributor

Kmc2000 commented Jul 31, 2017

Please merge

@monster860
Copy link
Member

Oi morgue this PR

@Time-Green
Copy link
Contributor Author

This didn't occur to me.
Step 1: Sleep
Step 2: DC
Step 3: come back a minute later
I was in my normal body

@Time-Green
Copy link
Contributor Author

Do you have any more info about how it happened? If it happened then it'll happen again on live sooner or later.
It doesn't happen usually as I checked, something else happen?

@Kmc2000
Copy link
Contributor

Kmc2000 commented Aug 25, 2017

please merge this quickly, dreaming is so fucking lame right now

@Cruix
Copy link
Contributor

Cruix commented Aug 26, 2017

I cannot actually reproduce it anymore either. I have no idea how it happened to me twice in a row.

@Amelia0010
Copy link
Contributor

A lot of people are saying that their dream bodies are always female

@Time-Green
Copy link
Contributor Author

Time-Green commented Aug 26, 2017

Never happened to me, that's good enough to be brushed off as an accidental feature

Clicking a dream person teleports you to their real body. Using the
orbit menu, does not.
Also fixes the survival rate
@Time-Green
Copy link
Contributor Author

Time-Green commented Aug 27, 2017

Latest commits:
Fixes getting DC'd.
Fixes dream body spawning at the persons real body.
Fixes dream bodies being included in the survival rate.
Double clicking a dream person as a ghost now teleports you to their real body, using the menu doesnt.

@Amelia0010
Copy link
Contributor

Is there a way to put the dream bodies at the bottom of the list? It's kinda annoying having to go through all of the Dream people looking for someone named "driscoll hooker" for example

@Time-Green
Copy link
Contributor Author

Time-Green commented Aug 29, 2017

I increased heavily on the stability and did some other misc stuff since the original testmerge

  1. It now leaves behind fake ckeys

  2. People can't be DC'd anymore

  3. If someone bugs, there's 2 failsafes.
    If they werent returned to their body, it will send them back anyway. If the body somehow got lost, it will search the playerlist for the fake ckey and put the person in controle of that
    I failed to find out why the dream bodies sometimes end up on the real body, but if it happens, it
    gets corrected within 2 seconds

  4. Clicking the dream body teleports you to the real body, for admin convenience. Does not happen when you use the orbit menu thing

  5. The dream peeps aren't in the middle of the player list anymore. They are below all the humans. (And do not count for objectives, they never did)

  6. Also fixes the abductor shit only working when people were sleeping, messed up a proc

  • some other fixes and improvements

for(var/mob/living/carbon/human/dream/D in mob_list)
D.dream.setInvisibility() //If one new dude comes in, he will be visible, so redo the invisibility for all...
key = "@[C.ckey]"
world << "1 [key]"
Copy link
Contributor

Choose a reason for hiding this comment

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

debug output

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fuck

@ghost
Copy link

ghost commented Aug 30, 2017

can we like, not move ckeys off of mobs and instead just use cameras and replace the sprite to a copy of the mobs sprite? it prevents the inevitable 5000 edge cases from this PR . You don't need a real mob in dreamland anyways.

this is honestly way too messy for a feature like crit dreams and brings more issues than it should. 2 snowflake 5 me.

@Cruix
Copy link
Contributor

Cruix commented Sep 13, 2017

There are a ton of runtimes at roundstart, and MMIs placed into borg exoskeletons do not transfer the mind of the brain into the cyborg.

@Cruix Cruix removed the TESTMERGE label Sep 13, 2017
@Super3222
Copy link
Contributor

Re-add deathwhisper. If you are in deep crit you should be able to immediately die whenever you want to.

Or just remove dream word from crit entirely. It’s a major inconvenience.

@Time-Green
Copy link
Contributor Author

Its ok. I've been discouraged so bad, I give up. Just revert the ugly dreaming we have right now and life with the old shit.

@Time-Green Time-Green closed this Sep 14, 2017
@Super3222
Copy link
Contributor

Damn. My dreams of living old CRP are dead.

@Amelia0010
Copy link
Contributor

why did i get a ping from this

@1fbff5f83b23d39d38b1dfcb4cac8d9b
Copy link
Contributor

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
10 participants