Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Pages: 1 ... 12 13 [14] 15 16

Author Topic: [0.97a] LazyLib v2.8b (released 2024-02-02)  (Read 979334 times)

LazyWizard

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1363
    • View Profile
    • GitHub Profile
Re: [0.9.1a] LazyLib v2.5b (released 2021-01-20)
« Reply #195 on: January 20, 2021, 03:56:35 PM »

There have been a few reports of text corruption with the console mod using the latest LazyLib. Unfortunately this seems to be sporadic and only one person has reported it happening more than once. If anyone is affected, could they please use the BugReport console command and send me the results? That command copies its results to the clipboard, so even if the console is illegible you should be able to paste the output elsewhere.
Logged

LazyWizard

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1363
    • View Profile
    • GitHub Profile
Re: [0.9.1a] LazyLib v2.5c (released 2021-01-23)
« Reply #196 on: January 22, 2021, 10:50:30 PM »

Version 2.5c is out, get it here (mirror).

This update adds colored substring support to DrawableString, and also should fix the text rendering issues some users were experiencing since v2.5's release. My thanks to Dream from the Discord server for reporting this and helping test the fix.

Full changelog:
Quote
2.5c (January 23, 2021)
=========================
Changes to LazyFont.DrawableString:
 - Fixed rendering issues on some computers (thanks to Dream from the
   Discord server for reporting the bug and testing the fix)
 - Added colored substring support
 - Added appendText(String text, Color color)
 - Added appendText(String text, Color color, int indent)
 - Appending colored text only colors that substring, and all subsequent
   text will return to the base color chosen at DrawableString creation.
   To change the base color, call DrawableString.setColor()
« Last Edit: January 22, 2021, 11:09:04 PM by LazyWizard »
Logged

LazyWizard

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1363
    • View Profile
    • GitHub Profile
Re: [0.95a] LazyLib v2.6 (released 2021-03-26)
« Reply #197 on: March 26, 2021, 11:25:23 AM »

Version 2.6 is out, get it here!

Changelog:
Quote
2.6 (March 26, 2021)
======================
Updated to be compatible with Starsector 0.95a
Updated bundled libraries:
 - kotlin-stdlib: v1.4.21 -> v1.4.31
 - kotlinx-coroutines: v1.4.2 -> v1.4.3
The Javadoc's index is now one single page
Added org.lazywizard.lazylib.IOUtils:
 - Contains methods to help with reading/writing files using the API
 - byte[] readAllBytes(String filePath), an API-safe port of
   java.nio.Files.readAllBytes()
Changes to LazyFont.DrawableString:
 - Added tab support (2x the base vertical height of the text)
 - Added append(String text)
 - Added append(String text, Color color)
 - Added appendIndented(String text, int indent)
 - Added appendIndented(String text, Color color, int indent)
 - Added getBlendSrc(), setBlendSrc(int blendSrc), getBlendDest(), and
   setBlendDest(int blendDest) to control color blending
Deprecated in LazyFont.DrawableString:
 - Deprecated all appendText() methods in favor of new append() equivalents.
   The append() variants take any object and return the DrawableString so that
   calls can be chained together
Logged

Harmful Mechanic

  • Admiral
  • *****
  • Posts: 1340
  • On break.
    • View Profile
Re: [0.95a] LazyLib v2.6 (released 2021-03-26)
« Reply #198 on: March 26, 2021, 02:05:10 PM »

Thank you for getting this out so fast. It's a big help to getting everything updated and running again in 0.95.
Logged

Fenrrisyyan

  • Ensign
  • *
  • Posts: 3
    • View Profile
Re: [0.95a] LazyLib v2.6 (released 2021-03-26)
« Reply #199 on: April 17, 2021, 04:05:41 AM »

Hi !
I'm a huge fan of you're work but, I would like play with a mod (Ship_and_Weapon Pack_1.12.4) but, it is in version 0.9.1a of Starsector, and the mod required LazyLib 2.5c and Graphics Lib 1.4.5

I also would like to play with Dassault-Mikoyan-Engineering v.1.18a mod, and he also need MagicLib in [0.9.1a]

If someone have those mods in there version, can he send me in e-mail at this adress ? :

[email protected]

thanks you very much !
Logged

