Fractal Softworks Forum

Please login or register.

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

Author Topic: Fighters  (Read 13618 times)

arcibalde

  • Admiral
  • *****
  • Posts: 1730
    • View Profile
Re: Fighters
« Reply #15 on: February 22, 2012, 06:24:12 AM »

Really, anything is fine, as long as it is something you would say in front of your own mother ;)


SEEEEEEEEEEEEEENSEEEEEEEEEEEEEEEEEEEEEIIIIIIIIIIIIIIIIIIIIIIIIIII   !!!!!!!!!!!!!!!!!!!!!!   AWESOME  ;D hehehehe kidding sir  8)

And can you check my updated post up there?
« Last Edit: February 22, 2012, 06:37:51 AM by arcibalde »
Logged
Creator of:
Relics MOD - vanilla balanced - Campaign integrated
Vanilla addon MOD - vanilla balanced - Campaign integrated
Project ONI MOD - mission only

mendonca

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1159
    • View Profile
Re: Fighters
« Reply #16 on: February 22, 2012, 06:44:24 AM »

The id is the name which you call the ships in to the game by.

For frigates and larger, you call them in by the variant, for fighters, you call them in by wing. A wing of fighters, or bombers is just another term for squad, I suppose.

So if I want to call in a wing of cleats, I ask for them by 'id': junk_pirates_cleat_wing. The wing_data.csv gives the information to the game that a wing of cleats is a couple of "junk_pirates_cleat_Bomber" variant ships in the given formation.

I could call it junk_pirates_cleat_rené_magritte, but then I would never know what in God's name I was doing at any given time.
Logged


"I'm doing it, I'm making them purple! No one can stop me!"

arcibalde

  • Admiral
  • *****
  • Posts: 1730
    • View Profile
Re: Fighters
« Reply #17 on: February 22, 2012, 07:16:38 AM »

LOL  :D  Ok, so id is used for naming. Ok then. Thank you.
Logged
Creator of:
Relics MOD - vanilla balanced - Campaign integrated
Vanilla addon MOD - vanilla balanced - Campaign integrated
Project ONI MOD - mission only

arcibalde

  • Admiral
  • *****
  • Posts: 1730
    • View Profile
Re: Fighters
« Reply #18 on: February 22, 2012, 09:13:31 AM »

 :-\ Another problem. I have only 1 fighter in wing.

This is my wing_data.csv line:
id,variant,fleet pts,hyperdrive,formation,num,role,refit,base value,,,,,,,,,,,,,number
hlb_lowbot_chaser_wing,hlb_lowbot_chaser_Standard,7,,CLAW,3,FIGHTER,5,13000,,,,,,,,,,,,,51

And this is my ship_data.csv file:
name,id,designation,fleet pts,hitpoints,armor rating,max flux,8/6/5/4%,flux dissipation,ordnance points,max speed,acceleration,deceleration,max turn rate,turn acceleration,mass,shield type,shield arc,shield upkeep,shield efficiency,min crew,max crew,cargo,fuel,fuel/ly,range,hangar,base value,number
Chaser,hlb_lowbot_chaser,,,250,300,300,,75,0,300,200,200,140,200,50,NONE,0,0,0,1,,,,,,,51


What did i do wrong?


Ok i took longbow "numbers", and put them in both files and i still got 1 fighter. Why??? :-\
« Last Edit: February 22, 2012, 09:37:37 AM by arcibalde »
Logged
Creator of:
Relics MOD - vanilla balanced - Campaign integrated
Vanilla addon MOD - vanilla balanced - Campaign integrated
Project ONI MOD - mission only

arcibalde

  • Admiral
  • *****
  • Posts: 1730
    • View Profile
Re: Fighters
« Reply #19 on: February 22, 2012, 11:13:52 AM »

Interesting... I put the my own numbers for fighter and when I go on a mission screen there is error:
[highlow_bots_lowbot_chaser_Standard] is not a valid fighter wing id.

 But in the codex I found my fighter wing standing in claw formation with all the necessary statistics. Where is a mistake? In the definition of the mission or?

Alex? How it's ok in Codex but in mission is error????
Logged
Creator of:
Relics MOD - vanilla balanced - Campaign integrated
Vanilla addon MOD - vanilla balanced - Campaign integrated
Project ONI MOD - mission only

