I just saw a news item: "DEMAND FOR Research AND Research ..."
So I added a little while loop.
news item glitch [patch included]
-
- Trader
- Posts: 18
- Joined: Tue Jun 01, 2010 4:23 pm
news item glitch [patch included]
You do not have the required permissions to view the files attached to this post.
-
- Elite
- Posts: 7243
- Joined: Mon Apr 18, 2005 2:40 pm
- Location: LS87, Buenos Aires, República Argentina
Re: news item glitch [patch included]
Actually, what you want is to create a SET:
But nice catch... I'll commit the fix.
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)
-
- Trader
- Posts: 18
- Joined: Tue Jun 01, 2010 4:23 pm
Re: news item glitch [patch included]
Indeed, using a set looks more straightforward. Thanks!
-
- Bounty Hunter
- Posts: 137
- Joined: Wed Apr 08, 2009 6:07 am
Re: news item glitch [patch included]
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...
I'd wondered, on occasion, whether the "news" system really offered anything useful. Doesn't sound like it, from this...
-
- Elite
- Posts: 7243
- Joined: Mon Apr 18, 2005 2:40 pm
- Location: LS87, Buenos Aires, República Argentina
Re: news item glitch [patch included]
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...
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...