Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Pages: 1 ... 8 9 [10] 11 12 ... 16

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

DefiasOne

  • Commander
  • ***
  • Posts: 205
    • View Profile
Re: [0.65.2a] LazyLib v2.0b (released 2014-10-20)
« Reply #135 on: March 03, 2015, 12:40:38 PM »

CombatUtils.getCombatEngine() was removed after Global.getCombatEngine() was added to the API. You can switch to the latter with no problems.

The damage calculations in WeaponUtils were removed because at that time a lot of new mutable stats were being added to weapons, and it was a colossal pain to add support for and test all of them. Luckily the API also seems to support this sort of thing now. It'd be something along these lines:
Code: java
float damage = beam.getWeapon().getDamage().computeDamageDealt(timeSinceLastArc);

If that doesn't work, you can fall back to this line of code (which won't take stat bonuses into effect):
Code: java
float damage = beam.getWeapon().getDerivedStats().getDps() * timeSinceLastArc;

Awesome, that helped me a lot. Thanks  ;D
Logged

Nemerid

  • Ensign
  • *
  • Posts: 16
    • View Profile
Re: [0.65.2a] LazyLib v2.0b (released 2014-10-20)
« Reply #136 on: June 03, 2015, 07:16:40 PM »

Can someone point me to a place where I can a earlier version (6.2a) of LazyLib? This is a very useful and time-saving mod btw :D
Logged

agigabyte

  • Lieutenant
  • **
  • Posts: 54
    • View Profile
Re: [0.65.2a] LazyLib v2.0b (released 2014-10-20)
« Reply #137 on: September 17, 2015, 02:53:14 PM »

With both Shader and Lazy I'm getting this crash whenever I start up the game with them enabled. I have reinstalled both.
Spoiler
[close]
Logged

LazyWizard

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1365
    • View Profile
    • GitHub Profile
Re: [0.65.2a] LazyLib v2.0b (released 2014-10-20)
« Reply #138 on: October 28, 2015, 08:28:49 PM »

Important heads up to any modders who use CampaignUtils: in the upcoming version of LazyLib, all CampaignUtils methods that take a "Class entityClass" argument will have it replaced with "String entityTag". If you're confused as to what this means, just know that calls that used to look like this:
Code: java
List<SectorEntityToken> nearbyFriendlyStations = CampaignUtils.getNearbyEntitiesWithRep(player, 1500f, OrbitalStationAPI.class, IncludeRep.AT_OR_HIGHER, RepLevel.NEUTRAL);
now look like this:
Code: java
List<SectorEntityToken> nearbyFriendlyStations = CampaignUtils.getNearbyEntitiesWithRep(player, 1500f, Tags.STATION, IncludeRep.AT_OR_HIGHER, RepLevel.NEUTRAL);

The vanilla tags are found in com.fs.starfarer.api.impl.campaign.ids.Tags. Using tags instead of the base class means custom campaign entities will actually work with these methods.

I apologize for the extremely short notice of this change. I honestly thought I had fixed this in 2.0b over a year ago (within hours of those methods being introduced), and didn't realize I hadn't until updating this library for 0.7a just now.
Logged

LazyWizard

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1365
    • View Profile
    • GitHub Profile
Re: [0.7a] LazyLib v2.1 (released 2015-11-19)
« Reply #139 on: November 19, 2015, 12:46:15 PM »

LazyLib 2.1 is up, get it here (mirror).

I'm releasing this as soon as possible so other modders can update their own mods. A lot of these new methods haven't been tested in 0.7a, so I might have to release another update if/when any bugs pop up.

Changelog:
Quote
2.1 (November 19, 2015)
=========================
Changes to AnchoredEntity:
 - getLocation() no longer returns a direct reference to the anchor's location
   when the anchored entity shares the same location
Changes to CampaignUtils:
 - Added addShipToFleet(String wingOrVariantId, FleetMemberType type,
   CrewXPLevel level, CampaignFleetAPI fleet)
 - Removed all getXOfType() methods, replaced with getXWithTag() (was filtering
   using class, now uses entity tags)
 - All methods that took a "Class entityClass" argument have had said argument
   replaced with "String tag"
 - getNearbyFleets(), getNearbyHostileFleets(), get NearestHostileFleet(),
   and getHostileFleetsInSystem() only include fleets that are visible to the
   sensors of the token passed in to the method
 - Fixed a few getNearbyX() methods potentially including the token they are
   searching around
