Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It's not a problem. I need help with the core. #7

Open
dkruben opened this issue Apr 5, 2020 · 8 comments
Open

It's not a problem. I need help with the core. #7

dkruben opened this issue Apr 5, 2020 · 8 comments

Comments

@dkruben
Copy link

dkruben commented Apr 5, 2020

hello, I use your core in my mods, because it is simple to use, but now I needed to know, if in your core there is some way to (write and read) a json file (to create a cache file), already tried this.

class ConfigInterface (PYmodsConfigInterface):
def init __ (self):
self.values={}
super (ConfigInterface, self) .
init __ ()

def readCurrentSettings (self, quiet = True):
     super (ConfigInterface, self) .readCurrentSettings (quiet)
     self.values = loadJson (self.ID, 'cache', self.values, {}, quiet = quiet) # [0]
@PolyacovYury
Copy link
Owner

Yes, there is. Check File config/interfaces/Simple.py, in readCurrentSettings. Long story short - if you extend Simple.ConfigInterface - you already have loadDataJson and writeDataJson methods, that read from/write to %(MOD_ID)s.json file.
Examples of additional usage of loadJson function can be found in mod_Skinner/config.py, mod_RemodEnabler/config.py,...

@dkruben
Copy link
Author

dkruben commented Apr 7, 2020

thank you very much, sir. big help 👍

@PolyacovYury
Copy link
Owner

Wait. Was this sarcastic or actually helpful?)
I can always elaborate, if such need arises.

@ChaoGaoo
Copy link

ChaoGaoo commented Jun 5, 2020

hello, masterPolyacovYury, i can not understand your code, i am a outsider about code, can you tell me where to get the mood file? please. and where to get the compatible version for version 1.9.0.2 for chinese server?. thanks a lot

@dkruben
Copy link
Author

dkruben commented Jun 6, 2020

Wait. Was this sarcastic or actually helpful?)
I can always elaborate, if such need arises.

helpful allot 💯

@dkruben
Copy link
Author

dkruben commented Jun 6, 2020

hello, masterPolyacovYury, i can not understand your code, i am a outsider about code, can you tell me where to get the mood file? please. and where to get the compatible version for version 1.9.0.2 for chinese server?. thanks a lot

hello, 1.9.0.3 is probably the same as 1.9.02, so all mods work correctly for the rest only @PolyacovYury can help you

@ChaoGaoo
Copy link

ChaoGaoo commented Jun 7, 2020

ha,the code makes me puzzle,i don't know where to download the files and how to make the function successful in game, can you help me? @PolyacovYury

@PolyacovYury
Copy link
Owner

Check out https://github.com/PolyacovYury/PYmods/wiki/Home_EN, it has some links to compiled files. The rest can be deduced.
You can also visit my KoreanRandom topic, it has all the info you'll ever need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants