Python Forum
Gui slot machine-out of memory error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gui slot machine-out of memory error
#9
You are totally right, I have confused my code and myself with badly named variables.
The reason for the 4 and 18 etc is to spin reel3 longer than reel 2 andreel2 a bit longer than reel 1,
if you see what I mean.
-----------------------
By the way:
"spinr" represents the 19 symbols of the reels
(should be 25 now I have added more symbols)

r_one is a temp variable for duration of spin.
I tried changing all the r_one to use the same label as
card_lbl_one but it produces errors in the reel display, the
card ends up as a face-down card that I use as a blank.
so r_one etc are necessary at the moment.
------------------
All will be clear if you want to download and run the game,
link in my original post.

I will experiment with your shortened code, thank you for that,
if I can't get that to work I may have to scrap the whole function and
re-write it from scratch.

Thanks for your time.

I made a gif of the reels "spinning" so you
can see what I mean.
[Image: YhHn6VDT]
Reply


Messages In This Thread
RE: Gui slot machine-out of memory error - by Yoriz - May-17-2020, 01:49 PM
RE: Gui slot machine-out of memory error - by Yoriz - May-17-2020, 02:05 PM
RE: Gui slot machine-out of memory error - by steve_shambles - May-18-2020, 11:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting an error while trying to process data, low memory when memory is not low? bkeith12 0 510 Dec-20-2024, 03:06 PM
Last Post: bkeith12
  Understanding and debugging memory error crashes with python3.10.10 Arkaik 5 4,487 Apr-18-2023, 03:22 AM
Last Post: Larz60+
  Memory Error While generating cheksum no mg24 2 1,904 Sep-25-2022, 10:33 PM
Last Post: mg24
  Help For Slot Machine Code Rayaan 1 3,529 Mar-30-2020, 05:01 AM
Last Post: SheeppOSU
  Memory consumption grows during execution only on single machine Jendker 2 2,516 Feb-10-2020, 01:57 PM
Last Post: Jendker
  Go around memory error Pytonormen 1 2,669 Oct-19-2019, 04:31 PM
Last Post: Gribouillis
  memory error using permutation list of 11 elements kikidog 1 4,735 Sep-10-2019, 08:22 PM
Last Post: ichabod801
  machine learning error (using jupyter) calonia 1 5,004 Jun-26-2019, 05:16 PM
Last Post: ThomasL
  Fix Memory Error while installing a library for Qgis alexastorga 0 3,067 Apr-13-2018, 04:54 PM
Last Post: alexastorga
  Dictionaries and memory error. jarrod0987 5 6,886 Feb-23-2018, 12:15 PM
Last Post: buran

Forum Jump:

User Panel Messages

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