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
7 registered members (EternallyCurious, 7th_zorro, Ayumi, Quad, AndrewAMD, ricky_k, 1 invisible), 497 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: "pan_create" - big problem [Re: Spirit] #136319
09/11/07 08:15
09/11/07 08:15
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline
Senior Member
oldschoolj  Offline
Senior Member
O

Joined: Aug 2005
Posts: 390
Florida
sorry bud, but it's not wrong, and even if thats what the manual says, it works flawlessly the way I have my code. And not only that, but it works for 36 different button counters, at the same time, so.... heh.
option a:

PANEL* some_panel =
{
.....
....
flags = VISIBLE;
}

option b:
PANEL* dummy_panel;

dummy_panel = pan_create ("content.....; flags |= VISIBLE;", layer);

Last edited by oldschoolj; 09/11/07 08:23.

you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe. __________________________________ yours truly
Re: "pan_create" - big problem [Re: Spirit] #136320
09/11/07 11:22
09/11/07 11:22
Joined: Jul 2006
Posts: 150
Deutschland/Germany, nahe Hamb...
dennis Offline OP
Member
dennis  Offline OP
Member

Joined: Jul 2006
Posts: 150
Deutschland/Germany, nahe Hamb...
Thanks for all the answers..!

To MrCode:
The file format PNG is supported by the engine.
(see manual: File formats -> "Supported image formats are PCX, BMP, TGA, DDS, PNG, JPG, and WAD")

I also tried with BMAP....did not work, too.

To Ottawa:
I tried that. Did not work, too.

To hack-panther:
Well I probably have to use a dummy panel for each function I want to call, too.

To Spirit:
I have now tried with a background image and a certain size....it does not work......

------------------------------------

Oldschoolj, you say your panels are working..can you post an example panel?

Re: "pan_create" - big problem [Re: dennis] #136321
09/11/07 12:04
09/11/07 12:04
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Dennis: You can use pan_created panels and click on their buttons. A background image or a second panel is not required. So your problem likely has a different reason. Using buttons is described in the lite-C Workshops; I suggest that you use the panel from the workshops in order to find out if it's something with your images or maybe something else in your script. If you can't find out what's wrong, you can contact the support and send them your project.

Oldschooli: Don't be sloppy with your code. Wrong syntax can cause trouble with any future update, even if it does not throw error messages in the current version. I also see no reason why you should intentionally use wrong syntax. So better go and fix your 36 buttons by replacing |= with =.

Re: "pan_create" - big problem [Re: jcl] #136322
09/11/07 16:57
09/11/07 16:57
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline
Senior Member
oldschoolj  Offline
Senior Member
O

Joined: Aug 2005
Posts: 390
Florida
i actually had no diea that was the wrong way to do it, because ive never recieved an error from doign it that way..... but thanks for pointing it out. And to the guy that I said it wasnt the wrong way of doing it sorry man, I'm not that knowledgable of a coder. I just saw that he had flags = instead of flags |=, and mine worked so i figured he had his wrong LOL


you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe. __________________________________ yours truly
Re: "pan_create" - big problem [Re: oldschoolj] #136323
10/07/07 17:12
10/07/07 17:12
Joined: Aug 2006
Posts: 78
A
amadeu Offline
Junior Member
amadeu  Offline
Junior Member
A

Joined: Aug 2006
Posts: 78
hi,

Someone found the solution for this Problem?

thx

Re: "pan_create" - big problem [Re: amadeu] #136324
10/07/07 17:17
10/07/07 17:17
Joined: Jul 2006
Posts: 150
Deutschland/Germany, nahe Hamb...
dennis Offline OP
Member
dennis  Offline OP
Member

Joined: Jul 2006
Posts: 150
Deutschland/Germany, nahe Hamb...

Well I haven't found a good solution yet.

But you can:
1.) use a dummy panel (see previous posts)
2.) or use "pan_setevent(...);"..I think that works, too.

Re: "pan_create" - big problem [Re: dennis] #136325
10/07/07 17:30
10/07/07 17:30
Joined: Aug 2006
Posts: 78
A
amadeu Offline
Junior Member
amadeu  Offline
Junior Member
A

Joined: Aug 2006
Posts: 78
ok.

thx. but the 1. solution did not waork.
I tried pan_setevent(PANEL*,var type,var num,void* event) but I set the parameter "event" with one STRING from one XML file (I created one dll for this) the game close because the parameter EVENT don´t recognize STRING.
Do you why it happens?

Re: "pan_create" - big problem [Re: amadeu] #136326
10/07/07 17:33
10/07/07 17:33
Joined: Jul 2006
Posts: 150
Deutschland/Germany, nahe Hamb...
dennis Offline OP
Member
dennis  Offline OP
Member

Joined: Jul 2006
Posts: 150
Deutschland/Germany, nahe Hamb...

you have to convert the string...i will try to post a solution for this in 25 minutes....

Re: "pan_create" - big problem [Re: dennis] #136327
10/07/07 17:36
10/07/07 17:36
Joined: Aug 2006
Posts: 78
A
amadeu Offline
Junior Member
amadeu  Offline
Junior Member
A

Joined: Aug 2006
Posts: 78
ok.

Thx.
How I could convert STRING to EVENT?

I will wait your post.

thx

Re: "pan_create" - big problem [Re: amadeu] #136328
10/07/07 18:01
10/07/07 18:01
Joined: Jul 2006
Posts: 150
Deutschland/Germany, nahe Hamb...
dennis Offline OP
Member
dennis  Offline OP
Member

Joined: Jul 2006
Posts: 150
Deutschland/Germany, nahe Hamb...

I asked the same question some time ago...

Try this thread:
http://www.coniserver.net/ubbthreads/sho...true#Post784647
(engine_getscript should do)

Page 2 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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