Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - WarStalkeR

Pages: 1 ... 18 19 [20] 21 22 23
286
Modding / Re: Specific Music or Soundtacks in mission?
« on: March 31, 2012, 12:19:02 PM »
Yeah, this isn't going to work - there are some security checks in place to try to ensure mods don't do something *really bad* - like accidentally deleting the contents of your hard drive.

Nice try, though :) I'll see about adding a way for mods to get at files in a more sandboxed way in the future.
We use sounds.json for audio and effects of weapons. Why don't use it for music too? And then just use PlayMusic(id of soundtack mapped in sounds.json)?

287
Modding / Re: Specific Music or Soundtacks in mission?
« on: March 31, 2012, 10:59:27 AM »
Alex, Epic Battles need Epic Music ;D

288
Modding / Re: Specific Music or Soundtacks in mission?
« on: March 31, 2012, 10:57:39 AM »
Tried now to create MusicPlayer.java:
Code
package data.scripts.world;

import sun.audio.*;
import java.io.*;

public class MusicPlayer {

    private String filename;

    public MusicPlayer(String filename) {
        this.filename = filename;
    }

    public void play() {
        try {
                InputStream in = new FileInputStream(filename);
                AudioStream as = new AudioStream(in);
                AudioPlayer.player.start(as);

        } catch (IOException e) {
                e.printStackTrace();
        }          
    }
}

Got this error:
Code
17665 [Thread-6] ERROR com.fs.starfarer.combat.String  - java.lang.RuntimeException: Error compiling [data.scripts.world.MusicPlayer]
java.lang.RuntimeException: Error compiling [data.scripts.world.MusicPlayer]
at com.fs.starfarer.loading.scripts.ScriptStore$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.SecurityException: File access and reflection are not allowed to scripts.
at com.fs.starfarer.loading.scripts.B.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.codehaus.janino.ClassLoaderIClassLoader.findIClass(ClassLoaderIClassLoader.java:83)
at org.codehaus.janino.IClassLoader.loadIClass(IClassLoader.java:158)
at org.codehaus.janino.IClassLoader.loadIClass(IClassLoader.java:124)
at org.codehaus.janino.UnitCompiler.loadFullyQualifiedClass(UnitCompiler.java:8729)
at org.codehaus.janino.UnitCompiler.importTypeOnDemand(UnitCompiler.java:7616)
at org.codehaus.janino.UnitCompiler.getType2(UnitCompiler.java:4574)
at org.codehaus.janino.UnitCompiler.access$10300(UnitCompiler.java:104)
at org.codehaus.janino.UnitCompiler$17.visitReferenceType(UnitCompiler.java:4442)
at org.codehaus.janino.Java$ReferenceType.accept(Java.java:2020)
at org.codehaus.janino.UnitCompiler.getType(UnitCompiler.java:4476)
at org.codehaus.janino.UnitCompiler.getLocalVariable(UnitCompiler.java:1607)
at org.codehaus.janino.UnitCompiler.buildLocalVariableMap(UnitCompiler.java:2226)
at org.codehaus.janino.UnitCompiler.access$3700(UnitCompiler.java:104)
at org.codehaus.janino.UnitCompiler$7.visitLocalVariableDeclarationStatement(UnitCompiler.java:2141)
at org.codehaus.janino.Java$LocalVariableDeclarationStatement.accept(Java.java:1771)
at org.codehaus.janino.UnitCompiler.buildLocalVariableMap(UnitCompiler.java:2144)
at org.codehaus.janino.UnitCompiler.buildLocalVariableMap(UnitCompiler.java:2158)
at org.codehaus.janino.UnitCompiler.access$2700(UnitCompiler.java:104)
at org.codehaus.janino.UnitCompiler$7.visitBlock(UnitCompiler.java:2129)
at org.codehaus.janino.Java$Block.accept(Java.java:1395)
at org.codehaus.janino.UnitCompiler.buildLocalVariableMap(UnitCompiler.java:2144)
at org.codehaus.janino.UnitCompiler.buildLocalVariableMap(UnitCompiler.java:2200)
at org.codehaus.janino.UnitCompiler.access$3400(UnitCompiler.java:104)
at org.codehaus.janino.UnitCompiler$7.visitTryStatement(UnitCompiler.java:2136)
at org.codehaus.janino.Java$TryStatement.accept(Java.java:1592)
at org.codehaus.janino.UnitCompiler.buildLocalVariableMap(UnitCompiler.java:2144)
at org.codehaus.janino.UnitCompiler.buildLocalVariableMap(UnitCompiler.java:2105)
at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:1946)
at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:789)
at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:770)
at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:464)
at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:357)
at org.codehaus.janino.UnitCompiler$3.visitPackageMemberClassDeclaration(UnitCompiler.java:312)
at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java:770)
at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:319)
at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:288)
at org.codehaus.janino.JavaSourceClassLoader.generateBytecodes(JavaSourceClassLoader.java:203)
at org.codehaus.janino.JavaSourceClassLoader.findClass(JavaSourceClassLoader.java:157)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 2 more
23616 [Thread-6] INFO  com.fs.profiler.Profiler  - ID     Calls   Duration    Percent
23617 [Thread-6] INFO  com.fs.profiler.Profiler  - --------------------------------