Changes to CollectionUtils:
 - Added combinedList() and combinedSet() to simplify creating a List/Set from
   multiple source Collections, take any number of Collections as arguments
Changes to ColorUtils:
 - Fixed: glColor() alphaMult value isn't multiplied correctly when argument
   "overrideOriginalAlpha" is true
Logged

gofastskatkat

  • Lieutenant
  • **
  • Posts: 53
    • View Profile
Re: [0.7a] LazyLib v2.1 (released 2015-11-19)
« Reply #140 on: November 19, 2015, 01:07:34 PM »

I'll get to looking at it right now.
EDIT: So far so good, just need to figure out why I'm getting 20 fps max...
EDIT 2: Also command console default key combo, ctrl+backspace, isnt working.... though i have a feeling that deals with the mod/tool/whatev itself
« Last Edit: November 19, 2015, 01:26:57 PM by gofastskatkat »
Logged

shuul

  • Ensign
  • *
  • Posts: 42
    • View Profile
Re: [0.7a] LazyLib v2.1 (released 2015-11-19)
« Reply #141 on: November 30, 2015, 06:21:06 AM »

Hey, I believe there is no javadoc folder in latest patch, is it intended?
« Last Edit: November 30, 2015, 11:20:53 PM by shuul »
Logged

LazyWizard

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1365
    • View Profile
    • GitHub Profile
Re: [0.7a] LazyLib v2.1 (released 2015-11-19)
« Reply #142 on: November 30, 2015, 02:24:57 PM »

My apologies, it looks like I forgot a step when packaging the mod. I blame the thirteen months between 2.0b and 2.1 (so, myself).

I updated the downloads to include the documentation. You can also download the latest javadoc directly from this link.
Logged

shuul

  • Ensign
  • *
  • Posts: 42
    • View Profile
Re: [0.7a] LazyLib v2.1 (released 2015-11-19)
« Reply #143 on: November 30, 2015, 11:21:46 PM »

My apologies, it looks like I forgot a step when packaging the mod. I blame the thirteen months between 2.0b and 2.1 (so, myself).

I updated the downloads to include the documentation. You can also download the latest javadoc directly from this link.

Thanks! This will help a lot. Diving into SS modding from scratch is not easy though. :)
« Last Edit: December 02, 2015, 06:42:16 AM by shuul »
Logged

ciago92

  • Admiral
  • *****
  • Posts: 577
    • View Profile
Re: [0.7a] LazyLib v2.1 (released 2015-11-19)
« Reply #144 on: December 06, 2015, 08:33:12 PM »

Is this good for .7.1a? It's not in the title so I'd assume not, but several mods that rely on this are marked as ready for .7.1a. I suppose I'll find out shortly when I attempt to run it, just curious. Thanks!
Logged

LazyWizard

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1365
    • View Profile
    • GitHub Profile
Re: [0.7.1a] LazyLib v2.1 (released 2015-11-19)
« Reply #145 on: December 06, 2015, 08:49:21 PM »

It is compatible with 0.7.1a, I just hadn't updated my thread's titles yet. :)
Logged

Golol

  • Ensign
  • *
  • Posts: 32
    • View Profile
Re: [0.7.1a] LazyLib v2.1 (released 2015-11-19)
« Reply #146 on: December 18, 2015, 06:45:55 AM »

hey,
I wanted to get console commands because I was smart enough to save right when a hostile fleet emergency burned me...
So installed Lazylib but when I have Lazylib enabled I can't load my saves.
When I click on "load game" in the main menu, the game crashes with the Error Fatal: Null. Here's the last bit of the log when that happens:

