ULX

Author Topic: Problem at ULX !motd  (Read 5710 times)

0 Members and 2 Guests are viewing this topic.

Offline BuckiStupidos

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Problem at ULX !motd
« on: October 28, 2016, 02:44:25 AM »
Please help me to find the Error.

My ULib/ULX versions (run "ulx version" in console):
ULib v2.61
ULX v3.71

Game mode(s) I am having this problem on: Jailbreak Seven

I dont find any Problem at my ULX MOTD, but it shows me everytime this error: ULX: MOTD Generator error. Could not parse settings file.
Now, here is my MOTD [Its German, for my German Server]
Code: [Select]
; These settings describe the default configuration and text to be shown on the MOTD. This only applies if ulx showMotd is set to 1.
; All style configuration is set, and the values must be valid CSS.
; Under info, you may have as many sections as you like. Valid types include "text", "ordered_list", "list".
; Special type "mods" will automatically list workshop and regular addons in an unordered list.
; Special type "admins" will automatically list all users within the groups specified in contents.
; For an example of all of these items, please see the default file generated in ulx\lua\data.lua (Uhm sorry, but there is nothing generated :D)

"info"
{
"description" "Willkommen auf dem Jailbreak von Shadow Gaming!"
{
"title" "Infos"
"type" "text"
"contents"
{
"Unwissenheit schützt nicht vor Strafe."
                        "Steamgruppe: http://steamcommunity.com/groups/ShadowGamingGermany"
"Halte bitte immer die Regeln ein!"
}
}
{
"title" "Regeln"
"type" "ordered_list"
"contents"
{
"Zeige Respekt zu jedem Spieler!"
"Kein Spamming."
"Keine Beleidigungen."
                        "Höre auf das Serverteam!"
                        "Gehe nur in das Guard-Team wenn du die Regeln gelesen hast."
}
}
        {
                "title" "Regeln"
"type" "ordered_list"
        "contents"
                {
"Töte NUR Spieler, die KOS gesetzt wurden, Rebellieren, oder eine Waffe tragen."
"Sende mit @[Nachricht] eine Nachricht in den Admin-Chat!"
"Wenn kein Admin da ist, merke dir die Uhrzeit und den Spielernamen. Wir haben Serverlogs!"
                        "Man darf nur Warden werden, wenn man ein Mikro besitzt."
                        "Wer nicht auf den Warden hört, wird verwarnt. Warden = Dein Chef!"
}
}
{
"title" "Normalday"
"type" "list"
"contents"
{
                        "?? Rebellieren erlaubt."
                        "?? Der Letzte hat einen Wunsch und Last Request!"
                        "?? Es werden Spiele gespielt."
                        "?? Mit "C" kann der Warden Wegpunkte setzen."
                        "?? Bei einem Lineup darf man nicht Ineinander stehen!"
}
}
        {
"title" "Warday"
"type" "list"
"contents"
{
                        "?? Rebellieren erst nach beginn des Wardays erlaubt!"
                        "?? Vor beginn darf jeder sich eine Waffe holen."
                        "?? Eine AWP pro Team!"
                        "?? Es MÜSSEN Munitionskisten im Waffenraum gespawnt werden!"
                        "?? Natürlich kämpfen Guards gegen Prisoner. Kein Friendly Fire!"
}
}
        {
"title" "Deathmatchday"
"type" "list"
"contents"
    {
                        "?? Es ist ein Warday mit Friendly Fire. Teaming verboten!"
                        "?? Die Guards dürfen nicht in einer Gruppe laufen!"
                        "?? KEINE AWPs an diesem Day!"
}
}
        {
"title" "Gangday"
"type" "list"
"contents"
    {
                        "?? Maximale Teamanzahl : 3"
                        "?? Prisoner kämpfen in Teams gegeneinander."
                        "?? AWPs sind auch an diesem Day unfair, also Verboten!"
                        "?? Der Gewinner darf sich nur etwas für seine Gang wünschen!"
                        "?? Ist eine Gang am ende noch am leben, entscheidet sie, was"
                        "?? sie sich wünschen."
}
}
        {
"title" "Hide'n'Seek Day"
"type" "list"
"contents"
    {
                        "?? Der Hide'n'Seek Day beginnt IMMER um 8:45"
                        "?? Der Letzte überlebende hat einen Wunsch und Last Request."
                        "?? Prisoner dürfen KEINE Waffen am Hide'n'Seek Day besitzen!"
                        "?? Rebellieren ist Ebenso verboten!"
                        "?? Campen in der Kanone, im Deathrun und im Heli ist verboten!"
}
}     
        {
"title" "Catday"
"type" "list"
"contents"
    {
                        "?? Alle müssen Geduckt laufen. Alle die im Stehen laufen sind KOS!"
                        "?? Stehen ist natürlich erlaubt."
                        "?? Schusswaffen sind nicht erlaubt! Katzen können das nicht..."
                        "?? Guards dürfen sich nicht wehren! Rebellieren ist nicht KOS!!!"
}
}
        {
"title" "Roleplayday"
"type" "list"
"contents"
    {
                        "?? Richtiges Rollenspiel wie im Echten Gefängnis."
                        "?? Waffenbesitz ist verboten! Knifes ebenso!"
                        "?? Jeder (Mit FaustRebellierende kommt wieder in die Zelle."
                        "?? Wenn eine Isolationszelle vorhanden ist, kommen dort"
                        "?? verweigernde rein."
                        "?? Man kann nicht verweigern!"
                        "?? Bei den Spielen scheidet man nur aus und geht wieder auf"
                        "?? seine Zelle wenn man verliert, man wird nicht erschossen!"
                        "?? Bevor Spiele starten, wird erstmal gegessen! (Wenn eine Cafe-"
                        "?? teria vorhanden sein Sollte.)"
                        "?? Man darf nicht abhauen. Das wäre FailRP!"
}
}   
}
"style"
{
"borders"
{
"border_color" "#000000"
"border_thickness" "2px"
}
"colors"
{
"background_color" "#FFFFFF"
"header_color" "#000000"
"header_text_color" "#FF0404"
"section_text_color" "#CF0303"
"text_color" "#000000"
}
"fonts"
{
"server_name"
{
"family" "Impact"
"size" "32px"
"weight" "normal"
}
"subtitle"
{
"family" "Impact"
"size" "20px"
"weight" "normal"
}
"section_title"
{
"family" "Impact"
"size" "26px"
"weight" "normal"
}
"regular"
{
"family" "Tahoma"
"size" "12px"
"weight" "normal"
}
}
}
« Last Edit: October 28, 2016, 06:16:38 PM by JamminR »

