Commit Graph

28 Commits

Author SHA1 Message Date
carnie
1ef5d3361c Resolves #3947 - Fires can now spread on shuttle turfs (and all simulated turfs). However, fires will not burn non-turf/simulated/floor 2015-01-11 00:11:22 +00:00
carnie
a029a49392 SubSystem rewrite
Misc:

+Fixes unreported issue with initializing lighting on a specific zlevel

+Fixes two similar issues with moveElement and moveRange. Where fromIndex or toIndex could be adjusted incorrectly in certain conditions. Potentially causing bad-sorts, or out of bound errors.

+Rewrites listclearnulls(list/L) to no longer iterate through L.len elements for every null in the list (plus 1). i.e. went from L.len*(number_of_nulls+1) list-element reads (best-case), to L.len list-element reads (worst-case)

+New proc/getElementByVar(list/L, varname, value) which finds the first datum in a list, with a variable named varname, which equals value. You can also feed it atoms instead of lists due to the way the in operator functions.

+Fixes an unreported issue with Yota's list2text rewrite. Under certain conditions, the first element would not be converted into a string. Causing type-mismatch runtimes.

+New global map_ready variable. This is not fully implemented yet, but will be used to avoid duplicate calls to initialize() for map objects.

+All turfs now maintain references to all lights currently illuminating them. This will mean higher memory use unfortunately, due to the huge number of turfs. However, it will speed up updateAffectingLights significantly. I've used list husbandry to reduce baseline memory usage, so it shouldn't be any worse than some past atmos modifications memory-wise.

-Removed 'quadratic lighting', can add this back at some point. Sorry.

+modified the way lum() works slightly, to allow turfs to have overridden delta-lumen. i.e. space cannot be illuminated more than its default ambiance. This allowed removal of some iffy special-snowflake lighting areas implemented by somebody else.

+Lighting images in the dmi can now use arbitrary naming schemes. It is reliant on order now. This allows the dmi to be replaced by simply dropping in a new dmi.

-Removed all subtypes of /area/shuttle. Shuttles now create duplicate 'rooms' of /area/shuttle. (More on this later). This will conflict with most maps. Guide on how to fix to follow.

+All verbs/tools relating to world.tick_lag were refactored to use world.fps. However old config text for setting tick_lag will still work (it converts the value to fps for you)

+MC stats improved using smoothing. They now have their own tab so they dont get in the way when you're playing as an admin.

-removed the push_mob_back stuff due to conflicting changes. Sorry Giacom.

_OK, NOW THE ACTUAL INTERESTING STUFF_

Following systems moved over to subsystem datums:
air_master
garbage_manager
lighting_controller
process_mobs (aka Life())
nanomanager
power
sun
pipenets
AFK kick loops
shuttle_controller (aka emergency shuttle/pods), supply_shuttle and other shuttles
voting
bots
radio
diseases
events
jobs
objects
ticker

Subsystems hooks and variables should be commented fairly in-depth. If anything isn't particularly clear, please make an issue.

Many system-specific global variables have been refactored into

All tickers which previously used world.timeofday now use world.time