Gravemind1

  • Ensign
  • *
  • Posts: 2
    • View Profile
Re: [0.95a] LazyLib v2.6 (released 2021-03-26)
« Reply #200 on: April 24, 2021, 08:07:36 PM »

Seem to be getting an error with this and the MagicLib mods, always getting a CTD on launch, I look in the Starsector log and I see this wayyyyy at the bottom

-20003 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NoSuchMethodError: com.fs.starfarer.api.combat.CombatEngineAPI.addLayeredRenderingPlugin(Lcom/fs/starfarer/api/combat/CombatLayeredRenderingPlugin;)Lcom/fs/starfarer/api/combat/CombatEntityAPI;
java.lang.NoSuchMethodError: com.fs.starfarer.api.combat.CombatEngineAPI.addLayeredRenderingPlugin(Lcom/fs/starfarer/api/combat/CombatLayeredRenderingPlugin;)Lcom/fs/starfarer/api/combat/CombatEntityAPI;
   at data.scripts.plugins.MagicTrailPlugin.init(MagicTrailPlugin.java:1321)
   at com.fs.starfarer.title.Object.float$Oo.o00000(Unknown Source)
   at com.fs.starfarer.combat.oOOO.B.รต00000(Unknown Source)
   at com.fs.starfarer.combat.CombatEngine.init(Unknown Source)
   at com.fs.starfarer.title.TitleScreenState.prepare(Unknown Source)
   at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
   at com.fs.state.AppDriver.begin(Unknown Source)
   at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


Also found 2 errors with this:
11330 [Thread-4] ERROR com.fs.starfarer.loading.ShipHullSpreadsheetLoader  - Ship hull spec [flare] not found in ship_data.csv
11330 [Thread-4] ERROR com.fs.starfarer.loading.ShipHullSpreadsheetLoader  - Ship hull spec [module_hightech_decor] not found in ship_data.csv
Sorry if this looks like spam

I may be an idiot, ignore this post for now lol
« Last Edit: April 24, 2021, 08:12:22 PM by Gravemind1 »
Logged

HySOqvs0sB8

  • Ensign
  • *
  • Posts: 8
    • View Profile
Re: [0.95a] LazyLib v2.6 (released 2021-03-26)
« Reply #201 on: May 08, 2021, 08:33:47 AM »

I was searching for the root of a memory leak, when I noticed that I'm getting exceptions from Lazyfont.DrawableString.finalize() / stack trace attached

The issue seems to be that the ContextCapabilities objects are stored in ThreadLocals, so code from the finalizer thread won't find anything there, and no cleanup will be performed.





[attachment deleted by admin]
Logged

Morrokain

  • Admiral
  • *****
  • Posts: 2143
  • Megalith Dreadnought - Archean Order
    • View Profile
Re: [0.95a] LazyLib v2.6 (released 2021-03-26)
« Reply #202 on: August 07, 2021, 09:38:28 PM »

I've added the jars as a module and global dependency in the project, but when I try and import:

Code
import org.lazywizard.lazylib.ext.combat.CombatExtensionsKt;

 - The IDE can't find it. But it will compile the jar just fine and the code works when I call:

Code
        List<ShipAPI> shipList = CombatExtensionsKt.getNearbyEnemies(ship, nearbyShipAssessmentRange);

 - Even though it shows the kit class as red like it isn't defined. And it works in game and measures nearby ships when I run the jar. However, a user just reported this:

Spoiler
just started a new game, ran into a cryosleeper and attempted to engage it. got this error message a few seconds after starting the fight. here's the log for the crash; tried updating lazylib to the newest version but that didn't fix it so i'm out of ideas

45233 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NoClassDefFoundError: org/lazywizard/lazylib/ext/combat/CombatExtensionsKt
java.lang.NoClassDefFoundError: org/lazywizard/lazylib/ext/combat/CombatExtensionsKt
   at data.scripts.shipsystems.ai.AO_FluxConverterAI.assessNearbyThreats(AO_FluxConverterAI.java:166)
   at data.scripts.shipsystems.ai.AO_FluxConverterAI.advance(AO_FluxConverterAI.java:104)
   at com.fs.starfarer.loading.specs.M$1.super(Unknown Source)
   at com.fs.starfarer.combat.ai.BasicShipAI.advance(Unknown Source)
   at com.fs.starfarer.combat.CombatEngine.advanceInner(Unknown Source)
   at com.fs.starfarer.combat.CombatEngine.advance(Unknown Source)
   at com.fs.starfarer.combat.CombatState.traverse(Unknown Source)
   at com.fs.state.AppDriver.begin(Unknown Source)
   at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.lazywizard.lazylib.ext.combat.CombatExtensionsKt
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   ... 12 more
[close]

