Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,449 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Bug in the Script Editor #128673
05/08/07 17:22
05/08/07 17:22
Joined: Feb 2006
Posts: 126
USA,
manic7creations Offline OP
Member
manic7creations  Offline OP
Member

Joined: Feb 2006
Posts: 126
USA,
This script causes the bug or causes it to shut down. I really need some feedback on this problem, so can somebody please answer my problem. I really need some help on this issue.


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

var video_mode = 7; // 800x600 pixels
var video_depth = 32; // 32 bit mode
var x1;
var y1;

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

bmap mouse_pcx = <mouse.pcx>; // bitmap used for the mouse pointer
bmap main_pcx = <main.pcx>; // main panel
bmap quitclicked_pcx = <quitclicked.pcx>;
bmap quitnormal_pcx = <quitnormal.pcx>;
bmap quitover_pcx = <quitover.pcx>;

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

string work05_wmb = <work05.wmb>;

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

function main()
{
level_load (work05_wmb);
mouse_map = mouse_pcx;
mouse_mode = 2;
while (1)
{
mouse_pos.x = pointer.x;
mouse_pos.y = pointer.y;

x1 = mouse_pos.x;
y1 = mouse_pos.y
wait (1);
}
}

function quit_program()
{
sleep (3);
exit;
}

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

panel main_pan
{
bmap = main_pcx;
pos_x = x1;
pos_y = y1;
button = 250, 200, quitclicked_pcx, quitnormal_pcx, quitover_pcx, quit_program, null, null;
flags = overlay, refresh, visible;
}

Re: Bug in the Script Editor [Re: manic7creations] #128674
05/08/07 17:27
05/08/07 17:27
Joined: May 2007
Posts: 175
Germany
dblade Offline
Member
dblade  Offline
Member

Joined: May 2007
Posts: 175
Germany
string work_05 = "work05.wmb"; //maybe ? why < >

Re: Bug in the Script Editor [Re: dblade] #128675
05/08/07 17:30
05/08/07 17:30
Joined: Aug 2006
Posts: 652
Netherlands
bstudio Offline
User
bstudio  Offline
User

Joined: Aug 2006
Posts: 652
Netherlands
<> can be used too, should work on strings too


BASIC programmers never die, they GOSUB and don't RETURN.
Re: Bug in the Script Editor [Re: bstudio] #128676
05/08/07 17:32
05/08/07 17:32
Joined: May 2007
Posts: 175
Germany
dblade Offline
Member
dblade  Offline
Member

Joined: May 2007
Posts: 175
Germany
Have you an Update ?

Re: Bug in the Script Editor [Re: dblade] #128677
05/08/07 17:54
05/08/07 17:54
Joined: Feb 2006
Posts: 126
USA,
manic7creations Offline OP
Member
manic7creations  Offline OP
Member

Joined: Feb 2006
Posts: 126
USA,
Yes, I have the latest upgrade 6.50 something. But the script editor really don't post to shutdown when there is a bug in the code does it? I think this bug in the editor can be fixed. I don't know how to do it, but I think somebody needs to tell "contiec" that their SED isn't perfected yet. They still need to work out all of the bugs in it. When that happens, 3DGAMESTUDIO will be the best 3D game creation tool ever. That was my 2 cents.

Re: Bug in the Script Editor [Re: manic7creations] #128678
05/08/07 18:03
05/08/07 18:03
Joined: May 2007
Posts: 175
Germany
dblade Offline
Member
dblade  Offline
Member

Joined: May 2007
Posts: 175
Germany
I think a A7 Pre Version had a wrong SED but 6.50 ?

And please it's "conitec" but that doesn't matter

Re: Bug in the Script Editor [Re: dblade] #128679
05/08/07 18:10
05/08/07 18:10
Joined: Feb 2006
Posts: 126
USA,
manic7creations Offline OP
Member
manic7creations  Offline OP
Member

Joined: Feb 2006
Posts: 126
USA,
You mean there was something wrong with the A7 Pre Version SED? If there is still any errors in it, will they fix it for A7.

Re: Bug in the Script Editor [Re: manic7creations] #128680
05/08/07 18:11
05/08/07 18:11
Joined: May 2007
Posts: 175
Germany
dblade Offline
Member
dblade  Offline
Member

Joined: May 2007
Posts: 175
Germany
I think the A7 error was fixed
jcl said something like this

Re: Bug in the Script Editor [Re: dblade] #128681
05/08/07 18:13
05/08/07 18:13
Joined: Feb 2006
Posts: 126
USA,
manic7creations Offline OP
Member
manic7creations  Offline OP
Member

Joined: Feb 2006
Posts: 126
USA,
That's good, I will more and likely buy the new A7 engine if it is bug free.

Re: Bug in the Script Editor [Re: manic7creations] #128682
05/08/07 18:52
05/08/07 18:52
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
* sleep is a deprecated keyword. Use wait() with negative values instead.
* refresh is a deprecated keyword. You can simply omit it.

Besides your script looks correct. Can you give any closer circumstances where the bug occurs?


Always learn from history, to be sure you make the same mistakes again...
Page 1 of 2 1 2

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

Gamestudio download | 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