some subsystems can iterate before round start. this resolves the issue with votes not working pregame
2014-12-31 13:25:41 +00:00
Aranclanos
21f00b98c6 Fixes LINDA not properly activating turfs who are next to unsimulated turfs with differences (space turfs are unsimulated)
Fixes turfs losing air too slow next to space turfs when the adjacent turfs number is low.
2014-11-05 14:54:29 -03:00
phil235
dbea503e88 Removing the fourth argument (air_group) of CanPass() everywhere, because it isn't used anywhere.
Fixing one instance of "for(mob in viewers) show_message()" to "visible_message()"
2014-10-15 18:03:06 +02:00
Firecage
9ea09fe63c Spanclasses for files in the Linda, mecha, Turfs folders 2014-08-23 10:48:10 +02:00
Aranclanos
64b6f820a5 Firespots will GC properly now, firefighting won't lag the server. 2014-08-13 08:36:23 -03:00
Aranclanos
ca67aeb3aa Added more stuff to the status panel for admins, air related, these are only temporal (hehehe) 2014-04-17 21:37:06 -03:00
AnturK
5dccede8cf Fix for freezing plasma from chemistry 2014-03-31 22:09:21 +02:00
Mloc-Hibernia
8af8a43d6f Initial pass to convert LF to CRLF
Signed-off-by: Mloc-Hibernia <colmohici@gmail.com>
2014-03-24 08:53:40 +00:00
Aranclanos
da13c64f3b Removes a now useless var from the atmos excited groups and makes hotspots use the correct proc to reset the breakdown cooldown 2014-03-06 06:14:01 -03:00
Aranclanos
ea5ec6aec2 Some changes to Linda, self_compare() removed and added N2O to the air group merge.
Once the air group gets to the 20 ticks with no big changes, it will dismantle itself with no compares. At the 10 ticks the group will still merge itself.
2014-03-03 01:29:42 -03: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
Aranclanos
25129039c0 The speed variable of Linda now is a lot prettier 2013-12-21 22:42:35 -03:00
Aranclanos
213f3fff31 Some fixes for Linda, now the Move() proc of objects that block air is different. Example below.
object/Move()
   var/turf/T = loc
   ..()
   move_update_air(T)
2013-12-19 22:13:21 -03: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
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
799c7ad2ce Replaces atom/HasEntered() with the builtin atom/movable/Crossed()
Crossed() is a byond builtin which is called automatically when two movable atoms overlap (as a side effect of Move(), but not when loc or x/y/z is changed).  Previously, turf/Entered() iterated through all objects in the turf in order to tell them an object had entered; with this change, HasEntered() becomes redundant and can be eliminated.

This may reduce lag when a large number of objects are moving in a small space (singularity, mining conveyors, etc) but should cause no changes to functionality at all.
2013-10-23 16:20:20 -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
Aranclanos
d062009a6e Merge pull request #1507 from Giacomand/napalm
Napalm works again, which fixes incendiary grenades.
2013-10-06 17:01:46 -07:00
Giacomand
ef41ccf5da * Removed SPAWN_COLD 2013-10-07 00:55:52 +01:00
Giacomand
d36535a433 * Removed the spawn fuel option. 2013-10-07 00:20:35 +01:00
Giacomand
6ef330ec3e * Made frostoil use SPAWN_COLD when used on a turf. 2013-10-06 00:41:40 +01:00
Giacomand
3b667227e5 * Made atmos_spawn_air() use flags.
* Replaced "fire" with SPAWN_HEAT. You will have to use it in conjunction with SPAWN_TOXINS to spawn fire.
 * Added flags for HEAT, COLD, TOXINS, OXYGEN, CO2, NITROGEN, N2O, FUEL and AIR.
2013-10-06 00:29:45 +01:00
Giacomand
f6e62cd830 * Napalm works again, which fixes incendiary grenades.
* Stopped the fuel and n20 option, in spawn_air, from runtiming.
 * Added toxins as a spawn_air option.
 * Removed all use of the fuel option and replaced it with toxins, since fuel does not work with LINDA anymore.
2013-10-05 23:06:24 +01:00
Ergovisavi
13d953121d Tweaks for atmos fire and mob interactions
-Hot air is less lethal
-Fire is more lethal
-Catch on fire when entering a hotspot but fire_stacks given dropped to 0.5 each
-You now light up your environment while on fire
2013-10-05 10:40:28 -07:00
supersayu
9c69807029 Adds a fix for 2x1 (glass_large) airlocks.
These doors didn't work previously, as the bound width needs to be set properly.  Additionally, LINDA was tweaked to properly update in the case of multitile objects such as this door (actually this door is the only such, currently, but if more doors or other multi-tile objects are added, this will help)

Note that until #1206 is merged, this door has a blind spot where you cannot click it because you are not in range of the leftmost tile; old click code only uses the canonical location (loc), meaning the right tile is not counted for range checks.
2013-08-29 19:47:25 -04:00
Aranclanos
a4c8196388 Removes the debug images from Linda 2013-08-18 19:22:50 -03:00
Aranclanos
0ce01d1583 Adding Linda. 2013-08-10 06:15:14 -03:00