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

Local HTML File Error #16

Closed
Violat0r opened this issue Jan 19, 2016 · 5 comments
Closed

Local HTML File Error #16

Violat0r opened this issue Jan 19, 2016 · 5 comments
Assignees
Labels

Comments

@Violat0r
Copy link

Using the latest ulx with a local HTML file causes the following error. I replaced the motd.txt with a file that contains HTML.

[ERROR] addons/ulx-master/lua/ulx/modules/cl/motdmenu.lua:216: attempt to index field 'motdSettings' (a nil value)

  1. generateMotdHTML - addons/ulx-master/lua/ulx/modules/cl/motdmenu.lua:216
    1. fn - addons/ulx-master/lua/ulx/modules/cl/motdmenu.lua:30
    2. func - addons/ulib-master-1_12_2016/lua/ulib/client/cl_util.lua:22
      1. unknown - lua/includes/extensions/net.lua:32
@SticklyMan
Copy link
Member

Due to workshop restrictions (and potential security concerns about having motd stored in the data folder), we moved away from loading the MOTD from a local file and replaced it with an MOTD generator. The generator can create/configure a quick MOTD without having to know any HTML.

However, we are planning on bringing back support for a local HTML file- it's probably used more likely than we think. We are working out the details and will have something soon.

For now, you'll either have to stick with the MOTD generator, or find a place you host your webpage and access it via URL.

@SticklyMan SticklyMan added the bug label Jan 19, 2016
@Nayruden
Copy link
Member

This bug (ULX not recognizing malformed MOTD setting files) has not been fixed yet, but you can use MOTD files again with ea5840a

@Violat0r
Copy link
Author

The newest changes to ulx broke the url option. It does not save the url and reverts back to ulyssesmod.net.

@Nayruden
Copy link
Member

Delete your ULX config file under data/ and see if the problem persists.

On Wed, Jan 27, 2016 at 4:17 PM, Violat0r notifications@github.com wrote:

The newest changed to ulx broke the url option. It does not save the url
and reverts back to ulyssesmod.net.


Reply to this email directly or view it on GitHub
#16 (comment).

@SticklyMan
Copy link
Member

We've just changed the cvars to to ulx_motdfile and ulx_motdurl, and adjusted the configurations. This should solve the issues with the URL not saving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants