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

[Review Ready] Positronic Brains! #9147

Merged
merged 5 commits into from May 3, 2015
Merged

[Review Ready] Positronic Brains! #9147

merged 5 commits into from May 3, 2015

Conversation

GunHog
Copy link
Contributor

@GunHog GunHog commented Apr 24, 2015

Shamelessly rips off NTStation/NTstation13#772 by @RemieRichards!

This is a Work In Progress, the following things need to be done before completion:

  • Name and create an appropriate preference and job-ban flag for them, requested by @Ikarrus. I need feedback from admins on this one. I had to put pAI and Posibrain in the same preference, due to the flag being full.
  • Draft a changelog for Jordie, in my own blood.
  • Perform extended tests on them, and fix any obvious bugs.
  • Perform a sample DB test on the admin related changes. Special thanks to SoS for helping me with this!

Positronic Brains (https://tgstation13.org/phpBB/viewtopic.php?f=9&t=3448) are special MMIs that accept ghosts. They are originally a port from Bay, PR'ed to NT by RR, and now yoinked for /tg/ by me!

Notable differences in my version:

  • New! Borgs created with Xeno brains are now called "Xenoborgs".
  • Positronic Brains will not have binary or a radio. They will hear and speak only locally.
  • They are selected in a similar manner as a pAI. A human player picks it up and activates it.
  • They are informed that they have forgotten their past lives.
  • They are functionally the same as AIs and Cyborgs. There is only one difference from normal MMIs: They will be named "Android" instead of "Cyborg".
  • As mech pilots, they cannot be antagonist, and are informed to do no harm. subject to change based on feedback
  • Cyborgs created during the AI Malfunction gamemode gain Malfunction laws even if they are configured to be unslaved. The same will go for Androids, as they are not meant to be different.

Ban panel changes: Admins, please note:

  • There are now individual job-ban options for pAI, Drones, and Positronic Brains, "Ghost Roles" category on the job-ban panel.
  • Deathsquad moved from Antagonist section to "Ghost Roles"; Emergency Response Team are included in Deathsquad bans!

Androids created with Positronic brains:
screenshot 2015-04-24 09 33 17

Empty brain and Android:
screenshot 2015-04-24 09 33 19

-Adds positronic brains
- Fixes a runtime in mechs for pilots without DNA
@theOperand
Copy link
Contributor

this lets you build huge borg armies unless you make these things very expensive, and i've already heard admins complain about drones being unaccountable griff machines.

usr << msg
return

/obj/item/device/mmi/posibrain/emp_act(severity)
Copy link
Contributor

Choose a reason for hiding this comment

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

inherited already. Remove it all.

@RemieRichards RemieRichards added the Feature Exposes new bugs in interesting ways label Apr 24, 2015
@ike709
Copy link
Contributor

ike709 commented Apr 24, 2015

heil NT
👍

@dalmationer
Copy link
Contributor

If you nerds want sprites i totally have some old ones you can use. Check it. http://imgur.com/O20bE6S
There's also some other shit on there like mobile PAIs but whatever. If you want it i can send u guys XCFs or whatevs.

@pudl
Copy link

pudl commented Apr 24, 2015

that it, /tg/ is dead. rip.

@GunHog
Copy link
Contributor Author

GunHog commented Apr 25, 2015

More stuff added, Borgs now can be "Androids", "Cyborgs", or "Xenoborgs"! Added RR!

@freerealestate
Copy link
Contributor

Positronic Brains will not have binary or a radio. They will hear and speak only locally.

How come? It'll make it difficult for them to follow their laws, prevent human harm and obey the AI.

@GunHog
Copy link
Contributor Author

GunHog commented Apr 26, 2015

How come? It'll make it difficult for them to follow their laws, prevent human harm and obey the AI.

They are MMIs, and are meant to have the same limits as one. They will gain Binary if they are made into an android or AI. Mechs have built in radios, so they will have communication abilities if you make them a pilot. They cannot do anything but talk in brain form, anyway.

@freerealestate
Copy link
Contributor

oh, i see

On 27 April 2015 at 11:16, GunHog notifications@github.com wrote:

How come? It'll make it difficult for them to follow their laws, prevent
human harm and obey the AI.

They are MMIs, and are meant to have the same limits as one. They will
gain Binary if they are made into an android or AI. Mechs have built in
radios, so they will have communication abilities if you make them a pilot.
They cannot do anything but talk in brain form, anyway.

Reply to this email directly or view it on GitHub
#9147 (comment)
.

Changes the BE_PAI and "pAI" flag names to "BE_GHOST_ROLE" and "Ghost
Roles".
Name subject to change.
@GunHog
Copy link
Contributor Author

GunHog commented Apr 27, 2015

@Ikarrus, I changed the pAI flag to Ghost Roles, as asked. Basic ban-application testing seems to work. If anyone here does not like the new name, Please supply a better one. I do not really like touching admin related stuff.

Adds a changelog, drawn in blood, and performed according to the rites
as scribed in the Unholy One's guide to changelogs. Long may he reign.
@GunHog GunHog changed the title [WIP] Positronic Brains! [Testing] Positronic Brains! Apr 27, 2015
@PKPenguin321
Copy link
Contributor

If you're testing for bugs, can you make sure that a cyborg built with a positronic brain can't be deconstructed to yield a human brain? Because once this goes live that'll be one of the first things I'll be testing for, as it could be a way to make ghosts into humans.

@GunHog
Copy link
Contributor Author

GunHog commented Apr 28, 2015

That is working normally. Deconned and blown Androids drop their Posibrain as expected. I will hunt for any mistakes.

@Ikarrus
Copy link
Contributor

Ikarrus commented Apr 28, 2015

Thanks gunhog

Am I correct in assuming the ban database stores the index instead of the string? So people who were previously pAI jobbanned aren't going to suddenly find themselves unbanned.

@GunHog
Copy link
Contributor Author

GunHog commented Apr 28, 2015

Oh.....god....dang it....Ikky, I do not know at all. I have no clue how the database works at all. I will need an admin-coder to comment. If this would unban people, I will revert the name change, and only change appearance on the panel to tell the admin it includes drones and posibrains.

@MrStonedOne
Copy link
Member

Ok, so the job ban name is used. not an index.

That being said. This is one update query to fix.

UPDATE SS13_bans SET JOB = "Ghost Roles" WHERE JOB = "pAI"

(just make a change log .sql file with that in it and add info the sql change log about the change)

But, a better idea would be to make this a new category in the job ban panel. so we can ban from each 3 things (drones, pai, posbrain) separately, or hit the category button to ban from all 3.

Talk to me on irc if you need help with either of those options.

@@ -16,7 +16,7 @@
var/drone_type = /mob/living/simple_animal/drone //Type of drone that will be spawned

/obj/item/drone_shell/attack_ghost(mob/user)
if(jobban_isbanned(user,"pAI"))
if(jobban_isbanned(user,"Ghost Roles"))
Copy link
Member

Choose a reason for hiding this comment

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

replace this with drone.

@Dorsisdwarf
Copy link
Contributor

I don't see why we'd need the ability to ban individual ghost roles.

As far as I'm concerned, someone who's being a shitlord/metagamer as a drone is going to be the same as a pAI, and definitely a posibrain. Even if they aren't, bans are applied across the type of job. Beat a prisoner to death for fun as a warden and you get a sec jobban, not a warden jobban

- Deathsquad moved from Antagonist to Ghost Roles.
- pAI jobbans split into drone, pAI, and posibrains.
- Posibrains back under pAI preference flag (the byte is full)
- Fixed Posibrain sprite if it fails to get a ghost.
@GunHog
Copy link
Contributor Author

GunHog commented Apr 28, 2015

I don't see why we'd need the ability to ban individual ghost roles.

As far as I'm concerned, someone who's being a shitlord/metagamer as a drone is going to be the same as a pAI, and definitely a posibrain. Even if they aren't, bans are applied across the type of job. Beat a prisoner to death for fun as a warden and you get a sec jobban, not a warden jobban

You can now do both. If you want to jobban someone from all ghost roles, you may do so, but some admins might think differently. I am giving them both choices, because admins need the power!

Commit comments:
I moved Deaf Squids to ghost roles, per MSO's request.
I split the job-bans for drone, pAI, and Posibrains.
The stupid byteflag is full, so I had to shove pAI and Posibrains back together in preferences.

PLEASE LET THIS BE THE LAST I HAVE TO MESS WITH ADMIN STUFF. It is scary, and I do not want admins angry with me!

@GunHog GunHog changed the title [Testing] Positronic Brains! [WIP] Positronic Brains! Apr 28, 2015
@GunHog GunHog changed the title [WIP] Positronic Brains! [Testing] Positronic Brains! May 1, 2015
@GunHog GunHog changed the title [Testing] Positronic Brains! [Review Ready] Positronic Brains! May 3, 2015
@GunHog
Copy link
Contributor Author

GunHog commented May 3, 2015

I cannot find anything wrong with it now, ready for maintainer review!

RemieRichards added a commit that referenced this pull request May 3, 2015
@RemieRichards RemieRichards merged commit e5f034f into tgstation:master May 3, 2015
@GunHog GunHog deleted the Rise_Of_The_RR_Androids branch May 12, 2015 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Exposes new bugs in interesting ways
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet