Commit Graph

33 Commits

Author SHA1 Message Date
Anthony "Shifty Rail
189f77cbb7 Refactors player preferences for modularity + SQLite Unit Test (#37615)
* Pref code refactor

* Empty database reference

* Unit testing SQLite

* Everything else

* Disable unit testing.

* Equivalent

* more robust unit tests
2025-06-07 09:54:09 -04:00
noirogen
72b418bdfb Fixes hostile mob's friends list entries getting deleted while in use (#37297)
* Adds a check to ensure that the lastassailant weakref isn't also being used by a hostile mob for its friends list, preventing mobs from forgetting their friends.

* Replaces lastassailant weakref deletion with setting to null

Fixes bugs caused by the lastassailant weakref getting deleted, which would break any other objects that were using that weakref.
2024-10-31 09:55:26 -04:00
SECBATON GRIFFON
22099bca6e Makes LAssailant a weakref (#36351)
* Makes LAssailant a weakref

* Makes LAssailant a weakref

* Makes LAssailant a weakref

* Makes LAssailant a weakref

* cleans up comments

* cleans up comments

* cleanup

* cleanup

* cleans up this comment now for anyone who could re-enable

* more like old syntax

* better var name

---------

Co-authored-by: SECBATON-GRIFFON <>
2024-04-17 07:56:24 -04:00
kane-f
25ef28e54d Faster server startup (#32861)
* Faster object initialisations

* Faster station alert computers

* Removes sleeps in this too, now shaving another 3 seconds off

* Entered

* These work just fine as spawns instead of sleeps, no delays

* Changing this threshold, not much stuff shows up anymore taking longer than 1 tick

* Some logging

* Makes vaults load much faster

* Better like this

* Makes lightspeed ship load much faster

Co-authored-by: kanef <kanef9x@protonmail.com>
2022-07-01 07:09:20 -05:00
DamianX
9c7e06a906 Move tgui logs to the href logs file (#31210) 2021-11-04 17:24:42 -04:00
DamianX
9fc6406a87 tgui 4 (#30535)
Co-authored-by: ShiftyRail <31417754+ShiftyRail@users.noreply.github.com>
2021-09-07 16:15:19 +01:00
DeityLink
3c8e72caee Better crit logging (#30010)
* ugh

* fix critlogs

* derp

* assert
2021-07-19 14:46:51 -05:00
DeityLink
842425470f Added a certain admin request (#29782)
* surprise

* fix

* moved to its own file

* I can't into basic math

* warnings

* formalities

* let the gamemode be free

* separation

* gne
2021-06-21 16:16:59 -05:00
adrian
0ea96052bf Adds slow object initialization log (#28284)
* Add slow object initialization log

* Review fix

* f
2020-12-02 02:01:14 +01:00
ShiftyRail
bbd746ae42 Ports TG's BSQL library (#26455)
* Ports TG's BSQL

* write perms

* my mistake

* Missing migrations, fixes mistakes, removes unneeded logs

* Missing migrations, fixes mistakes, removes unneeded logs

* haha

* Final missing migration, actually fix runtime

* Fucked up this doesn't throw a warning

* sql fixes; polls
2020-05-19 13:35:10 -03:00
Pathid
3716baa5bc Makes add_attacklogs able to take non-mob targets (#17668)
* add_attacklogs able to take non-mob targets

* Probably a good idea since it logs each bullet

* Reverted admin_warn = FALSE
2018-03-03 05:06:12 -05:00
sood
e5f3212c25 Lots of dumb logging stuff that breaks when config isnt loaded fast enough to catch errors (#12346) 2016-10-26 09:26:05 -05:00
9600bauds
1be8cec8a3 Adds dedicated chemistry investigation file (#11064)
* Investigate chems

* Investigate this shit

* https://www.youtube.com/watch?v=wLeoNUIRqlY

* Commit Message:

* magix

* Better

* descriptive commit name
2016-07-23 16:58:06 +01:00
PJB3005
df30c3f4b7 Paradise error handler (#10571)
* Ports the Paradise error handler.

Made by @Krausus

Initial code port, it compiles!

* It now looks cool!

All kinds of fancy CSS and HTML things.

* Stuff

Fixes Comic's comments.

Ports some more changes from Paradise.

The src from the machinery process is NOT included. I consider stack
traces more valuable.
2016-06-22 19:56:49 -05:00
PJB3005
1a2f9ab059 All the EOLs are now LF.
Fuck you too 0D :^)
2016-01-16 23:28:07 +01:00
PJB3005
99bf59d80e Adds a to_chat() proc, to pave the way to a non shit chat. 2015-11-25 15:55:15 +01:00
PJB3005
3cca5692af Removes the panic writer messages. 2015-11-20 03:17:06 +01:00
D3athrow
6dfe7c3dff reduce proc calls 2015-08-22 13:40:22 -05:00
DeityLink
c07c053e03 cult logs 2015-08-19 16:01:19 +02:00
Rob Nelson
d8a7173a92 Fix some performance issues on startup. 2015-08-16 18:35:42 -07:00
D3athrow
d59f6a07b0 comment out panicwriter and saytesting 2015-07-20 16:04:48 -05:00
D3athrow
41d7df01fd just fuck my shit up 2015-07-18 02:30:51 -05:00
wwjnc
ddf95adbb6 Squashed commit for PR #4116. Fixes #4005, fixes #3216, fixes #3699,
fixes #3196.

  - Fixes welder fuel being spread/created on space turfs.

  - Added missing `src = null` statements in some reagent reactions.

  - Removed duplicate virus food recipe and fixed the current one.
    The new recipe apparently was from some virology rework and
    conflicted with the old one. The current recipe has been tweaked
    to match the wiki: 5u milk + 5u water gives 15u virus food.

  - Moved transfer/splash code to the reagent_container/transfer() proc.
    No more copypasted code everywhere, hopefully.

  - Fixed some (pills, holy water bottle, drink glasses, shakers...)
    `reagent_containers` being able to transfer contents at a distance.

  - Added a `return 1` in some `attackby()` to avoid having them call
    `afterattack()`. Reduces amount of snowflake code and kills ninjacode
    in `reagent_containers`.

  - Added helper procs to log game events/reagent transfers.

  - Removed copypasted code from spray/chemsprayer and syringe code
    and refactored it a bit.

  - Fixed trans_to() not handling blood transfers correctly.

  - Less painful copypasted logging code.

  - Why am I even alive

  - Modernized things, removed more snowflake.

  - Welder fuel and flamethrower decals are now pooled.

  - `transfer_sub` now typechecks properly

  - `splash_sub` now handles correctly and gives a message when
    splashing something with `amount = 0` or without reagents

  - Added `is_empty()` proc to `/datum/reagents`

  - Added `animate_movement` to the pooler's ignore list to fix
    a bug where pooled objects would get that var reset to 0
    instead of their overriden value for some reason.
2015-05-15 08:58:39 +02:00
D3athrow
b831e6f3af Library bits 2015-04-30 15:57:09 -05:00
eswordthecat
f095248775 Copy admin only log system of NSS-Phoenix. 2014-10-27 00:04:59 -08:00
Chris
705c57d799 REVERT Local changes for bug/stability/random shit i thought up (reverted from commit c6611d37ad) 2014-10-04 13:38:31 -05:00
Pomf
c6611d37ad Local changes for bug/stability/random shit i thought up 2014-10-04 11:07:22 -05:00
ESwordTheCat
c51497cccd Fix compile errors, found at commits before the latest of TG lighting_controller and _DynamicAreLighting_TG. 2014-05-21 05:18:28 -08:00
Rob Nelson
d614758d56 Adminghost logging, fixed some ghosts-fucking-with-things issues. 2014-01-05 12:31:59 -08:00
Rob Nelson
f96334ed60 Log admonghoast shit. 2013-11-09 12:04:51 -08:00
cib
e4b610207b Make debug log accessible to mods and coders. 2013-05-18 11:34:00 +02:00
cib
0da9a4538e New debug log system.
You can as admin toggle debug messages, VERY useful for devs and debugging the main server.
2013-05-18 10:02:37 +02:00
elly1989@rocketmail.com
7b720a20b6 >Moved most of the helper procs into code/__HELPERS. If you see ANYTHING generic enough to be a helper proc just throw it in there and help purge the copypasta 5ever
>Replaced dd_text2list, dd_text2listcase, tg_text2listcase and tg_text2list with text2list and text2listEx. text2list will return a list of each and every character in the string if you set separator=""
>added return_file_text(filepath) which returns text from a file after doing some checks: does the file exist? is the file empty? It prints helpful error messages to the world.log if it runs into problems
>Replaced dd_file2list(filepath, seperator) with file2list(filepath, seperator). It just calls text2list(return_file_text(filepath), seperator). rather than copypasta
>Replaced time_stamp() so it's not as retarded
>Lots of the world setup stuff uses file2list now, rather than file2text -> sanity -> text2list
>Added error() warning() testing() procs. These print messages to world.log with a prefix. e.g. ## ERROR: msg.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4948 316c924e-a436-60f5-8080-3fe189b3f50e
2012-10-24 14:39:36 +00:00