EnglishGermanFrenchRussianItalianSpanish
Log inRegister
 
[X3LU] Small Improvements and Fixes
Post new topic Reply to topic Goto page 1, 2, 3 ... 9, 10, 11  Next
View previous topic :: View next topic
Author Message
memeics





Joined: 26 Sep 2010



modified
PostPosted: Sat, 17. Jan 15, 07:17    Post subject: [X3LU] Small Improvements and Fixes Reply with quote Print

(This is some of my first ever X3 scripting work so please be gentle)

I love LU and playing it I found a few (very small) issues that in my opinion can make it even better. There are very small/simple changes so they should work fine but make a backup of your saves before using them. I'll update the list here as I add them.

Installation

  1. Install LU, version 1.7.0 or higher. WARNING For earlier LU versions use the earlier versions of the pack (found on the nexusmods page).
  2. Download the installer and run it. Select which components/changes you want. Install inside the X3 game directory (where you have x3ap_n.exe).


Alternatively you can download the zip file version and (manually) install from there.

Changes

NOTE: some of these changes have been available in separate archives too but I only support their latest versions as included in the installer.


  • Player corporation name setting
    I have extended the Player Console to make it possible to set your own corporation name, then every time LU tries to automatically name a ship it will prefix it with your corporation name. It tries to be smart and for ship names that already contain the homebase, it will strip out the corporation name from the homebase for building the ship name so it doesn't show twice. I find that this helps with the roleplaying and game immersion.

    For example, if you set your corporation name to "Acme" it will name your ships like this:

    • Acme UT 003 Caiman Adv
    • Acme ST 002 Mercury SF
    • Acme SA Headquarters 001 Snotra -- homebased to Acme Headquarters
    • Acme FR 1st Fleet HQ 003 Snotra -- homebased to Acme 1st Fleet HQ an OTAS Starliner Equipment Dock


    NOTE: The ships aren't automatically renamed globally after you change your corporation name. You have to trigger the LU autorenaming somehow (say if you stop a SA and restart it).

    This feature is a bit more intrusive, it seems to work fine in my game but I may not have tested all usecases, let me know if you encounter any problems.

  • Collect Lasertowers Command
    New Special ship command for collecting all lasertowers in a sector, similar to how "Collect wares in sector" works. Requires Transporter Device. Good when paired with the "Ring of Fire" deployment command.


TODO

  • Configurable prefix for autorenamed ships -- made obsolete by the player corporation name feature
  • Universal sun intensity information (similar to the Asteroids page)


