Author [EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Where is the __main__ defined?  (Read 279 times)

Offline wolverine1984

  • Fledgling
  • *
  • Posts: 1
  • Reputation: +0/-0
Where is the __main__ defined?
« on: September 06, 2019, 08:31:38 am »

I'm looking at the python scripts and they all include importing the __main__ module. However, I can't seem to find where this module is in the code.
I want to make a simple cheat mod that multiples the number of XP points you receive by X. I want to do so by simply modifying the "AwardExperience()" function. But this function is defined in '__main__.FindPlayer().AwardExperience' and like I said, I can't find where the code for __main__ is located. It seems it isn't located with the rest of the python files. Assistance will be appreciated.

Offline Norrwin

  • Neonate
  • **
  • Posts: 90
  • Reputation: +1/-0
Re: Where is the __main__ defined?
« Reply #1 on: September 11, 2019, 08:05:51 am »
If you install the UP Patch_Extras it includes a Mod Development Guide authored by Dheu, I would start there it should clear up a lot of questions.


SimplePortal 2.3.7 © 2008-2020, SimplePortal