Commit Graph

149 Commits

Author SHA1 Message Date
MrPerson
80a7a2abb4 Replaced a few more Del() and del() calls
Removed cigarette related reagent deleting. It's already done in atom/Destroy()!
2014-03-03 04:51:09 -08:00
MrPerson
d784ce8941 Remove a debug qdel() command.
Made atmos_alert computers GC (hopefully) and not runtime (known).
2014-03-03 02:49:57 -08:00
MrPerson
3c58091437 Merge branch 'master' of https://github.com/tgstation/-tg-station into qdel
Hopefully nothing went wrong but you never know.

Conflicts:
	code/FEA/FEA_fire.dm
	code/controllers/supply_shuttle.dm
	code/game/gamemodes/changeling/changeling_powers.dm
	code/game/machinery/autolathe.dm
	code/game/machinery/drying_rack.dm
	code/modules/hydroponics/hydroponics.dm
	code/modules/projectiles/projectile/magic.dm
	code/modules/reagents/Chemistry-Recipes.dm
	code/modules/reagents/reagent_dispenser.dm
2014-03-02 21:39:27 -08:00
Ergovisavi
3a96098d55 Merge branch 'master' of https://github.com/tgstation/-tg-station into ore_redemp_fixes
Also fixed some weird autodrobe runtime on startup
2014-03-02 17:07:24 -08:00
Aranclanos
b9835abbc4 Changed the default number of changeling scaling coefficient from 10 to 7 in the configuration files. 2014-03-01 20:59:03 -03:00
MrPerson
37525c8e40 Tweak that useless loop test. It doesn't tell me anything :( 2014-02-27 09:36:57 -08:00
MrPerson
f27d35b760 Made gibbing not look stupid.
Also some basic stuff in an attempt to get complex mobs to GC. Still doesn't work atm.
2014-02-26 23:44:19 -08:00
Ergovisavi
83c85abe26 Merge branch 'master' of https://github.com/tgstation/-tg-station into ore_redemp_fixes 2014-02-25 17:38:24 -08:00
Ergovisavi
a4ffdf1cb7 Asteroid/Mining tweaks:
Adding mining GPS so miners can find each other more easily on the asteroid
Ore Redemption machine usability improved, also now only processes 10 ore per tick due to possible issues with mass processing of ores
Labor mineral rates edited to fall in line with the rest of the minerals, Labor stacker points increased to compensate
Treasure rooms should now spawn properly and start unlit, treasure items tweaked
Cargo points per plasma sheet significantly increased due to increased rarity
PACMAN generator made significantly more efficient to compensate for increased rarity of plasma, amount of plasma in engineering reduced as a result
Slight tweaks here and there of mining mobs in general
2014-02-25 06:03:17 -08:00
MrPerson
af8001d619 WOOPS TYPO 2014-02-24 18:48:58 -08:00
MrPerson
cac49a611e Make items equipped by mobs unequip themselves as part of Destroy()
Change the GC's loops to for() loops instead of while() loops. Also fixed a really stupid mistake where it would cut random shit out of the destroyed list instead of what was just processed.
Made it use world.time instead of world.timeofday to get rid of stupid midnight rollover errors.
Also there's a split between caps on var clearing and deletion checks
Moved the invisibility = 101 bit out of the GC and into atom/Destroy()
2014-02-24 16:56:34 -08:00
MrPerson
edc7cfd63a Make GC'd objects super invisible to help unreference them more.
qdel() and clear contents of things when they themselves are qdel()
Forgot to add the gc_cost to the total cost of the MC.
2014-02-23 18:07:33 -08:00
MrPerson
08a06487c0 Added a cap of 10 force del() per tick. Should maybe make this higher.
Also accidentally left testing mode on, woopsies.
2014-02-23 16:24:09 -08:00
MrPerson
9eee3e5067 First pass at a qdel() garbage collection system for tgstation
Works pretty well. If it can't GC something, it'll just del() it and be done.
Speed is amazing, holy shit.

