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

New quest - Pirate hackers

Postby breese » Sat Nov 27, 2010 11:22 am

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.
Attachments
quest_snatcher.py
(10.74 KiB) Downloaded 210 times
adventure.py.diff
(562 Bytes) Downloaded 112 times
breese
Bounty Hunter
Bounty Hunter
 
Posts: 152
Topics: 14
Joined: Thu Sep 02, 2010 1:00 pm

Share On:

Share on Facebook Facebook Share on Twitter Twitter Share on Digg Digg

Re: New quest - Pirate hackers

Postby breese » Sun Nov 28, 2010 8:49 am

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.
Attachments
quest_snatcher.py
(10.69 KiB) Downloaded 115 times
breese
Bounty Hunter
Bounty Hunter
 
Posts: 152
Topics: 14
Joined: Thu Sep 02, 2010 1:00 pm

Re: New quest - Pirate hackers

Postby klauss » Tue Dec 07, 2010 8:44 pm

Cool stuff... I'll try to integrate it :D
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: New quest - Pirate hackers

Postby breese » Wed Mar 02, 2011 8:52 am

Has this been forgotten?
breese
Bounty Hunter
Bounty Hunter
 
Posts: 152
Topics: 14
Joined: Thu Sep 02, 2010 1:00 pm

Re: New quest - Pirate hackers

Postby pyramid » Wed Mar 02, 2011 10:49 am

Seems so. I'll take a look.
User avatar
pyramid
Expert Mercenary
Expert Mercenary
 
Posts: 960
Topics: 44
Joined: Wed Jun 14, 2006 6:02 pm
Location: Somewhere in the vastness of space

Re: New quest - Pirate hackers

Postby pyramid » Wed Mar 02, 2011 12:23 pm

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
User avatar
pyramid
Expert Mercenary
Expert Mercenary
 
Posts: 960
Topics: 44
Joined: Wed Jun 14, 2006 6:02 pm
Location: Somewhere in the vastness of space

Re: New quest - Pirate hackers

Postby pheonixstorm » Wed Mar 02, 2011 12:51 pm

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
User avatar
pheonixstorm
Elite
Elite
 
Posts: 1567
Topics: 113
Joined: Mon Jan 25, 2010 7:03 pm

Re: New quest - Pirate hackers

Postby pyramid » Wed Mar 02, 2011 12:59 pm

Btw, klauss, can you move this post to Artwork & Content Vetting.
User avatar
pyramid
Expert Mercenary
Expert Mercenary
 
Posts: 960
Topics: 44
Joined: Wed Jun 14, 2006 6:02 pm
Location: Somewhere in the vastness of space

Re: New quest - Pirate hackers

Postby klauss » Wed Mar 02, 2011 1:27 pm

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
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: New quest - Pirate hackers

Postby pyramid » Wed Mar 02, 2011 3:05 pm

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:
User avatar
pyramid
Expert Mercenary
Expert Mercenary
 
Posts: 960
Topics: 44
Joined: Wed Jun 14, 2006 6:02 pm
Location: Somewhere in the vastness of space



Return to Content Vetting

Who is online

Users browsing this forum: No registered users and 1 guest

cron