Commit Graph

1121 Commits

Author SHA1 Message Date
Erthilo
165b516949 TG: Fixes a pAI requests runtime caused by clients disconnecting.
Fixes a host of runtimes caused by lag delaying "transmissions" between
telecomms machines. Various objects were being deconstructed during this lagtime
resulting in a bunch of weird null errors. Tested for 24hours on another server.
Seems to be all ok.

Added some rudimentary checks to advanced proccall. Calling procs owned by
objects is now a little less prone to runtimes. still a bunch of stuff to do to
get it safe enough though.
Revision: r3542
Author: 	 elly1...@rocketmail.com

Ported over BS12's piano code. I say ported, it's not like it's anything but a
copy/paste though.
Also changed the icon to the minimoog, to reflect on how FUTURISTIC it is.
Revision: r3543
Author: 	 petethegoat
2012-05-10 00:16:09 +01:00
Erthilo
d651a99fe9 TG: Committing a new map update for Ikarrus-
http://nanotrasen.com/phpBB3/viewtopic.php?f=15&t=8481&start=20#p106280
Committing for Sieve: (and WJohnston, I suppose~)
Added WJ's alien hunt sprites.
Fix for the misplaced update ID line in the PDA.dm
Slightly updated mining turfs

Also adding a define for Cheri's balaclava sprites, and a new type of cigarette
packet (not available in game, currently)
Revision: r3540
Author: 	 petethegoat
2012-05-09 23:38:08 +01:00
Erthilo
ffeb9a958a TG: Fixes some mix-up with what hand was lost
Regenerate admin verb now restores limbs/lost blood
Fixes power_loss proc to actually respect the electrical channel something is
on.
Revision: r3539
Author: 	 VivianFoxfoot
2012-05-09 23:29:06 +01:00
Erthilo
ea78585d1d Comments out weird Geas stuff. 2012-05-09 23:10:40 +01:00
Erthilo
3f8be1e819 Switches normal cell drain for more module drain for cyborgs. Deactivate your modules people! Fixes cyborg law issues. Adds a note to the bar about shotgun usage. 2012-05-09 03:29:16 +01:00
Erthilo
026074d6c5 TG: (Might very possibly be broken. Didn't port most of the stuff due to it having been rewritten. - Erthilo)
Adds BS12 dismemberment.  Not all features of it are implemented yet, but it
should be equal to our previous system.
Adds greater changeling code, but doesn't change the genome count yet on it.
Renames registered to registered_name on IDs because bs12 had it and it seemed
like a good idea to do last night.  For some reason.
Adds an afterattack to mobs that can be used.  (In fairness, lots of shit in
attack_hand should be in there instead, like stungloves and stuff, to minimize
duplicated code)
Revision: r3537
Author: 	 VivianFoxfoot
2012-05-06 22:53:39 +01:00
Erthilo
28f7a58905 TG: - Added a rudimentary transformation section to the options panel (show player
panel verb). This allows rudimentary mob type changes to any mob. These are
however generic and non-mob-specific, as they only copy over some of the most
needed variables, such as the three name variables, dna and mind. They do not,
for instance, create a MMI for cyborgs. A note of this is also added to the
player panel.
- Once you click one of the links a popup will appear asking you whether you'd
like to delete the old mob of the player (yes or no) or cancel this
transformation.

Screenshot:
http://www.kamletos.si/options%20panel%20rudamentary%20transformation.PNG
Revision: r3534
Author: 	 baloh.matevz
2012-05-06 21:01:19 +01:00
Erthilo
097b08fa25 TG: - Redesigned the options panel (show player panel verb) to be less terrible.
Screenshot: http://www.kamletos.si/options%20panel.PNG

- Made some changes to admin verbs:
- Rejuvenate verb removed from mobs, is now in the options panel above (heal).
- Drop everything verb moved into view variables, added a confirmation message.
- Mute verb removed from mobs, use the options panel.
- Warn verb removed from mobs, use the options panel.
- Grant full access moved to debug verbs.
- Rejuvanate as a verb also still exists in debug verbs.

These changes were made to make right clicking a mob not show a million unneeded
verbs. They were moved based on the statistics gathered via feedback logging:
http://www.kamletos.si/tgdb/latest_stats.html#adminverbs

Please post any additional feedback on the admin forum.

Renaming mobs by clicking the big name at the top of the view-variables screen
now updates real_name too.

Additionally, if the mob is human, the first ID and PDA found in the mob's
contents which is associated with the original name, will have their details
updated.

Nomore having to edit like, 6 variables everytime somebody names themself
"dicks", "sanic" or "captain" ... etc.

Revision: r3532, r3533
Author: 	 baloh.matevz, 	 elly1...@rocketmail.com
2012-05-06 20:55:16 +01:00
Erthilo
4a6adbef82 TG: AI can now track its cyborgs who speak on robotic talk.
Revision: r3526
Author: 	 VivianFoxfoot
2012-05-06 19:21:33 +01:00
Erthilo
246e503bc6 TG: AIs and Juggernauts/Wraiths/Artificers should no longer have random names when
they ghost.

Fixed a typo in the borg manual
Remove ripley_construct.dmi as it was unused.
Revision: r3521
Author: 	 kortgstation
2012-05-06 19:01:01 +01:00
Erthilo
d21cbab61c TG: Fixed dust() and gib() leaving invisible overlays everywhere
Fixed deaths at the end of nuke rounds, optimised the code a little

gib() is now hgib() (ie it's specific to humans). gibs.dm() now only spawns
generic gibs that could be from any mob.
Likewise for dust.
Awaiting generic dust() and gib() animations.

Fixed (hopefully, depends if firewalls block this method) getruntimelog.
GameMasters no longer have the getruntimelog verb. Instead they have
.giverutimelog . This allows them to grant a specific client access to the
server's runtime logs. (they can grant themself access this way too). NOTE:
runtime logs can be used to meta, only grant access to coders or people you
trust. It may also be wise to ensure they do not play in the current round.

Introducing .getserverlog . It allows any admin above moderator to access ANY
archived server/attack logs. Should mkae processing forum ban requests a lot
easier since all admins with ban capabilities now have access.

getruntimelog renamed to .getruntimelog . File-request spam prevention increased
to 60seconds to discourage access serverlogs too much! They can reach sizes of
4Mb sometimes so please be responsible with them admins.

runtime logs should now be saved to /data/logs/runtime/ (you may have to create
this folder yourself)

ummm... fixed gibs appearing below shuttle turfs. Trimmed some uneeded fluff
text from the logs.
Revision: r3509
Author: 	 elly1...@rocketmail.com
2012-05-06 18:50:52 +01:00
Erthilo
a40b911ce5 TG: Shades, Juggernauts, Wraiths, Artificers all now have minds.
If a cultist builds a construct, that construct will be a cultist. This means
they can see cultists finally (and will probably count for the escape objective,
so that might need changing numbers wise)

Fixed some typos in the cult runes (godamnit Urist) and the blind rune can no
longer be made into a talisman, cause a handheld, instant, AoE blind that lasts
20 seconds with no counter is retarded.
Revision: r3507
Author: 	 kortgstation
2012-05-06 18:32:39 +01:00
Erthilo
f2777aa65f TG: Tonnes of stuff, please check the changelog.
In short: massive updates to security, the library, hydroponics, the kitchen and
the bar, by Flazeo and Ikarrus
Massive updates to the PA, with Invisty's new sprites, done by Sieve
New sprites for field gens too, also by Invisty
Borg and battery updates by Sieve
Fake gloves by Sieve
I messed around with some pressure_resistance stuff on Dumpdavidson's suggestion
(only in paperwork)

PROBABLY A BUNCH OF OTHER SHIT
Revision: r3505
Author: 	 petethegoat
2012-05-06 18:26:41 +01:00
Erthilo
7685e6bef9 TG: Adds tickcomp, an attempt to make mob movement speeds level across all
tickrates.  Works pretty well.
Adds a (disabled) framework for making people drop where they're stunned without
waiting for the next tick
Shuffles sleeping and resting, making them cause effects of their own rather
than just relying on 2 ticks of paralysis or whatever.
You now stand up before being able to move again (called in canmove)
Reduces slip chance from 50 to 0 when knocked out (more in line with the
comments in the code, and it just makes more sense)
Revision: r3503
Author: 	 VivianFoxfoot
2012-05-06 17:56:28 +01:00
CIB
d5f353cf35 Merge pull request #984 from Erthilo/master
TG Updates up to r3502
2012-05-06 01:19:58 -07:00
Erthilo
f205981b87 TG: Fixes the tasercooler borg upgrade, enables it. It's now usable as a template
for other module-specific upgrades.
Revision: r3499
Author: 	 VivianFoxfoot
2012-05-06 00:47:24 +01:00
Erthilo
d9a64a7d0a Made it " snores." instead. 2012-05-06 00:30:31 +01:00
Erthilo
3c3895ee4c A hacky way to stop snoring from being global. 2012-05-06 00:19:43 +01:00
Erthilo
84cb9b65ef TG: Updated the barman's shotgun, it acts like a double-barrel now, and he can saw
it off.
Added Khodoque's new shotgun sprites.

Added my new gasmask sprites. Removed emergency gasmasks, as the distinction is
non-existent.

Very slightly reshuffled some mask stuff around, but it's still godawful.
Medical masks are now /obj/item/clothing/mask/breath/medical

Removed the define for HALFMASK, as it was completely unused.
Revision: r3493
Author: 	 petethegoat
2012-05-05 23:20:19 +01:00
Erthilo
bec822a049 TG: Rewrote the cinematic system to be centralised and controlled by the gameticker,
rather than handled per mob with like, 3 loops and a seperate process for each
mob.dmPlease report any bugs/derps to me asap. I've tested it as much as I can
locally, but because it relates to events that require a large number of players
it's very hard to test.

TODO: I was intending to use dust to kill players off on a nuclear-loss. However
dust() is very very broken. So I've hardcoded everything to die until I can fix
dust().

Added an adminverb for 'Game Master's. It was a debug verb so I could test
cinematics but I've left it in as it might be handy for events, especially if we
get more cinematics. To access it type "cinematic" in full into the input bar as
a Game Master, then follow the prompts. At the moment, it only handles nuclear
stuff (that's all there is anyway). You can choose where the nuke detonated 0=
on station; 1= near station but in space; 2= off the z-level. You can also force
a cinematic from another game-mode to play with the prompt after that one.

Note: All mobs are buckled to a bed located inside the gameticker (odd I know)
whilst a cinematic is playing. The bed is deleted afterwards releasing all
players. If off_station=0 then all mobs will be killed too. This is to stop
people running around and doing stuff during the cinematic. I really didn't want
to add more variables/checks to mobs.
Revision: r3481
Author: 	 elly1...@rocketmail.com
2012-05-05 22:28:05 +01:00
Erthilo
1a5d772ae5 TG: Fixes some runtimes, involving do_mob, observe, send_status on mulebots,
check_gas_mixture, the explosion cinematic, sleeper get_reagents_amount, and a
possible (albeit unlikely) fix for throw_at
Revision: r3478
Author: 	 quartz235
2012-05-05 22:13:20 +01:00
Erthilo
de69881429 TG: Fixes server-crashing runtimes that would happen when badmins deleted all hud
items. These bugs account for half of the runtime log.

This would have been a lot easier with admin cooperation.

TODO: make some sort of failsafe so stupid stuff like this doesn't happen
Revision: r3473
Author: 	 elly1...@rocketmail.co
2012-05-05 22:04:25 +01:00
CIB
fe57bd3684 Merge pull request #969 from Erthilo/TGUpdates
TG Updates up to r3459
2012-05-04 23:45:50 -07:00
Rob Palkowski
f26d5ac3db Tabs rather than spaces. Sorry 'bout that. 2012-05-04 10:13:59 -07:00
Rob Palkowski
4ed0b20025 Cyborgs with no AI no longer get Asimov-lite
Rather, they get the standard NanoTrasen lawset
2012-05-03 19:03:29 -07:00
Ren Erthilo
28df960bf1 TG: - pAI names now have a character limit and are sanitized
- Removed duplicate drink checks
Revision: r3446
Author: 	 johnsonmt88
2012-05-03 02:28:43 +01:00
Ren Erthilo
39f6da4c59 TG: Rewrote blackholes (gravitational anomalies) and wormholes to try and optimise
them a little. If you have any concerns about how I've done so just give me a
shout and I'll either rework them or revert my changes back. Wormholes
especially seem a bit faster on my laptop. Smoke has temporarily been removed
from the blackhole event until I get time to investigate why the hell
effect_systems are using so much memory ( spark effects were using 40% of my
processor a second ago D: ). To compensate this I made them a new sprite.

Commented out the authentication system. It was the remnants of the old goon
authentication stuff (or maybe even older) and wasn't actually used in our code
at all (at least not in any useful way, it was merely called and short-circuited
to 1, so all those if(authenticated) were totally pointless. This has removed 3
unused variables from every client, a bunch of unused variables from the config
and two empty text files!

Committed (as a config option) a feature requested by Apoc station. It causes a
'reply to' window to popup when an admin PMs a non-admin player. It's meant to
grab their attention so they can't say "I didn't see your PM". It defaults to
off. To turn it on just uncomment the #POPUP_ADMIN_PM line in config/config.txt

Fixed a derp in isday where it was fetching the month instead of the day.

Removed medal references from Gib()

Removed the medal_hub global variables because they aren't used in any way shape
or form.
Revision: r3444
Author: 	 elly1...@rocketmail.com
Date: 	Apr 12, 2012
2012-05-03 02:22:25 +01:00
Ren Erthilo
4fccc35067 TG: ◘The problem:
People being able to move while resting/lying

◘What caused it:
When a user decided to press "rest", a single variable, resting, was switched
from 0 to 1. Through life.dm procs, when the handle_regular_status() proc saw
the mob resting && his weakness being 0 or less, it would just give him 2
seconds of being-weak, through Weaken(2). Later on, the proc called
update_canmove() to see if the guy had the ability to move due to weakness but
also due to reagents/drugs/sleep etc.

At every tick, this proc also reduced mob.weakness by 1.

The chain that led to the problem was:
○User decides to rest
○resting is set to 1, handle_regular_status_updates() runs
○Proc sees that the user's resting var == 1. Does mob.weakness = 2
○Proc handles weakness. mob.weakness -= 1. It is now 1.
○update_canmove() is blind to resting, though sees that there's weakness. Sets
canmove to 0
○Proc runs again the following second
○Proc sees user is resting.
○mob.weakness <= 0 fails, since it's 1 from the last run. Weakness stays at 1.
○Proc handles weakness, mob.weakness-=1. It is now 0.
○update_canmove() now sees that there's  no weakness, and sets canmove to 1,
even though the user is still resting & lying
○For a second, the user is able to roll around on his lying butt
○Proc runs again, giving Weaken(2) and disables movement again, and the circle
repeats.

◘How it got fixed:
Made update_canmove() not blind to resting. I don't like this solution, as
resting still equals weakening and there's wasted processing, albeit miniscule.
I will try to work on something better.

◘Sleep can now go over 1 again, some dumb shit did not realise this and led to
sleep being weak as hell. You can now put people to permanent sleep through
anaesthetic gasses and toxins. Deciding to sleep will put you out for 20.
Deciding to faint will put you out for 10.
Revision: r3442
Author: 	 polyxenitopalidou
2012-05-03 00:40:47 +01:00
Ren Erthilo
9c40ed3e9f TG: Fixing dem runtimes:
Temp-fix for mob/say.dm It's being sent null from Tcomms, so I'll leave it to
somebody with experience with that.

Fix for items bein  in your inventory and on the floor

Fix to stop people pulling themselves and causing runtimes (lol)

Fixes a bunch of stuff in the flash code. EMPs will now cause flashes to flash
their holder. They don't runtime when flashing cadavers. They don't runtime when
being EMPed. They will (hopefully) rev those select few buggy people who weren't
getting reved previously. (I can't fix that totally without playing with a bunch
of mind stuff)

Fix for throwing nothing. :P

Fix for removing tanks that don't exist from transfer valves.
Revision: r3441
Author: 	 elly1...@rocketmail.com
2012-05-02 23:58:53 +01:00
Ren Erthilo
a4e04d2915 TG: Runtime fixes for:
runtime error: Cannot modify null.layer. proc name: done
(/obj/effect/equip_e/human/done) usr: Ramona Fawkes (/mob/living/carbon/human)
src: the human (/obj/effect/equip_e/human)
call stack: the human (/obj/effect/equip_e/human): done() the human
(/obj/effect/equip_e/human): process()

runtime error: Cannot execute null.use(). proc name: attackby
(/obj/structure/barricade/wooden/attackby) usr: Jeffery Long
(/mob/living/carbon/human) src: the wooden barricade
(/obj/structure/barricade/wooden) call stack: the wooden barricade
(/obj/structure/barricade/wooden): attackby(null, Jeffery Long
(/mob/living/carbon/human)) the wooden barricade
(/obj/structure/barricade/wooden): DblClick(the floor (159,129,1)
(/turf/simulated/floor), "mapwindow.map", "icon-x=15;icon-y=12;left=1;scr...")

Rewrote wielded weapons to be their own weapon subclass. There was no point
having a var/wielded var/twohanded var/force_unwielded var/force_wielded for
every damn item when there is only 1 wield-able weapon anyway. All the wield-
able stuff is now in twohanded.dm

Changed the adminhelpsound to some creative commons sound I pinched. Until
somebody can get a better one. I'm sick of MAAAAAAAAOOOOOOW.

All PMs trigger the adminhelp sound. That means when you OM a player they get
the sound, if a admin is PMed they only hear it if their adminhelp sounds are
enabled. This should allow people to get eachother's attention when t he chat is
busy.

Fixed some bad code with poddoors (which is used for the shutters in QM)
Revision: r3435
Author: 	 elly1...@rocketmail.com
2012-05-02 23:09:19 +01:00
Ren Erthilo
396caaa260 TG: Late-join features and bug fixes:
- Merged 'Game' and 'Lobby' tabs during pre-game into one tab.
- Late-joiners now see round duration.
- Late-joiners are warned if the shuttle is not recallable or has already left
to Centcomm.
- Added the little red X to the top corner of the late-join job list window
- Supply shuttle derp fix
- Removed duplicate mining shuttle code that was inside atmos computer stuff
- - This should fix the player seeing both the 'Shuttle has been sent' and 'The
shuttle is already moving' messages.
- Updated changelog
Revision: r3433
Author: 	 johnsonmt88
2012-05-02 22:14:59 +01:00
Ren Erthilo
59762d4207 TG: An attempt to make the master controller more robust. This shouldn't cause
terrible additional lag, given that the master controller doesn't actually fire
that often, and can also give us a clue as to what part of the controller has
died in case of failure
Modifies do_after to something that fires a lot less, and is hopefully more
robust against infinite loops. It is now theoretically possible to run around
and then come back to the same place and have it complete, but that's only
really valid for extremely long times (like handcuff removal) and if you get
lucky and dodge one of the timed checks.
Revision: r3421
Author: 	 VivianFoxfoot
2012-05-02 21:39:41 +01:00
Ren Erthilo
e1c69ed8a1 Commented out metadata and some other non-sensical stuff. 2012-05-02 21:22:19 +01:00
Ren Erthilo
b3420a9518 Merge branch 'master' of git://github.com/Baystation12/Baystation12 into TGUpdates 2012-05-02 00:37:35 +01:00
Ren Erthilo
ba68248ab6 TG: Re-adds metadata support.
Adds ghost sight as its own verb to see all emotes in the world.
Revision: r3419
Author: 	 VivianFoxfoot
2012-05-02 00:35:39 +01:00
Phil Bordelon
f0de6ac13f Constify minimum and maximum player ages. 2012-05-01 18:33:47 -05:00
Ren Erthilo
f7e4ab6975 TG: Adds randomlly spawning rooms to the mining asteroid that contain various
goodies.  (Among them are a modified traitor beacon, a cloaking device and a
closet full of resources so you can go build your own honk.)
These rooms will spawn at least out of range of space and the explored pathways,
so at the very least some mining is required to even detect them with mesons.
Adds a borg upgrade system. Right now, it just contians a borg reset module that
allows the borg to choose their module again.  Adds some support code to borgs
to suppot flashproofing and renaming.
Adds a few various admin commands like a quick-list of objects (which is
hardcoded) and a command to break the local air group.
Revision: r3415
Author: 	 VivianFoxfoot
2012-05-02 00:21:18 +01:00
SkyMarshal
77d7877549 Merge pull request #961 from Mloc/dev
Added extra data to ID cards. (fingerprint, blood type, dna)
2012-05-01 15:19:41 -07:00
Ren Erthilo
5d34cd6628 Merge branch 'master' of git://github.com/Baystation12/Baystation12 into TGUpdates 2012-05-01 22:37:31 +01:00
Ren Erthilo
b952f90a6e Remote viewing and TK are now mutually exclusive. Also fixes emagging doors. 2012-05-01 22:27:59 +01:00
Ren Erthilo
1c21fca311 Fixes remote viewing on CentCom z-level, and all the others too. 2012-05-01 21:06:44 +01:00
Ren Erthilo
1f45fbefe6 TG: Runtime fixes
Moved delete to trial admins because they can already mass delete and that's not
particularly as helpful as regular delete (but a lot more destructive)
Trialmins can now toggle adminhelp sounds without observing
Revision: r3397
Author: 	 quartz235
2012-05-01 19:54:58 +01:00
Ren Erthilo
4077f00143 TG: Removes the ERP system because it has bugs in it/generates runtimes and I don't
feel like maintaining/expanding it.  If any of the other coders want to, they
can re-add it.
Converts the metadata system into its own thing
Makes ghost_ears hear emotes as well as a test.
 Revision: r3392
Author: 	 VivianFoxfoot
2012-05-01 19:41:36 +01:00
Mloc
d3366602f4 Added extra data to ID cards. (fingerprint, blood type, dna)
Signed-off-by: Mloc <colmohici@gmail.com>
2012-05-01 18:54:44 +01:00
Ren Erthilo
8d605c33d5 TG: Minor fixes to the tensioner, changes to the borg deathsquad from 6->3 and fixes
their cell
Changes changling unstun time to 45 from 25
Fix for the datumvars file which had spaces instead of tabs
Adds the starts of a rather robust erping system!  In time, we can make SS13 as
realistic an ERP simulator as it is an atmos one.
Adds metadata support for clients, mostly to hold ERPing notes.  This is
included in the savefile.
Adds code support for a parrot in!  Just needs a sprite
Bugfix to the 'resist' button, unless I don't understand how it works.  I don't
see how it could have ever worked before.
Preferences are now attached to a mob
Revision: r3386
Author: 	 VivianFoxfoot
2012-05-01 18:42:23 +01:00
Ren Erthilo
0218f2c41a TG: View variables now properly displays the contents of an associative list (ie
stuff like list("ballnumber" = 2)).

Changed around a few access levels; only jobs who need to do maintenance have
access to maintenance tunnels. Also the heads and detective.

Removed the radio mode toggle verb, as telecomms has long left the
"experimental" stage.

Messed with sec huds. Their readings are far more reliable. Officers can now use
huds to modify humans' criminal statuses on the go. To do this, simply examine a
human and at the end should be a clickable link to change the status. Uses
/mob/living/carbon/human/Topic().

Added some new sprites from the forums, including those spider sprites and the
new, more feline-looking cat.

Dat changelog
Revision: r3383
Author: 	 vageyenaman
2012-05-01 14:23:35 +01:00
Ren Erthilo
e2b21ce916 TG: Runtime fix for paint
Shuttle call/recall announcements are now more noticeable. Removed a few ways
they could be spammed.
Cats and Dogs can see in the dark.
Recommitted some of the poop stuff by Doohl because, hell it's only one day and
I don't hate fun.
Revision: r3382
Author: 	 elly1...@rocketmail.com
Date: 	Mar 31, 2012
2012-05-01 14:09:47 +01:00
Mloc
3f14b794c0 Merge pull request #958 from Erthilo/TGUpdates
TG Updates up to r3377
2012-05-01 02:47:51 -07:00
Ren Erthilo
61cf24f087 Fixes custom item name. 2012-05-01 02:59:20 +01:00
Ren Erthilo
93403a15e5 TG: Adds a dummy process() to /obj/machinery/door so that doors aren't removed from
the machine list.  Best guess, all machines call process automatically, and
because doors didn't have an explicit one defined, they automatically called the
one that removed them from the list.
Adds a borg deathsquad to the map.
Few more fixes to the tensioner.
Revision: r3374

Includes door code cleanup from here http://code.google.com/p/tgstation13/source/detail?spec=svn2895&r=2895
2012-05-01 02:55:28 +01:00