collapse

Author [EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Missing Data and Poster Session bugs.  (Read 423 times)

Offline Norrwin

  • Neonate
  • **
  • Posts: 85
  • Reputation: +1/-0
Re: Missing Data and Poster Session bugs.
« Reply #15 on: June 01, 2020, 04:56:53 PM »
Maybe an indentation error?  Or a punctuation error?
Yes that is my main dislike for Python but I don't think it is a problem in this case. There are no Python errors and the function works when run from a console, also without any errors.


I think DDLullu is right about the order, I always figured that vamputil.py was run first. Who knows what other issues were caused by this? But I found a more elegant solution, try this:

I did try it and it didn't remove the posters and posterCheck() no longer removes them either when run from the console. From my earlier post, G.Haven_Empty never gets set unless run from a console window, which is why it doesn't work here either.

However, if I run lockHaven() from the console it still does remove the posters, G.Haven_Empty gets set and posterCheck() does print out no posters to the console. But there aren't any posters to remove since lockHaven() already removed them.

The original code would work fine, if it ever ran, why it doesn't is a mystery to me.

Offline Wesp5

  • Administratrix
  • Antediluvian
  • *****
  • Posts: 6670
  • Reputation: +885/-28
  • Unofficial Patcher
Re: Missing Data and Poster Session bugs.
« Reply #16 on: June 01, 2020, 05:28:30 PM »
Well, my last solution does run on my system from the Python files so it should be okay. I have no idea why the script isn't running for you. Did you modify the haven map and accidentally delete it?

Offline Norrwin

  • Neonate
  • **
  • Posts: 85
  • Reputation: +1/-0
Re: Missing Data and Poster Session bugs.
« Reply #17 on: June 01, 2020, 06:31:24 PM »
I had that thought about accidentally modifying the map as well, so I extracted the 10.4 files again in a different place and compared them and they were the same. But to be triple sure I copied the newly extracted file over and loaded the save again.


Didn't the original code work on your machine as well? If it did is there any reason to change it?

Offline Wesp5

  • Administratrix
  • Antediluvian
  • *****
  • Posts: 6670
  • Reputation: +885/-28
  • Unofficial Patcher
Re: Missing Data and Poster Session bugs.
« Reply #18 on: June 01, 2020, 11:27:51 PM »
Didn't the original code work on your machine as well? If it did is there any reason to change it?
It can be that I never tested it because I assumed that vamputil.py was run earlier ;)...

 

SimplePortal 2.3.7 © 2008-2020, SimplePortal