Code
14975 [Thread-5] INFO  com.fs.graphics.TextureLoader  - Cleaned buffer for texture graphics/ships/buffalo/buffalo_pirates.png (using cast)
14976 [Thread-5] INFO  com.fs.graphics.TextureLoader  - Cleaned buffer for texture graphics/ships/hound/hound_substandard.png (using cast)
14992 [Thread-5] INFO  org.lazywizard.lazylib.LazyLib  - Running LazyLib v2.1 for Starsector 0.7a
14992 [Thread-5] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading JSON from [lazylib_settings.json]
15006 [Thread-5] WARN  com.fs.starfarer.loading.SpecStore  - Description with id flarelauncher_fighter_SHIP_SYSTEM not found
15006 [Thread-5] WARN  com.fs.starfarer.loading.SpecStore  - Description with id traveldrive_SHIP_SYSTEM not found
15006 [Thread-5] WARN  com.fs.starfarer.loading.SpecStore  - Description with id inferniuminjector_SHIP_SYSTEM not found
15006 [Thread-5] WARN  com.fs.starfarer.loading.SpecStore  - Description with id skimmer_drone_SHIP_SYSTEM not found
15009 [Thread-5] INFO  com.fs.graphics.TextureLoader  - Cleaned buffer for texture graphics/particlealpha32sq.png (using cast)
15025 [Thread-11] INFO  sound.oo0OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO  - Creating streaming player for music with id [miscallenous_main_menu.ogg]
15026 [Thread-11] INFO  sound.H  - Playing music with id [miscallenous_main_menu.ogg]
15036 [Thread-9] INFO  sound.F  - Creating music buffer #1
16373 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [..\saves\save_ADMKarpov_3332573060079872227\descriptor.xml]
16394 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [..\saves\save_AdmKingston_2093127268273572182\descriptor.xml]
16406 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [..\saves\save_AdmTripshore_7729020884772380354\descriptor.xml]
16408 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [..\saves\save_CptCUie_2414757829677731390\descriptor.xml]
16409 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [..\saves\save_CptCUie_2953172373566174271\descriptor.xml]
16410 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [..\saves\save_CptCUie_6938502034617090140\descriptor.xml]
16411 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [..\saves\save_Golol_4340986767572239102\descriptor.xml]
16413 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [..\saves\save_NewCorvusInc_2096498756251732626\descriptor.xml]
16527 [Thread-11] INFO  sound.oo0OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO  - Creating streaming player for music with id [miscallenous_main_menu.ogg]
16527 [Thread-11] INFO  sound.H  - Playing music with id [miscallenous_main_menu.ogg]
16652 [Thread-5] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
at com.fs.starfarer.campaign.save.LoadGameDialog.o00000(Unknown Source)
at com.fs.starfarer.campaign.save.LoadGameDialog$1.o00000(Unknown Source)
at com.fs.starfarer.campaign.save.LoadGameDialog$1.compare(Unknown Source)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.legacyMergeSort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.ArrayList.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)
at com.fs.starfarer.campaign.save.LoadGameDialog.<init>(Unknown Source)
at com.fs.starfarer.title.TitleScreenState.showLoadGameDialog(Unknown Source)
at com.fs.starfarer.title.TitleScreenState.menuItemSelected(Unknown Source)
at com.fs.starfarer.title.ooOO.actionPerformed(Unknown Source)
at com.fs.starfarer.ui.interfacesuper.o00000(Unknown Source)
at com.fs.starfarer.ui.null.processInput(Unknown Source)
at com.fs.starfarer.ui.U.o00000(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$2.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I can post more of the log or upload it if that isn't the relevant part. I CAN create a game which includes saving a game though...
thx for any help
Logged

LazyWizard

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1365
    • View Profile
    • GitHub Profile
Re: [0.7.1a] LazyLib v2.1 (released 2015-11-19)
« Reply #147 on: December 18, 2015, 07:42:31 PM »

Do you still have saves from an old version of Starsector? The game sometimes crashes when old modded saves are present, deleting or moving them elsewhere should fix it.
Logged

Golol

  • Ensign
  • *
  • Posts: 32
    • View Profile
Re: [0.7.1a] LazyLib v2.1 (released 2015-11-19)
« Reply #148 on: December 19, 2015, 05:54:27 AM »

yea I have outdated and modded saves.
I can't test if it works without those right now but I'm sure it will.
thx!
Logged

hqz

  • Lieutenant
  • **
  • Posts: 73
    • View Profile
Re: [0.7.2a] LazyLib v2.1 (released 2015-11-19)
« Reply #149 on: March 15, 2016, 08:01:10 AM »

Is there a version of the LazyLib javadoc publicly available on the Web somewhere?
If not, do you mind if I put one up myself?
Logged
Pages: 1 ... 8 9 [10] 11 12 ... 16