Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/19/24 18:45
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, Ayumi, kzhao, 7th_zorro), 735 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
PANEL LITE-C tutorial problem!!!! #153459
09/11/07 16:38
09/11/07 16:38
Joined: Jan 2007
Posts: 295
Portugal
Sam_Be Offline OP
Member
Sam_Be  Offline OP
Member

Joined: Jan 2007
Posts: 295
Portugal
hi
i have the problem that the lit-c tutorial from the acknex site has this code:

////////////////////////////////////////////////////////////////////
#include
#include

////////////////////////////////////////////////////////////////////

BMAP* first_pcx = "first.pcx"; // meine erste bmap

PANEL* first_pan = //mein erstes panel
{
pos_x = 0;
pos_y = 0;
layer = 1;
bmap = first_pcx;
flags = OVERLAY | VISIBLE;
}

/////////////////////////////////////////////////////////////////////

function main()
{
video_mode = 7;
screen_color.blue = 150;
}

i have changed the value to my needs:

////////////////////////////////////////////////////////////////////
#include
#include

////////////////////////////////////////////////////////////////////

BMAP* sgapanel_bmp = "sgapanel.bmp"; // meine erste bmap

PANEL* first_pan = //mein erstes panel
{
pos_x = 0;
pos_y = 0;
layer = 1;
bmap = first_pcx;
flags = OVERLAY | VISIBLE;
}

/////////////////////////////////////////////////////////////////////

function main()
{
video_mode = 11;
screen_color.blue = 150;
}

but it doen't work.
i saved it as a .c file and set tht path but it doesn't work.
can somebody helt please??
sam


GS-Extra Looking for a scripter Suche einen scripter. Estou a procura de um "Scripter".
Re: PANEL LITE-C tutorial problem!!!! [Re: Sam_Be] #153460
09/11/07 19:13
09/11/07 19:13
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
Should change

bmap = first_pcx;

to

bmap = sgapanel_bmp;

Re: PANEL LITE-C tutorial problem!!!! [Re: vlau] #153461
09/11/07 23:04
09/11/07 23:04
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi Sam Be

I noticed that in your main
you do not have a level_load

Could that be part of the problem?

Ottawa

Re: PANEL LITE-C tutorial problem!!!! [Re: Ottawa] #153462
09/12/07 11:20
09/12/07 11:20
Joined: Jan 2007
Posts: 295
Portugal
Sam_Be Offline OP
Member
Sam_Be  Offline OP
Member

Joined: Jan 2007
Posts: 295
Portugal
@vlau
sorry i have made a mistake when i've written the post in the script i have changed that. ^^
@ in the tutorial it doesn't say nothing about level_load. i just want to see if i can display my panels with the engine. there is no level to load.
when i stat the script in "sed" there are many errors:
main voin()unknown parameter
pos_x and pos_y unknown parameters
ect.
can't load script "name.wdl"

this is very strage. why does sedd don't suport litec scripts??
regrads
sam


GS-Extra Looking for a scripter Suche einen scripter. Estou a procura de um "Scripter".
Re: PANEL LITE-C tutorial problem!!!! [Re: Sam_Be] #153463
09/12/07 11:29
09/12/07 11:29
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
As a beginner to lite-C, first just open the script in the workshop folder and run it. Don't copy or type parts of the script yourself. You might make typing mistakes and then get error messages, like in your script above that has missing include lines and other mistakes.

Only in the second step you may modify that script and run it again. If you then make a mistake, you will get an error message that tells you in which line the error is. Now it should be not too difficult to find the reason and fix it.

Re: PANEL LITE-C tutorial problem!!!! [Re: jcl] #153464
09/12/07 17:03
09/12/07 17:03
Joined: Jan 2007
Posts: 295
Portugal
Sam_Be Offline OP
Member
Sam_Be  Offline OP
Member

Joined: Jan 2007
Posts: 295
Portugal
^^ sorry but i copied the script-text from the workschop. so there aren't any mistakes.
and the engine says there are in every line an error.
sam


GS-Extra Looking for a scripter Suche einen scripter. Estou a procura de um "Scripter".
Re: PANEL LITE-C tutorial problem!!!! [Re: Sam_Be] #153465
09/12/07 17:15
09/12/07 17:15
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Well, then sorry for my advice. If your script is without mistakes, then of course you won't need any advices how to avoid or fix them.

Re: PANEL LITE-C tutorial problem!!!! [Re: jcl] #153466
09/13/07 13:29
09/13/07 13:29
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi Sam Be!

I went back to workshop 4 and copied the panel activity.

It works very well.
It also answered my question about level_load.

Keep on trying

Ottawa


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