collapse

* Notice

Important notice (31 July): We have recently recovered from a nearly two day downtime due to an attack. No data was lost or stolen but the server has been reinstalled as a precaution. Please let us know if you encounter any issues. We apologise for the unacceptable inconvenience. Please read here for more information.

Author [EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Need help editing vampire.py.  (Read 1502 times)

Offline Acleacius

  • Antediluvian
  • *****
  • Posts: 927
  • Reputation: +447/-3
Need help editing vampire.py.
« on: July 06, 2010, 12:12:18 pm »
I made a change to Heather's state concerning McFly. It seems anytime I try to edit the vampire.py it causes problem in the hub I am in, as an example currently in Downtown. I made the change before she runs up to you and is placed in the Haven. Once I go up to meet LaCroix the Cutscene with the Elders, doesn't play. In passed instances of trying to edit it, a zone door wouldn't work or once I zoned I couldn't return to the main hub.

I tried deleting the vampire.pyc file but the game didn't make a new one.

Do I need to use a special Editor?


Thanks for any tips.  :)
Trust me, most of the names I have been called you can't translate in any language...they're not even real words as much as a succession of violent images.

Offline Malkav

  • Antediluvian
  • *****
  • Posts: 1782
  • Reputation: +392/-13
Re: Need help editing vampire.py.
« Reply #1 on: July 06, 2010, 06:29:36 pm »
If it didn't make a new *.pyc file, there is an error in the *.py. Load a game on this map and open the console. Then scroll back in the console window until you find the error message.
Co Author of Camarilla Edition Mod

Offline burgermeister01

  • Administratrix
  • Antediluvian
  • *****
  • Posts: 544
  • Reputation: +349/-1
Re: Need help editing vampire.py.
« Reply #2 on: July 07, 2010, 04:37:46 am »
Also, if you post your rendition of vampire.py, we may be able to help debug your error.

Offline Acleacius

  • Antediluvian
  • *****
  • Posts: 927
  • Reputation: +447/-3
Re: Need help editing vampire.py.
« Reply #3 on: July 07, 2010, 06:26:14 am »
Oh I see, thanks for the tips.  Here is the line I edited, your right I see the error showing this line too, preventing making the .pyc. I added the G.Heather_Indoors = 0 or, at the beginning. Is it due to me using an OR command while everything else is AND?

I am trying to prevent McFly from spawning if Heather is G.Heather_Indoors = 1, to fit the story/theory of Heather following orders not to reveal herself to anyone.

Quote
if(G.Heather_Indoors = 0 or G.Story_State >= 30 and G.Heather_Haven and not IsDead("Heather") and G.Heather_Gone == 0 and G.Story_State < 75 and not G.Heather_Lure):
        G.Mcfly_Present = 1
        mcfly = Find("McFly")
        if mcfly: mcfly.ScriptUnhide()

Thanks for any tips.  :smile:
Trust me, most of the names I have been called you can't translate in any language...they're not even real words as much as a succession of violent images.

Offline Acleacius

  • Antediluvian
  • *****
  • Posts: 927
  • Reputation: +447/-3
Re: Need help editing vampire.py.
« Reply #4 on: July 07, 2010, 06:34:14 am »
Here is another one I tried, which didn't work either, heh.

Quote
Will this work, I added the two last lines?
if(G.Story_State >= 30 and G.Heather_Haven and not IsDead("Heather") and G.Heather_Gone == 0 and G.Story_State < 75 and not G.Heather_Lure):
        G.Mcfly_Present = 1
        mcfly = Find("McFly")
        if mcfly: mcfly.ScriptUnhide()
    elif(__main__.G.Heather_Indoors = 1):
        if mcfly: mcfly.Scripthide()
Trust me, most of the names I have been called you can't translate in any language...they're not even real words as much as a succession of violent images.

Offline Acleacius

  • Antediluvian
  • *****
  • Posts: 927
  • Reputation: +447/-3
Re: Need help editing vampire.py.
« Reply #5 on: July 07, 2010, 06:59:01 am »
Think I am getting close, this prevented him from spawning but Heather start her line 671 anyway. Which is odd since the condition on her .dlg file is G.Mcfly_Present == 1 and he wasn't.

Quote
    if(G.Story_State >= 30 and G.Heather_Haven and not IsDead("Heather") and G.Heather_Gone == 0 and G.Story_State <

75 and not G.Heather_Lure and not G.Heather_Indoors == 1):

Suggestions?   :smile:

Edit

I think I got it now, add this to her 999 dialog line.

Quote
G.Mcfly_Present == 1 and G.Heather_Indoors == 0

Thanks for the tips.
« Last Edit: July 07, 2010, 07:11:29 am by Acleacius »
Trust me, most of the names I have been called you can't translate in any language...they're not even real words as much as a succession of violent images.

Offline Malkav

  • Antediluvian
  • *****
  • Posts: 1782
  • Reputation: +392/-13
Re: Need help editing vampire.py.
« Reply #6 on: July 07, 2010, 11:19:54 pm »
About your programming error: In the if statement you must always use double ==.
A single = is used to set a value to a variable; the double ones for checking the value.
Co Author of Camarilla Edition Mod

Offline Acleacius

  • Antediluvian
  • *****
  • Posts: 927
  • Reputation: +447/-3
Re: Need help editing vampire.py.
« Reply #7 on: July 08, 2010, 05:26:19 am »
Ahh, thanks Malkav, good to know.
Trust me, most of the names I have been called you can't translate in any language...they're not even real words as much as a succession of violent images.

 

SimplePortal 2.3.7 © 2008-2020, SimplePortal