[Solved] No Lasers

For discussion of ports to POSIX based systems, especially using GNUStep.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
mandoman
---- E L I T E ----
---- E L I T E ----
Posts: 1385
Joined: Thu Apr 28, 2011 3:17 pm

[Solved] No Lasers

Post by mandoman »

I am running a dual core Celeron T4500 at 2.30GHZ, 3.9MBs RAM, and a 310GB HDD. The OS is Linux Mint 14 Nadia.

I use a save_game tester personality called Testman. With Testman.oolite-save, when I have a new ship oxp to test, I simply change the ship name in the save file, and until now have always been able to load up the desired ship in the game under Testman, for testing. The ship I am now testing has four lasers, aft, forward, port, and starboard. However, when I load this pilot in the game, it shows the ship with all it's detail, but will NOT allow me to have lasers. I always test out of the Rexebe system in Galaxy Sector One, which is a Tech Level 13 system, and a Confederation.

Not only will it not allow me to start with lasers, not even front only as on the Jameson Cobra Mk3, in a tech level station of 13, it doesn't even offer to sell me any lasers. It's nearly impossible to test this ship, as I inevitably always run into a bunch of pirates. Since I can't buy lasers, or ECM, not to mention docking computers, the pirates blow me away. That doesn't matter, though, as I have nothing but missiles to fire, and since it doesn't have the automatic target acquisition, if I can't target one of the ships up quick by manually focusing on the ship, I'm dead. This ship is huge, and without even one laser, it doesn't have a prayer.

How can I test my ships if the game refuses to allow me the equipment I specify for the ship being tested?

I have all of those equipment options either listed in optional_equipment, or standard_equipment in the shipyard.plist, and I should have at least Beam Lasers, and ECM, as I have made them stock in the shipdata.plist.

Has anyone else had this difficulty using Linux? Should I be reporting this here, or in bug reports, or the oxp forums?

Thanks.

Oh, one more thing. The Latest.log shows no errors regarding this ship.
Last edited by Getafix on Thu Oct 03, 2013 6:17 pm, edited 1 time in total.
Reason: Marked thread as "Solved"
Mandotech Industries Wiki Page.

http://wiki.alioth.net/index.php/User:Mandoman
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: No Lasers

Post by Smivs »

Has your ship got the correct weapons_facings set in shipdata?
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
mandoman
---- E L I T E ----
---- E L I T E ----
Posts: 1385
Joined: Thu Apr 28, 2011 3:17 pm

Re: No Lasers

Post by mandoman »

Smivs wrote:
Has your ship got the correct weapons_facings set in shipdata?
I have them listed, and their positions listed in shipdata.plist, and I have them all listed in shipyard.plist, as well as the number 15 for weapon facings.
Mandotech Industries Wiki Page.

http://wiki.alioth.net/index.php/User:Mandoman
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Re: No Lasers

Post by Thargoid »

Can you post shipdata and shipyard plists please, so we can check them for you?

It does sound like a problem with one of those files, given they're not offered for sale/upgrade either.
User avatar
mandoman
---- E L I T E ----
---- E L I T E ----
Posts: 1385
Joined: Thu Apr 28, 2011 3:17 pm

Re: No Lasers

Post by mandoman »

shipdata.plist

Code: Select all

