Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Pages: [1] 2 3

Author Topic: [0.6.2a] Bounty Hunts 1.11  (Read 42395 times)

Talkie Toaster

  • Captain
  • ****
  • Posts: 259
    • View Profile
[0.6.2a] Bounty Hunts 1.11
« on: December 29, 2013, 07:43:47 AM »


Looking for a safer way to make money early game? A reason to use the shiny new hyperspace system?

Visit the Bounty Hunter station in the new Opportunity system to pick up bounties on hardened criminals, find traders to escort or trawl the bars for rumours to investigate- all randomly-generated in different locations and systems. Make money, make XP, explore the sector!

Three difficulties of bounty are available:
  • Easy: A frigate, with a -2 burn speed penalty (to make them easier to catch).
  • Regular: 15 FP worth of destroyers & smaller, with a -1 burn speed penalty.
  • Dangerous: 25 FP worth of cruisers & smaller.
A few days after selecting a bounty, competition will kick off- fellow hunters will head after your target. Just individuals at first, but if they fail bigger posses will come, clearing out any bounties you might not be able to take yourself.

In addition, there's Most Wanted bounties: Preset unique fleets with skilled captains, and guaranteed captures. These can't be defeated by anyone but you. Most Wanted bounties are very easy to add, using a .wanted files structured as:
Spoiler
Code: java
{
#A NOTE: ALWAYS END EACH LINE IN A COMMA. Apart from comment lines, like this one, that start with #.
#These first few entries are NOT OPTIONAL
"wantedId" : "bounty_buffalo",
"title" : "Buffalo Hunt",
"reward" : "15000",
#Fleet name is optional; if not provided, the mod will use the captain's name.
"fleetName" : "Buffalo Herd",
#Difficulty is optional.
"difficulty" : "Regular",
#Captain is optional
"captain" : {
#All entries here are optional; the mod will generate its own details if left blank.
"first" : "John",
"last" : "Hicks",
"rank" : "Cowboy",
"gender" : "M",
"portrait" : "graphics/portraits/portrait17.png",
#Aptitudes are optional. Aptitude Ids can be found in data/characters/skills.
"aptitudes" : {
"combat" : "5",
},
#Skills are optional. Skill Ids can be found in data/characters/skills.
"skills" : {
"missile_specialization" : "10",
"construction" : "10",
},
},
#You can specify a token (station/planet) within a system
#Or just use 'system' & 'location' and it'll pick a random token in that system
#Or not include 'location', and it'll pick a random token in a random system
"location" : {
"system" : "Opportunity",
"token" : "Opportunity Minor",
},
#The description is shown when the player views the wanted poster. To include line breaks in it, use \n.
"description" : "Hicks is one of the meanest, dirtiest, lowest-budget pirates in the sector and he's wrangling up a herd of Buffalo at Opportunity Minor. There's a 15000 credit reward for the first captain to bring him to justice.",
#The congratulation is shown when the player kills the bounty. To include line breaks in it, use \n. Optional.
"congratulation" : "Hicks won't be troubling the fine people of the sector any longer- the 15000 reward is yours.",
#This is the list of ships in the target's fleet. THERE MUST BE AT LEAST ONE.
"fleetShips" : [
#Each new ship should be enclosed in { DETAILS },
{
#MUST contain either variantId (for ship) OR wingId (for fighter wing)
"variantId" : "buffalo2_FS",
#This is the name the ship will be given. Optional.
"name" : "Bill",
#Crew rating is also optional, can be "ELITE"/"VETERAN"/"GREEN"/"REGULAR".
#If not given, the ship will have "REGULAR" crew.
"crewRating" : "ELITE",
#Whether or not the ship will be automatically salvaged after the battle. Optional. Defaults to "FALSE".
"salvage" : "TRUE",
},
{ "variantId" : "buffalo2_FS",
"name" : "Kid",
"crewRating" : "GREEN",
},
{ "variantId" : "buffalo2_FS" },
{ "variantId" : "buffalo2_FS" },
{ "variantId" : "buffalo2_FS" },
],
}
[close]
And a CSV file to register them through. It means you can easily add custom fleet setups that you might like to challenge, or give players access to new ships you've made by having them be bounties with guaranteed captures- Helmut's currently working on adding his ship variants in this way. The default mod comes with 5 Most Wanted bounties, ranging from fairly easy to an Elite Onslaught with all stats & skills maxed out.

