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

Post Reply
CoD

A little change in dynamic_mission.py

Post by CoD »

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:
rockstar
Bounty Hunter
Bounty Hunter
Posts: 164
Joined: Tue Nov 01, 2005 8:19 am
Location: germany
Contact:

Post by rockstar »

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/
rigelan
Confed Special Operative
Confed Special Operative
Posts: 291
Joined: Sat Jan 28, 2006 2:58 am
Location: Des Moines, Iowa

Post by rigelan »

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.
Oblivion
Artisan Extraordinaire
Artisan Extraordinaire
Posts: 1269
Joined: Tue Mar 21, 2006 10:55 am
Location: Philippines

Post by Oblivion »

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...
CoD

Post by CoD »

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

Post by klauss »

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
CoD

Post by CoD »

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:
Oblivion
Artisan Extraordinaire
Artisan Extraordinaire
Posts: 1269
Joined: Tue Mar 21, 2006 10:55 am
Location: Philippines

Post by Oblivion »

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...
CoD

Post by CoD »

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:
Oblivion
Artisan Extraordinaire
Artisan Extraordinaire
Posts: 1269
Joined: Tue Mar 21, 2006 10:55 am
Location: Philippines

Post by Oblivion »

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...
Post Reply