Oolite Bulletins

For information and discussion about Oolite.
It is currently Wed Dec 19, 2018 5:18 am

All times are UTC




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Thu Dec 28, 2017 7:26 am 
Offline
Deadly
Deadly

Joined: Mon May 25, 2015 5:23 pm
Posts: 155
Location: Russia
"... The Q-bomb was banned across Galcop, Federation and Imperial space...". This is quote from [EliteWiki] Quirium Cascade Mine.

Why the NPC-ships not can activated Q-Bomb?

I am developed the upgrade Q-Bomb AI for fixed this issue.

Let me know if I've missed anything about bombs, or if something doesn't make sense.

Questions, comments, suggestions, and error reports welcome!

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Upgrade the Q-bomb AI as OXP:
You can download this OXP from the following links:
Download OXZ version 0.2 here: OXZ.
Download OXP (in zip) version 0.2 here: OXP.


Last edited by Rustem on Thu Jan 18, 2018 11:51 am, edited 3 times in total.

Top
   
PostPosted: Thu Dec 28, 2017 11:09 am 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Mon Apr 06, 2009 12:20 pm
Posts: 6310
Location: Aboard the Pitviper S.E. "Blackwidow"
Quote:
Why the NPC-ships not can activated Q-Bomb?

Certainly NPC ships in some OXPs can use Q-Bombs.. the more dangerous marks in Random Hits carry them as a last-ditch defence or from-the-grave revenge attack. That particular tactic was a big part of the reason I came up with the Q-Bomb Detector.

I vaguely seem to recall some past discussion about the pros and cons of NPC use of WMDs. NPC use of Q-Bombs may have been downgraded as a result of that discussion.. but I'm not sure of that.

_________________
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied


Top
   
PostPosted: Thu Dec 28, 2017 2:35 pm 
Offline
Deadly
Deadly

Joined: Mon May 25, 2015 5:23 pm
Posts: 155
Location: Russia
Upgrade Q-bomb AI OXP is released. It is worked for player, NPC-ships and rock-hermits. It is the beta release. Links in the first message.


Top
   
PostPosted: Sat Jan 20, 2018 12:24 pm 
Offline
Deadly
Deadly
User avatar

Joined: Mon May 30, 2016 3:54 am
Posts: 203
Quote:
Upgrade Q-bomb AI OXP is released. It is worked for player, NPC-ships and rock-hermits. It is the beta release. Links in the first message.
Sorry Rustem,
I had some test-runs today, the result was nicely flowing bombs and your log but no explosions.

This simple AI is actually working pretty well:

{
GLOBAL =
{
//ENTER = ("commsMessageByUnpiloted: [CWC_explosion_01]", "pauseAI: 5.0");
ENTER = ("pauseAI: 5.0");
UPDATE = ("setStateTo: DETONATE");
};

DETONATE =
{
ENTER = (becomeEnergyBlast);
};
}

_________________
Trying to survive behind the controls of a Caduceus Psi XT in Alpha test :lol:


Top
   
PostPosted: Sat Jan 20, 2018 3:11 pm 
Offline
Deadly
Deadly

Joined: Mon May 25, 2015 5:23 pm
Posts: 155
Location: Russia
Quote:
Quote:
Upgrade Q-bomb AI OXP is released. It is worked for player, NPC-ships and rock-hermits. It is the beta release. Links in the first message.
Sorry Rustem,
I had some test-runs today, the result was nicely flowing bombs and your log but no explosions.
In which version of the Oolite your testing? The NPC have been launch Q-bomb and no explosions?

This pack is upgrade for JavaScript AI.


Top
   
PostPosted: Sun Jan 21, 2018 7:41 am 
Offline
Deadly
Deadly
User avatar

Joined: Mon May 30, 2016 3:54 am
Posts: 203
Quote:
Quote:
Quote:
Upgrade Q-bomb AI OXP is released. It is worked for player, NPC-ships and rock-hermits. It is the beta release. Links in the first message.
Sorry Rustem,
I had some test-runs today, the result was nicely flowing bombs and your log but no explosions.
In which version of the Oolite your testing? The NPC have been launch Q-bomb and no explosions?

This pack is upgrade for JavaScript AI.
I am testing in Oolite version 1.86 (x86-64) under Windows. After I replaced the AI with your JS version the Q-bombs got spawned (I am using a script) but refused to explode. In the log I got your message: [Oolite Q-bomb AI]: Q-bomb - shipSpawned by ( null | player | spawnOne | system.addShips ).

You are very welcome to have a look by yourself at https://app.box.com/s/locs6adgq2kav1ct4v75opxhd91uuuua but please keep in mind its a WIP, currently mainly used for testing for other modules.

_________________
Trying to survive behind the controls of a Caduceus Psi XT in Alpha test :lol:


Top
   
PostPosted: Sun Jan 21, 2018 2:25 pm 
Offline
Deadly
Deadly

Joined: Mon May 25, 2015 5:23 pm
Posts: 155
Location: Russia
Quote:
...
In the log I got your message: [Oolite Q-bomb AI]: Q-bomb - shipSpawned by ( null | player | spawnOne | system.addShips ).
...
This version Q-bomb has safe mode spawning. It will activated if it:
- has owner;
- has order from owner for its activation via AIScript.shipWasDumped().

For example for your ship scripts should be:
Code:
this.shipDied = function(who,why)
{
	...
	var reactor = system.addShips("EQ_CWC_Q_MINE", 1, this.ship.position);
        reactor[0].AIScript.shipWasDumped();
	reactor = system.addShips("EQ_CWC_Q_MINE", 2, this.ship.position);
        reactor.forEach(function(ship) {ship.AIScript.shipWasDumped();}, this);
        ...
}
Also working template code from Spicy hermits OXP:
Code:
	var qbomb = ship.spawnOne("energy-bomb");
	qbomb.AIScript.shipWasDumped();  


Top
   
PostPosted: Tue Jan 23, 2018 11:51 pm 
Offline
Deadly
Deadly
User avatar

Joined: Mon May 30, 2016 3:54 am
Posts: 203
Quote:
This version Q-bomb has safe mode spawning. It will activated if it:
I obviously missed that, thank you Rustem. As soon as I got my new PSU I will run some new tests.

_________________
Trying to survive behind the controls of a Caduceus Psi XT in Alpha test :lol:


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 25 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Limited