Three difficulties of escort are available:
  • Easy: Escort a large fleet of durable ships between two locations in the same system.
  • Regular: Escort a small fleet of flimsy ships between two systems.
  • Dangerous: Escort a single Atlas between two systems.
Your clients won't set out until you arrive- but if you leave them waiting too long, they'll give up.

Currently, the only rumours available are of rogue asteroids/comets on collision courses with planets and stations. These aren't just straight-up battles, and you'll need to:
  • Drive off any mining fleets with diplomacy or gunpower.
  • Use skills to melt, divert or destroy spacerocks.
  • Deploy vessels to pummel the asteroid to bits with weapons fire (a much more expensive prospect).
If you're too slow to find the asteroid after you start investigating it, it will hit something- and if that's a station, supplies, fuel and hapless crewmen will perish.

Images:
New locations: Shattered Haven & Haven's Gate Station

Selecting missions


Bounties, collection, most wanted posters & fleets

If another fleet kills a regular bounty, they collect the reward- which you can potentially pick up off of them. Most wanted bounties, however, always win fights against NPCs.

Rogue asteroids & irate miners


AFAIK this should be compatible with everything.

Changelog:
1.00 - Release
1.01 - Fixed a crash bug when running in report mode, tweaked some dialog
1.10 - Added escorts, rumours & most wanted
1.11 - Fixed salvage bug, fixed bug on killing Hunter fleets

Plans:
More rumours- of derelict ships, hidden caches and lost systems to investigate?
A market that generates orders for weapons/hulls for you to fill?

Credits:
Thanks to Alex & Zaphide for their invaluable scripting help!
Thanks to Psiyon for his asteroid sprites (I tinted them for use as comets).
« Last Edit: February 04, 2014, 11:50:11 AM by Talkie Toaster »
Logged

HELMUT

  • Admiral
  • *****
  • Posts: 1363
    • View Profile
Re: [0.6.1a] Bounty Hunts 1.0
« Reply #1 on: December 29, 2013, 07:58:36 AM »

So - F*cking - Awesome!

Downloading now, can't wait to ornate my ship with my victims's heads.
Logged

FasterThanSleepyfish

  • Admiral
  • *****
  • Posts: 729
  • Blub
    • View Profile
Re: [0.6.1a] Bounty Hunts 1.0
« Reply #2 on: December 29, 2013, 09:07:19 AM »

This is great!

Much cool
Very space
So roleplay

DLing now!
Logged

MrDavidoff

  • Captain
  • ****
  • Posts: 398
    • View Profile
Re: [0.6.1a] Bounty Hunts 1.0
« Reply #3 on: December 29, 2013, 09:14:45 AM »

Omg, thank you so much for making this!   :)
Logged

Uomoz

  • Admiral
  • *****
  • Posts: 2663
  • 'womo'dz
    • View Profile
Re: [0.6.1a] Bounty Hunts 1.0
« Reply #4 on: December 29, 2013, 09:17:26 AM »

Wow!
Logged

ValkyriaL

  • Admiral
  • *****
  • Posts: 2145
  • The Guru of Capital Ships.
    • View Profile
Re: [0.6.1a] Bounty Hunts 1.0
« Reply #5 on: December 29, 2013, 09:20:25 AM »

This mod is gonna get big...fast...
Logged

NanoMatter

  • Ensign
  • *
  • Posts: 41
    • View Profile
Re: [0.6.1a] Bounty Hunts 1.0
« Reply #6 on: December 29, 2013, 10:56:33 AM »

First Bug/Human Error?

