Facepunch / garrysmod-requests

Feature requests for Garry's Mod
85 stars 24 forks source link

Static web file serving - whitelist .html, .css, .js #1575

Open nykez opened 4 years ago

nykez commented 4 years ago

The possibility to to serve static web files across FastDL, or steam's workshop. (whitelist .html, .css)

~With Chromium coming around the corner~, more creators will exploring new possibilities in web design in games. As I have myself and don't find it practical to have large [[ html strings ]] or to load html/css from a external website.

The html folder and DHTML already allows assets to be loaded using asset:// why not allow servers to serve html files here?

Thanks.

meepen commented 4 years ago

Also .js but it might be weird since windows still considered those to be jscript

Tripperful commented 4 years ago

If only we had an embedded HTTP server inside of gmod server...

unknown-gd commented 1 year ago

I agree, why not just allow .html, .css and .js to be written to data and/or gma, it would greatly improve the gui situation in the game and allow new and existing developers to make beautiful user interfaces much faster, and if upgrade outdated Awesomium and half dead Chromium to Steam HTML Surface we can talk about an interface like in s&box.

unknown-gd commented 1 year ago

Actually if we talk about web development I think it would be great to allow writing .gif files, yes the game through Matetial or any other functions will not display them correctly, but the web will be able to do this, imagine beautiful, animated and modern user interfaces in Garry's Mod.

meepen commented 1 year ago

The problem with Stan HTML surface is that it has steam tokens logged into it automatically, which allows people to just take your steam account and do whatever to anyone that joins

On Sat, Oct 21, 2023, 3:05 AM PrikolMen:-b @.***> wrote:

I agree, why not just allow .html, .css and .js to be written to data and/or gma, it would greatly improve the gui situation in the game and allow new and existing developers to make beautiful user interfaces much faster, and if upgrade outdated Awesomium and half dead Chromium to Steam HTML Surface we can talk about an interface like in s&box.

— Reply to this email directly, view it on GitHub https://github.com/Facepunch/garrysmod-requests/issues/1575#issuecomment-1773699474, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPGKSMTIJWRC6LXQBAR7BTYANX3BAVCNFSM4MQTICPKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZXGM3DSOJUG42A . You are receiving this because you commented.Message ID: @.***>

meepen commented 1 year ago

Steam*

On Sun, Oct 22, 2023, 4:16 AM Meepen @.***> wrote:

The problem with Stan HTML surface is that it has steam tokens logged into it automatically, which allows people to just take your steam account and do whatever to anyone that joins

On Sat, Oct 21, 2023, 3:05 AM PrikolMen:-b @.***> wrote:

I agree, why not just allow .html, .css and .js to be written to data and/or gma, it would greatly improve the gui situation in the game and allow new and existing developers to make beautiful user interfaces much faster, and if upgrade outdated Awesomium and half dead Chromium to Steam HTML Surface we can talk about an interface like in s&box.

— Reply to this email directly, view it on GitHub https://github.com/Facepunch/garrysmod-requests/issues/1575#issuecomment-1773699474, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPGKSMTIJWRC6LXQBAR7BTYANX3BAVCNFSM4MQTICPKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZXGM3DSOJUG42A . You are receiving this because you commented.Message ID: @.***>

unknown-gd commented 1 year ago

The problem with Stan HTML surface is that it has steam tokens logged into it automatically, which allows people to just take your steam account and do whatever to anyone that joins On Sat, Oct 21, 2023, 3:05 AM PrikolMen:-b @.> wrote: I agree, why not just allow .html, .css and .js to be written to data and/or gma, it would greatly improve the gui situation in the game and allow new and existing developers to make beautiful user interfaces much faster, and if upgrade outdated Awesomium and half dead Chromium to Steam HTML Surface we can talk about an interface like in s&box. — Reply to this email directly, view it on GitHub <#1575 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPGKSMTIJWRC6LXQBAR7BTYANX3BAVCNFSM4MQTICPKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZXGM3DSOJUG42A . You are receiving this because you commented.Message ID: @.>

Isn't there any way to disable/limit this?

darkfated commented 1 year ago

There is a great need for this. And if there is a built-in HTTP server in addition, you will have a real victory monster. This will move the game to a new level almost from s&box in terms of writing the visual component, and coders will be able to study and give the game a new breath. But in words this is good, the question is already in implementation. It is unlikely that Rubat, who was given Gmod, even with all the knowledge, will be able to do this 1

garryspins commented 1 year ago

Yea i doubt he can do it too, id love to see him try though 😏

Brassx commented 1 year ago

Hire meepen to do it