Zarcon

  • Captain
  • ****
  • Posts: 329
    • View Profile
Re: Fighters
« Reply #20 on: February 22, 2012, 11:30:11 AM »

Interesting... I put the my own numbers for fighter and when I go on a mission screen there is error:
[highlow_bots_lowbot_chaser_Standard] is not a valid fighter wing id.

 But in the codex I found my fighter wing standing in claw formation with all the necessary statistics. Where is a mistake? In the definition of the mission or?

Alex? How it's ok in Codex but in mission is error????

Hmm, I'm not a pro modder or anything, but I sense a discrepancy possibly.

hlb_lowbot_chaser_Standard doesn't seem to be the same as highlow_bots_lowbot_chaser_Standard.

I took the first line from a post above your last one, and the second line from your recent post, aren't those two ID references supposed to be identical?  Just a hunch, ignore me if I'm way off base.  :)  ha ha
Logged
There is no instance of a nation benefitting from prolonged warfare.
Thus it is that in war the victorious strategist only seeks battle after the victory has been won, whereas he who is destined to defeat first fights and afterwards looks for victory.

arcibalde

  • Admiral
  • *****
  • Posts: 1730
    • View Profile
Re: Fighters
« Reply #21 on: February 22, 2012, 11:42:24 AM »

I change it :) First time my dir structure was: highlow_bots\graphics\hlb\ships\ and then i change it to highlow_bots\graphics\highlow_bots\ships\, and rework all files. All .png files all values in .ship and .variable and other dots files and value in all files...

The part that i don't get it: mission is failure but codex is ok. How come?
« Last Edit: February 22, 2012, 11:44:48 AM by arcibalde »
Logged
Creator of:
Relics MOD - vanilla balanced - Campaign integrated
Vanilla addon MOD - vanilla balanced - Campaign integrated
Project ONI MOD - mission only

mendonca

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1159
    • View Profile
Re: Fighters
« Reply #22 on: February 22, 2012, 12:01:47 PM »

In the missiondefinition.java, fighter wings are called in slightly different to frigates etc. Sounds like you are trying to spawn a single fighter, but you should ask for a wing.

I'm on my phone, so I can't get an example, but is the line the same as e.g. a broadsword wing on the other team? Does it say .FIGHTER_WING at the end, or somesuch?
Logged


"I'm doing it, I'm making them purple! No one can stop me!"

arcibalde

  • Admiral
  • *****
  • Posts: 1730
    • View Profile
Re: Fighters
« Reply #23 on: February 22, 2012, 12:34:59 PM »

Sir you was on good trace there, it was SHIP. When it was SHIP then i get 1 fighter in game but when i change it to FIGHTER_WING i got error in mission window in game. This error: [highlow_bots_lowbot_chaser_Standard] is not a valid fighter wing id

It is set like this:

// Set up the player's fleet
      api.addToFleet(FleetSide.PLAYER, "highlow_bots_orkan_Standard", FleetMemberType.SHIP, true);
      
      
      
      // Set up the enemy fleet
      api.addToFleet(FleetSide.ENEMY, "highlow_bots_lowbot_chaser_Standard", FleetMemberType.SHIP, false);
      api.addToFleet(FleetSide.ENEMY, "highlow_bots_lowbot_chaser_Standard", FleetMemberType.FIGHTER_WING, false);
      api.addToFleet(FleetSide.ENEMY, "highlow_bots_lowbot_chaser_Standard", FleetMemberType.FIGHTER_WING, false);
   
      // Set up the map.
Ah, and yes, when it's set like this both sides get random fleets. Game do not load ship for player ORKAN it loads random ships.



And when i put it like this:


// Set up the player's fleet
api.addToFleet(FleetSide.PLAYER, "highlow_bots_orkan_Standard", FleetMemberType.SHIP, true);
      
      
      
      // Set up the enemy fleet
      api.addToFleet(FleetSide.ENEMY, "highlow_bots_lowbot_chaser_Standard", FleetMemberType.SHIP, false);
                api.addToFleet(FleetSide.ENEMY, "highlow_bots_lowbot_chaser_Standard", FleetMemberType.SHIP, false);
                api.addToFleet(FleetSide.ENEMY, "highlow_bots_lowbot_chaser_Standard", FleetMemberType.SHIP, false);

                // Set up the map.