Tried to use audio file that completely converted to class (Jawa.java - you can download it)...

Got same error:
Code
17267 [Thread-6] ERROR com.fs.starfarer.combat.String  - java.lang.RuntimeException: Error compiling [data.scripts.world.Jawa]
java.lang.RuntimeException: Error compiling [data.scripts.world.Jawa]
at com.fs.starfarer.loading.scripts.ScriptStore$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.SecurityException: File access and reflection are not allowed to scripts.
at com.fs.starfarer.loading.scripts.B.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.codehaus.janino.ClassLoaderIClassLoader.findIClass(ClassLoaderIClassLoader.java:83)
at org.codehaus.janino.IClassLoader.loadIClass(IClassLoader.java:158)
at org.codehaus.janino.ReflectionIClass.classToIClass(ReflectionIClass.java:305)
at org.codehaus.janino.ReflectionIClass.classesToIClasses(ReflectionIClass.java:320)
at org.codehaus.janino.ReflectionIClass.getInterfaces2(ReflectionIClass.java:116)
at org.codehaus.janino.IClass.getInterfaces(IClass.java:361)
at org.codehaus.janino.UnitCompiler.getIMethods(UnitCompiler.java:6637)
at org.codehaus.janino.UnitCompiler.findIMethod(UnitCompiler.java:6575)
at org.codehaus.janino.UnitCompiler.findIMethod(UnitCompiler.java:6488)
at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java:3429)
at org.codehaus.janino.UnitCompiler.access$6300(UnitCompiler.java:104)
at org.codehaus.janino.UnitCompiler$11.visitMethodInvocation(UnitCompiler.java:2869)
at org.codehaus.janino.Java$MethodInvocation.accept(Java.java:2831)
at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java:2890)
at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java:3897)
at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1637)
at org.codehaus.janino.UnitCompiler.access$1700(UnitCompiler.java:104)
at org.codehaus.janino.UnitCompiler$5.visitReturnStatement(UnitCompiler.java:877)
at org.codehaus.janino.Java$ReturnStatement.accept(Java.java:1803)
at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:888)
at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1740)
at org.codehaus.janino.UnitCompiler.access$1200(UnitCompiler.java:104)
at org.codehaus.janino.UnitCompiler$5.visitTryStatement(UnitCompiler.java:872)
at org.codehaus.janino.Java$TryStatement.accept(Java.java:1592)
at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:888)
at org.codehaus.janino.UnitCompiler.compileStatements(UnitCompiler.java:914)
at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:1999)
at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:789)
at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:493)
at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:357)
at org.codehaus.janino.UnitCompiler$3.visitPackageMemberClassDeclaration(UnitCompiler.java:312)
at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java:770)
at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:319)
at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:288)
at org.codehaus.janino.JavaSourceClassLoader.generateBytecodes(JavaSourceClassLoader.java:203)
at org.codehaus.janino.JavaSourceClassLoader.findClass(JavaSourceClassLoader.java:157)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 2 more
19657 [Thread-6] INFO  com.fs.profiler.Profiler  - ID     Calls   Duration    Percent
19657 [Thread-6] INFO  com.fs.profiler.Profiler  - --------------------------------

