Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (Martin_HH, steyr, alibaba), 509 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: SED crashes for unknown reason [Re: testDummy] #212672
06/23/08 17:45
06/23/08 17:45
Joined: Aug 2007
Posts: 286
DestroyTheRunner Offline OP
Member
DestroyTheRunner  Offline OP
Member

Joined: Aug 2007
Posts: 286
@testDummy

Thank you
the problem was at the Item number 3... problem is that the max local array is [3].
So I defined it as Global and put [6] and worked fine!
The only thing im affraid is that 'simultaneously' other entities will call this function, and the global value of Temp_tipo[6] give wrong values to wrong entities.

anyway thanks!

Re: SED crashes for unknown reason [Re: DestroyTheRunner] #212735
06/23/08 23:37
06/23/08 23:37
Joined: Oct 2004
Posts: 1,655
T
testDummy Offline
Serious User
testDummy  Offline
Serious User
T

Joined: Oct 2004
Posts: 1,655
Temp_tipo[6];
global reuse issue

Imagine:
*Entities are in a list.
*For those caught in a while, when wait(1) is encountered for each such entity, that entity is put aside and the next entity in the list gets its turn.
*Thus, globals can be somewhat safe from undesirable modification by other entities when a certain policy is applied.

nextEntity:
n++;
me = entity[n]; etc.
entity[n] invokes SEARCH_DESTINO and uses path skills array
entity[n] is done with path skills array
wait(1); = goto(nextEntity);

Re: SED crashes for unknown reason [Re: testDummy] #212880
06/24/08 20:46
06/24/08 20:46
Joined: Aug 2007
Posts: 286
DestroyTheRunner Offline OP
Member
DestroyTheRunner  Offline OP
Member

Joined: Aug 2007
Posts: 286
ok i see
I ALMOST understood all. lol

Until now is working fine, ill see when more entities are in the level and then ill see.

thanks testdummy smile

Page 2 of 2 1 2

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