Spoiler
76297 [Thread-6] ERROR com.fs.starfarer.combat.D  - java.lang.RuntimeException: Error compiling [data.scripts.BountyModPlugin]
java.lang.RuntimeException: Error compiling [data.scripts.BountyModPlugin]
   at com.fs.starfarer.loading.scripts.ScriptStore$1.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: Compiling unit "data/scripts/plugin/BountyFleetInteractionDialogPlugin.java"
   at org.codehaus.janino.JavaSourceClassLoader.generateBytecodes(JavaSourceClassLoader.java:212)
   at org.codehaus.janino.JavaSourceClassLoader.findClass(JavaSourceClassLoader.java:164)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
   ... 2 more
Caused by: org.codehaus.commons.compiler.CompileException: File data/scripts/plugin/BountyFleetInteractionDialogPlugin.java, Line 633, Column 80: A method named "setFlagship" is not declared in any enclosing class nor any supertype, nor through a static import
   at org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:9403)
   at org.codehaus.janino.UnitCompiler.findIMethod(UnitCompiler.java:6829)
   at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java:3553)
   at org.codehaus.janino.UnitCompiler.access$63(UnitCompiler.java:3552)
   at org.codehaus.janino.UnitCompiler$11.visitMethodInvocation(UnitCompiler.java:2967)
   at org.codehaus.janino.Java$MethodInvocation.accept(Java.java:2831)
   at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java:2993)
   at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java:4017)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:2413)
   at org.codehaus.janino.UnitCompiler.access$38(UnitCompiler.java:2412)
   at org.codehaus.janino.UnitCompiler$8.visitMethodInvocation(UnitCompiler.java:2381)
   at org.codehaus.janino.Java$MethodInvocation.accept(Java.java:2831)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:2407)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1426)
   at org.codehaus.janino.UnitCompiler.access$8(UnitCompiler.java:1425)
   at org.codehaus.janino.UnitCompiler$5.visitExpressionStatement(UnitCompiler.java:926)
   at org.codehaus.janino.Java$ExpressionStatement.accept(Java.java:1447)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compileStatements(UnitCompiler.java:972)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:958)
   at org.codehaus.janino.UnitCompiler.access$7(UnitCompiler.java:955)
   at org.codehaus.janino.UnitCompiler$5.visitBlock(UnitCompiler.java:925)
   at org.codehaus.janino.Java$Block.accept(Java.java:1386)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1550)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compileStatements(UnitCompiler.java:972)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:2083)
   at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:851)
   at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:832)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:528)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:691)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:652)
   at org.codehaus.janino.UnitCompiler$3.visitAnonymousClassDeclaration(UnitCompiler.java:374)
   at org.codehaus.janino.Java$AnonymousClassDeclaration.accept(Java.java:553)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:383)
   at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java:3885)
   at org.codehaus.janino.UnitCompiler.access$66(UnitCompiler.java:3806)
   at org.codehaus.janino.UnitCompiler$11.visitNewAnonymousClassInstance(UnitCompiler.java:2975)
   at org.codehaus.janino.Java$NewAnonymousClassInstance.accept(Java.java:2947)
   at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java:2993)
   at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java:4017)
   at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java:3629)
   at org.codehaus.janino.UnitCompiler.access$63(UnitCompiler.java:3552)
   at org.codehaus.janino.UnitCompiler$11.visitMethodInvocation(UnitCompiler.java:2967)
   at org.codehaus.janino.Java$MethodInvocation.accept(Java.java:2831)
   at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java:2993)
   at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java:4017)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:2413)
   at org.codehaus.janino.UnitCompiler.access$38(UnitCompiler.java:2412)
   at org.codehaus.janino.UnitCompiler$8.visitMethodInvocation(UnitCompiler.java:2381)
   at org.codehaus.janino.Java$MethodInvocation.accept(Java.java:2831)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:2407)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1426)
   at org.codehaus.janino.UnitCompiler.access$8(UnitCompiler.java:1425)
   at org.codehaus.janino.UnitCompiler$5.visitExpressionStatement(UnitCompiler.java:926)
   at org.codehaus.janino.Java$ExpressionStatement.accept(Java.java:1447)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compileStatements(UnitCompiler.java:972)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:958)
   at org.codehaus.janino.UnitCompiler.access$7(UnitCompiler.java:955)
   at org.codehaus.janino.UnitCompiler$5.visitBlock(UnitCompiler.java:925)
   at org.codehaus.janino.Java$Block.accept(Java.java:1386)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1550)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compileStatements(UnitCompiler.java:972)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:958)
   at org.codehaus.janino.UnitCompiler.access$7(UnitCompiler.java:955)
   at org.codehaus.janino.UnitCompiler$5.visitBlock(UnitCompiler.java:925)
   at org.codehaus.janino.Java$Block.accept(Java.java:1386)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1539)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1560)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1560)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compileStatements(UnitCompiler.java:972)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:2083)
   at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:851)
   at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:832)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:528)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:421)
   at org.codehaus.janino.UnitCompiler$3.visitPackageMemberClassDeclaration(UnitCompiler.java:376)
   at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java:765)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:383)
   at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:352)
   at org.codehaus.janino.JavaSourceClassLoader.generateBytecodes(JavaSourceClassLoader.java:210)
   ... 5 more
