Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (SBGuy), 652 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Upper limit to panels created at runtime?Pan_create crashes game #441927
06/06/14 20:45
06/06/14 20:45
Joined: Jun 2014
Posts: 97
Lagos, Nigeria
T
tolu619 Offline OP
Junior Member
tolu619  Offline OP
Junior Member
T

Joined: Jun 2014
Posts: 97
Lagos, Nigeria
I have a character select screen that dynamically deletes or creates buttons depending on which characters have already been chosen. Seeing as Gamestudio has a pan_setbutton function for adding or modifying buttons at runtime but no function for deleting them, I had to use pan_create to create a different panel for each button, because I can remove each panel at will with ptr_remove.
The problem is that when I create more than five panels, only five of the buttons will be active. The other buttons won't react to the mouse at all. Remember that each panel contains only a single button and nothing else. I have 9 character select buttons at the bottom edge of the screen but only those from the center to the right hand side work. Those on the left don't work. I also noticed that a button created at the top right corner of the screen would work, but only if the mouse is placed over it's right edge. Placing the mouse anywhere else on the button won't do anything.
I am willing to share a Dropbox link to my project folder if one must see all my code to find the problem. These problems never showed up when I used pan_create to create only one or two panels, but now, there's even a button I can't create because the moment I call pan_create for that particular button, the entire game crashes. I can't figure it out because I've checked for typos over and over again and the button uses the exact same kind of code as the other buttons that do work

Re: Upper limit to panels created at runtime?Pan_create crashes game [Re: tolu619] #441928
06/06/14 20:49
06/06/14 20:49
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Back in the days I worked with hundreds of dynamically created panels at once with no similar (or pretty much any) problem, the issue most likely has to come from somewhere else.
If it's not too much stuff/ code I can take a look at it, so please provide a dropbox link.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Upper limit to panels created at runtime?Pan_create crashes game [Re: Superku] #441929
06/06/14 21:19
06/06/14 21:19
Joined: Jun 2014
Posts: 97
Lagos, Nigeria
T
tolu619 Offline OP
Junior Member
tolu619  Offline OP
Junior Member
T

Joined: Jun 2014
Posts: 97
Lagos, Nigeria
I've sent you a private message. Thanks a lot, you're really helping me a lot with my game. Seriously.


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1