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 ... 187 188 [189] 190 191 ... 706

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

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23987
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2820 on: June 02, 2016, 02:20:33 PM »

The afterimage location is relative to the center of the ship. Added a comment to that effect.
Logged

Toxcity

  • Admiral
  • *****
  • Posts: 561
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2821 on: June 03, 2016, 08:06:09 PM »

Thanks for the answer.

I was also wondering what is with ship sprites sometimes looking a bit blurry compared to their actual sprite, when they're shown in game. Is there any reason for this, and anyway to fix it?
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23987
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2822 on: June 03, 2016, 08:31:46 PM »

Consider that the pixels of the sprite virtually never exactly align with the pixels on the screen. For example, they won't even have a chance to do that if the ship's facing is not a multiple of 90, which it only ever is at the start of a battle.

Plus, iirc the view moves around by fractions of a pixel.
Logged

Dark.Revenant

  • Admiral
  • *****
  • Posts: 2806
    • View Profile
    • Sc2Mafia
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2823 on: June 03, 2016, 09:21:29 PM »

There are techniques to reduce translation aliasing, such as forcing screen scrolling to a minimum value and otherwise clamping to an integral position when stopped, forcing integral screen positions when scrolling sufficiently quickly, etc.  Generally speaking, those are all pointless for Starsector because there are no guarantees for positional or rotational alignment for ships.

The only "fix" is to create art that isn't prone to interpolation/aliasing problems.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23987
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2824 on: June 03, 2016, 09:25:49 PM »

There are techniques to reduce translation aliasing, such as forcing screen scrolling to a minimum value and otherwise clamping to an integral position when stopped, forcing integral screen positions when scrolling sufficiently quickly, etc.

