news item glitch [patch included]

Find any bugs in Vega Strike? See if someone has already found it, or report them here!
Post Reply
nikai
Trader
Trader
Posts: 18
Joined: Tue Jun 01, 2010 4:23 pm

news item glitch [patch included]

Post by nikai »

I just saw a news item: "DEMAND FOR Research AND Research ..."

So I added a little while loop. :)
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: news item glitch [patch included]

Post by klauss »

Actually, what you want is to create a SET:

Code: Select all

     adj=vsrandom.uniform (-.5,.5)
     myquest=0
     cats = set(VS.getRandCargo(1,"").GetCategory(), VS.getRandCargo(1,"").GetCategory())
     news=""
     if (adj<0):
         news = "SURPLUS IN %s:  There are reports of surpluses of %s items in the %s system.  Wise Privateers have been purchasing the surpluses in hopes of future gains elsewhere." % (sys," and ".join(cats),sys)
But nice catch... I'll commit the fix.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
nikai
Trader
Trader
Posts: 18
Joined: Tue Jun 01, 2010 4:23 pm

Re: news item glitch [patch included]

Post by nikai »

Indeed, using a set looks more straightforward. Thanks!
athomic1
Bounty Hunter
Bounty Hunter
Posts: 137
Joined: Wed Apr 08, 2009 6:07 am

Re: news item glitch [patch included]

Post by athomic1 »

If I'm reading that right, it looks like the reported surplus has nothing to do with an actual in-game situation. Is that right?

I'd wondered, on occasion, whether the "news" system really offered anything useful. Doesn't sound like it, from this...
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: news item glitch [patch included]

Post by klauss »

When I checked that function it did relate to the "bigger picture" game state.

That is, the game has two levels of simulation, one "galactic", one could say, and another "system-wide". "galactic" simulation happens with statistical data, and those surplus news items (when I checked a few years ago) were generated as a response to galactic statistical data.

However, it may be that I remember incorrectly or that it changed since then...
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Post Reply