[close]
Logged

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
Re: [0.6.1a] Bounty Hunts 1.0
« Reply #7 on: December 29, 2013, 11:03:26 AM »

1.  This is awesome.  Is the source available, and can we integrate it into other mods?

2.  If yes (and yes) how generic is it?  Can it build the bounties from any ol' collection of Faction data?

3.  I saw a bug; in that shot of the Dialog, it offered a choice for a Regular Bounty, but no description of the Regular Bounty target, indicating there wasn't one generated.  Probably needs a logic check in whatever refreshes the dialog options.
Logged
Please check out my SS projects :)
Xeno's Mod Pack

Sundog

  • Admiral
  • *****
  • Posts: 1727
    • View Profile
Re: [0.6.1a] Bounty Hunts 1.0
« Reply #8 on: December 29, 2013, 11:26:20 AM »

So much win. Thank you  :D

Talkie Toaster

  • Captain
  • ****
  • Posts: 259
    • View Profile
Re: [0.6.1a] Bounty Hunts 1.0
« Reply #9 on: December 29, 2013, 11:44:40 AM »

Glad people like the idea! (Hope the execution holds up under playtesting...)

This mod is gonna get big...fast...
Fast on a geological timescale, maybe.

First Bug/Human Error?

Spoiler
76297 [Thread-6] ERROR com.fs.starfarer.combat.D  - java.lang.RuntimeException: Error compiling [data.scripts.BountyModPlugin]
java.lang.RuntimeException: Error compiling [data.scripts.BountyModPlugin]
   at com.fs.starfarer.loading.scripts.ScriptStore$1.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: Compiling unit "data/scripts/plugin/BountyFleetInteractionDialogPlugin.java"
   at org.codehaus.janino.JavaSourceClassLoader.generateBytecodes(JavaSourceClassLoader.java:212)
   at org.codehaus.janino.JavaSourceClassLoader.findClass(JavaSourceClassLoader.java:164)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
   ... 2 more