Offline BuckiStupidos

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Problem at ULX !motd
« Reply #1 on: October 28, 2016, 02:53:04 AM »
I cant use my Webside at !motd - Wow...

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Problem at ULX !motd
« Reply #2 on: October 28, 2016, 03:14:20 AM »
Did you edit the addons/ulx/data/ulx file? Because that's a bad idea. If there was nothing at <root>/data/ulx you need to copy the default over and edit it there.

And if you can't use your website, how are you trying to set it? Also it's not the best to edit the file itself if you don't know what you're doing.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline BuckiStupidos

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Problem at ULX !motd
« Reply #3 on: October 28, 2016, 03:27:32 AM »
Ingame, at the menu you can set the Website.  I put the MOTD at the root/data/ulx :D The text is over there!

Offline Timmy

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 252
  • Karma: 168
  • Code monkey
Re: Problem at ULX !motd
« Reply #4 on: October 28, 2016, 03:42:30 AM »
Mhm... Looks like you've got a malformed (garrysmod)/data/ulx/motd.txt file.

The parseKeyValues function can give us a bit more detail:
Code: [Select]
> print( ULib.parseKeyValues( ULib.stripComments( file.Read( "ulx/motd.txt" ), ";" ) ) )...
nil     Bad input on line 53

Let's have a look at line 53 of that file:
Code: [Select]
"?? Mit "C" kann der Warden Wegpunkte setzen."
Double quotes inside your text must be escaped with a backslash (\) character, like this:
Code: [Select]
"?? Mit \"C\" kann der Warden Wegpunkte setzen."
Escaping those quotes on line 53 should fix the MOTD generator! :)



Editing the MOTD through XGUI (Settings -> Server -> ULX MOTD) is recommended as it will automatically escape these special characters for you.
« Last Edit: May 31, 2018, 02:20:24 AM by Timmy »

Offline BuckiStupidos

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Problem at ULX !motd
« Reply #5 on: October 28, 2016, 03:54:37 AM »
oh, Thank you! :)