They say they have v2.6. Any advice for what I am doing wrong? It worked just fine without any errors until about a month or two ago and I myself don't have any errors. Is this perhaps an operating system related thing?

Though it's weird that one day IntelliJ decided it could no longer find the imported class after finding it just fine for iirc over a year now.  :-\

*EDIT*
 Things I've tried:

 - Rebuilding the module.

 - Rebuilding the project.

 - Deleting the module and dependencies and recreating them.

 - Resetting the src folder.

 - Invalidating caches and restarting the IDE.
« Last Edit: August 08, 2021, 05:20:06 PM by Morrokain »
Logged

LazyWizard

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1363
    • View Profile
    • GitHub Profile
Re: [0.95a] LazyLib v2.7 (released 2021-10-22)
« Reply #203 on: October 22, 2021, 05:47:12 PM »

Version 2.7 is out, get it here!

This update contains some bug fixes as well as two new features for the library's text rendering: setting the anchor point for rendering (so you can tell it to render text above, to the left, to the right and below etc a certain point), and alignment controls (so you can now have centered or right-aligned text). It also fixes a minor memory leak when dispose() was not called on DrawableStrings before garbage collection.

2.7 should be a drop-in replacement for 2.6, with one minor exception for modders: if you're using font rendering in Kotlin with named parameters, color has been renamed to baseColor. Any existing compiled code should continue to work, but if you're using color as a named parameter then your IDE will scream at you until you change it.

There have also been some improvements to the Javadoc, especially regarding font rendering. Let me know if anything is still confusing.

Full changelog:
Quote
2.7 (October 22, 2021)
========================
Fixed links to online Starsector API in javadoc.zip
Updated bundled libraries:
 - kotlin-stdlib: v1.4.31 -> v1.5.31
 - kotlinx-coroutines: v1.4.3 -> v1.5.2
 - jetbrains-annotations: v20.1.0 -> 22.0.0
Changes to CombatUtils:
 - Fixed a bug where ships spawned by spawnShipOrWingDirectly() would
   report the wrong fleet side in some circumstances
Changes to LazyFont:
 - Fixed log spam with some whitespace being considered unsupported characters
Changes to LazyFont.DrawableString:
 - Fixed minor memory leak when dispose() is not called before GC
 - Added TextAlignment, setAlignment(), and getAlignment(). TextAlignment
   controls whether text is drawn left-aligned (the default), right-aligned,
   or centered
 - Added TextAnchor, setAnchor(), and getAnchor(). TextAnchor controls the
   origin when drawing text; for example, TextAnchor.TOP_LEFT (the default)
   will mean draw() will start drawing at the top left, so the text will
   appear below and to the right of the position passed into draw()
 - Added setBaseColor() and getBaseColor() (replace setColor()/getColor())
 - Added isRebuildNeeded() and triggerRebuildIfNeeded() (unnecessary 99% of
   the time as rebuilding happens automatically, but useful in fringe cases)
 - Cleaned up some out-of-date documentation
