Coder Social home page Coder Social logo

demostf / demos.tf Goto Github PK

View Code? Open in Web Editor NEW
27.0 2.0 8.0 501.09 MB

The demos.tf frontend

License: GNU Affero General Public License v3.0

Makefile 1.03% HTML 0.74% JavaScript 3.05% CSS 15.29% TypeScript 75.78% Shell 0.10% Dockerfile 1.57% Nix 2.44%
tf2 teamfortress2

demos.tf's Introduction

demos.tf

⚠️ This has been superseeded by demostf/frontend ⚠️

Frontend code for demos.tf, see the api code for the backend.

Api base url

The api is expected to be reachable at the api subdomain of the domain that the site is hosted on, this can be changed in src/config.ts.

Docker image

A prebuild docker image exist in the docker hub.

Building

Node.js and npm are required to build the project.

Using make

For systems with make, a Makefile is provided to ease building, simply running

make

will build the entire project.

Without make

If you don't have make available you can build the project without it.

npm install
node node_modules/.bin/webpack --verbose --colors --display-error-details --config webpack.prod.config.js

Deploying

Since this project only holds static frontend code the webserver only needs to server static files. Besides serving the static content in build/ the server will also need to be configured to server build/index.html for any request to a non existing url.

A sample config for nginx can be found in nginx.conf

Development

For development you can use the webpack development server which will server the site while automatically recompiling any changes made to the source and hot-reloading the changes.

You can run the development server with

make watch

or

node node_modules/.bin/webpack-dev-server --hot --inline --config webpack.dev.config.js

demos.tf's People

Contributors

icewind1991 avatar thebv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

demos.tf's Issues

Unknown packet type 1 just parsed a voiceInit

When I try to view some demos, the loading wheel appears for a while, and then the error screen comes up with the message "Unknown packet type 1 just parsed a voiceInit." I've tried opening them on firefox and chrome on win10, and the same issues occur.

I think it's only happening with demos I attempt to open from my own profile, as opposed to the main page, but I could be wrong.

It's hard to understand who is who in the demo viewer.

It's a bit annoying and hard to follow who is who in some of the games. Let's forget about Highlander, but in 6s some times you just can't be sure who is who. Would it be okay to put the name of every player just above his little class icon?

No run demo

Error- Cannot get 8 bit(s) from offset 8454137, 7 available

2fort and hydro are not supported for the demos

i was playing some phenomenal highlander matches with my friends
and came back to watch the demos
only to find out 2fort and hydro are not supported

y'all are telling me you play competitive 2fort and hydro?
sad.
(you should implement them)

demos failed to upload due to an unknown user not yet set up the profile.

[demos.tf]: This user has not yet set up their Steam Community profile.If you know this person, encourage them to set up their profile and join in the gaming!
I don't know who's the one need to be encouraged. And I don't think it's necessary to upload a demo. Please remove the restrictions...

"TS2769: No overload matches this call." when trying to compile

Trying to build this into a Docker image always results in the following error:

#11 233.2     Type 'true' is not assignable to type 'false | undefined'.
#11 233.2   Overload 2 of 2, '(props: Props<SteamUser, false>, context: any): PlayerSelect', gave the following error.
#11 233.2     Type '(selectedUsers: SteamUser[]) => void' is not assignable to type '(value: ValueType<SteamUser, false>, action: ActionMeta<SteamUser>) => void'.
#11 233.2   Overload 2 of 2, '(props: Props<SteamUser, false>, context: any): PlayerSelect', gave the following error.
#11 233.2     Type 'SteamUser[]' is not assignable to type 'ValueType<SteamUser, false>'.```

Site is offline

The IP for demos.tf ( 217.11.63.41, demostf.fnordserver.net ) is not responding to ping and the site isn't responding.

Not playing Demos

It just isn't wanting to play demos no matter what i do, even if i put in a .json file.

Error 404 upon downloading slightly older and recent demos

Hello. Recently, I tried to download some older STVs from some of my previous teams and found that I can't seem to download them. Upon clicking download, I'm redirected to a "Error 404" page. The demos are from 2020, which does make them old but they aren't ancient history quite yet. I tried to download an STV from 5 days ago to test if it worked, but also got a 404 page. I will post links to the demos I tried to download and attach an image of the 404 page. Thank you for reading and thank you for demos.tf, it's a great service. My friend had the same issue when trying to download these demos.

https://demos.tf/483751 (from 2020)
https://demos.tf/454023 (from 2020)
(https://demos.tf/770603 (random demo from 5 days ago from posting this)
https://demos.tf/773068 (demo from 18 hrs ago from posting this, download works)

404 page I get when trying to download these demos:
404

Map not supported

Hey there,

this is more of a request than Issue since the error message is quite obvious.

"Map not supported "koth_bagel_b4".

I'd like to know if there are plans on implementing these kind of newer maps since they're currently being played on competetive leagues like UGC.

This would make it a lot easier to review maps / have our map talk with our current team.

Demos Not Consistently Uploading

I've had an issue ever since i started my server in May where the demos do not seem to be consistently uploading to the site. There does not seem to be any rhyme or reason as to why they don't upload, but for example... if we scrim 4 maps in a single night, 1-2 of the maps will upload, and the others will not.

I'm not really sure where to begin trying to troubleshoot this. I always wait to change the map until the STV recording is complete message appears in chat.

Icons slightly too high

(First I just wanna mention that this is one of the best things ever made for tf2 imo. So me reporting even minor issues is not to discourage you but just to give you as much feedback as possible.)
I just watched a granary demo and the icons that represent players appear to be a bit higher on the online demo than actually in-game. I don't know if this is only on granary or also on other maps.
Thanks for making this! :D

Gullywash map image is upside down

First of all, phenomenal work @icewind1991. Thanks for making such a useful browser-based demo playback tool.

When reviewing a match, one of my teammates noticed that the Gullywash map image is upside down; RED team appears to spawn on BLU's side, and vice versa. This can be seen in the attached image. (The font issue also shown in the picture happens to me on Chrome and Firefox on Windows 10; I've submitted a pull request to fix this).

gullywash

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.