Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
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
3 registered members (Grant, dr_panther, AndrewAMD), 1,379 guests, and 6 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
Page 7 of 10 1 2 5 6 7 8 9 10
Re: Version 7.03 public beta [Re: jcl] #131818
06/13/07 14:25
06/13/07 14:25
Joined: Mar 2006
Posts: 724
the Netherlands
Frits Offline
User
Frits  Offline
User

Joined: Mar 2006
Posts: 724
the Netherlands
Thanks jcl, so if I understand correctly I can't use the 'old' C-Script anymore with A7 or does it only effect the variables?
I find it strange, because all my other variables seems to function correct and like I said I don't use Lite-C yet.


I like to keep scripting simple, life is hard enough as it is.
Regards,
Frits
Re: Version 7.03 public beta [Re: Frits] #131819
06/13/07 14:48
06/13/07 14:48
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
c-script works as before but you can use lite-c if you please

Re: Version 7.03 public beta [Re: ello] #131820
06/13/07 15:12
06/13/07 15:12
Joined: Mar 2006
Posts: 724
the Netherlands
Frits Offline
User
Frits  Offline
User

Joined: Mar 2006
Posts: 724
the Netherlands
If C-Script works as before, why don't the variabels;
var video_mode=8;
var video_screen=1;

do there job like in A6?
I'm confused here, jcl wrote 'In C, all variables, including video_mode, must be set in a function.' I thought this is only for Lite-C and not for C-Script.


I like to keep scripting simple, life is hard enough as it is.
Regards,
Frits
Re: Version 7.03 public beta [Re: Frits] #131821
06/13/07 17:24
06/13/07 17:24
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
I found it a little confusing too. All variables must be in a function?
A7.03 SED 7.02.4

Code:
// Lite-C Pure Mode
// main.c
#include <acknex.h>
#include <default.c>

var fps_max = 60; // <- this var must be in a function?

void main()
{
screen_color.red = 125; // <- doesn't work, stays blue?
level_load("world.wmb");
wait(3);
}




smile
Re: Version 7.03 public beta [Re: D3D] #131822
06/13/07 21:01
06/13/07 21:01
Joined: Jan 2007
Posts: 295
Portugal
Sam_Be Offline
Member
Sam_Be  Offline
Member

Joined: Jan 2007
Posts: 295
Portugal
hi
i'm back here.^^
i have eliminated all error and the compiler runs ok until the end. here:

this [censored] dives me creacy. why does the compiler in the public beta not work!!????
sam


GS-Extra Looking for a scripter Suche einen scripter. Estou a procura de um "Scripter".
Re: Version 7.03 public beta [Re: Sam_Be] #131823
06/14/07 06:24
06/14/07 06:24
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
The compiler in the beta version is indeed not yet fully finished. If you don't use the new features like geometry import, you can just copy the old compiler - the wwmp2wmb.exe file - from your A6 version into your A7 folder.

Still, we're interested in any levels that cause problems with the new compiler. If you want you can send that level to the support - we'll look into the problem.


- To avoid confusion: In C-Script, variables like video_mode _must_ be redefined outside the main function.

var video_mode=7;
var fps_max = 60;
on_esc = game_end;

In lite-C this won't work, all variables must set inside a function, and in case of video modes they must be set _before_ the first wait (because the video device is created after the first frame).

function main()
{
video_mode=7;
fps_max = 60;
on_esc = game_end;
...
wait(1);
}

See: http://manual.conitec.net/litec_migration.htm

Re: Version 7.03 public beta [Re: jcl] #131824
06/14/07 06:41
06/14/07 06:41
Joined: Jan 2007
Posts: 295
Portugal
Sam_Be Offline
Member
Sam_Be  Offline
Member

Joined: Jan 2007
Posts: 295
Portugal
hi
thanks for reply. could you explain how to copy the compiler better please?? do i have to copy only the exe file??
an where can i send my level to? and in what problem do you mean with "look into the problem"?^^
thanks anyway
sam

PS i think it would be easyer for us if we'd write in german.^^

Last edited by Sam_Be; 06/14/07 06:43.

GS-Extra Looking for a scripter Suche einen scripter. Estou a procura de um "Scripter".
Re: Version 7.03 public beta [Re: Sam_Be] #131825
06/14/07 07:08
06/14/07 07:08
Joined: Mar 2006
Posts: 724
the Netherlands
Frits Offline
User
Frits  Offline
User

Joined: Mar 2006
Posts: 724
the Netherlands
I am using C-Script for now in A7 (because I copied the complete level from A6) and did not change anything in the script but the variables
var video_mode=8;
var video_screen=1;

(outside the main function) will not work.
In A6 they work fine.
Must I conclude that this is a bug?


I like to keep scripting simple, life is hard enough as it is.
Regards,
Frits
Re: Version 7.03 public beta [Re: Frits] #131826
06/14/07 07:26
06/14/07 07:26
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
As you can see when you start any C-Script project, like Techdemo, video_mode works in 7.03 just as in 6.60.

Re: Version 7.03 public beta [Re: jcl] #131827
06/14/07 11:38
06/14/07 11:38
Joined: Mar 2006
Posts: 724
the Netherlands
Frits Offline
User
Frits  Offline
User

Joined: Mar 2006
Posts: 724
the Netherlands
Could be, but for me it doesn't work.
I had never tried the Techdemo, so now I have.
Will not run at all, gives errors (to start with; in doors.wdl).
I tried the Techdemo in A6 (6.60)


I like to keep scripting simple, life is hard enough as it is.
Regards,
Frits
Page 7 of 10 1 2 5 6 7 8 9 10

Moderated by  Matt_Coles 

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