Caused by: org.codehaus.commons.compiler.CompileException: File data/scripts/plugin/BountyFleetInteractionDialogPlugin.java, Line 633, Column 80: A method named "setFlagship" is not declared in any enclosing class nor any supertype, nor through a static import
   at org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:9403)
   at org.codehaus.janino.UnitCompiler.findIMethod(UnitCompiler.java:6829)
   at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java:3553)
   at org.codehaus.janino.UnitCompiler.access$63(UnitCompiler.java:3552)
   at org.codehaus.janino.UnitCompiler$11.visitMethodInvocation(UnitCompiler.java:2967)
   at org.codehaus.janino.Java$MethodInvocation.accept(Java.java:2831)
   at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java:2993)
   at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java:4017)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:2413)
   at org.codehaus.janino.UnitCompiler.access$38(UnitCompiler.java:2412)
   at org.codehaus.janino.UnitCompiler$8.visitMethodInvocation(UnitCompiler.java:2381)
   at org.codehaus.janino.Java$MethodInvocation.accept(Java.java:2831)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:2407)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1426)
   at org.codehaus.janino.UnitCompiler.access$8(UnitCompiler.java:1425)
   at org.codehaus.janino.UnitCompiler$5.visitExpressionStatement(UnitCompiler.java:926)
   at org.codehaus.janino.Java$ExpressionStatement.accept(Java.java:1447)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compileStatements(UnitCompiler.java:972)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:958)
   at org.codehaus.janino.UnitCompiler.access$7(UnitCompiler.java:955)
   at org.codehaus.janino.UnitCompiler$5.visitBlock(UnitCompiler.java:925)
   at org.codehaus.janino.Java$Block.accept(Java.java:1386)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1550)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compileStatements(UnitCompiler.java:972)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:2083)
   at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:851)
   at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:832)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:528)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:691)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:652)
   at org.codehaus.janino.UnitCompiler$3.visitAnonymousClassDeclaration(UnitCompiler.java:374)
   at org.codehaus.janino.Java$AnonymousClassDeclaration.accept(Java.java:553)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:383)
   at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java:3885)
   at org.codehaus.janino.UnitCompiler.access$66(UnitCompiler.java:3806)
   at org.codehaus.janino.UnitCompiler$11.visitNewAnonymousClassInstance(UnitCompiler.java:2975)
   at org.codehaus.janino.Java$NewAnonymousClassInstance.accept(Java.java:2947)
   at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java:2993)
   at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java:4017)
   at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java:3629)
   at org.codehaus.janino.UnitCompiler.access$63(UnitCompiler.java:3552)
   at org.codehaus.janino.UnitCompiler$11.visitMethodInvocation(UnitCompiler.java:2967)
   at org.codehaus.janino.Java$MethodInvocation.accept(Java.java:2831)
   at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java:2993)
   at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java:4017)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:2413)
   at org.codehaus.janino.UnitCompiler.access$38(UnitCompiler.java:2412)
   at org.codehaus.janino.UnitCompiler$8.visitMethodInvocation(UnitCompiler.java:2381)
   at org.codehaus.janino.Java$MethodInvocation.accept(Java.java:2831)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:2407)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1426)
   at org.codehaus.janino.UnitCompiler.access$8(UnitCompiler.java:1425)
   at org.codehaus.janino.UnitCompiler$5.visitExpressionStatement(UnitCompiler.java:926)
   at org.codehaus.janino.Java$ExpressionStatement.accept(Java.java:1447)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compileStatements(UnitCompiler.java:972)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:958)
   at org.codehaus.janino.UnitCompiler.access$7(UnitCompiler.java:955)
   at org.codehaus.janino.UnitCompiler$5.visitBlock(UnitCompiler.java:925)
   at org.codehaus.janino.Java$Block.accept(Java.java:1386)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1550)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compileStatements(UnitCompiler.java:972)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:958)
   at org.codehaus.janino.UnitCompiler.access$7(UnitCompiler.java:955)
   at org.codehaus.janino.UnitCompiler$5.visitBlock(UnitCompiler.java:925)
   at org.codehaus.janino.Java$Block.accept(Java.java:1386)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1539)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1560)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1560)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1542)
   at org.codehaus.janino.UnitCompiler.access$9(UnitCompiler.java:1477)
   at org.codehaus.janino.UnitCompiler$5.visitIfStatement(UnitCompiler.java:927)
   at org.codehaus.janino.Java$IfStatement.accept(Java.java:1494)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:946)
   at org.codehaus.janino.UnitCompiler.compileStatements(UnitCompiler.java:972)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:2083)
   at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:851)
   at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:832)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:528)
   at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:421)
   at org.codehaus.janino.UnitCompiler$3.visitPackageMemberClassDeclaration(UnitCompiler.java:376)
   at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java:765)
   at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:383)
   at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:352)
   at org.codehaus.janino.JavaSourceClassLoader.generateBytecodes(JavaSourceClassLoader.java:210)
   ... 5 more

[close]
Well, that's odd. setFlagship is definitely a thing- are you sure you're running 0.6.1?

1.  This is awesome.  Is the source available, and can we integrate it into other mods?