Obsolete Files

  • Ship Compendium OTAS Reputation Check Fix
    OBSOLETE: This has been fixed in LU 1.4.8. Please update to latest LU version and don't use this file.

    This should fix the Ship Compendium from always showing OTAS ships as "white" (available for purchase) when in fact the required Argon reputation would not allow to. It was confusing and it made this otherwise awesome tool a tiny bit less useful.

    Download: link
  • Access the Template Manager and MLCC console from the Player Console
    X3AP (+LU) already requires us to assign and remember many hotkeys so I try to reduce them where possible. As I don't think I ever need to access the Template Manager or the MLCC Console quickly in the midst of battle, this change adds them to the Player Console. You can still assign and use their hotkeys if you want.

  • Extended ship blueprint information
    OBSOLETE: This feature is included in LU 1.6.0. Please update to latest LU version.

    When the ship licenses page shows that my HQ has capacity only for 1 or 0 ships of some type, I hate having to go through every ware in my HQ and in the blueprint and compare them one by one until I find which ware is the limiting factor. So I changed the blueprint information page (the one displayed when you select a ship from the ship licenses page) to display the HQ capacity to build that ship for each ware. So now you can directly see which ware is limiting you.

    Also, I have made another small change to the ship licenses page but one that I find very useful. When you click on the "Dockware Manager" (to open the HQ Dockware Manager) from the license page, when you exited it it did not go back to the license page so I changed it to go back to the license page. This way it's easier to setup your HQ dockware capacities based on the requirements of a certain blueprint by making it faster to go back and forth between the HQ dockware page and the detailed blueprint information.

  • Blueprint manager
    OBSOLETE: This feature is included in LU 1.6.0. Please update to latest LU version.

    When you start having lots of blueprints (especially some of which you purchased accidentally) it becomes a bit annoying seeing all those irrelevant blueprints in the LU ship licenses page or in the HQ build interface. I added a new "Blueprint manager", a window that can be opened from the LU licenses page and allows you to move your HQ blueprints to a separate, "archived", set of licenses. This way you can easily clean the HQ blueprints and if you change your mind just use the "Blueprint manager" to move them back to the HQ.

    NOTE: if you install this it also includes the Extended ship blueprint information change described above.

    WARNING: This script obviously messes up with your HQ blueprints, make a backup of your games before you start using it and report any issues. Also, it's not supported by LU Export/Import so before you do an E/I make sure to move all archived blueprints back to the HQ otherwise you WILL lose those.

  • MLCC more target options
    OBSOLETE: This feature is included in LU 1.6.0. Please update to latest LU version.

    As I started to build a fleet and setting it up with MLCC I quickly encounter an issue: the MLCC escort tasks allow to assign that one type of ships can escort a single class of escorted ships. So I can setup all my Setantas to escort all M7s (including M7Ms and M7 light carriers) but once I started to acquire M1/M2s they would be ignored by the Setantas. One option is to add different types of M6s to my MLCC docks and assign each type a different type to be escorted but I don't really like any other M6 plus I would need to provide the headquarters with new laser types than what the Setantas use.

    So I added an additional Escort target option "Capital Ships" and by using it you can configure your MLCC Escort tasks to protect any huge ships (M7, M7M, M1, M2). Existing MLCC code logic will automatically allocate the available escort ships equally to each escorted ship.

    I also added the "Corvettes" target for Assault/Carrier/Bomber targets so you can have a task like this configured to attack only M6 ships.

  • Fixed 'Security' ships show/hide toggle for carried ships
    OBSOLETE: This feature is included in LU 1.6.0. Please update to latest LU version.

    The show/hide toggles for UT/ST ships and ships assigned to a MLCC are very useful to remove the property window clutter once you get to a certain empire size. However, the show/hide toggle seems broken with ships homebased to a MLCC carrier. This is a very simple change that fixes that issue.

  • Display total per-sector asteroid yield and remove refresh stuttering
    OBSOLETE: This feature is included in LU 1.6.0. Please update to latest LU version.

    This extends the existing Player Console -> Asteroids window to display total per-sector yield. In practice, with Saturn Complex Hubs, I found I care much more of total sector yields than of individual asteroid yields. The per-asteroid yields are still there.

    I also changed the code to not update the Asteroids page automatically every second. This was introducing stuttering in my game when almost every other LU window I can think of doesn't introduce stuttering and is uber fast. Anyway, by making this change now the Asteroids page won't be refreshed with real-time data if you just stare at it. You have to either change one search option in it or just close/reopen it.

  • MLCC Assist Screen Selection Save
    OBSOLETE: This feature is included in LU 1.6.0. Please update to latest LU version.

    This makes the MLCC Assist screen save the current selection so next time you open it, it will remember the ship types selection from last time. I found this to be very useful in my game where for 90% of the sorties I do not need to call upon the M7Ms with their expensive and overpowerful torpedoes.

  • Revelation Patrol Groups
    OBSOLETE: This feature is included in LU 1.6.0. Please update to latest LU version.

    Originally, the OCV ships that are defending an OCV sector, would try to intercept any invading ship independently, resulting in ships reaching their target in the order of how fast they were making it possible to take down a large OCV defending fleet with a much weaker force. I changed this behavior so that all OCV ships try to escort the next larger class of ships up until M2s and only the M2s will try to intercept the invading enemy. You are now forced to battle against whole M2 + escort ships battle groups to defeat an OCV sector.

    NOTE: because of their relatively slow speed, it's possible to draw out the M2s (and accompanying escort ships) away from the OCV station and then attack and destroy the OCV station before they can come back. I will fix this issue in an update to this script so that at least one battle group is always kept to defend the OCV station.

  • Revelation Attack All Enemies
    OBSOLETE: This feature is included in LU 1.6.0. Please update to latest LU version.

    This fixes the OCV defensive logic to not ignore lasertowers/satellites installed by the player or the other races. Having a player satellite in an OCV sector is indeed very useful but unrealistic for the OCV to completely ignore these.

    NOTE: This automatically includes the Revelation Patrol Groups change.

  • Better Capital Ship Attack Run
    OBSOLETE: This feature is included in LU 1.6.0. Please update to latest LU version.

    This changes the code used when capital ships (ships without main lasers) try to intercept/attack another ship in-sector. The original code uses the "move to position" command to place the capital ship at the side of the enemy to fire its broadside weapons, however, the "move to position" command doesn't take a timeout so if the enemy is killed or moves around, the capital ship is still slowly moving towards the position it was told to go to. This can result in the capital ship being "stuck" moving in that direction for minutes.

    I added a new library script that simulates "move to position" with a timeout. I've tested it extensively and it seems to significantly improves on this problem but there still are times (usually when doing collision avoidance) when a capital ship may be "stuck" trying to maneuver for some time.

  • Better MLCC Assist Jump Positioning
    OBSOLETE: This feature is included in LU 1.6.0. Please update to latest LU version.

    This changes the way ships are layed out in space when jumping in a MLCC Assist sortie (if the player has a jumpbeacon and selects the jump to beacon option). Previously ships would try to find a random position on the plane in front of the player where they wouldn't be too close to each other. The check for how close the ship was to other ships was very limited (only considered ships at maximum 2km from the potential random position) and so for very large ships (M2+) this would miss out on ships that may still be too close (a Cyclops needs about 3km free space around it). Then, when issuing the MLCC Go order, these large ships would waste the first 10-15 minutes trying to manouver to get away from being so close to other ships.

    I made 2 main changes to this code:

    • it will try to find ships that may be too close to the current ship at a larger distance (fixing the M2+ issue described above)
    • it will try to position ships on a "spiral" pattern, in front of the player ship, instead of randomly trying to find a position (I love how well/organized that looks, try it out with lots of M6s!)


  • Ware Capacity Percentage Calculation Fix
    OBSOLETE: This feature is included in LU 1.6.0. Please update to latest LU version.

    When storing certain wares (ex. Energy Cells) in very large quantities (over 24mil units or so), the ware percentage calculation (to determine the percent of the ware relative to the Dockware Manager capacity setting) overflows 32 bit integers and you get a negative percentage value. This happens in 3 places that I am aware of and that this should fix:

    • Dockware Manager display, only a cosmetic issue
    • Freighter command script, this results in many problems with the ship logic, documented in the change README file
    • Dock Agent command script, similar issues as with the Freighter script


  • Drop Wares Command
    OBSOLETE: This feature is included in LU 1.6.0. Please update to latest LU version.

    New Trade ship command to drop all unused wares carried by a player ship when docked at a player dock. The ship will drop everything except installed wares or any wares needed to satisfy the ship resupply settings.

    After using a TL with the "Collect wares in sector" command to clear whole sectors, I prefer to just drop everything at my HQ where I already have Dock Agents that will sell anything not needed by the HQ instead of docking at a NPC equipment dock and using the "Sell Spare Equipment" command.

  • Higher Direct Deposit Limit
    OBSOLETE: This feature is included in LU 1.6.0. Please update to latest LU version.

    Very simple change, increases the Direct Deposit station command upper threshold limit to 1000 (from 100) millions. I found the 100 millions limit very small in late game.

  • Total Asset Value
    OBSOLETE: This feature is included in LU 1.6.0. Please update to latest LU version.

    This adds new option to the Player Console menu to compute the total player asset valuation. It currently includes:

    • player account
    • station wares and station accounts
    • player ship values and ship wares/equipment/upgrades
    • Saturn Complex Hub installed factories





