Jump to content

Jerhema

Members
  • Posts

    22
  • Joined

  • Last visited

Jerhema's Achievements

0

Reputation

  1. Such nach großen Asteroiden die du verkaufen kannst. Damit kommst du wieder auf Kurs. Und flieg vorsichtig ;) :P _________ Google translator: Search for big asteroids you can sell. This will bring you back on course. And fly carefully ;) :P
  2. Ist ein bekanntes Problem und wird in der FAQ behandelt. Deaktiviere die DPI Skalierung in Windows oder in den Kompatibilitätseinstellungen der Avorion.exe.
  3. nothing new ... Weapon range not as advertised. (from turret factory) and there a mod for that: [Mod/Fix] Turret Factory Fix(es)
  4. Hallo, ich hab möglichweise ein Lösung für euer Problem. Tauscht eure mine.lua mal mit dieser hier aus: http://nsite.de/public/mine.lua. Macht aber vorher ein Backup von eurer alten. Die mine.lua findet ihr im Verzeichnis Avorion\data\scripts\entity\ai Das Problem ist glaube ich, dass das script, wenn keine abbaubaren Asteroiden mehr vorhanden sind, in JEDEM frame nach neuen sucht und dabei alle Asteroiden im Sektor überprüft. Ich habe das Script so modifiziert das es in dem Fall nur noch alle 60 Sekunden sucht. Ich hatte es erst so gemacht dass es die Suche ganz einstellt, aber ich weiß nicht ob Asteroiden respawnen. ____ Google translator: Hello, I have possibly a solution for your problem. Exchange your mine.lua with this from here: http://nsite.de/public/mine.lua. But make a backup of your old one before. You can find the mine.lua in the directory Avorion\data\scripts\entity\ai The problem is, I believe, the script, if no mineable asteroids are present, keeps searching fow new EVERY frame and everytime all asteroids in the sector checked. I have modified the script so that it searches in the case only every 60 seconds. First I had only made it so that the search stops completely, but I do not know whether asteroids respawn.
  5. Oops ^^ Schlechtes Beispiel. Ich habe noch nicht viel an den Tabellen rumgepielt. Ich wollte nur als Beispiel eine Eigenschaft nennen bei der weniger besser ist und hab nicht nachgesehen. Würde man bei baseEnergyPerSecond den changeType auf StatChanges.ToNextLevel ändern wäre mein Beispiel aber korrekt. Die Funktion sollte funktionieren egal womit man sie füttert. statDelta wird in zwei Schritten berechnet: local statDelta = math.max(math.abs(difference) / ingredient.investable, 0.01) die zuvor ermittelte Differenz durch die Anzahl investierbarer Zutaten teilen und sicherstellen das statDelta mindestens 1% ist. Wie gesagt geht dabei das Vorzeichen verloren. Um es später wieder einzufügen zu können wird vorher das Vorzeichen in der Variabel sign gespeichert. ingredient.statDelta = statDelta * (ingredient.investFactor or 1.0) * sign Im zweiten Schritt wird noch mit ingredient.investFactor und dem vorher gespeicherten Vorzeichen multipliziert. In deinem Fix hast du jetzt das Speichern und Wiederanwenden des Vorzeichens weggelassen. Solange alle Eigenschaften mit StatChanges.ToNextLevel von einer positiven statDelta profitieren sollte das auch funktionieren, aber es ist eben auch davon abhängig. Der Grund für dieses Vorgehen ist ja eben das StatChanges.ToNextLevel bei allen Zutaten und Stats funktionieren soll. Vielleicht waren ursprünglich alle Zutaten mit StatChanges.ToNextLevel versehen und die anderen changeTypes wurden später hinzugefügt. Übrigens: Wäre es nicht besser bei der Reichweite von Projektil-Waffen die pmaximumTime zu erhöhen anstatt pvelocity? Wenn die Projektile verschiedener Waffen unterschiedliche Geschwindigkeiten haben wird es schwer mit allen Waffen ein bewegtes Ziel zu treffen. Man kann zwar davon ausgehen dass man alle Turrets gleich baut, aber nur für den Fall. Bei Raketen macht mehr Geschwindigkeit schon mehr Sinn. Ich will dich übrigens nicht angreifen. Ich hoffe dass du das auch nicht so verstehst. Durch die Sprachbarriere Könnte der Ton schon mal falsch rüberkommen. Nur dass du es weißt. ____ Google translator: Oops ^^ Bad example. I have not played much on the tables yet. I just wanted to give you an example of a business with less is better and did not look. If you change baseEnergyPerSecond the changeType to StatChanges.ToNextLevel would be correct but my example. The function should work no matter what you feed it. StatDelta is calculated in two steps:local statDelta = math.max(math.abs(difference) / ingredient.investable, 0.01) Divide the previously determined difference by the number of investable ingredients and ensure the statDelta is at least 1%. As said before, the sign is lost. To be able to insert it again later, the sign is stored in the variable sign. ingredient.statDelta = statDelta * (ingredient.investFactor or 1.0) * sign The second step is multiplied by ingredient.investFactor and the previously stored sign. In your fix you have now omitted to save and reapply the sign. As long as all properties with StatChanges.ToNextLevel benefit from a positive statDelta, it should work, but it depends on it. The reason for this procedure is the StatChanges.ToNextLevel should work with all ingredients and stats. Perhaps all ingredients were originally provided with StatChanges.ToNextLevel and the other changeTypes were added later. By the way, would not it be better to increase the pmaximumTime in the range of projectile weapons instead of pvelocity? If the projectiles of different weapons have different speeds, it will be difficult to hit a moving target with all weapons. You can assume that you build all Turrets the same, but only in the case. With rockets, however, more speed makes more sense. I did not want to attack you, by the way. I hope that you have not understood so synonymous. Due to the language barrier, the sound could ever be wrong. Just that you know.
  6. Tja, das war aber nicht die Ursache für den Bug, dafür hast du wohl einen anderen eingebaut: local statDelta = math.max(math.abs(difference) / ingredient.investable, 0.01) statDelta wird hier immer positiv, muss es auch damit der Ausdruck math.max funktioniert wie vorgesehen. Mit deinem Skript wird zum Beispiel der Energieverbrauch bei Energiewaffen erhöht statt verringert. Die eigentliche Ursache für den Bug ist folgendes: local turret = makeTurretBase(weaponType, rarity, material) local better = makeTurretBase(weaponType, Rarity(rarity.value + 1), material) wenn ingredient.changeType == StatChanges.ToNextLevel wird für die Berechnung die Waffe mit der "nächstbesten" verglichen, also mit der nächsthöheren Rarität. Dabei kann es passieren dass diese vermeintlich bessere Version tatsächlich schlechtere Stats hat als die aktuelle und die Differenz wird negativ. Ich habs bei mir so gelöst: if stat == "damage" or stat == "fireRate" or stat == "reach" then if difference < 0 then difference = object[stat] * 0.3 end end nicht perfekt, aber fürs mich gut genug ____ Google translator: Well, this was not the cause for the bug, but you probably have another built in: local statDelta = math.max(math.abs(difference) / ingredient.investable, 0.01) statDelta is always positive here, it must also make the expression math.max works as intended. With your script the energy consumption, for example, for energy weapons is increased instead of decreased. The actual cause for the bug is the following: local turret = makeTurretBase(weaponType, rarity, material) local better = makeTurretBase(weaponType, Rarity(rarity.value + 1), material) when ingredient.changeType == StatChanges.ToNextLevel, the weapon is compared to the "next best", thus with the next higher rarity. It can happen that this supposedly better version actually has worse stats than the current and the difference becomes negative. my solution für now: if stat == "damage" or stat == "fireRate" or stat == "reach" then if difference < 0 then difference = object[stat] * 0.3 end end Not perfect, but good enough for me
  7. Die gibt's leider gar nicht, jedenfalls nicht in der aktuellen Spielversion. Gibt's da vielleicht schon ne Mod für? ___ Google translator: Unfortunately, it does not exist, at least not in the current game version. Is there perhaps already a mod for?
  8. Ich finde das gar nicht schlimm und glaube das könnte sogar Absicht sein. Du weist dass man die Blöcke einfärben kann, oder? ___ Google translator: I do not think it's a bad thing, and I think that could be an intention. You know that you can color the blocks, right?
  9. Der im Post gezeigte Code ist nur ein Auszug aus der geänderten Datei mit dem Fix. Deine neu erstellte Datei alleine wird nicht funktioniere weil dann der ganze andere Code aus der turretfactory.lua fehlt. Am besten lädst du meine verlinkte turretfactory.lua runter und machst es wie Devious vorgeschlagen hat. Wie immer bei solchen Dingen solltest du aber vorher eine Sicherheitskopie deiner original turretfactory.lua anlegen, falls was schief geht. ___ Google translator: The code shown in the post is only an excerpt from the modified file with the fix. Your newly created file alone will not work because then the whole other code from the turretfactory.lua is missing. The best is to download my linked turretfactory.lua and do it as Devious has suggested. As always with such things, you should create a security copy of your original turretfactory.lua, if something goes wrong. Deine Annahme ist leider richtig. ___ Google translator: Your assumption is unfortunately correct.
  10. Das ist tatsächlich ein Bug. Das Script ermittelt für einige Eigenschaften den Unterscheid zur nächstbesten Version der Waffen, bzw. der nächsten Seltenheit. Dabei kommt es aber vor das die nächstbessere Waffe tatsächlich schlechtere Werte hat und die Differenz negativ wird. Ich habe den Bug bei mir zwar behoben, aber dafür kommt es vor das in seltenen Fällen für eine Waffe gar kein Schaden berechnet werden kann. Ich arbeite noch dran ... ___ Google translator: This is actually a bug. The script determines for some properties the difference to the next version of the weapon or the next rarity. But sometimes the next weapon actually has worse values and the difference becomes negative. I have fixed the bug with me, but in some rare cases the damage for a weapon no cannot be calculated. I'm still working on it ...
  11. Das ist seltsam. Ich selbst habe keinen dieser Bugs und habe auch von niemand anderem davon gehört. Verschwinden die Fehler, wenn du den Fix rückgängig machst? Ich habe das Skript nur in der aktuellen Steam-Version (0.10.2 r7448) und ohne andere Mods getestet. Abgesehen von meiner modifizierten tooltipmaker.lua Ich würde gerne helfen aber ich wüsste nicht wie :( _______ Google translator: This is strange. I myself have none of these bugs and have not heard of anyone else. Disappear the errors when you undo the fix? I have tested the script only in the current Steam version (0.10.2 r7448) and without other mods. Apart from my modified tooltipmaker.lua I would like to help but I would not know how
  12. Noch eine Idee: Wie wäre es wenn der Timer immer zurückgesetzt würde, wenn das Wrack won einem Abwracklaser getroffen wird? Ich find auch lästig wenn ein großes Wrack einfach verschwindet während man es grade abbaut. ______ Google translator: Another idea: How would it be if the timer was always reset when the wreck was hit by a scrapping laser? I also find it annoying when a large wreck just disappears while you dismantle it.
  13. Da gibt leider keine Abkürzung, dafür den einen oder anderen Bug ^^ Ich glaube das Material hat keinen Einfluss auf die Stärke der Turrets sondern nur das Techlevel (abhängig vom Abstand vom Zentrum). Einige Waffen erforden Güter die als gefährlich markiert sind, welche von den Fraktionswachen konfisziert werden. Die reden immer von einer Lizenz die man nicht hätte, die es aber überhaupt nicht gibt. Die Räuber ^^. Wenn man mehr als 15 Güter im Frachtraum hat werden nicht alle im Inventar angezeigt. Echt unpraktisch wenn sich einer illegale Ware außerhalb des angezeigten Bereichs versteckt und man immer wieder von den Fraktionen angehalten wird. Du solltest dich also von vornherein für eine Waffe entscheiden. Ich persönlich nehme immer Laser. Die benötigten Materialien sind fast die selben wie für Bergbaulaser und Abwracklaser und alle Materialien sind legal zu transportieren. Die Waffenfabriken habe zwei Bugs von denen ich weiß: http://www.avorion.net/forum/index.php/topic,1413.0.html http://www.avorion.net/forum/index.php/topic,1329.0.html ____ Google translator: There is no abbreviation, but one or the other bug ^^ I believe the material has no influence on the strength of the Turrets but only the Techlevel (depending on the distance from the center). Some weapons require goods marked as dangerous, which are confiscated by the faction guards. They always talk about a license that you would not have but which does not exist at all. The robbers ^^. If you have more than 15 goods in the fraktraum not all are displayed in the inventory. It is really unpractical if an illegal product is hidden outside the indicated area and the fractions are always stopped. So you should choose a weapon from the start. I personally always take lasers. The required materials are almost the same as for mining laser and scrapper lasers and all materials are legally transportable. The weapons factories have two bugs of which I know: Http://www.avorion.net/forum/index.php/topic,1413.0.html Http://www.avorion.net/forum/index.php/topic,1329.0.html
  14. this! maybe this thread helps: http://www.avorion.net/forum/index.php/topic,1413.0.html ____ Finde die Änderung gut. Ich hab immer das Gefühl zu cheaten wenn ich dutzende Papier-Thruster stapele. Außerdem lässt das die Blockzahl explodieren was auch nicht im Sinne des Erfinders ist. Was ich aber noch lieber sehen würde wären gerichtete Thruster(stärkere Thruster, die aber nur in eine Richtung funktionieren) oder wie schon vorgeschlagen die Möglichkeit zusätzliche Haupttriebwerke in entgegengesetzter Richtung zu bauen. Realismus schön und gut, aber das Spiel soll ja auch irgendwo Spaß machen, oder? Und außerdem: was ist an Bremstriebwerken unrealistisch? ___ Google tranlator: Find the change well. I always feel like cheating when I staple dozens of paper thrusters. In addition, the block count explodes, which is not in the sense of the inventor. What I would rather see would be directed thrusters (stronger thrusters, but only in one direction function) or as already suggested the possibility to build additional main engines in the opposite direction. Realism nice and good, but the game should be somewhere fun, right? And besides, what is unrealistic about brake engines?
  15. Ich konnte das Problem lösen \o/ function makeTurret(weaponType, rarity, material, ingredients) local turret = makeTurretBase(weaponType, rarity, material) local weapons = {turret:getWeapons()} turret:clearWeapons() for _, weapon in pairs(weapons) do -- modify weapons for _, ingredient in pairs(ingredients) do if ingredient.weaponStat then -- add one stat for each additional ingredient local additions = math.max(ingredient.minimum - ingredient.default, math.min(ingredient.maximum - ingredient.default, ingredient.amount - ingredient.default)) local value = weapon[ingredient.weaponStat] if type(value) == "boolean" then if value then value = 1 else value = 0 end end -- ********************************************** -- ** Jerhemas' Range Bug Fix ** -- ********************************************** local modifier = (value + ingredient.statDelta * additions)/value value = value * modifier weapon[ingredient.weaponStat] = value if ingredient.weaponStat == "reach" then if weapon["blength"] then weapon["blength"] = weapon["blength"] * modifier end if weapon["pmaximumTime"] then weapon["pmaximumTime"] = weapon["pmaximumTime"] * modifier end end -- ********************************************** end end turret:addWeapon(weapon) end for _, ingredient in pairs(ingredients) do if ingredient.turretStat then -- add one stat for each additional ingredient local additions = math.max(ingredient.minimum - ingredient.default, math.min(ingredient.maximum - ingredient.default, ingredient.amount - ingredient.default)) local value = turret[ingredient.turretStat] value = value + ingredient.statDelta * additions turret[ingredient.turretStat] = value end end return turret; end Download: http://nsite.de/public/turretfactory.lua Habs mit nem Laser getestet und es funktioniert prima. Für andere Waffen fehlen mit die Materialien ____ Google translator: I could solve the problem \ o / ... Have it tested with a laser and it works great. I miss the materials for other weapons
×
×
  • Create New...