Rewriting Life()
-
- Joined: Sat Apr 19, 2014 11:23 am
- Byond Username: Miauw62
Rewriting Life()
Life(). Life() never changes...
Mainly because it's so huge and bloated that it's basically impossible to rewrite.
By yourself.
Life() has to be rewritten, and one coder alone cannot do this, be it attention span or motivation. So what if we did it togheter?
I suggest that we organize something so every willing coder updates and refactors one or two of the procs in Life(), so it becomes manageable again, and other things *coughdatummutantracescough* could be implemented with relative ease.
Mainly because it's so huge and bloated that it's basically impossible to rewrite.
By yourself.
Life() has to be rewritten, and one coder alone cannot do this, be it attention span or motivation. So what if we did it togheter?
I suggest that we organize something so every willing coder updates and refactors one or two of the procs in Life(), so it becomes manageable again, and other things *coughdatummutantracescough* could be implemented with relative ease.
<wb> For one, the spaghetti is killing me. It's everywhere in food code, and makes it harder to clean those up.
<Tobba> I stared into BYOND and it farted
- Stephie
- Joined: Fri Apr 18, 2014 5:40 pm
Re: Rewriting Life()
I gave up on mobcode when I found that pieces of food code (Nuka Cola) somehow ended up there. It's a mess, no other word for it.
- Psyentific
- Joined: Mon Apr 21, 2014 7:44 am
- Byond Username: Psyentific
- Location: Vancouver, Canada
- Contact:
Re: Rewriting Life()
how do you evenStephie wrote:I gave up on mobcode when I found that pieces of food code (Nuka Cola) somehow ended up there. It's a mess, no other word for it.
i wat
u wot
i cannot even
wat
I mean, there's spaghetti code, then there's whatever that is.
I haven't logged into SS13 in at least a year.
- Jeb
- Joined: Thu Apr 17, 2014 4:01 pm
- Byond Username: Stapler2025
Re: Rewriting Life()
everyone knows that cola is life()
- Stephie
- Joined: Fri Apr 18, 2014 5:40 pm
Re: Rewriting Life()
To explain, Nuka Cola and Hyperzine had a mention in human and mokey code, as they eliminated any slowdown and enabled sanic speeds. I just checked the mob code again, and it looks like they are gone from human code now (replaced by GOTTAGOFAST flag), but monkey.dm still has them:Psyentific wrote:how do you evenStephie wrote:I gave up on mobcode when I found that pieces of food code (Nuka Cola) somehow ended up there. It's a mess, no other word for it.
i wat
u wot
i cannot even
wat
I mean, there's spaghetti code, then there's whatever that is.
With that said, it looks like they never were a part of Life() code, so sorry for off topic.
- Remie Richards
- Joined: Thu Apr 17, 2014 7:11 pm
- Byond Username: CrimsonVision
- Location: England, UK, Earth, Sol, Milky Way, Local Group, Virgo Supercluster, Known Universe
- Contact:
Re: Rewriting Life()
Don't Miauw, please... I like you... Rewriting Life() will destroy your Real life()!
You won't come back alive/sane if you do this...
You won't come back alive/sane if you do this...
私は完璧
-
- Joined: Tue Apr 15, 2014 1:27 pm
- Byond Username: Jalleo
Re: Rewriting Life()
Ill help next year. Sometime someday.
Anyhow
Miauw consider this a long haul slow rework where you touch it only when required.
I know you want to get changeling better but if its that big only superman can do it....
Anyhow
Miauw consider this a long haul slow rework where you touch it only when required.
I know you want to get changeling better but if its that big only superman can do it....
- Aranclanos
- Joined: Tue Apr 15, 2014 4:55 pm
- Byond Username: Aranclanos
Re: Rewriting Life()
Did you know that all humans check if they are wearing a ninja mask each second?
I accept donations, click here
- iamgoofball
- Github User
- Joined: Fri Apr 18, 2014 5:50 pm
- Byond Username: Iamgoofball
- Github Username: Iamgoofball
Re: Rewriting Life()
whyAranclanos wrote:Did you know that all humans check if they are wearing a ninja mask each second?
why do we even have this
can we just like
remove ninja forever
- Numbers
- Joined: Wed Apr 16, 2014 10:40 am
Re: Rewriting Life()
Yeah good luck.remove ninja forever
- Rockdtben
- Site Admin
- Joined: Mon Apr 14, 2014 11:54 pm
- Byond Username: Rockdtben
- Github Username: Rockdtben
- Contact:
Re: Rewriting Life()
Aranclanos wrote:Did you know that all humans check if they are wearing a ninja mask each second?
Code: Select all
if(istype(wear_mask, /obj/item/clothing/mask/gas/voice/space_ninja))
var/obj/item/clothing/mask/gas/voice/space_ninja/O = wear_mask
switch(O.mode)
if(0)
var/target_list[] = list()
for(var/mob/living/target in oview(src))
if( target.mind&&(target.mind.special_role||issilicon(target)) )//They need to have a mind.
target_list += target
if(target_list.len)//Everything else is handled by the ninja mask proc.
O.assess_targets(target_list, src)
see_invisible = SEE_INVISIBLE_LIVING
if(1)
see_in_dark = 5
see_invisible = SEE_INVISIBLE_LIVING
if(2)
sight |= SEE_MOBS
see_invisible = SEE_INVISIBLE_LEVEL_TWO
if(3)
sight |= SEE_TURFS
see_invisible = SEE_INVISIBLE_LIVING
>Decides to snowflake instead
>Scumbag Ninja
Custom Software Solutions, Mentorship, and game development ----> Main Site
Game Master: 03/24/2022 - Now || Domain Holder: 04/15/2014 - 03/24/2022 || Code Project Lead: 02/01/2014 - 10/07/2014 || G-Admin: 12/29/2013 - 04/04/2015 || T-Admin: 3/29/2013 - 12/29/2013 || Codermin: ? - 3/29/2013 || Started Playing: 6/13/2006 || "Took no shit from shitters" - MrStonedOne
Game Master: 03/24/2022 - Now || Domain Holder: 04/15/2014 - 03/24/2022 || Code Project Lead: 02/01/2014 - 10/07/2014 || G-Admin: 12/29/2013 - 04/04/2015 || T-Admin: 3/29/2013 - 12/29/2013 || Codermin: ? - 3/29/2013 || Started Playing: 6/13/2006 || "Took no shit from shitters" - MrStonedOne
- paprika
- Rarely plays
- Joined: Fri Apr 18, 2014 10:20 pm
- Byond Username: Paprka
- Location: in down bad
Re: Rewriting Life()
I can't stop laughing it's like ninja is worse than I expected
Oldman Robustin wrote:It's an established meme that coders don't play this game.
-
- Joined: Fri Apr 18, 2014 11:25 am
- Byond Username: Lobstercake
Re: Rewriting Life()
Dat necro.
Re: Rewriting Life()
Yeah I was required to change that when I made unholy water make cultists go fast.Stephie wrote:To explain, Nuka Cola and Hyperzine had a mention in human and mokey code, as they eliminated any slowdown and enabled sanic speeds. I just checked the mob code again, and it looks like they are gone from human code now (replaced by GOTTAGOFAST flag), but monkey.dm still has them:Psyentific wrote:how do you evenStephie wrote:I gave up on mobcode when I found that pieces of food code (Nuka Cola) somehow ended up there. It's a mess, no other word for it.
i wat
u wot
i cannot even
wat
I mean, there's spaghetti code, then there's whatever that is.
With that said, it looks like they never were a part of Life() code, so sorry for off topic.
Now it sets the mob's sanic flag, which means movement only does one check per movement instead going through a mob's reagent list to check if one of those reagents is the specified chemical... for each chemical
Who is online
Users browsing this forum: No registered users