Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: using variables with functions imported from different files.
Post: using variables with functions imported from diffe...

hey, I'm trying to run a function from a different file in my main file. this isn't working as the function won't load variables across files, how can this be achieved? main file: inv.invcheck()funct...
Scordomaniac General Coding Help 3 1,267 May-24-2022, 09:29 AM
    Thread: importing functions from a separate python file in a separate directory
Post: importing functions from a separate python file in...

So I can easily call a function from a file in the same directory as the one i'm running: from functestsetup import functest functest()but it gets tricky when i attempt to do it from a different direc...
Scordomaniac General Coding Help 3 1,366 May-16-2022, 01:44 PM
    Thread: How to save files in a separate directory
Post: RE: How to save files in a separate directory

i've tried using the json code you sent but i get this error: Error:Traceback (most recent call last): File "O:\Jackpot Studios\PyMemer BETA\saving.py", line 13, in <module> with open(path...
Scordomaniac General Coding Help 3 1,857 Mar-16-2022, 09:33 AM
    Thread: How to save files in a separate directory
Post: How to save files in a separate directory

Hey, i'm working on a games save/loading function. this is my code that find the file path for the players save (loading the save) it works by finding where the file is being run from, then replacing ...
Scordomaniac General Coding Help 3 1,857 Mar-08-2022, 10:31 AM
    Thread: Save/Loading using pickle
Post: RE: Save/Loading using pickle

(Nov-18-2020, 08:16 PM)Gribouillis Wrote: Please post the code of the game to see if this applies to your game. The code that I showed stores a number in a file and retrieves that number from the fi...
Scordomaniac General Coding Help 4 3,030 Nov-24-2020, 06:11 PM
    Thread: Save/Loading using pickle
Post: RE: Save/Loading using pickle

please can you point out what each line of code does? sorry quite new and am a bit confused
Scordomaniac General Coding Help 4 3,030 Nov-18-2020, 07:31 PM
    Thread: Save/Loading using pickle
Post: Save/Loading using pickle

So i am trying to make a game using python, and i want to save the amount of coins the player has after they earn coins using pickle, but i have no idea how to do this. let's say i got 10 coins, and i...
Scordomaniac General Coding Help 4 3,030 Nov-17-2020, 07:57 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020