Server erstellen problem

Discussion in 'General Discussion - DE (German)' started by startege1, January 25, 2015.

  1. startege1

    startege1 Active Member

    Messages:
    355
    Likes Received:
    58
    hi

    ich habe so einen server erstellt

    http://exodusesports.com/guides/planetary-annihilation-dedicated-server-setup/

    oder zumindest einen teil, wenn ich ihn starte kommt:



    PA version is 76766
    [11:54:07.221] INFO Setting STEAM_RUNTIME to /home/marc/.local/Uber Entertainment/Planetary Annihilation/stable/steam-runtime

    [11:54:07.222] INFO SDL: Built w/ v2.0.3, linked w/ v2.0.3
    [11:54:07.222] INFO Loaded buildID 2015011276766
    [11:54:07.222] WARN Crash reporting disabled.
    [11:54:07.222] INFO Starting background thread pool with 5 threads

    [11:54:07.227] INFO GameServerImpl::resetModUpdateAuthToken: Auth token reset to "234e520c-6fcf-4072-949b-e28c0a7d58dc"

    [11:54:07.282] ERROR Script error: states/lobby:10:12: SyntaxError: Unexpected token ILLEGAL
    at loadState (main:115:17)
    at Function.forEach (thirdparty/lodash:3297:15)
    at main:121:3

    was kann ich dagegen machen oder funktioniert es nicht mehr?
  2. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Ich glaube du hast das gleiche Problem wie @Illmaren hatte: Du hast von Exodus kopiert.
    Die haben in ihrem guide irgendwelche blöden " verwendet, die eben blöde sind. Ersetzte die durch normale " oder '.
  3. startege1

    startege1 Active Member

    Messages:
    355
    Likes Received:
    58
    was muss ich also ändern?
  4. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    da sind irgendwo " in dem code den du kopiert hast.
    Ersetze die durch normale ".
  5. startege1

    startege1 Active Member

    Messages:
    355
    Likes Received:
    58
    ich verstehe immer noch nicht was genau ich ändern soll. soll ich die " ändern
  6. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    ja
    da sind wahrscheinliche "merkwürdige" " drinne.
  7. startege1

    startege1 Active Member

    Messages:
    355
    Likes Received:
    58
    an was erkenne ich es
  8. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    da sind ". Ersetzte die durch selber getippte "
  9. startege1

    startege1 Active Member

    Messages:
    355
    Likes Received:
    58
    danke es hat geklappt :)
  10. startege1

    startege1 Active Member

    Messages:
    355
    Likes Received:
    58
  11. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    ja
  12. startege1

    startege1 Active Member

    Messages:
    355
    Likes Received:
    58
    geht irgendwie net
  13. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    lösche die existierende datei und lege eine neue an mit dem entsprechenden inhalt
  14. startege1

    startege1 Active Member

    Messages:
    355
    Likes Received:
    58
    und wie soll ich sie nennen
  15. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    genau wie die Datei, die du gelöscht hast. Die soll ersetzt werden.
  16. startege1

    startege1 Active Member

    Messages:
    355
    Likes Received:
    58
    also ich habe die Datei gelöscht und neu gemcht. und die daten eingefügt aber es passiert nichts

    oder muss ich was umändern.


    das habe ich eingefügt

    exports.data = (function() {
    var MAX_COLORS = 100;


    /**
    * HSV to RGB color conversion
    *
    * H runs from 0 to 360 degrees
    * S and V run from 0 to 100
    *
    * Ported from the excellent java algorithm by Eugene Vishnevsky at:
    * http://www.cs.rit.edu/~ncs/color/t_convert.html
    */
    function hsvToRgb(h, s, v) {
    var r, g, b;
    var i;
    var f, p, q, t;

    // Make sure our arguments stay in-range
    h = Math.max(0, Math.min(360, h));
    s = Math.max(0, Math.min(100, s));
    v = Math.max(0, Math.min(100, v));

    // We accept saturation and value arguments from 0 to 100 because that's
    // how Photoshop represents those values. Internally, however, the
    // saturation and value are calculated from a range of 0 to 1. We make
    // That conversion here.
    s /= 100;
    v /= 100;

    if(s == 0) {
    // Achromatic (grey)
    r = g = b = v;
    return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255)];
    }

    h /= 60; // sector 0 to 5
    i = Math.floor(h);
    f = h - i; // factorial part of h
    p = v * (1 - s);
    q = v * (1 - s * f);
    t = v * (1 - s * (1 - f));

    switch(i) {
    case 0:
    r = v;
    g = t;
    b = p;
    break;

    case 1:
    r = q;
    g = v;
    b = p;
    break;

    case 2:
    r = p;
    g = v;
    b = t;
    break;

    case 3:
    r = p;
    g = q;
    b = v;
    break;

    case 4:
    r = t;
    g = p;
    b = v;
    break;

    default: // case 5:
    r = v;
    g = p;
    b = q;
    }

    return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255)];
    }

    function randomColors(total) {
    var i = 360 / (total - 1); // distribute the colors evenly on the hue range
    var r = []; // hold the generated colors
    for (var x=0; x<total; x++)
    {
    r.push(hsvToRgb(i * x, 100, 100)); // you can also alternate the saturation and value for even more contrast between the colors
    }
    return r;
    }

    var p = randomColors(MAX_COLORS);

    var result = [];

    for (var i = 0; i < MAX_COLORS; i++) {
    result.push({
    primary: p,
    secondary: [p[p.length-1-i]]
    });
    }

    return result;

    }());
  17. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    keine Ahnung was du genau für ein Problem hast
  18. startege1

    startege1 Active Member

    Messages:
    355
    Likes Received:
    58
    wenn ich es mit mehr spielern als die normalen fraben hergeben spiele dann kommt das

    ERROR Script error: lobby/color_manager:106:41: TypeError: Cannot read property 'index' of undefined
    at ColorManager.self.takeRandomAvailableColor (lobby/color_manager:106:42)
    at PlayerModel.self.maybeTakeColorIndex (states/lobby:212:38)
    at thirdparty/lodash:3456:69
    at forOwn (thirdparty/lodash:2105:15)
    at forEach (thirdparty/lodash:3302:9)
    at Function.invoke (thirdparty/lodash:3455:7)
    at LobbyModel.self.getFinalData (states/lobby:503:11)
    at maybeStartLandingState (states/lobby:1319:33)
    at startGame (states/lobby:1377:9)
  19. startege1

    startege1 Active Member

    Messages:
    355
    Likes Received:
    58
    was bedeuten diese Zeilen?
  20. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    kannst du burntcustards farben probieren? Eventuell gehen die noch. Falls nicht hat sich eventuell etwas am server geändert. Oder du hast noch irgendwo einen kleinen Fehler.

Share This Page