[attachment deleted by admin]

289
Modding / Re: Specific Music or Soundtacks in mission?
« on: March 31, 2012, 10:24:38 AM »
Alex said that it wasn't possible when I asked him before.
Probably for now. But you can actually put your music as ogg file in to sound.json... But probably function itself is missing or still not added...

290
Modding / Specific Music or Soundtacks in mission?
« on: March 31, 2012, 09:19:29 AM »
Is this possible to add special music or soundtrack to play during a mission?
(Its question more for you Alex)

292
I thought we stopped bragging?
Hmm... why it so only after your defeat? Probably you now not so sure that you can raid the sphereworld 8)
Note: Size of Sphereworld is same as of big starsystem. Think that every ring is was planetary orbit...

very well, wait until the next update, where the battlestation will be presented. Enjoy your victotry, while you can...... ;)
You will add battlestation? Fine, I will add dreadnought... Or I will enable Main Caliber Weapons...

294
The best thing I can tell you, that you're trying to use something, that doesn't exists... Like trying to create station at orbit of planet, that doesn't exist.

295
Mods / Re: Project Ironclads, version 2.2 (0.51a with campaign)
« on: March 31, 2012, 06:36:40 AM »
I'm rather interested too to see battleships of RSA and ISA too.
Fight between RSA, ISA and ALIEN must go in its own universe, without any Hegemony, Gun Runners or other races.
Great job Okim! It also gives me slight feeling of what I have seen in games "Tomorrow War" and "Tomorrow War: Factor K", eternal opposition between "United Nations" and "Great Concordia". But in more strategic perspective.

296
Yeah............ TimCORP commanders are brave indeed, but that was not a TimCORP commander. Not anymore, atleast ;D
Screenshot says otherwise :)

And you might actully think of nerfing your railguns?
It was not the railguns, but missiles who done their job perfectly :) Railguns just disabling shields.

But never underestimate the Echo Pulse Cannon.
Twice powerful then Siege Railgun, but only half range of Siege Railgun. Siege Railgun requires even more energy then Echo Pulse Cannon to shoot, 3 times slower rotation then "Echo Pulse Cannon", who said it unbalanced?

One barrage can take the IDF battleship, hands down.
One barrage of how much Echo Pulse Cannons? of 10? Maybe... Didn't gave them that chance though...

But only if the shields are down.
Echo Pulse Cannon does lots of damage to shield too.

And please, lower the flux venting rate. Either way, it's not fair. ;)
Try to install a couple of these railguns on your ships, and you will see why IDF ships have such big flux venting rate. To launch one heavy missile you need 20000 flux free. IDF weapon doesn't use ammo, instead it requires immense amount of energy to "produce" it on fly. Yes, every IDF weapon equipped with built-in Ammo Replication Facility. Also before your great fleet lost against such small IDF fleet, you didn't said a word about how fair it is, you were just happy with victory :P

And did you manage to get around the camapign? Mine always seems to crash when the Alliance deploys their station.
Nope, I didn't tried it and I don't want till you will fix all bugs, also your campaign is incompatible with mine :)

And strangley, everytime i autoresolve against TimCORP with IDF ships, TimCORP always wins ;D
Because for now AI is stupid.
If I only could create my own AI and put it in mod... You've been able to face "me" in AI version :)

297
Ok, sure ;D remember, TimCORP ships cannot match sniping ones, but sure, go ahead and test, and please put screenshots up ;)
Right, I agree... Now I understand that putting even single battleship against 4 super-leviathans was to much...

I see TimCORP pilots and commanders are so brave, that even "Tantive IV" was first one to run off the battlefield ;D

P.S. IDF Edain was disabled due my mistake, all 10 siege railguns shot at it, while I was aiming at super-leviathan...