2.  If yes (and yes) how generic is it?  Can it build the bounties from any ol' collection of Faction data?

3.  I saw a bug; in that shot of the Dialog, it offered a choice for a Regular Bounty, but no description of the Regular Bounty target, indicating there wasn't one generated.  Probably needs a logic check in whatever refreshes the dialog options.
1. Yep, and go right ahead although it is kind of shambolic (and I forgot to comment it)- making this mod was very much a learning exercise. There's definitely better ways to have done it.

2. It's generic-ish. It does generate fleets from factions, so you could easily copy and tweak the relevant scripts. However, the autoresolve plugin code that checks if bounties died to other NPCs would require some tweaking if multiple different bounty factions could concievably fight.

One thing I want to try eventually is, after selecting a system, build the target fleet out of ships from pre-existing fleets in that system (so a bounty in Shii territory may be driving a Shii boat and so on).

3. I think you may have misinterpreted the screen- a bounty of the correct difficulty is generated when you click on the option for them. Ideally I'd generate the 3 fleets and show their compositions in the dialog, and only spawn them into the sector once the player selected them (and clear out the unselected fleets every week, say) and I'd like to write that in now I've got a better grasp of the language.
Logged

HELMUT

  • Admiral
  • *****
  • Posts: 1363
    • View Profile
Re: [0.6.1a] Bounty Hunts 1.0
« Reply #10 on: December 29, 2013, 11:57:00 AM »

Toyed a bit with the mod, it's awesome, there will be a lot of possibilities in the future with this one. Alex will probably take this mod as an example for the introduction of the quest system for Starsector.

But first, a bug.

Code
1430718 [Thread-6] ERROR com.fs.starfarer.combat.String  - java.util.IllegalFormatConversionException: d != java.lang.String
java.util.IllegalFormatConversionException: d != java.lang.String
at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:3999)
at java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2709)
at java.util.Formatter$FormatSpecifier.print(Formatter.java:2661)
at java.util.Formatter.format(Formatter.java:2433)
at java.util.Formatter.format(Formatter.java:2367)
at java.lang.String.format(String.java:2769)
at data.scripts.plugin.BountyBattleAutoresolverPlugin$FleetAutoresolveData.report$(BountyBattleAutoresolverPlugin.java:129)
at data.scripts.plugin.BountyBattleAutoresolverPlugin.resolveEngagement$(BountyBattleAutoresolverPlugin.java:243)
at data.scripts.plugin.BountyBattleAutoresolverPlugin.resolve(BountyBattleAutoresolverPlugin.java:195)
at com.fs.starfarer.campaign.CampaignEngine.autoResolveBattle(Unknown Source)
at com.fs.starfarer.campaign.BaseLocation.advance(Unknown Source)
at com.fs.starfarer.campaign.CampaignEngine.advance(Unknown Source)
at com.fs.starfarer.campaign.A.super(Unknown Source)
at com.fs.starfarer.OoOO.øÒÒ000(Unknown Source)
at com.fs.super.oOOO.Ò00000(Unknown Source)
at com.fs.starfarer.combat.String.o00000(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$2.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)

Other than this, how big can the bounties can get? I got a 80k bounty and the target had a cruiser plus some escorts. Will there be really big bounties in the future? Like Hegemony SDF size? This could be a lot of fun. Also would be interesting to see bounties featuring ships from other modded factions. Oh, and will this eventually be implemented with Exerelin? Also perhaps Ironclad if Okim is interested?

While the content is for the moment limited, it won't be long before other modders will properly integrate the bounty mod in their own. So yeah, as Valk said, that's gonna be a big fat mod very quickly.

Logged

silentstormpt

  • Admiral
  • *****
  • Posts: 1060
    • View Profile
Re: [0.6.1a] Bounty Hunts 1.0
« Reply #11 on: December 29, 2013, 12:06:08 PM »

I dont mind adding JSON reading support to it if you want, so you can set up ur own Bounty Hunts with their Descriptions/Rewards. It would make it really easy for anyone to create new bounties.
Logged