{
          Persephone = {
                     aft_eject_position = "0.0 2.2 70.0";
                     aft_weapon_type = "WEAPON_BEAM_LASER";
                     ai_type = "route1traderAI.plist";
                     auto_ai = yes;
                     bounty = 0;
                     cargo_type = "CARGO_RANDOM";
                     energy_recharge_rate = 3.5;
                     escorts = 4;
                     escort_ship = "SolarWing-escort";
                     forward_weapon_type = "WEAPON_BEAM_LASER";
                     has_dock_comp = yes;
                     has_ecm = yes;
                     has_energy_unit = yes;
                     has_escape_pod = yes;
                     has_fuel_injection = yes;
                     has_heat_shield = yes;
                     has_scoop = yes;
                     laser_color = "yellowColor";
                     max_cargo = 100;
                     max_energy = 999;
                     max_missiles = 10;
                     max_flight_pitch = 0.8;
                     max_flight_roll = 0.8;
                     max_flight_speed = 999;
                     missile_launch_position = "0.0 1.8 76.8";
                     model = "persephone.dat";
                     name = "Persephone";
                     port_weapon_type = "WEAPON_BEAM_LASER";
                     roles = "trader sunskim trade";
                     scoop_position = "0.0 -2.5 76.3";
                     starboard_weapon_type = "WEAPON_BEAM_LASER";
                     subentities = (
                               {
                                    type = "flasher";
                                    position = "0.0 0.0 76.5";
                                    color = "whiteColor";
                                    frequency = "0";
                                    phase = "0";
                                    size = "4";
                               },
                               {
                                    type = "flasher";
                                    position = "0.0 3.4 77.1";
                                    color = "yellowColor";
                                    frequency = "0";
                                    phase = "0";
                                    size = "2";
                               },
                               {
                                    type = "flasher";
                                    position = "0.0 12.0 15.0";
                                    color = "whiteColor";
                                    frequency = "0";
                                    phase = "0";
                                    size = "15";
                               },
                               {
                                    type = "flasher";
                                    position = "-8.36 0.26 -74.75";
                                    color = "redColor";
                                    frequency = "0";
                                    phase = "0";
                                    size = "6";
                               },
                               {
                                    type = "flasher";
                                    position = "8.36 0.26 -74.75";
                                    color = "redColor";
                                    frequency = "0";
                                    phase = "0";
                                    size = "6";
                               },
                               {
                                    type = "flasher";
                                    position = "-5.48 0.26 -73.49";
                                    color = "redColor";
                                    frequency = "0";
                                    phase = "0";
                                    size = "6";
                               },
                               {
                                    type = "flasher";
                                    position = "5.48 0.26 -73.49";
                                    color = "redColor";
                                    frequency = "0";
                                    phase = "0";
                                    size = "6";
                               },
                               {
                                    type = "flasher";
                                    position = "0.0 0.26 -72.27";
                                    color = "redColor";
                                    frequency = "0";
                                    phase = "0";
                                    size = "6";
                               },
                               {
                                    type = "flasher";
                                    position = "0.0 2.74 72.64";
                                    color = "yellowColor";
                                    frequency = "0";
                                    phase = "0";
                                    size = "2";
                               },
                     );
                     thrust = 30;
                     weapon_position_aft = "0.0 2.7 -73.1";
                     weapon_position_forward = "0.0 3.4 77.5";
                     weapon_position_port = "-46.0 -4.5 6.1";
                     weapon_position_starboard = "46.0 -4.5 6.1";
          };
          Persephone-player = {
                     like_ship = "Persephone";
                     model = "persephone.dat";
                     name = "Persephone";
                     roles = "player";
                     view_position_aft = "0.0 20.0 -90.0";
                     view_position_forward = "0.0 0.0 92.0";
                     view_position_port = "-65.0 0.0 76.6";
                     view_position_starboard = "65.0 0.0 76.6";
                     weapon_position_aft = "0.0 2.7 -73.1";
                     weapon_position_forward = "0.0 3.4 77.5";
                     weapon_position_port = "-46.0 -4.5 6.1";
                     weapon_position_starboard = "46.0 -4.5 6.1";
                     custom_views = (
			{
				"view_description" = "Rear View";
				"view_orientation" = "1.0 0.0 0.0 0.0";
				"view_position" = "0.0 30.0 -250";
				"weapon_facing" = "AFT";
			},
			{
				"view_description" = "Rear Right View";
				"view_orientation" = "0.9239 0.0 0.3827 0.0";
				"view_position" = "180.0 20.0 -180.0";
				"weapon_facing" = "AFT";
			},
			{
				"view_description" = "Right View";
				"view_orientation" = "0.7071 0.0 0.7071 0.0";
				"view_position" = "280.0 30.0 00.0";
				"weapon_facing" = "FORWARD";
			},
			{
				"view_description" = "Front Right View";
				"view_orientation" = "0.3827 0.0 0.9239 0.0";
				"view_position" = "180.0 10.0 180.0";
				"weapon_facing" = "FORWARD";
			},
			{
				"view_description" = "Front View";
				"view_orientation" = "0.0 0.0 1.0 0.0";
				"view_position" = "0.0 30.0 200.0";
				"weapon_facing" = "FORWARD";
			},
			{
				"view_description" = "Front Left View";
				"view_orientation" = "0.3827 0.0 -0.9239 0.0";
				"view_position" = "-180.0 10.0 180.0";
				"weapon_facing" = "FORWARD";
			},
			{
				"view_description" = "Left View";
				"view_orientation" = "0.7071 0.0 -0.7071 0.0";
				"view_position" = "-280.0 30.0 0.0";
				"weapon_facing" = "FORWARD";
			},
			{
				"view_description" = "Rear Left View";
				"view_orientation" = "0.9239 0.0 -0.3827 0.0";
				"view_position" = "-180.0 10.0 -180.0";
				"weapon_facing" = "AFT";
			},
			{
				"view_description" = "Top View";
				"view_orientation" = "-0.7071 0.7071 0.0 0.0";
				"view_position" = "0.0 300.0 20.0";
				"weapon_facing" = "AFT";
			},
			{
				"view_description" = "Bottom View";
				"view_orientation" = "0.0 0.0 0.7071 0.7071";
				"view_position" = "0.0 -300.0 40.0";
				"weapon_facing" = "FORWARD";
			}
		);
          };
          SolarWing-escort = {
                      aft_eject_position = "0.0 4.6 20.6";
                      aft_weapon_type = "WEAPON_BEAM_LASER";
                      ai_type = "escortAI.plist";
                      auto_ai = no;
                      bounty = 0;
                      cargo = "CARGO_NOT_CARGO";
                      cloak_on = yes;
                      energy_recharge_rate = 4.5;
                      exhaust = (
                              "-10.3 1.7 -18.5 2.5 2.5 4.0",
                              "10.3 1.7 -18.5 2.5 2.5 4.0"
                      );
                      forward_weapon_type = "WEAPON_BEAM_LASER";
                      fuel = 70;
                      has_cloak = no;
                      has_ecm = yes;
                      has_energy_unit = yes;
                      has_fuel_injection = yes;
                      has_heat_shield = yes;
                      has_scoop = yes;
                      laser_color = "yellowColor";
                      materials = {
                                "solarwing.png" = {
                                                "diffuse_map" = "solarwing-escort.png"
                                          }
                      };
                      max_cargo = 15;
                      max_energy = 400;
                      max_flight_pitch = 1.3;
                      max_flight_roll = 1.6;
                      max_flight_speed = 550;
                      max_missiles = 4;
                      missile_launch_position = "0.0 -4.6 10.0";
                      model = "solarwing.dat";
                      name = "SolarWing";
                      roles = "hunter escort";
                      scoop_position = "0.0 -4.6 10.0";
                      subentities = (
                         {
                                type = "flasher";
                                position = "-10.3 2.6 18.7";
                                color = "redColor";
                                frequency = "0";
                                phase = "0";
                                size = "8";
                         },
                         {
                                type = "flasher";
                                position = "10.3 2.6 18.7";
                                color = "redColor";
                                frequency = "0";
                                phase = "0";
                                size = "8";
                         }
                      );
                      thrust = 45;
                      weapon_position_aft = "0.0 -3.2 -23.2";
                      weapon_position_forward = "0.0 -2.8 27.7";
            };
}
Mandotech Industries Wiki Page.

