|
7 registered members (3run, miwok, AndrewAMD, Quad, TipmyPip, fairtrader, 1 invisible),
637
guests, and 2
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
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
User
|
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
Serious User
|
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); }
|
|
|
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
Member
|
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,967 Frankfurt
jcl
OP

Chief Engineer
|
OP

Chief Engineer
Joined: Jul 2000
Posts: 27,967
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
Member
|
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
User
|
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: jcl]
#131827
06/14/07 11:38
06/14/07 11:38
|
Joined: Mar 2006
Posts: 724 the Netherlands
Frits
User
|
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
|
|
|
|