_________________
X3LU 1.5.2/1.7.0 Youtube series with: IEX 1.5b + LUVi, SIaF r7 (previously also used Phanon Plus 4.02, Revelation Plus 1.04, Diverse Game Starts - LU Edition)


Last edited by memeics on Thu, 8. Sep 16, 01:04; edited 34 times in total
Back to top
View user's profile Send private message
memeics





Joined: 26 Sep 2010



modified
PostPosted: Sun, 18. Jan 15, 03:49    Post subject: Reply with quote Print

Changelog

(I'll only list here the packages that have seen any updates since their initial release)

Better capital ship attack runs

  • Version 1.3

    • Fixed another bug introduced by v1.1 cleanups, bug results in capital ships getting stuck in following victims that have left the sector, as long as the player ship remains in the same sector as the capital ship affected by the bug


  • Version 1.2

    • Fixed problem introduced by 1.1 where capital ships would fly away from their targets

  • Version 1.1

    • Fixed some small issues present in the vanilla code
    • Improved the attack run logic by not allowing a capital ship trying to close in on an enemy to "idle", at least not until it gets to the target distance



Player corporation name setting

  • Version 1.1

    • Fixed show/hide toggle for ships prefixed with the corporation name.

  • Version 1.2

    • Updated the Player Console to include the changes from LU 1.6.0


  • Version 1.3

    • Updated the Player Console to include the changes from LU 1.7.0



Blueprint manager

  • Version 1.1

    • Renamed "Saved blueprints" to "Archived blueprints", it better describes what is happening.

  • Version 1.2

    • Updated the Blueprint Manager menu to use Litcube's Dynamic Menu System. It doesn't flash now when clicking on items and it looks and feels like a native menu.



Percentage Calculation Fix

  • Version 1.1

    • Rebased on the LU 1.5.2 version of the Freighter script, this avoids introducing regressions in the Freighter logic from LU 1.4.7



Total asset value

  • Version 0.9

    • Added reporting for owned stock market shares
    • Hide empty sections in the report




_________________
X3LU 1.5.2/1.7.0 Youtube series with: IEX 1.5b + LUVi, SIaF r7 (previously also used Phanon Plus 4.02, Revelation Plus 1.04, Diverse Game Starts - LU Edition)


Last edited by memeics on Fri, 6. May 16, 07:07; edited 9 times in total
Back to top
View user's profile Send private message
Idleking





Joined: 15 Aug 2006
Posts: 424 on topic

Thank you for registering your game
PostPosted: Sun, 18. Jan 15, 10:51    Post subject: Reply with quote Print

Oooooh, these look neat. While you're at the blueprints, can you add an option to remove blueprints?
Never going to build that Buster anyway...


_________________
As the size of an explosion increases, the number of social situations it is incapable of solving approaches zero.


Litcube wrote:
Don't succumb to the "I figured it'd be ok".
Back to top
View user's profile Send private message
Sabrina Bergin





Joined: 12 Apr 2008
Posts: 2166 on topic
Location: Portsmouth UK
Thank you for registering your game
PostPosted: Sun, 18. Jan 15, 12:22    Post subject: Reply with quote Print

Why remove a blue print ?

Back to top
View user's profile Send private message
memeics





Joined: 26 Sep 2010



modified
PostPosted: Sun, 18. Jan 15, 20:39    Post subject: Reply with quote Print

Yeah, I actually thought about an option to manage/remove blueprints too but it does feel like something that Litcube would never add to his game and my general hope with these changes is that they eventually get integrated in the official game.

The reason why I'd like to remove blueprints is to make dealing with them easier, I only need a few of them at a time (for certain periods in the game) and having to see them all (some I accidentally bought) is annoying. But permanently removing sounds a bit scary. So I think if I'm going to add a secondary blueprint store system (separate from storing them in your HQ). Like this:
- in the blueprint licenses page you can add/move blueprints from the "main" set to a "secondary" set
- only the "main" set of blueprints will show on the HQ built-in build commands and so on (so you only care to build those)
- however, you don't permanently lose the blueprints moved to the "secondary" set, you can move them back to the "main" set at any time

This should allow to both only keep a small number of blueprints on the HQ to not have to browse many by default but also you don't lose them.

I'll look at doing something like this :)


_________________
X3LU 1.5.2/1.7.0 Youtube series with: IEX 1.5b + LUVi, SIaF r7 (previously also used Phanon Plus 4.02, Revelation Plus 1.04, Diverse Game Starts - LU Edition)


Last edited by memeics on Wed, 21. Jan 15, 06:08; edited 1 time in total
Back to top
View user's profile Send private message
memeics





Joined: 26 Sep 2010



modified
PostPosted: Sun, 18. Jan 15, 23:02    Post subject: Reply with quote Print

Added the "Blueprint manager", seems to work really nice.

I looked at the XtendedMod code trying to see how did they manage to get the ship build time for a blueprint (as I remember they did display it) and I found some very complicated code that seems to compute the ship build time so I guess there is no MSCI way to get it from the engine, sad :(

EDIT: I updated the "Blueprint manager" (to v1.1) so that it calls the saved licenses as "Archived" instead of just "Saved" as I find that to be a better English word for what actually happens. If you already installed v1.0 the code should automatically upgrade a global variable (that was also renamed) so everything should still work or you could go back to a save before you started using v1.0 since I released it just 30 minutes ago! :)


_________________
X3LU 1.5.2/1.7.0 Youtube series with: IEX 1.5b + LUVi, SIaF r7 (previously also used Phanon Plus 4.02, Revelation Plus 1.04, Diverse Game Starts - LU Edition)


Last edited by memeics on Wed, 21. Jan 15, 06:08; edited 1 time in total
Back to top
View user's profile Send private message
memeics





Joined: 26 Sep 2010



modified
PostPosted: Mon, 19. Jan 15, 07:51    Post subject: Reply with quote Print

Added, "MLCC Escort Task for Capital Ships". I like not having to add many different types of the same class of ships just to be able to assign them different escort classes.


_________________
X3LU 1.5.2/1.7.0 Youtube series with: IEX 1.5b + LUVi, SIaF r7 (previously also used Phanon Plus 4.02, Revelation Plus 1.04, Diverse Game Starts - LU Edition)


Last edited by memeics on Wed, 21. Jan 15, 06:07; edited 1 time in total
Back to top
View user's profile Send private message
memeics





Joined: 26 Sep 2010



PostPosted: Wed, 21. Jan 15, 05:45    Post subject: Reply with quote Print

Added fix for show/hide toggle of Wing Sec ships (ships homebased to MLCC carriers) and updated the Player Corporation Name archive to fix show/hide toggle in general for ships with the corporation name prefix.


_________________
X3LU 1.5.2/1.7.0 Youtube series with: IEX 1.5b + LUVi, SIaF r7 (previously also used Phanon Plus 4.02, Revelation Plus 1.04, Diverse Game Starts - LU Edition)
Back to top
View user's profile Send private message
memeics





Joined: 26 Sep 2010



PostPosted: Wed, 21. Jan 15, 09:24    Post subject: Reply with quote Print

Added Display total per-sector asteroid yield and remove refresh stuttering. Now the Asteroids page is even more useful :)


_________________
X3LU 1.5.2/1.7.0 Youtube series with: IEX 1.5b + LUVi, SIaF r7 (previously also used Phanon Plus 4.02, Revelation Plus 1.04, Diverse Game Starts - LU Edition)
Back to top
View user's profile Send private message
memeics





Joined: 26 Sep 2010



PostPosted: Sat, 24. Jan 15, 22:46    Post subject: Reply with quote Print

Updated the Blueprint Manager to use Litcube's Dynamic Menu System, it behaves now almost like a hardcoded menu.


_________________
X3LU 1.5.2/1.7.0 Youtube series with: IEX 1.5b + LUVi, SIaF r7 (previously also used Phanon Plus 4.02, Revelation Plus 1.04, Diverse Game Starts - LU Edition)
Back to top
View user's profile Send private message
Litcube





Joined: 20 Oct 2006
Posts: 4178 on topic
Location: Canada
Thank you for registering your game
PostPosted: Sat, 24. Jan 15, 23:17    Post subject: Reply with quote Print

memeics wrote:
Updated the Blueprint Manager to use Litcube's Dynamic Menu System, it behaves now almost like a hardcoded menu.


Well done, you're probably the first to do that.

An idea: LU has a script command along the lines of "get amount of resources for blue print x for ware y" or something like that. Try using that with the ware SETA, and see if that returns the time. It's just a hunch.


_________________


Litcube's Universe Wiki
Back to top
View user's profile Send private message
memeics





Joined: 26 Sep 2010



PostPosted: Sat, 24. Jan 15, 23:57    Post subject: Reply with quote Print

Thanks, unfortunately it appears that "$Required = get blueprint resources required: shiptype= $ShipType ware= {Singularity Engine Time Accelerator}" always returns 0 for any $ShipType I tried (for ships that I have blueprints for).

BTW, I'm thinking of changing the HK.ShowBlueprints menu to use the Dynamic Menu System, the menu flashing when selecting a ship to display the per ware HQ cargo is too "glaring" now Smile


_________________
X3LU 1.5.2/1.7.0 Youtube series with: IEX 1.5b + LUVi, SIaF r7 (previously also used Phanon Plus 4.02, Revelation Plus 1.04, Diverse Game Starts - LU Edition)
Back to top
View user's profile Send private message
karabAs





Joined: 07 Dec 2003
Posts: 85 on topic

Thank you for registering your game
PostPosted: Mon, 26. Jan 15, 01:13    Post subject: Reply with quote Print

Please, check download links for "Access the Template Manager and MLCC console from the Player Console" and "Extended ship blueprint information"

Thanks.

Back to top
View user's profile Send private message
memeics





Joined: 26 Sep 2010



