Commit Graph

661 Commits

Author SHA1 Message Date
Bjorn Neergaard
6005d54d40 Update NanoUI to use the asset_cache system
Also move a bunch of folders around.
2015-11-28 00:56:30 -05:00
Bjorn Neergaard
5f108eef4e Merge remote-tracking branch 'tgstation/master' into nanoui_update 2015-11-27 15:31:35 -05:00
phil235
da0ba3659f Merge pull request #13239 from AnturK/animalbots
Simple Animal Bots - Beepsky strikes back.
2015-11-27 17:37:59 +01:00
duncathan salt
b415e5b3b1 Merge pull request #13202 from KorPhaeron/pod_launch
Fixes pod early launch
2015-11-26 21:19:13 -06:00
Bjorn Neergaard
6a6262d6b2 Finish refactor/retooling of NanoUI core
Also:
* Fix NanoUI on IE11+
* Add missing files (oops!)
2015-11-26 22:17:53 -05:00
KorPhaeron
047c5625ae Removes sanity check 2015-11-26 18:54:59 -06:00
AnturK
e36853d7c9 Convert bots to simple animals - Updated 7.0 2015-11-26 22:06:07 +01:00
KorPhaeron
e275a8745a Removes useless else 2015-11-26 07:46:22 -06:00
Bjorn Neergaard
94e114fee7 Correct several oversights 2015-11-26 07:11:32 -05:00
Bjorn Neergaard
5e9c0adc3b Add NanoUI debug verb
A quick tool that helps me reload templates.
Also refactor NanoUI resource code a bit.
2015-11-26 07:11:29 -05:00
Bjorn Neergaard
4e5edf396a Update NanoUI
* Update NanoUI to the latest version, ported from Baystation12
* Update the Air Alarm UI
* Make changes to subsystems and some machines to make the new NanoUI
work
2015-11-26 07:11:27 -05:00
Kyle Spier-Swenson
ce4c84b5a4 Update master_controller.dm 2015-11-25 22:15:02 -08:00
Kyle Spier-Swenson
62b3c0f77a Fixes a typo in the MC breaking compiling 2015-11-25 15:14:22 -08:00
Kyle Spier-Swenson
6e6f3365e2 Master Controller lag fixes
When the MC is making up missed subsystem fires from lag, it will now only fire that subsystem at most, half of that subsystem's normal fire rate until missed fires are made up, rather than firing as quick as possible making lag worst.

When a subsystem causes byond to miss a byond tick, it will stop processing subsystems and sleep for two extra byond ticks on top of its normal sleep rate.

When the cpu is above 80%, the MC will also sleep for twice as long between ticks (stacks with the change above)

The processing interval of the MC is now capped to a lower bound of two byond ticks or 1ds, whatever is lower.

Dwait now scales with the cpu usage var. 10% cpu adds 10% extra to dwait, 50% cpu adds 50% extra to dwait, etc.
2015-11-25 15:06:50 -08:00
Razharas
e0508ad572 Merge pull request #13050 from MrStonedOne/connectlagfixthankspjb
[Ready] Fixes the 2 minutes of interface lag (such as ready button not working) when a client connects.
2015-11-25 20:43:45 +03:00
KorPhaeron
a9d04a471d Sanity checks 2015-11-25 07:57:49 -06:00
MrStonedOne
ca4f4201e7 Asset Cache improvements!
Adds crew monitor to the asset cache system
Adds paper to the asset cache system

Added a way to send files to the client slowly without clogging up the queue. (This isn't technically "safe", but the client would only have issues if they didn't have that file already (rare), and only if they used a window that needed that asset (currently only nanoui windows) within the first 15 to 90 seconds of connecting (depending on ping))

Makes NanoUI use this slow send system to blindly send it's asset files. (Once bay's nanoui is ported, i'll improve this so that nanoui fully implements asset cache checking)

Makes asset cache use this system to send all registered asset files, so that ui windows don't have to wait for them if the client's been connected a while.
2015-11-25 02:11:04 -08:00
KorPhaeron
0b628575da Fixes pod launch 2015-11-24 20:12:21 -06:00
KorPhaeron
c04d80f5be Fixes 2015-11-24 08:37:47 -06:00
KorPhaeron
defc1ca2e9 Early pod launch 2015-11-23 17:45:35 -06:00
Cheridan
4c899d2b34 Merge pull request #13063 from Incoming5643/subtypesof
Adds subtypesof(path)
2015-11-19 16:31:09 -06:00
Incoming
1f9f0dfc40 Adds subtypesof(). It's shorthand for typesof(path) - path.
Replaces typesof(path) - path with subtypesof(path) in obvious places. I was a bit conservative, there's probably a few more places that could use this.
2015-11-16 18:55:57 -05:00
MrStonedOne
c784ca902e Ports /vg/'s asset cache system; lowers interface lag when clients connect.
Byond will queue all browse(), browse_rsc(), and winset() calls to the client, to ensure they load in order, and ensure any resources from a browse_rsc call (css/html/js) are already at the client by the time any html windows loads.