(As a side note, actually tried that - it's surprising how un-smooth clamping to the nearest pixel feels. And if you're moving the view fast, then yeah, that might be ok, but it doesn't really matter since it *is* moving fast...)
Logged

Dark.Revenant

  • Admiral
  • *****
  • Posts: 2806
    • View Profile
    • Sc2Mafia
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2825 on: June 03, 2016, 09:44:45 PM »

It's more for changing your screen movement from "Move at X Velocity and Dampen" to "Calculate Endpoint, Round Endpoint, Use Calculus to Determine Modified Resultant Velocity, Dampen, and Force Velocity 0 and Integral Position When Below Sufficiently Low Speed".  More complicated, but avoids blurring static backgrounds.  Again, it's pointless for Starsector.
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 #2826 on: June 04, 2016, 01:14:47 AM »

How to play music (BGM) in battle?
Logged
My mods


gruberscomplete

  • Captain
  • ****
  • Posts: 253
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2827 on: June 10, 2016, 04:42:29 PM »

How do you add a market to a station?

How do you stop your faction's fleets from flying with their transponder off?
« Last Edit: June 11, 2016, 03:23:41 PM by gruberscomplete »
Logged
Click here for FREE ships!               Plentysector               Robots With Souls

Lakis

  • Lieutenant
  • **
  • Posts: 79
  • I shall offend all of them!
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2828 on: June 12, 2016, 06:56:04 PM »

EDIT2: Narrowed it down to Neutrino, testing to see if there's a trigger or if it's just neutrino, even with just it's Dependencies.

Confirmed, fatal error (haphazardly coming up with blue text or not), happens even with just Neutrino's Basic Dependencies.

Edit1:Was missing Graphics lib, however new error popped up once it was installed.  Neon Blue Fatal error...

Anyone run across this using these mods together on linux?

Mod list:
Spoiler

Starsector+
Blackrock Driveyards
Combat Chatter
Common Radar
Console Commands
Diable Avionics
Interstellar Imperium
Junk Pirates/ asp / pack
lazy lib
Metelson industries
neutrino corporation
new galactic order
nexerelin
pegasus belt council
save transfer
scy nation
shadowyards
steiner foundation
kinhgts templar
the mayorate
tiandong heavy industries
twiglib
version checker
musiclib - Now known as Audio Plus.
shaderlib -Now Known as GraphicsLib

[close]

Current Error from .log (showing up in window as Neon Blue Fatal error.):
Spoiler
Code
31995 [Thread-5] INFO  org.lazywizard.lazylib.LazyLib  - Running LazyLib v2.1 for Starsector 0.7a
31995 [Thread-5] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading JSON from [lazylib_settings.json]
32079 [Thread-5] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NoSuchFieldError: o00000
java.lang.NoSuchFieldError: o00000
at data.scripts.SetUnlockBySkill.setUnlockBySkill(SetUnlockBySkill.java:36)
at data.scripts.NCModPlugin.onApplicationLoad(NCModPlugin.java:68)
at com.fs.starfarer.loading.ResourceLoaderState.init(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(Thread.java:745)

[close]


Previous Error Below.
Spoiler
Code
89585 [Thread-5] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:635)
at java.util.ArrayList.get(ArrayList.java:411)
at com.fs.starfarer.loading.scripts.ScriptStore.new(Unknown Source)
at com.fs.starfarer.settings.StarfarerSettings.o00000(Unknown Source)
at com.fs.starfarer.launcher.ModManager.getEnabledModPlugins(Unknown Source)
at com.fs.starfarer.loading.ResourceLoaderState.init(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(Thread.java:745)
[close]
Previous Error above.

.sh file for linux.
Spoiler
Code
java -server -XX:CompilerThreadPriority=1 -XX:+CompilerThreadHintNoPreempt -Djava.library.path=./native/linux -Xms2048m -Xmx4096m -Xss4096k 
-classpath janino.jar:commons-compiler.jar:commons-compiler-jdk.jar:starfarer.api.jar:starfarer_obf.jar:jogg-0.0.7.jar:jorbis-
0.0.15.jar:json.jar:lwjgl.jar:jinput.jar:log4j-1.2.9.jar:lwjgl_util.jar:fs.sound_obf.jar:fs.common_obf.jar:xstream-1.4.2.jar
-Dcom.fs.starfarer.settings.paths.saves=./saves -Dcom.fs.starfarer.settings.paths.screenshots=./screenshots
-Dcom.fs.starfarer.settings.paths.mods=./mods -Dcom.fs.starfarer.settings.paths.logs=. com.fs.starfarer.StarfarerLauncher

[close]
« Last Edit: June 12, 2016, 07:47:59 PM by Viymese »
Logged
http://fractalsoftworks.com/forum/index.php?topic=8100.0 - Metelsons Faction Mod - Occasional contributor - mostly a cold dead planet.

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23987
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2829 on: June 13, 2016, 09:28:38 AM »

How to play music (BGM) in battle?

Global.getSoundPlayer().playMusic()

The sound set id point so an entry under "music" in sounds.json.


How do you add a market to a station?

Off the top of my head, something like:

MarketAPI market = Global.getFactory.createMarket(...)
station.setMarket(market);
Global.getEconomy().addMarket(market);

The last step - adding the market to the economy - is required for the market to participate in the economy. If you don't, though, it should still work as far as being interacted with by the player.


How do you stop your faction's fleets from flying with their transponder off?

Make them patrols or traders, like so:

fleet.getMemory().set(MemFlags.MEMORY_KEY_PATROL_FLEET, true);
fleet.getMemory().set(MemFlags.MEMORY_KEY_TRADE_FLEET, true);
Logged

Toxcity

  • Admiral
  • *****
  • Posts: 561
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2830 on: June 13, 2016, 03:56:33 PM »

Is there a way to have a phasecloak system without having to have the "_glow1" and "_glow2" sprites?
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23987
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2831 on: June 13, 2016, 04:40:09 PM »

Unless not specifying those works, no. But they can just be a 1x1 transparent PNG.
Logged

Toxcity

  • Admiral
  • *****
  • Posts: 561
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2832 on: June 13, 2016, 05:26:48 PM »

Kind of related; is there any purpose to the "phaseHighlight" and "phaseDiffuse"? It doesn't seem to work.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23987
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2833 on: June 13, 2016, 06:45:22 PM »

They specify what the filename with the phase coil glow is. Is that what's not working for you?
Logged

Deshara

  • Admiral
  • *****
  • Posts: 1578
  • Suggestion Writer
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2834 on: June 13, 2016, 06:55:00 PM »

Alex the fact that this thread is 189 pages long and you're still replying is super cool of you
Logged
Quote from: Deshara
I cant be blamed for what I said 5 minutes ago. I was a different person back then
Pages: 1 ... 187 188 [189] 190 191 ... 706