New quest - Pirate hackers

Thinking about improving the Artwork in Vega Strike, or making your own Mod? Submit your question and ideas in this forum.

Moderator: pyramid

Post Reply
breese
Bounty Hunter
Bounty Hunter
Posts: 152
Joined: Thu Sep 02, 2010 8:00 pm

New quest - Pirate hackers

Post by breese »

I have written a script where pirates try to steal your most valuable cargo when you jump to a system.

You must do two things to run the quest. First, copy the attached quest_snatcher.py file to the data/modules/quest directory. Second, add two lines to the data/modules/adventure.py file as shown in attached adventure.py.diff file.

Currently the pirates will attack every time you jump to a system, but that is only to make it easier for you to test the script. Eventually, they should only attack once in a while.

Once you have started the game, do as follows:
  • Make sure that you have some cargo.
  • Jump to another system.
  • Drop your speed to below 200.
  • Fight for your cargo or get out of the way.
Although fully functional, the script still needs tweeking (e.g. sometimes the pirate who should scoop up your cargo seems more interested in attacking you.)

Any comments and suggestions are welcome.
You do not have the required permissions to view the files attached to this post.
breese
Bounty Hunter
Bounty Hunter
Posts: 152
Joined: Thu Sep 02, 2010 8:00 pm

Re: New quest - Pirate hackers

Post by breese »

breese wrote:Currently the pirates will attack every time you jump to a system, but that is only to make it easier for you to test the script. Eventually, they should only attack once in a while.
I just discovered a comparison error that means that the pirates will never attack you.

Use the attached script instead.
You do not have the required permissions to view the files attached to this post.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: New quest - Pirate hackers

Post by klauss »

Cool stuff... I'll try to integrate it :D
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
breese
Bounty Hunter
Bounty Hunter
Posts: 152
Joined: Thu Sep 02, 2010 8:00 pm

Re: New quest - Pirate hackers

Post by breese »

Has this been forgotten?
pyramid
Expert Mercenary
Expert Mercenary
Posts: 988
Joined: Thu Jun 15, 2006 1:02 am
Location: Somewhere in the vastness of space
Contact:

Re: New quest - Pirate hackers

Post by pyramid »

Seems so. I'll take a look.
pyramid
Expert Mercenary
Expert Mercenary
Posts: 988
Joined: Thu Jun 15, 2006 1:02 am
Location: Somewhere in the vastness of space
Contact:

Re: New quest - Pirate hackers

Post by pyramid »

Code: Select all

Traceback (most recent call last):
  File "/home/software/vegastrike/data/modules/missions/privateer.py", line 34, in Execute
    i.Execute()
  File "/home/software/vegastrike/data/modules/random_encounters.py", line 293, in Execute
    if (self.cur.quests[self.cur.curquest].Execute()):
  File "/home/software/vegastrike/data/modules/quests/quest_snatcher.py", line 132, in Execute
    elif (not self.ExecuteQuest()):
  File "/home/software/vegastrike/data/modules/quests/quest_snatcher.py", line 156, in ExecuteQuest
    self.FirstHackAttempt()
  File "/home/software/vegastrike/data/modules/quests/quest_snatcher.py", line 222, in FirstHackAttempt
    self.SendComputerMessage("Security warning: Unauthorized access attempted by " + unit.getFullName(self.hacker) + ".")
AttributeError: 'module' object has no attribute 'getFullName'
terminate called after throwing an instance of 'boost::python::error_already_set'
Aborted
There is a function getUnitFullName() if it fits the purpose.

*EDIT*

It seems to be working fine with getUnitFullName().
I would only suggest that the same doesn't happen every time you jump or it becomes too repetitive.

You could save a variable for the quest every jump or look at the last execution stardate and make it be reactivated only every 20 jumps or every some interval or so.

Other than that, it is a very funny quest and I'd like to see it integrated soon. :D
pheonixstorm
Elite
Elite
Posts: 1567
Joined: Tue Jan 26, 2010 2:03 am

Re: New quest - Pirate hackers

Post by pheonixstorm »

i thought i had commited it :oops:
Because of YOU Arbiter, MY kids? can't get enough gas. OR NIPPLE! How does that mkae you feeeel? ~ Halo
pyramid
Expert Mercenary
Expert Mercenary
Posts: 988
Joined: Thu Jun 15, 2006 1:02 am
Location: Somewhere in the vastness of space
Contact:

Re: New quest - Pirate hackers

Post by pyramid »

Btw, klauss, can you move this post to Artwork & Content Vetting.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: New quest - Pirate hackers

Post by klauss »

breese wrote:Has this been forgotten?
That's why I ask things to be put in the issue tracker lately ;)
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
pyramid
Expert Mercenary
Expert Mercenary
Posts: 988
Joined: Thu Jun 15, 2006 1:02 am
Location: Somewhere in the vastness of space
Contact:

Re: New quest - Pirate hackers

Post by pyramid »

That's why I ask things to be put in the issue tracker lately ;)[/quote]

I'm with you. It is a good way to organize oneself. There is a category for feature requests, i.e. integrating new functionality (codewise) or new artistic data.

Thanks for moving this post :wink:
Post Reply