How ever, each file is processed separately, and byond will wait for the reply from the client before it will send the next file.

Our current system sends all of these html resource files to the client at once when they connect, this is the sole cause of the lag when a client connects. Byond will not send the client a file it already has, but it has to ask the client first, and it does so one file at a time, waiting for a reply from the client before sending the next one down the pipe.

This system fixes that.

Basically it works like this:
Client connects: nothing happens, no massive queuing of browse_rsc() calls, so no interface delay
Client opens a asset_cache controlled html based interface
Asset cache gets notified by the html based interface what assets the client needs to have.
Asset cache checks to see if it's sent that client those files.
Asset cache sends the missing ones, adding them to the list of assets the client has.

This basically spreads out the delay to when you first open a window that uses resources, where it is much more manageable.

I've kinda done a halfass port without too much thought, I see some room for improvement to better fit /tg/'s coding style and make the system more flexible. I'm PRing this because if I don't, it will never get finished.

PDAs and html_interface has been imported in to the new system lazily to test. at 100ms connection start interface lag went from 35 seconds to 16 seconds. Nanoui hasn't been imported, and once it is, that should drop down to almost nothing.

I'll work on this some more after some sleep.
2015-11-15 23:49:05 -08:00
Incoming
f976a2ac1b too late I already found a different way to do this that's equally as unobjectionable 2015-11-15 12:41:17 -05:00
Incoming
1e2892bf31 There is now a config list in game_options.txt of which races should be playable at roundstart.
If the list is missing, it will default to which races are defined as roundstart in the species datums. Plasmamen have been removed from this list pending bugfixes.

If JOIN_WITH_MUTANT_RACE isn't set in config, humans only will still be enforced regardless.
2015-11-14 22:27:55 -05:00
Cheridan
065807eca8 Merge pull request #12986 from Yolopanther12/master
Adding Clonepod to Supply Blacklist, Fixes #12979
2015-11-13 08:29:20 -06:00
Cheridan
74529129ed Merge pull request #12984 from tkdrg/replaceTHIS
Fixes cargo manifest access restriction display
2015-11-12 23:54:45 -06:00
Yolopanther
d2bb41d581 Missnig Comma
Hey I found that comma that makes it all work. Should compile now.
2015-11-11 21:51:58 -08:00
Yolopanther
319b57004c Adding Clonepod to Supply Blacklist
Added clonepod to the supply shuttle blacklist, fixing issue #12979
2015-11-11 21:45:07 -08:00
Tkdrg
236e5cf86b Fixes cargo manifest access restriction display
Why use replacetext with no arguments? I have no idea.
This wasn't runtiming because of the bygex stuff I guess.
Thanks octareroon91 for reporting this to me ingame.
2015-11-12 02:14:35 -03:00
phil235
7af0715f7d Fixes Escape Shuttle sound being too loud. 2015-11-11 21:55:21 +01:00
duncathan salt
15c7d1f356 Merge pull request #12743 from Xhuis/maybe_theyll_find_out_where_the_other_sound_came_from_too
Causes the emergency shuttle to play sounds upon launch and dock
2015-11-11 10:25:37 -06:00
Tkdrg
8fce742d0a Merge remote-tracking branch 'upstream/master' into fuk
Conflicts:
	data/mode.txt
	icons/mob/mob.dmi
	icons/mob/suit.dmi
	icons/obj/clothing/gloves.dmi
	icons/obj/clothing/hats.dmi
	icons/obj/clothing/shoes.dmi
	icons/obj/clothing/suits.dmi