298
Upgradecap... I LOLED when I seen this:
Code
api.addToFleet(FleetSide.PLAYER, "delta_Standard", FleetMemberType.SHIP, "TCN Tantive IV", true);
api.addToFleet(FleetSide.PLAYER, "delta_Standard", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "xyphos_wing", FleetMemberType.FIGHTER_WING, false);
api.addToFleet(FleetSide.PLAYER, "zeta_Pointdefense", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "zeta_Pointdefense", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "zeta_Pointdefense", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "delta_Standard", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "delta_Standard", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "rho_Strike", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "ksi_Assault", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "ksi_Assault", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "gamma_Assault", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "gamma_Assault", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "gamma_Assault", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "gamma_Assault", FleetMemberType.SHIP, false);






// Mark a ship as essential, if you want
//api.defeatOnShipLoss("ISS Black Star");

// Set up the enemy fleet
api.addToFleet(FleetSide.ENEMY, "idf_battleship_complex", FleetMemberType.SHIP, "IDF Freedom", false);
api.addToFleet(FleetSide.ENEMY, "idf_battlecruiser_invasion", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.ENEMY, "idf_battlecruiser_invasion", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.ENEMY, "idf_destroyer_pursuit", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.ENEMY, "idf_fighter_wing", FleetMemberType.FIGHTER_WING, false);
api.addToFleet(FleetSide.ENEMY, "idf_fighter_wing", FleetMemberType.FIGHTER_WING, false);

Lets make them more equal, in other words:
Code
		api.addToFleet(FleetSide.PLAYER, "delta_Standard", FleetMemberType.SHIP, "TCN Tantive IV", true);
api.addToFleet(FleetSide.PLAYER, "delta_Standard", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "xyphos_wing", FleetMemberType.FIGHTER_WING, false);
api.addToFleet(FleetSide.PLAYER, "zeta_Pointdefense", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "zeta_Pointdefense", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "zeta_Pointdefense", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "delta_Standard", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "delta_Standard", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "rho_Strike", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "ksi_Assault", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "ksi_Assault", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "gamma_Assault", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "gamma_Assault", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "gamma_Assault", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.PLAYER, "gamma_Assault", FleetMemberType.SHIP, false);
/////////////// VS
api.addToFleet(FleetSide.ENEMY, "idf_battleship_complex", FleetMemberType.SHIP, "IDF Freedom", false);
api.addToFleet(FleetSide.ENEMY, "idf_battleship_complex", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.ENEMY, "idf_battleship_complex", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.ENEMY, "idf_battleship_complex", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.ENEMY, "idf_battleship_complex", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.ENEMY, "idf_battleship_complex", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.ENEMY, "idf_battlecruiser_invasion", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.ENEMY, "idf_battlecruiser_invasion", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.ENEMY, "idf_battlecruiser_invasion", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.ENEMY, "idf_battlecruiser_invasion", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.ENEMY, "idf_destroyer_pursuit", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.ENEMY, "idf_frigate_interceptor", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.ENEMY, "idf_frigate_interceptor", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.ENEMY, "idf_frigate_interceptor", FleetMemberType.SHIP, false);
api.addToFleet(FleetSide.ENEMY, "idf_fighter_wing", FleetMemberType.FIGHTER_WING, false);

Now it seem equal, 15 vs 15...
For every your Delta-class Super Leviathan I placed Samekh-class Battleship.
For every your Ksi-class Leviathan I placed Samekh-class Battleship.
For every your Gamma-class Dreadnought I placed Jerusalem-class Battlecruiser.
For every your Rho-class Destroyer I placed Malkhut-class Destroyer.
For every your Zeta-class Frigate I placed Hesed-class Frigate.
For every your Xypos-class Fighters I placed Nesher-class Fighters.

And now, when forces are equal try to fight equally...

299
Mods / Re: Independent Defense Force v0.78
« on: March 31, 2012, 04:31:33 AM »
Updated. Now version 0.78 available for download!

With my fleet of death i could kill anything, single handed.
Set battleSize to 8000, put from each side 20 battleships/leviathans, 40 battlecruisers, 60 cruisers, 80 destroyers, 120 frigates, 160 Fighters, 160 Bombers, 160 Gunships...

300
Mods / Re: Independent Defense Force v0.71
« on: March 31, 2012, 03:31:39 AM »
In next release you won't spawn with this big battleship :)

Pages: 1 ... 18 19 [20] 21 22 23