http://wiki.alioth.net/index.php/User:Mandoman
User avatar
mandoman
---- E L I T E ----
---- E L I T E ----
Posts: 1385
Joined: Thu Apr 28, 2011 3:17 pm

Re: No Lasers

Post by mandoman »

shpyard.plist

Code: Select all

{
            Genesis-player = {
                    chance = 0.5;
                    optional_equipment = (
                                        "EQ_NAVAL_ENERGY_UNIT",
                                        "EQ_WEAPON_MILITARY_LASER",
                                        "EQ_WEAPON_TWIN_PLASMA_CANNON",
                                        "EQ_SCANNER_SHOW_MISSILE_TARGET",
                                        "EQ_MULTI_TARGET",
                                        "EQ_TARGET_MEMORY",
                                        "EQ_GAL_DRIVE",
                                        "EQ_ADVANCED_COMPASS",
                                        "EQ_ADVANCED_NAVIGATIONAL_ARRAY",
                                        "EQ_SHIELD_BOOSTER",
                                        "EQ_NAVAL_SHIELD_BOOSTER",
                                        "EQ_MILITARY_JAMMER",
                                        "EQ_MILITARY_SCANNER_FILTER"
                    );
                    price = 500000;
                    standard_equipment = {
                            aft_weapon_type = "EQ_WEAPON_BEAM_LASER";
                            extras = (
                                        "EQ_DOCK_COMP",
                                        "EQ_ECM",
                                        "EQ_ENERGY_UNIT",
                                        "EQ_ESCAPE_POD",
                                        "EQ_FUEL_INJECTION",
                                        "EQ_FUEL_SCOOPS",
                                        "EQ_HEAT_SHIELD"
                            );
                            forward_weapon_type = "EQ_WEAPON_BEAM_LASER";
                            port_weapon_type = "EQ_WEAPON_BEAM_LASER";
                            missiles = 10;
                            starboard_weapon_type = "EQ_WEAPON_BEAM_LASER";
                     };
                     techlevel = 12;
                     weapon_facings = 15;
               };
}
Mandotech Industries Wiki Page.