I got 3 separate fighters, not in wing.
« Last Edit: February 22, 2012, 12:37:17 PM by arcibalde »
Logged
Creator of:
Relics MOD - vanilla balanced - Campaign integrated
Vanilla addon MOD - vanilla balanced - Campaign integrated
Project ONI MOD - mission only

Zarcon

  • Captain
  • ****
  • Posts: 329
    • View Profile
Re: Fighters
« Reply #24 on: February 22, 2012, 12:40:59 PM »

Should you maybe reference it as highlow_bots_lowbot_chaser_Standard_WING, or am I way off?  How are the other fighter wings referenced in other mission files?  I don't have the game on this computer so I can't check right now, so I may be just spouting nonsense.   :D
Logged
There is no instance of a nation benefitting from prolonged warfare.
Thus it is that in war the victorious strategist only seeks battle after the victory has been won, whereas he who is destined to defeat first fights and afterwards looks for victory.

arcibalde

  • Admiral
  • *****
  • Posts: 1730
    • View Profile
Re: Fighters
« Reply #25 on: February 22, 2012, 12:51:16 PM »

 :o :o :o :o :o :o :o :o :o :o

Just 1 sec!

 :-\ I change it but still same error  :-\
« Last Edit: February 22, 2012, 01:01:35 PM by arcibalde »
Logged
Creator of:
Relics MOD - vanilla balanced - Campaign integrated
Vanilla addon MOD - vanilla balanced - Campaign integrated
Project ONI MOD - mission only

arcibalde

  • Admiral
  • *****
  • Posts: 1730
    • View Profile
Re: Fighters
« Reply #26 on: February 22, 2012, 01:06:16 PM »

Hey should i change this? Bolded part?



// Set up the fleets
      api.initFleet(FleetSide.PLAYER, "ISS", FleetGoal.DEFEND, false);
      api.initFleet(FleetSide.ENEMY, "ISS", FleetGoal.ATTACK, true);


      // Set a blurb for each fleet
      api.setFleetTagline(FleetSide.PLAYER, "Capital Junk!");
      api.setFleetTagline(FleetSide.ENEMY, "Unnone");
      
      // These show up as items in the bulleted list under
      // "Tactical Objectives" on the mission detail screen
      api.addBriefingItem("Do not let your guard down!");
      
      
      // Set up the player's fleet
      api.addToFleet(FleetSide.PLAYER, "highlow_bots_orkan_Standard", FleetMemberType.SHIP, true);
      
      
      
      // Set up the enemy fleet
      api.addToFleet(FleetSide.ENEMY, "highlow_bots_lowbot_chaser_Standard_wing", FleetMemberType.FIGHTER_WING, false);
      api.addToFleet(FleetSide.ENEMY, "highlow_bots_lowbot_chaser_Standard_wing", FleetMemberType.FIGHTER_WING, false);
           api.addToFleet(FleetSide.ENEMY, "highlow_bots_lowbot_chaser_Standard_wing", FleetMemberType.FIGHTER_WING, false);
      // Set up the map.
Logged
Creator of:
Relics MOD - vanilla balanced - Campaign integrated
Vanilla addon MOD - vanilla balanced - Campaign integrated
Project ONI MOD - mission only

mendonca

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1159
    • View Profile
Re: Fighters
« Reply #27 on: February 22, 2012, 01:33:05 PM »

Delete Standard and an underscore out of your wing designations, that id should match whatever you have called them in wing_data.csv
Logged


"I'm doing it, I'm making them purple! No one can stop me!"

arcibalde

  • Admiral
  • *****
  • Posts: 1730
    • View Profile
Re: Fighters
« Reply #28 on: February 22, 2012, 01:40:23 PM »

Delete Standard and an underscore out of your wing designations, that id should match whatever you have called them in wing_data.csv

You sir are Chuck Norris of Starfarer!  IT WORKS!!!!!!!!!!!!!!!!! YEYYYYYYYYYYYYYYYYYYYY.


Now let see can they take me down :P
Logged
Creator of:
Relics MOD - vanilla balanced - Campaign integrated
Vanilla addon MOD - vanilla balanced - Campaign integrated
Project ONI MOD - mission only
Pages: 1 [2]