Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Akow, degenerate_762), 1,430 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 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