http://wiki.alioth.net/index.php/User:Mandoman
User avatar
mandoman
---- E L I T E ----
---- E L I T E ----
Posts: 1385
Joined: Thu Apr 28, 2011 3:17 pm

Re: No Lasers

Post by mandoman »

You will have to excuse the extreme max_flight_speed, and max_energy, as it was an attempt to try to outrun the pirates, as I didn't have fuel injectors. The final version will only be 320 max speed, and 350 max energy.

I already see one mistake in the "roles = "trader sunskim trader", as I left the r off of trader after sunskim.
Mandotech Industries Wiki Page.

http://wiki.alioth.net/index.php/User:Mandoman
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Re: No Lasers

Post by Thargoid »

Did you post the right files?

The shipdata has Persephone-player (plus Persephone and SolarWing-escort), but the shipyard refers to Genesis-player?

Aside from that, try adding the weapons (EQ_WEAPON_xxxx_LASER replacing xxxx as appropriate) to the optional equipment list.
User avatar
mandoman
---- E L I T E ----
---- E L I T E ----
Posts: 1385
Joined: Thu Apr 28, 2011 3:17 pm

Re: No Lasers

Post by mandoman »

Thargoid wrote:
Did you post the right files?

The shipdata has Persephone-player (plus Persephone and SolarWing-escort), but the shipyard refers to Genesis-player?

Aside from that, try adding the weapons (EQ_WEAPON_xxxx_LASER replacing xxxx as appropriate) to the optional equipment list.
************************LOL******************************* :lol:

Somehow, I just knew you would find the problem, Thargoid, and I would feel like the fool that I am. Thank you. :lol:
Mandotech Industries Wiki Page.

http://wiki.alioth.net/index.php/User:Mandoman
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Re: No Lasers

Post by Thargoid »

As I've said before, I'll criticise that kind of mistake when I don't make them myself. So you're quite safe from me there :wink: .

Sometimes you spend so long looking for complex problems that you miss the more simple ones. That said I'm a bit surprised that the game engine didn't complain about a missing shipyard file for the Persephone, if that's the ship under test.

Glad to be able to help anyway.
User avatar
mandoman
---- E L I T E ----
---- E L I T E ----
Posts: 1385
Joined: Thu Apr 28, 2011 3:17 pm

Re: No Lasers

Post by mandoman »

Yeah, that's the one, and I am surprised too. Unless it was just seeing it as a NPC ship oxp, but I have the player specified in the shipdata.plist, so you would think there would be a connection, and a subsequent warning. Oh well, all's well that, etc, etc..... :)

Oh, it's testing perfectly now. I'll post some pics of it on my Wiki page at some point. Thanks again.
Mandotech Industries Wiki Page.

http://wiki.alioth.net/index.php/User:Mandoman
Post Reply