Talkie Toaster

  • Captain
  • ****
  • Posts: 259
    • View Profile
Re: [0.6.1a] Bounty Hunts 1.0
« Reply #12 on: December 29, 2013, 12:11:19 PM »

Toyed a bit with the mod, it's awesome, there will be a lot of possibilities in the future with this one. Alex will probably take this mod as an example for the introduction of the quest system for Starsector.

But first, a bug.

Code
1430718 [Thread-6] ERROR com.fs.starfarer.combat.String  - java.util.IllegalFormatConversionException: d != java.lang.String
java.util.IllegalFormatConversionException: d != java.lang.String
at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:3999)
at java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2709)
at java.util.Formatter$FormatSpecifier.print(Formatter.java:2661)
at java.util.Formatter.format(Formatter.java:2433)
at java.util.Formatter.format(Formatter.java:2367)
at java.lang.String.format(String.java:2769)
at data.scripts.plugin.BountyBattleAutoresolverPlugin$FleetAutoresolveData.report$(BountyBattleAutoresolverPlugin.java:129)
at data.scripts.plugin.BountyBattleAutoresolverPlugin.resolveEngagement$(BountyBattleAutoresolverPlugin.java:243)
at data.scripts.plugin.BountyBattleAutoresolverPlugin.resolve(BountyBattleAutoresolverPlugin.java:195)
at com.fs.starfarer.campaign.CampaignEngine.autoResolveBattle(Unknown Source)
at com.fs.starfarer.campaign.BaseLocation.advance(Unknown Source)
at com.fs.starfarer.campaign.CampaignEngine.advance(Unknown Source)
at com.fs.starfarer.campaign.A.super(Unknown Source)
at com.fs.starfarer.OoOO.øÒÒ000(Unknown Source)
at com.fs.super.oOOO.Ò00000(Unknown Source)
at com.fs.starfarer.combat.String.o00000(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$2.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
Ah, I think I get that error. It'll only trigger if report mode is on, I'd been commenting out functions that weren't Janino-friendly but seem to have missed that line.

Quote
Other than this, how big can the bounties can get? I got a 80k bounty and the target had a cruiser plus some escorts. Will there be really big bounties in the future? Like Hegemony SDF size? This could be a lot of fun.
25 FP is the current maximum, as the mod's main goal is to help you bootstrap yourself up to self-imposed goals (like killing the SDF). Bigger combats are planned at some point (e.g. going after rumours of abandoned capital ships and getting ambushed by pirate fleets).

Quote
Also would be interesting to see bounties featuring ships from other modded factions. Oh, and will this eventually be implemented with Exerelin? Also perhaps Ironclad if Okim is interested? While the content is for the moment limited, it won't be long before other modders will properly integrate the bounty mod in their own. So yeah, as Valk said, that's gonna be a big fat mod very quickly.
Ergh. It's certainly not ready for that- it's basically Babby's First Attempt At Java at the moment, everything is written to work rather than to be robust and extensible.

I dont mind adding JSON reading support to it if you want, so you can set up ur own Bounty Hunts with their Descriptions/Rewards. It would make it really easy for anyone to create new bounties.
Thanks, but it's not really ready for that sort of thing- a lot more work needs to go into making it more coherent first.
« Last Edit: December 29, 2013, 12:18:36 PM by Talkie Toaster »
Logged

Gotcha!

  • Admiral
  • *****
  • Posts: 1124
    • View Profile
    • Welcome to New Hiigara
Re: [0.6.1a] Bounty Hunts 1.0
« Reply #13 on: December 29, 2013, 04:02:17 PM »

This is brilliant, Talkie Toaster. Nice going. ;D
Logged
  

Talkie Toaster

  • Captain
  • ****
  • Posts: 259
    • View Profile
Re: [0.6.1a] Bounty Hunts 1.01
« Reply #14 on: December 30, 2013, 03:03:15 PM »

Updated to fix the crash in report mode and tweaked a few dialogs. I'm looking into trying to make it more generic under-the-hood, as that seems like it'd be useful?
Logged
Pages: [1] 2 3