summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tileweb.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix non-debug & webtiles compilationNicholas Feinberg2014-08-141-0/+1
|
* Make colour-swapping work in webtiles (#8271)Neil Moore2014-07-311-3/+3
| | | | | For now this affects all watchers, but it would probably make more sense to make it a client-side option instead.
* Remove stuffNicholas Feinberg2014-07-291-1/+1
| | | | | | | .cc, moving its contents into the new stepdown.cc and strings.cc. (The latter also got many donations from libutil.h.) Down with stuff! Up the new flesh!
* Modify webtiles socket timeouts, simplify.Neil Moore2014-07-061-22/+13
| | | | | | We were accidentally starting out with five-second waits in webtiles then scaling down to 500 ms; that was backwards. Also use the longer 500 ms timeouts for ENOBUFS, etc., not just EAGAIN.
* Halve displayed SH values (crate)Nicholas Feinberg2014-06-031-1/+2
| | | | | | | | | | | So that shield enchantments are back to giving 1 (displayed) SH, and SH generally is somewhat more in line with AC/EV; 1 SH should be very roughly as good as 1 EV, against things they affect. This also tweaks the 'bone plates' mutation slightly, for rounding reasons; the first level is buffed very slightly, and the third is very slightly nerfed.
* Melt away lava orcs.Steve Melenchuk2014-05-141-0/+4
| | | | | | | | | | | | | | | | When you strip away the fundamentally broken tension mechanic, you're left with a species that is essentially "Hill Orcs WITH FIRE". No effort has come forward with code to fix either aspect of them despite the length of time they've been around in trunk, and the code is littered with a very large number of special cases in their presence. Current lava orcs should be able to finish their games fine, but new starts are disallowed. There are a couple of bits I've left present but which will have no function for the moment, mostly related to interactions with lava (as there are a couple of species proposals floating around that benefit from having those interactions).
* Webtiles: Try to deal better with EAGAIN.Florian Diebold2014-05-091-3/+8
| | | | | This happens a lot on CAO. Allow more attempts, and increase the wait time after the first few.
* Gozag: gold lust.Steve Melenchuk2014-05-071-0/+3
| | | | | Fighting near the gold piles of recently-defeated enemies boosts your skills.
* Let @ (and lua) display negative values for poison_survival().elliptic2014-04-071-1/+1
| | | | | So that players have a way of guessing whether heal wounds might be enough to survive.
* Make the hp bar show the deterministic poison in WebTilesgammafunk2014-03-181-0/+10
| | | | | | | This adds an yellow hp poison bar to the WebTiles display ("stats_hp_bar_poison") that's show when the player is poisoned and their calculated hp after poison expires is lower than their current hp.
* Call _send_options after _send_version on spectator join.Pekka Lampila2014-03-061-1/+1
|
* Fix sending inventory item colour if name didn't change.Pekka Lampila2014-03-061-9/+6
| | | | Most notably cursing an artefact weapon didn't update the HUD.
* Fix non-ASCII text and inscriptions.Neil Moore2014-03-041-1/+1
| | | | | | Maybe we should be using iscntrl() instead of comparing against 0x20, but at the very least we shouldn't treat all non-ASCII UTF-8 bytes as control characters.
* Use json_write_string for glyphs, instead of duplicate code.Pekka Lampila2014-03-031-11/+3
|
* Escape all control codes in write_message_escaped.Pekka Lampila2014-03-031-2/+6
|
* Remove djinn.wheals2014-02-241-0/+7
| | | | | | | Djinn games can't be started (hopefully including using the rcfile), and djinn code should be removed on save-compat bump. Also, schedule a few SE things to be removed.
* Fix item colours not being sent with a full update.Pekka Lampila2014-02-111-1/+1
|
* Include a link to character dump/morgue in exit game dialog.Pekka Lampila2014-02-051-0/+11
|
* Display a dialog on WebTiles after the game ends.Pekka Lampila2014-02-051-0/+15
| | | | | For players this is displayed in a case of a crash/error/unexpected end. For watchers the dialog is displayed regardless of how the game ended.
* Drop some useless parentheses around comparisons.Adam Borowski2014-01-101-9/+9
|
* Drop double newlines where they seem to serve no purpose.Adam Borowski2013-12-211-7/+0
| | | | | Sometimes, they're there to emphasize a break between two sections of code, which is good. In a majority of cases, though, they're just inconsistent.
* Retry sending to WebTiles socket on EINTRPekka Lampila2013-12-181-1/+1
|
* Reference mcache entries used by WebTilesPekka Lampila2013-12-171-1/+37
| | | | | This should fix #6644 which was caused by mcache entry being destroyed and a new one made with the same number between updates.
* Support show_game_turns in WebTilesPekka Lampila2013-12-141-0/+3
|
* Send some rc file options to the WebTiles clientPekka Lampila2013-12-111-0/+17
| | | | | | | | | | | | Player's options are always sent on the game start, by the process itself. They are also sent to any joining spectators. Spectators also receive their own config which is generated by running --print-webtiles-options. Also added a simple options module to JavaScript. Since all the options are received on game start the code can assume that the values are always there and have been validated by the server side code.
* Trim some extra spaces (ChrisOelmueller)Neil Moore2013-12-081-2/+2
| | | | | | Maybe the argp was supposed to line up with the next line, but that seems silly, and is inconsistent with the majority of our uses of va_list.
* Add send timeouts to game<->webtiles server socketPekka Lampila2013-12-071-13/+35
| | | | | If timeout is hit, the game is killed/stopped. But at least it shouldn't deadlock the whole server.
* Fixed use of arrows and other special keys in OS X versions of webtiles.Kyle Fox2013-12-061-1/+1
| | | | | The code was written assuming wint_t's are unsigned and therefore positive if not 0. This is not necessarily true for all environments.
* Fix a crash when running a webtiles server in OS X.Kyle Fox2013-12-061-3/+4
| | | | | | | | | | | | Fixes #6083. The crash would occur when sending datagrams from crawl to the python webserver. In OS X, there is very little space in memory to send datagrams and drawing menus such as the list of commands would exceed this memory. The crawl process would then die after receiving too many ENOBUFS errors from sendto. ENOBUFS will still occur unless we add artifical sleeps to the datagram sending loop. Sleep responses to ENOBUFS have been changed to reduce the lag this causes.
* More formatting fixes for return (...);Neil Moore2013-11-151-1/+1
|
* Remove moths of suppressionChris Campbell2013-11-111-3/+0
| | | | | | | | | | | Suppression is a hugely complicated and inconsistent mechanic. Its original purpose was to be a way of overriding rPois in Spider but there are now plenty of monsters that do this effectively (and much more simply). [1KB: I moved this to trunk, as it made an already extremely hard to review branch massively more so. There's nothing but a single enum to preserve, so compat break doesn't make this removal any easier or harder.]
* Revert "Only send the game state to the joining spectator"Pekka Lampila2013-10-181-7/+3
| | | | | | | | | | | This reverts commit 06ee7f8badf1e19f333e918a572bafb5a23317f8. Conflicts: crawl-ref/source/webserver/process_handler.py crawl-ref/source/webserver/ws_handler.py My approach here was flawed, and joining spectators could cause glitches for the player and existing spectators.
* Use a finer scale for magic contamination.Raphael Langella2013-08-161-4/+4
| | | | | | | | | | | | It's now updated every turn instead of every 20 turns and it's almost deterministic (only the time scaling use randomized rounding). The bad effects still happen every 20 turns though (just like hell effects and other stuff). It has been scaled by 1000. I tried with 100, but I still had some significant rounding issues, especially with scaling to time_taken. It shouldn't be possible anymore to gain yellow glow from a single cast of invisibility even at max power. Although, in theory, it has a slight chance of putting you just 1 point short of yellow (4999).
* Fix webtiles compilation.Neil Moore2013-07-281-1/+1
| | | | | | The change of player_under_penance from returning a bool to an int broke a template instantiation that required two arguments to be the same type.
* Refactor 'you.religion' checks.Brendan Hickey2013-07-281-4/+4
| | | | | Pull 'you.religion [!=]= FOO' checks into a function: you_worship(FOO). This change is part of a large plan to clean up religion.
* Fix the minibar bug on WebTiles tooPekka Lampila2013-06-281-0/+6
| | | | Minibars showing on levels when player isn't there.
* Only send the game state to the joining spectatorPekka Lampila2013-06-041-3/+7
| | | | | | Previously on WebTiles spectator join everyone would receive messages for the current game state. Now these messages are only sent to the joining spectator.
* Fix lava orc heat aura in Webtiles.Florian Diebold2013-05-301-1/+1
|
* Plug a small Webtiles information leak (mumra).Florian Diebold2013-05-301-1/+10
|
* Send correct max hp for Djinni to the webtiles client.Florian Diebold2013-05-301-3/+10
|
* Use temperature() to do int conversionPete Hurst2013-05-301-1/+1
|
* Send contam/temperature to webtiles client for Djinn/Lava OrcPete Hurst2013-05-301-1/+6
|
* Merge branch 'master' into lava_orcsAdam Borowski2013-05-291-36/+84
|\
| * Prevent a potential Webtiles bug.Florian Diebold2013-05-251-1/+2
| | | | | | | | | | This wouldn't be a problem with the flags cloud tiles can currently have, but it's better to be sure.
| * Implement the cloud overlay in Webtiles.Florian Diebold2013-05-251-0/+5
| |
| * Fix a warning and a whitespace error.Steve Melenchuk2013-05-061-1/+1
| |
| * Fix a problem with Webtiles formatted_scroller handling.Florian Diebold2013-05-061-1/+6
| | | | | | | | | | | | | | | | The webtiles_write_menu call in formatted_scroller::jump_to could happen before the menu was sent, which would then result in two menus on the client side. This was revealed by the message combining changes, because the two menus would both be in the same message and the second would be ignored by the client before.
| * Simplify.Neil Moore2013-05-031-8/+4
| |
| * Make sure to crash properly if a write_message vsnprintf fails.Florian Diebold2013-05-031-2/+4
| |
| * Combine WebTiles messages and send them togetherPekka Lampila2013-05-011-0/+11
| | | | | | | | | | | | Idea being avoiding lag caused by TCP ACK etc. Crawl process provides messages like always, but also sends a special flush message to the WebTiles server that causes them to actually be delivered.