Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote resources support. #860

Merged
merged 1 commit into from Jul 4, 2013
Merged

Remote resources support. #860

merged 1 commit into from Jul 4, 2013

Conversation

ghost
Copy link

@ghost ghost commented Jun 26, 2013

There is now a PRELOAD_RSC define in code/_compile_options.dm. Setting it to 0 will allow you to use on-the-fly rsc downloads, or the new remote rsc features.

Normally (PRELOAD_RSC == 1) the game will send you all the resources for the game that existed at compile time, this is the long-delay before joining the game...but it means that the game isn't sluggish later on due to trying to download icons and such. Which is good, but uses a lot of bandwidth.

On-the-fly behaviour (PRELOAD_RSC == 0) is when the game only downloads icons when you see something for the first time...this is often responsible for things being briefly invisible on slow connections.

Remote RSC behaviour (PRELOAD_RSC == 0 and some urls defined in config/external_rsc_urls.txt), is a mixture of the two above behaviours. It allows you to connect without downloading lots of resources immediately. However, once you connect it will select a url from a list of urls which hold zipped up copies of the tgstation.rsc. This allows the load of downloading those large files to be distributed across a few cheap web-servers or free upload sites...whilst the main game-server is freed up for other stuff. Should preloading from a remote url fail, behavior will revert to on-the-fly.

There is now a PRELOAD_RSC define in code/_compile_options.dm. Setting it to 0 will allow you to use on-the-fly rsc downloads, or the new remote rsc features.

Normally (PRELOAD_RSC == 1) the game will send you all the resources for the game that existed at compile time, this is the long-delay before joining the game...but it means that the game isn't sluggish later on due to trying to download icons and such. Which is good, but uses a lot of bandwidth.

On-the-fly behaviour (PRELOAD_RSC == 0) is when the game only downloads icons when you see something for the first time...this is often responsible for things being briefly invisible on slow connections.

Remote RSC behaviour (PRELOAD_RSC == 0 and some urls defined in config/external_rsc_urls.txt), is a mixture of the two above behaviours. It allows you to connect without downloading lots of resources immediately. However, once you connect it will select a url from a list of urls which hold zipped up copies of the tgstation.rsc. This allows the load of downloading those large files to be distributed across a few cheap web-servers or free upload sites...whilst the main game-server is freed up for other stuff. Should preloading from a remote url fail, behavior will revert to on-the-fly.
@Giacom Giacom merged commit 26957f5 into tgstation:master Jul 4, 2013
@Giacom
Copy link
Contributor

Giacom commented Jul 4, 2013

Merged.

LemonInTheDark pushed a commit to LemonInTheDark/tgstation that referenced this pull request Dec 12, 2021
* Fix Genturf on Icebox (tgstation#61680)

* Fixes an icebox underground genturf issue

Co-authored-by: NamelessFairy <40036527+NamelessFairy@users.noreply.github.com>
LemonInTheDark pushed a commit to LemonInTheDark/tgstation that referenced this pull request Mar 12, 2023
* Panic Bunker: Discord Requirement (hrzntal/horizon#852)

* Initialize new branch

* Add Panic Bunker feature: Requiring linked Discord accounts

Basically reused the Discord accountlink and notify subsystem, which large parts of got removed, and added checks to player connections to validate if they have a linked discord account in the DB

This obviously wont work without a DB, or without a bot or other backend on Discord to complement setting the ID and checking validity

Author:    Alex 'Avunia' Takiya <6952402+atakiya@users.noreply.github.com>
Date:      Mon Apr 18 04:05:14 2022 +0200

* Span fixes

* Fix up Discordlink system, SQL cleanup (tgstation#860)

Fixes the discordlink system and cleans up queries to be more performant (and actually correct)

Changes the discordlink model, queries and result -> model associations to be inline with the DB schema instead of nonsense

Changes panic bunker living minutes defaults to be -1, which means nothing gets blocked. This is currently a stopgap to make the discord module of the PB work and should be properly fixed at a later point.

* Hopefully this deals with players getting kicked before they get verification info

* Clean up code

* Apply suggestions from code review

Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com>

* fix code/modules/discord/discord_sql_functions.dm

* Fix duplicate SQL records

* Update code/modules/discord/discord_sql_functions.dm

Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com>

* Update code/modules/discord/discord_sql_functions.dm

Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com>

* Update code/modules/discord/discord_sql_functions.dm

Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com>

Co-authored-by: Alex 'Avunia' Takiya <6952402+atakiya@users.noreply.github.com>
Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant