Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Pages: 1 ... 308 309 [310] 311 312 ... 710

Author Topic: Misc modding questions that are too minor to warrant their own thread  (Read 1719694 times)

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24114
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #4635 on: June 13, 2019, 01:44:39 PM »

Hmm - if you open the intel screen and mouse over the map icon for the intel item, that tooltip gets created using BaseIntelPlugin.createIntelInfo() with mode == ListInfoMode.MAP_TOOLTIP, but I'm not sure if that's what you're asking or not.
Logged

Nick XR

  • Admiral
  • *****
  • Posts: 713
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #4636 on: June 13, 2019, 02:47:58 PM »

Sorry for the confusion. 

Specifically if I have some code like:
Code
TooltipMakerAPI image = panel.createUIElement(imageSize, imageSize, false);
Is there a way to have some mouse over text appear when the cursor enters the TooltipMakerAPI area?

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24114
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #4637 on: June 13, 2019, 09:29:54 PM »

Ah, I see - you mean tooltips for elements inside a more detailed/involved intel description, right? It's not set up for that, sorry! Though it should be... fairly doable. I'll make a note and see if I can work that in at some point.
Logged

vorpal+5

  • Captain
  • ****
  • Posts: 286
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #4638 on: June 15, 2019, 03:21:30 AM »

Can the number of ships shown in the 'fleet bubble', currently 20 max be de-hardcoded, for the player only? I know it has been done this way for performance reason, but given the beast of the computer I have, showing 30 instead of 20 is most probably not an issue! :-)
Logged

TrashMan

  • Admiral
  • *****
  • Posts: 1325
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #4639 on: June 15, 2019, 05:59:38 AM »

Why are some of the most important things so poorly documented?

Things like adding your own NPC to a planet of fleet or making custom fleets that fly around - there's nothing on that.
Logged

Vayra

  • Admiral
  • *****
  • Posts: 627
  • jangala delenda est
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #4640 on: June 17, 2019, 12:45:39 PM »

Why are some of the most important things so poorly documented?

Things like adding your own NPC to a planet of fleet or making custom fleets that fly around - there's nothing on that.

Be the documentation you want to see in the world.
Logged
Kadur Remnant: http://fractalsoftworks.com/forum/index.php?topic=6649
Vayra's Sector: http://fractalsoftworks.com/forum/index.php?topic=16058
Vayra's Ship Pack: http://fractalsoftworks.com/forum/index.php?topic=16059

im gonna push jangala into the sun i swear to god im gonna do it

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24114
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #4641 on: June 18, 2019, 07:30:41 AM »

Can the number of ships shown in the 'fleet bubble', currently 20 max be de-hardcoded, for the player only? I know it has been done this way for performance reason, but given the beast of the computer I have, showing 30 instead of 20 is most probably not an issue! :-)

This probably belongs in another thread, but, let me make a note to see if I can work it in at some point. Wouldn't be too difficult, and not a bad idea, just need to get around to it :)
Logged

Originem

  • Purple Principle
  • Captain
  • ****
  • Posts: 430
  • Dancing like a boss.
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #4642 on: June 18, 2019, 08:41:44 AM »

Code
13200 [Thread-4] INFO  com.fs.starfarer.settings.StarfarerSettings  - Loading settings
13202 [Thread-4] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading JSON from [ABSOLUTE_AND_CWD: null (data/config/settings.json)]
13222 [Thread-4] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading JSON from [DIRECTORY: B:\Starsector09\Starsector\starsector-core\..\mods\Console Commands (data/config/settings.json)]
13225 [Thread-4] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading JSON from [DIRECTORY: B:\Starsector09\Starsector\starsector-core\..\mods\MagicLib (data/config/settings.json)]
13227 [Thread-4] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading JSON from [DIRECTORY: B:\Starsector09\Starsector\starsector-core\..\mods\SpeedUp (data/config/settings.json)]
13228 [Thread-4] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading JSON from [DIRECTORY: B:\Starsector09\Starsector\starsector-core\..\mods\GraphicsLib (data/config/settings.json)]
13230 [Thread-4] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading JSON from [DIRECTORY: B:\Starsector09\Starsector\starsector-core\..\mods\ApproLightPlus (data/config/settings.json)]
13233 [Thread-4] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading JSON from [DIRECTORY: B:\Starsector09\Starsector\starsector-core\..\mods\ApproLight (data/config/settings.json)]
13259 [Thread-4] INFO  com.fs.graphics.L  - Using refresh rate:75
error init: Could not locate OpenAL library.
13536 [Thread-4] ERROR sound.B  - org.lwjgl.LWJGLException: Could not locate OpenAL library.
org.lwjgl.LWJGLException: Could not locate OpenAL library.
at org.lwjgl.openal.AL.create(AL.java:156)
at org.lwjgl.openal.AL.create(AL.java:102)
at org.lwjgl.openal.AL.create(AL.java:206)
at sound.B$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sound.B.o00000(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)

I use idea as IDE, in someday, I couldn't activate sound option while debugging
Logged
My mods


Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24114
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #4643 on: June 18, 2019, 01:56:47 PM »

Hmm - one possibility is that you need to specify the location of the native dll files in the debug configuration, something like:

-Djava.library.path=<path to where the various LWJGL dll files are>

(Not at my work computer, or I'd be a bit more precise.)

Another possibility is needing to install OpenAL on your system; sometimes the one that comes with the game just won't get picked up for windows reasons. The installer for that is here: https://www.openal.org/downloads/
Logged

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #4644 on: June 18, 2019, 05:09:55 PM »

Is there any way to tell when a MIRV or AOE DamagingProjectileAPI has detonated? 

I can't seem to find a flag or anything that would say "yes" if checking it.  MissileAPI has isMirv(), but what we really need is a boolean hasDetonated() that flags DamagingProjectileAPIs that are exploding / MIRV-ing this frame or something like that, so that it can get caught / used, just like didDamage().
Logged
Please check out my SS projects :)
Xeno's Mod Pack

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24114
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #4645 on: June 19, 2019, 07:50:56 AM »

Not sure - can anyone else chime in? Not at my main computer right now so can't dig into it :)

(If not, then yeah, some way of being able to detect this would certainly be useful.)
Logged

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #4646 on: June 19, 2019, 11:20:46 AM »

Sorry to bug about something this minor, lol.  It's been a roadblock for a couple of minor things for ages, is all. 

I've tried checking for the existence of a DamagingProjectileAPI between one frame and the next; that doesn't appear to catch them; I'm guessing that when they detonate, they're being removed from the DamagingProjectileAPIs immediately or something?
Logged
Please check out my SS projects :)
Xeno's Mod Pack

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #4647 on: June 19, 2019, 09:52:43 PM »

...I don't suppose the Replace operation in mod_info could support wildcards?
Logged
Please check out my SS projects :)
Xeno's Mod Pack

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #4648 on: June 20, 2019, 04:47:16 PM »

Where is hammerhead_Tutorial.variant referenced?  I'm presuming it's hard-coded for now...
Logged
Please check out my SS projects :)
Xeno's Mod Pack

TrashMan

  • Admiral
  • *****
  • Posts: 1325
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #4649 on: June 21, 2019, 03:58:46 AM »

Why are some of the most important things so poorly documented?

Things like adding your own NPC to a planet of fleet or making custom fleets that fly around - there's nothing on that.

Be the documentation you want to see in the world.

That's like asking a plumber to perform surgeon himself.

There's poeple who clearly know, but nothing is documented, no tutorials exist, nothing.
Logged
Pages: 1 ... 308 309 [310] 311 312 ... 710