2015-11-07 15:56:39 -03:00
Xhuis
196a697f5a c 2015-11-04 21:27:44 -05:00
Xhuis
e553447f65 More optimization 2015-11-04 21:26:47 -05:00
Xhuis
2199d7c4d1 Makes sounds more optimized (I guess...) 2015-11-04 21:25:12 -05:00
Tkdrg
e2187614fd Merge remote-tracking branch 'upstream/master' into hog-mergeconflicts
Conflicts:
	code/__DEFINES/hud.dm
	code/__HELPERS/game.dm
	code/_onclick/hud/_defines.dm
	code/_onclick/hud/hud.dm
	code/game/gamemodes/antag_spawner.dm
	code/game/gamemodes/game_mode.dm
	code/game/machinery/turrets.dm
	code/modules/client/preferences_toggles.dm
	code/modules/events/alien_infestation.dm
	code/modules/mob/dead/observer/observer.dm
	code/modules/mob/living/carbon/alien/special/alien_embryo.dm
	code/modules/mob/living/simple_animal/revenant/revenant.dm
	icons/mob/back.dmi
	icons/mob/head.dmi
	icons/mob/hud.dmi
	icons/mob/inhands/items_lefthand.dmi
	icons/mob/inhands/items_righthand.dmi
	icons/mob/mob.dmi
	icons/mob/suit.dmi
	icons/obj/clothing/hats.dmi
	icons/obj/items.dmi
	icons/obj/projectiles.dmi
	icons/obj/storage.dmi
2015-11-02 01:06:30 -03:00
Kyle Spier-Swenson
d704f37480 Fixes indenting in EquipRank 2015-11-01 12:56:02 -08:00
Kyle Spier-Swenson
7b0a04e28f Makes round start spawn code more robust
For finding a spawn point, it will now use this logic to find a spawn point, stopping at the first one it finds

Empty job spawn point
Filled up job spawn point (spawning them on top of eachother if it can't find enough spawn points)
Late join spawn point
Random tile in the arrivals shuttle area.

If it hits either of those two final points it will pop a message in the runtime log.
2015-11-01 12:29:28 -08:00
Cheridan
3e3aa2ee9f Merge pull request #12748 from MrStonedOne/sweetsweetdimlight
[Pretty Pictures!] [map] Makes starlight have far spreading low levels of light rather than near spreading high levels of light.
2015-10-31 22:22:39 -05:00
MrStonedOne
8c755da84f Adds a way to make certain area/space areas not force 100% brightness 2015-10-31 02:30:49 -07:00
Xhuis
ade342d2c4 Adds new sounds, courtesy of Cuboos 2015-10-30 17:24:18 -04:00
Xhuis
35041034d9 Hyperdrive sounds 2015-10-29 22:38:35 -04:00
MrPerson
d575219887 Refactor mob movement delay calculation
Basic premise: Get all mob movement delays calculated in movement_delay() instead of having half of them in Client/Move(). Except for the slowdown from grabbing, which is so shit I can't even. The idea here is to eventually have the AI movements be at the same speed as client-initiated ones.

Let's try this again: Removes TickComp because it's a useless pile of shit that's based on a false idea of how BYOND's ticks and tile-based movement work.
2015-10-29 05:15:41 -07:00
MrStonedOne
4f652da4bd Adds a config option for the round end restart delay.
This should enable more murder death kill at round end before the next round starts.
New servers will default to 90 seconds while old servers will default to the old 25 seconds until they import the config option to their server.
2015-10-26 05:04:43 -07:00
Vincent
de68ad1085 Security officer scaling is altered.
Previously, security officer scaling was between 5-12 no matter what was configured.
Now, security officers will have (spawn positions)-12 spawn and total position slots.
This can be set in jobs.txt or admin set through the jobs controller while in the lobby.
This is only used when officer scaling is set.

Also, the number of extra security equipment closets spawned is relative to the number of total job positions configured, with or without officer scaling.  Previously if officer scaling was not set, no additional closets could spawn.

Adds myself to admins.txt after like 3 years of contributing
2015-10-24 21:05:06 -04:00
Vincent
3e6f641ec3 Should fix loading from jobs.txt
The jobs controller's list of occupations was reset during roundstart which completely undid that whole load from file thing.  It also would have undone any admin edits done while sitting in the lobby.

Also fixed a couple instances where people thought that lists get copied with the = operator instead of passing by reference.
2015-10-24 19:46:44 -04:00
oranges
f570aa6410 Move autoadmin to a protected config datum
This prevents any admin with permission to debug controller being able to edit this setting
2015-10-20 14:42:21 +13:00
Razharas
e989a0fbc4 Merge pull request #12290 from AnturK/freeadmin
Autoadmin Config
2015-10-19 21:50:01 +03:00
Jordie0608
2ad2cc83e7 Merge branch 'master' of https://github.com/tgstation/-tg-station into thetitanichadabettersafetyrecordthannanotrasen
Conflicts:
	_maps/map_files/DreamStation/dreamstation04.dmm
2015-10-18 17:27:24 +11:00