A little change in dynamic_mission.py

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

Moderator: pyramid

A little change in dynamic_mission.py

Postby CoD » Wed Aug 16, 2006 9:16 am

First of all: I'm not sure if this is the right section for this thread, so if it's not please excuse me :D

I made a little change in vegastrike/modules/dynamic_mission.py and I would like to share it with you.

Quite often different cargo mission point at the same destination system, so it's possible to make some big money with just 1 good travel.
But.. with the listing system used in the mission computer it's not easy to figure out what of these mutilple travels is the most profitable, so I modified dynamic_mission.py in order to have cargo missions listed with the destination system first, then the type of cargo (contraband or normal cargo)

This is what I changed: in line 403, instead of
Code: Select all
writemissionname("Cargo/Deliver_%s_to_%s"%(changecat(category),processSystem(path[-1])),path,isFixerString(addstr))

I wrote:
Code: Select all
writemissionname("Cargo/%s_(%s)"%(processSystem(path[-1]),changecat(category)),path,isFixerString(addstr))


This makes mission computer list cargo mission alphabetically using destination system, making easy to see missions sharing the same target.

Hope this would be useful for someone :wink:
CoD
Hunter
Hunter
 
Posts: 82
Topics: 9
Joined: Thu Nov 01, 2007 3:09 am
Location: Italy

Share On:

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

Postby rockstar » Wed Aug 16, 2006 9:46 am

Well, sounds good to me, makes sense to me... thumbs up :D
Be lenient with my english skills... still using a dictonary. http://dict.tu-chemnitz.de/
User avatar
rockstar
Bounty Hunter
Bounty Hunter
 
Posts: 164
Topics: 9
Joined: Tue Nov 01, 2005 1:19 am
Location: germany

Postby rigelan » Wed Aug 16, 2006 6:17 pm

I like the idea.

BTW, is there a way ingame to reference the quickest path to take to a system BEFORE choosing a mission. As of now, the quickest path shows up after you get off the planet or base.
User avatar
rigelan
Confed Special Operative
Confed Special Operative
 
Posts: 291
Topics: 33
Joined: Fri Jan 27, 2006 7:58 pm
Location: Des Moines, Iowa

Postby Oblivion » Wed Aug 16, 2006 7:45 pm

8) Nifty.

Thank you for sharing the code. :D

BTW: Any plans in sharing this change via SVN? It's just a minor change but it would help clean up the cluttered VS interface a lot.

assuming it has no adverse effects. :wink:
A Step Into Oblivion

Dreams of things that will never be,
Songs of thoughts only I can hear,
Leave me be to sleep forever,
To dream my dreams,
And sing my hymns,
Of things that will never be...
User avatar
Oblivion
Artisan Extraordinaire
Artisan Extraordinaire
 
Posts: 1269
Topics: 71
Joined: Tue Mar 21, 2006 3:55 am
Location: Philippines

Postby CoD » Thu Aug 17, 2006 1:13 am

I posted this change here because I wanted to test it with you.

I'm still trying to compile the svn version of vegastrike, with no success.
This change was tested on my old vegastrike 0.4.3.2 (ubuntu version), so I need your help, guys, to test it with a development version of vs.

If this change is safe and you guys like it I could commit it to svn but.... ehm... never done it before. :oops:
I can download the new sources, but I can't compile them and I don't know how to commit changes.
I'm always happy to learn something new, so I could try to do it, but I would need a quick little guide about committing files and comments to svn.

Maybe, until I won't be able to compile correctly, it would be easier and safer if you commit my changes for me, wouldn't it? :roll:
CoD
Hunter
Hunter
 
Posts: 82
Topics: 9
Joined: Thu Nov 01, 2007 3:09 am
Location: Italy

Postby klauss » Thu Aug 17, 2006 10:39 am

Well, it needs a fresh paint before commiting.

<destination> <cargo> is not a very pleasant description.

Perhaps "Delivery to <destination> (<cargo>)".
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

Postby CoD » Thu Aug 17, 2006 4:43 pm

I suppose that the alphabetical order will be preserved if we write "delivery to <destination>", so it's ok.

I use the simplest way because I like to see where I should go, instead of reading "Deliver cargo to....": long sentences are always cut, and the differences between some system names are made just of 2 or 3 letters.

Mission computer interface could be more "friendly" or more "quick and dirty"... depends on taste, I think.
I'm for the quick and dirty way, but this is just my opinion: I like old, rusty computers, laying in dark corners of old bases on some forgotten asteroid, with their old crackling hard disks, their mouse-bitten cables and the old not friendly interface that welcomes you flickering on the dirty screen :D
Smells like good business to me :wink:
CoD
Hunter
Hunter
 
Posts: 82
Topics: 9
Joined: Thu Nov 01, 2007 3:09 am
Location: Italy

Postby Oblivion » Fri Aug 18, 2006 4:59 am

And while you're at it, could you also modify the Bounty and Escort missions to be listed alphabetically. Destinations will always have to be first, of course.

alphabetically it would be Bounty missions first ("Bounty in <destination>, Target: <ship>", or somesuch better wording with same order)

then Escort missions ("Escort to <destination>, <ship>", again needs better wording)

and last Cargo missions (as Klauss suggested "Delivery to <destination>, <cargo>")

And I like friendly computers. I sleep with mine, bathe with mine, eat with mine, my computer is my bestfriend. :roll: I've even given her a voice, now when I make a mistake, she berates me by saying gently "Unrecoverable Error". And she soothes me by saying "Systems on-line" and "Welcome Oblivion!" when I log on. Oh.. And I think I'll marry her someday.

lol.

'Sides, rusty old computers could give you tetanus. :lol:
A Step Into Oblivion

Dreams of things that will never be,
Songs of thoughts only I can hear,
Leave me be to sleep forever,
To dream my dreams,
And sing my hymns,
Of things that will never be...
User avatar
Oblivion
Artisan Extraordinaire
Artisan Extraordinaire
 
Posts: 1269
Topics: 71
Joined: Tue Mar 21, 2006 3:55 am
Location: Philippines

Postby CoD » Fri Aug 18, 2006 3:27 pm

Oblivion wrote:And while you're at it, could you also modify the Bounty and Escort missions to be listed alphabetically. Destinations will always have to be first, of course.

I could modify this file but.. can you test it in your development version? Because (as I said) I can't


Oblivion wrote:'Sides, rusty old computers could give you tetanus. :lol:

Yes but... it's not me that sleeps with his computer: I just "use" them :mrgreen:
CoD
Hunter
Hunter
 
Posts: 82
Topics: 9
Joined: Thu Nov 01, 2007 3:09 am
Location: Italy

Postby Oblivion » Sun Aug 20, 2006 3:38 am

I could modify this file but.. can you test it in your development version? Because (as I said) I can't


I've no idea how to access SVN too. But Klauss, Zeog, or any of the coredevs could.

I'm using Zeog's SVN snapshot, and sure I'll test them. :wink:
A Step Into Oblivion

Dreams of things that will never be,
Songs of thoughts only I can hear,
Leave me be to sleep forever,
To dream my dreams,
And sing my hymns,
Of things that will never be...
User avatar
Oblivion
Artisan Extraordinaire
Artisan Extraordinaire
 
Posts: 1269
Topics: 71
Joined: Tue Mar 21, 2006 3:55 am
Location: Philippines



Return to Content Vetting

Who is online

Users browsing this forum: No registered users and 2 guests