New procs you should be aware of:
qdel(atom/movable) - sets up an object for garbage collection. Call this rather than del(atom/movable).
atom/movable/Destroy() - called right before the object is GC'd, so it still has a loc. Also called if the object is del()'d.
new controller - garbage.dm has all the details on this. Basically it nulls all references on GC'd objects and force del() them if necessary.
Generally speaking, objects should use Destroy() for behavior prior to deletion rather than Del(). You should also always call the parent so the object gets the right gc_destroyed var set.

ISSUES:
Tries to GC mobs atm. This actually works for new players, not so much for humans/monkies/simple_animals/anything. I'm guessing it needs to clear out their mind and HUD and maybe other things.
Gibbing is really bugged. It works, but the overlays just sit there for awhile and ugh. I'm very tempted just to del() mob/living and mob/camera and call it a day.
qdel() equipment doesn't unequip the item.
Pipes don't generally GC correctly. Debugging suggests they get referenced in many pipenets and that isn't cleared properly. However some do work fine. Need assistance here.
Bots don't GC, probably in the radio controller.
Lots of other shit doesn't GC but it's hard to find them because of the pipe spam.
I think I'm calling Destroy() twice by accident.
2014-02-23 14:55:12 -08:00
Giacomand
a45791e54f Added a new wiki manual subtype which will allow you to easily add new book/manuals which link to the wiki.
Made the wiki books use the config's wikiurl.
Updated some information in the non-wiki manuals.
You can now specificy a book's window size, the wiki books will be given a value since they are not automatically set the window size.
2014-02-20 17:47:33 +00:00
Razharas
5e716e7d1d Merge pull request #2671 from Jordie0608/mergeconflictgodieplz
Config option for sec starting in brig
2014-02-09 02:32:50 -08:00
Razharas
e1a58798f2 Merge pull request #2652 from Incoming5643/showodds
Adds a new game option: show_game_type_odds
2014-02-08 10:30:57 -08:00
Jordie0608
ae1f18e6e4 Config option for sec starting in brig 2014-02-08 01:10:05 +11:00
Incoming
d9d75ada32 Adds a new game option: slow_game_type_odds
If it's on on the server revision screen below the preexisting information there will be a readout showing the raw chance of each round type occuring. This doesn't tell anyone what the current round type is, it just shows what the odds are.