PostPosted: Mon, 26. Jan 15, 02:01    Post subject: Reply with quote Print

oh wtf, what is going on does wikisend change the files on existing links or something?

Damn it, need to find another hosting solution. Anyway, for the "extended blueprint information" you can use the blueprint manager download which includes that change too.

Thanks for letting me know, I'm going to verify every link now and remove those broken and try to find an alternative host.

EDIT: Uploaded everything to NexusMods and updated the links.


_________________
X3LU 1.5.2/1.7.0 Youtube series with: IEX 1.5b + LUVi, SIaF r7 (previously also used Phanon Plus 4.02, Revelation Plus 1.04, Diverse Game Starts - LU Edition)
Back to top
View user's profile Send private message
Hector0x





Joined: 18 Nov 2013
Posts: 270 on topic

Thank you for registering your game
PostPosted: Mon, 26. Jan 15, 19:59    Post subject: Reply with quote Print

hi memeics,

great work so far. Could you somehow disable MLCC renaming of ships that get MLCC orders? I understand, that this won't make it in an official release for obvious reasons.
But it's the first time in X3, that i own a fleet of cap ships and naming them would help a lot with roleplaying.
I think it happens, when they return to their MLCC homebase. Maybe the code segment could be skipped somehow. Plz understand, that I don't know anything about this and how far your possibilities reach.


_________________
"Hard pounding, gentlemen. Let's see who pounds the longest." - Arthur Wellesley, Duke of Wellington, British general and Prime Minister
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic Goto page 1, 2, 3 ... 9, 10, 11  Next
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Thu, 23. Nov 17, 20:44

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2017
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 1.21323 seconds, sql queries = 29