Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 06/26/24 12:45
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 821 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: wath is wrong with this code [Re: Spirit] #326085
05/30/10 10:23
05/30/10 10:23
Joined: May 2010
Posts: 8
A
Alex8888 Offline
Newbie
Alex8888  Offline
Newbie
A

Joined: May 2010
Posts: 8
As a more experienced user you would know this in mentioned in the manual. I agree do not reinstall gamestudio but I have had the same message appear and only be rectified with the wait 1 clause after the level load. A level load is resource consuming and can cause a crash if it is not given 1 frame to pause first.

Re: wath is wrong with this code [Re: Spirit] #326086
05/30/10 10:27
05/30/10 10:27
Joined: Apr 2010
Posts: 265
V
Vinous_Beret Offline
Member
Vinous_Beret  Offline
Member
V

Joined: Apr 2010
Posts: 265
the problem is 'the action's name'
action player
{
player = me;
}
try to rename it f.i:
action player_act()
{
}
or what ever.
that's obvious.
'player' is reserved by the engine.

Last edited by Vinous_Beret; 05/30/10 10:28.
Re: wath is wrong with this code [Re: Vinous_Beret] #326091
05/30/10 11:07
05/30/10 11:07
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
@Alex8888: Just read the manual and you see that there is of course nothing like this mentioned. But strange ideas sometimes come up, some users think that the engine is sort of "exhausted" after a huge command and needs a wait() to "recover"! grin

But please don't give such advices to newbies. Better read the manual and tutorial about how to load a level, there are examples just in the very first lesson, and of course without "wait"!

Re: wath is wrong with this code [Re: Spirit] #326094
05/30/10 11:20
05/30/10 11:20
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Quote:
Just read the manual and you see that there is of course nothing like this mentioned. But strange ideas sometimes come up, some users think that the engine is sort of "exhausted" after a huge command and needs a wait() to "recover"!


In previous gamestudio versions (roughly before 7.5) it was necessary to add a wait instruction after level_load to make it possible to ent_create objects.

EDIT:
Originally Posted By: beta features
The level_load function is now executed directly and undelayed, thus a wait() after level loading is not required anymore.

(V7.07.2c beta: ok, long time ago)

Last edited by Superku; 05/30/10 16:58.

"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: wath is wrong with this code [Re: Superku] #326096
05/30/10 11:30
05/30/10 11:30
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
In fact, in A7 you need never put a wait() after level_load.

In A6 you needed that wait() before you could create entities. There was a simple reason, level_load() in A6 was executed not immediately but at the end of the frame cycle. This was changed with A7. It's neither because of "resources consuming" nor will it "crash".

I also have often seen newcomers getting advices like "try a wait() here" or "try a wait() there". This never helps. It just wastes time and causes frustration.

Re: wath is wrong with this code [Re: Spirit] #326129
05/30/10 15:56
05/30/10 15:56
Joined: May 2010
Posts: 63
J
JohnnyIsDutch Offline OP
Junior Member
JohnnyIsDutch  Offline OP
Junior Member
J

Joined: May 2010
Posts: 63
the error was action player()
player cann't as action

Re: wath is wrong with this code [Re: JohnnyIsDutch] #326136
05/30/10 16:47
05/30/10 16:47
Joined: Apr 2010
Posts: 265
V
Vinous_Beret Offline
Member
Vinous_Beret  Offline
Member
V

Joined: Apr 2010
Posts: 265
Originally Posted By: JohnnyIsDutch
the error was action player()
player cann't as action


obviously!!!!

Quote:
the problem is 'the action's name'
action player
{
player = me;
}
try to rename it f.i:
action player_act()
{
}
or what ever.
that's obvious.
'player' is reserved by the engine.


Page 2 of 2 1 2

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