It defaults to off
2014-02-05 17:58:07 -05:00
YotaXP
6db2c59772 Reduced the potency of carrying multiple light sources. 2014-02-05 16:54:46 -05:00
MrPerson
931da9e7ef Many changes
Much diff
2014-02-04 22:49:38 -08:00
Jordie0608
45ee53517a Outright removed toggle admin jump,spawn and revive buttons 2014-01-27 16:10:19 +11:00
fleure
9e57eeb59b Merge pull request #2389 from Rolan7/HydroCargoPoints
Hydro cargo points
2014-01-17 15:10:47 -08:00
Rolan7
d7e77c44bc Updated a bunch of \blue and \red to span tags.
Moves the seed check into the original loop along with plasma since sorting the seed list wasn't worthwhile.
2014-01-16 15:44:56 -05:00
Miauw
6704a9948d Merge branch 'master' of https://github.com/tgstation/-tg-station into dalawisfluid 2014-01-16 19:46:04 +01:00
Rolan7
72ee3703fb Switched to an associative list for the list of discovered plants.
Removed a grown-species lines I had commented out and forgotten to remove.
2014-01-16 03:11:52 -05:00
Rolan7
86c8b8ffa7 Fixes the species property for grown items by removing it (it wasn't being set by slimes or spawn, and was pointless).
Removes some debug lines.
Puts the shuttle timer back to 1200.
2014-01-16 01:20:56 -05:00
Rolan7
e3bdac9a95 Adds a rarity value to seeds. CentComm gives points for rare seeds, and for high-potency samples. 2014-01-15 03:37:10 -05:00
Tenebrosity
7b89ef11f4 Fixes a bug that prevents killing AIs before roundstart 2014-01-13 12:35:30 +13:00
Giacomand
f1e7637bab Disabled the game using set background by making all instances of it use a define, which can be changed in code/_compile_options.dm
Testing has revealed that it reduces the sluggishness of the game, though it will spike from lag when the singularity is loose. Thanks to ChuckTheSheep for suggesting it.

Server owners who want to keep set background enabled can do so by changing the define.
2014-01-10 18:32:28 +00:00
Miauw
67e37bd449 Merge branch 'master' of https://github.com/tgstation/-tg-station into dalawisfluid
Conflicts:
	code/game/objects/items/weapons/AI_modules.dm
	code/modules/research/designs.dm
	maps/tgstation.2.1.2.dmm
2014-01-07 18:18:59 +01:00
Giacomand
0338996b86 * Removes a debug message. 2013-12-23 14:31:19 +00:00
Miauw
758ca4f81c Added a failsafe, default_laws is now a config option. 2013-12-23 13:10:04 +01:00
Giacomand
ceec829294 Tons of typo fixes and renames Centcomm to Centcom. Manual merge of #1950. 2013-12-13 21:14:23 +00:00
ikarrus
8cd9300800 Removed percentages and added a "Did not vote" count for custom votes. (Non-voters get automatically added to status quo option in non-custom votes) 2013-12-08 11:34:12 -07:00
ikarrus
ae4d023b65 All votes have detailed results now. 2013-12-03 20:36:06 -07:00
ikarrus
1df342954a Detailed Custom Vote Results
https://dl.dropboxusercontent.com/u/831776/bossofme.png

Custom vote results will show how many votes each option recieved, and as a percentage of server population.
2013-12-03 08:42:24 -07:00
Kyrah Abattoir
ccc06644a0 /code/controllers/* lowercasing pass. 2013-11-18 02:16:23 +01:00
AlexanderUlanH
1b39fb8268 Fixed the emergency shuttle not autorecalling when it should
Crew, where are you going?  Crew, there's a blob to fight.  Goddamn it,
crew.
2013-11-08 10:17:17 -05:00
AlexanderUlanH
16d17921f9 Cha-cha-cha-changes
Changed the shuttle controller to a datum, changed the appearance of the
labor shuttle, and fixed stackers giving one free stack of each ore.
2013-11-02 17:01:54 -04:00
AlexanderUlanH
87b72833bd Added the labor shuttle 2013-11-02 15:16:39 -04:00
Cheridan
d9fbcbab74 Merge pull request #1647 from Giacom/small_tweaks
Fixed the network vars on the map, for the telecommunication computers. [MAP]
2013-10-28 10:41:18 -07:00
Giacom
fa1d5313ce Merge pull request #1635 from SuperSayu/starlight
Evens out space lighting and prevents space fire/party alarms
2013-10-28 05:56:02 -07:00
supersayu
58b2e7f2a0 Minor lighting optimization
Reduces redundant looping in lighting checks
2013-10-25 16:01:29 -04:00
Giacomand
a756a04eba Fixed the network vars on the map, for the telecommunication computers.
Just small tweaks to basic stuff I found.
2013-10-25 10:46:10 +01:00
supersayu
4883c14257 More modular version of starlight (space lighting) 2013-10-25 00:24:03 -04:00
Aranclanos
bbd1cfd389 -the number of active turfs on the status tab will be refreshed and the end of each tick and when the air controller setup finishes.
-mining rooms will be generated before the air controller is created
-changed the total of moles of the NO2 turfs from 2000 to 6000 to compensate the replacement of the canister that spawns like 36000 moles on top of it for a normal canister. I'm talking about the NO2 canister inside of the chamber in atmos. (I will replace the canister in another pull request)
2013-10-21 20:09:57 -03:00
supersayu
f8575c4767 Evens out space lighting and prevents space fire/party alarms
Adds a dedicated lighting subarea for space turfs, and forces all space turfs to use it.  This evens out irregularities in lighting space turfs ("this empty space is slightly brighter than that empty space") and removes fire and party alarms from space tiles.

For now I have also made space lighting subareas unpowered.  I guess this operates on the theory that the tiles mysteriously teleport power between themselves (along with flashing red lights and party strobes) but it does not work on empty space.
2013-10-21 17:34:41 -04:00
Cheridan
148e36e464 Merge pull request #1590 from Giacom/shuttle_call
Made the emergency shuttle code use the defined times.
2013-10-17 15:46:49 -07:00
Giacomand
646d7596f2 * Made the emergency shuttle code use the defined times.
* Added a SHUTTLEAUTOCALLTIMER define for the auto call.
2013-10-16 08:30:25 +01:00