Deprecated in LazyFont.DrawableString:
 - Deprecated setColor() and getColor(), as users were assuming they set the
   color of the next append. Added setBaseColor() and getBaseColor() as
   replacements that better convey what these methods do (set/get the color of
   all text that _doesn't_ have a color argument passed in)
« Last Edit: October 22, 2021, 06:11:36 PM by LazyWizard »
Logged

LazyWizard

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1363
    • View Profile
    • GitHub Profile
Re: [0.95.1a] LazyLib v2.7b (released 2021-12-10)
« Reply #204 on: December 10, 2021, 11:53:19 AM »

Version 2.7b is up, get it here.

This is mainly a simple compatibility update for 0.95.1a with one or two minor fixes snuck in.

Changelog:
Quote
2.7b (December 10, 2021)
==========================
Updated to be compatible with Starsector 0.95.1a
Updated bundled libraries:
 - jetbrains-annotations: v22.0.0 -> 23.0.0
Changes to LazyFont.DrawableString:
 - Center/right-aligned text no longer requires maxWidth to be set
 - setRenderDebugBounds() now shows anchor and max size
Logged

Zalpha

  • Commander
  • ***
  • Posts: 185
    • View Profile
Re: [0.95.1a] LazyLib v2.7b (released 2021-12-10)
« Reply #205 on: December 10, 2021, 07:45:22 PM »

I downloaded and installed LazyLib.2.7b.zip but in game with the version check it tells me this mod is outdated at version LazyLib.2.7. I will just manually fix it in the mod_info.json.
Logged

Heitomos

  • Ensign
  • *
  • Posts: 5
    • View Profile
Re: [0.95.1a] LazyLib v2.7b (released 2021-12-10)
« Reply #206 on: December 14, 2021, 09:08:06 AM »

Getting an error when attempting to engage a Domain Era Cryosleeper Guardian.

63831 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NoClassDefFoundError: org/lazywizard/lazylib/combat/AIUtils
java.lang.NoClassDefFoundError: org/lazywizard/lazylib/combat/AIUtils
   at data.scripts.shipsystems.ai.AO_FluxConverterAI.assessNearbyThreats(AO_FluxConverterAI.java:164)
   at data.scripts.shipsystems.ai.AO_FluxConverterAI.advance(AO_FluxConverterAI.java:102)
   at com.fs.starfarer.loading.specs.M$1.super(Unknown Source)
   at com.fs.starfarer.combat.ai.BasicShipAI.advance(Unknown Source)
   at com.fs.starfarer.combat.CombatEngine.advanceInner(Unknown Source)
   at com.fs.starfarer.combat.CombatEngine.advance(Unknown Source)
   at com.fs.starfarer.combat.CombatState.traverse(Unknown Source)
   at com.fs.state.AppDriver.begin(Unknown Source)
   at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.lazywizard.lazylib.combat.AIUtils
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   ... 12 more

Logged

BreenBB

  • Commander
  • ***
  • Posts: 150
    • View Profile
Re: [0.95.1a] LazyLib v2.7b (released 2021-12-10)
« Reply #207 on: December 15, 2021, 12:21:59 AM »

Getting an error when attempting to engage a Domain Era Cryosleeper Guardian.

Judging from log, its Archean Order issue, Flux Converter its its subsystem for it. Probably its got broken due new update, post this log in Archean Order topic.
« Last Edit: December 15, 2021, 12:25:41 AM by BreenBB »
Logged

Heitomos

  • Ensign
  • *
  • Posts: 5
    • View Profile
Re: [0.95.1a] LazyLib v2.7b (released 2021-12-10)
« Reply #208 on: December 15, 2021, 10:00:03 AM »

Getting an error when attempting to engage a Domain Era Cryosleeper Guardian.

Judging from log, its Archean Order issue, Flux Converter its its subsystem for it. Probably its got broken due new update, post this log in Archean Order topic.

Will do! Thank you.
Logged

Michigancubed

  • Ensign
  • *
  • Posts: 2
    • View Profile
Re: [0.95.1a] LazyLib v2.7b (released 2021-12-10)
« Reply #209 on: January 07, 2022, 10:00:16 PM »

First poster, downloaded most recent lazylib version to run a new save with AC and its compatible mods (not related in question but I believe its also an issue). Got the game started up and I got a error after loading bar, narrowed the mod list down to just lazylib enabled and got this in the crash log;

82345 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.RuntimeException: Error loading [org.lazywizard.lazylib.LazyLib]
java.lang.RuntimeException: Error loading [org.lazywizard.lazylib.LazyLib]
   at com.fs.starfarer.loading.scripts.ScriptStore$3.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.lazywizard.lazylib.LazyLib
   at org.codehaus.janino.JavaSourceClassLoader.findClass(JavaSourceClassLoader.java:179)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   ... 2 more

Any clues?
(Same for AC crash log but for starfarer.combat or the like, don't have the log on hand, I seen one of the most recent bug issues reported to be an AC issue too, so I just threw that in for context)
Logged
Pages: 1 ... 12 13 [14] 15 16