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
1 registered members (AndrewAMD), 599 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Crash #253700
02/26/09 06:05
02/26/09 06:05
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline OP
User
Carlos3DGS  Offline OP
User

Joined: Oct 2008
Posts: 513
The engine crashes when it reaches the following line:
APROX.x = CircleSelector.x - 17;

For some reason it wouldnt even tell me what line it crashed on. It just gave a crash alert and would freeze. I found out it was that line by adding a variable that adds one in several places of my code along the way and "watching" it.

Anyone know why that line crashes the engine?


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: Crash [Re: Carlos3DGS] #253705
02/26/09 07:06
02/26/09 07:06
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline OP
User
Carlos3DGS  Offline OP
User

Joined: Oct 2008
Posts: 513
Im not sure but I hope this helps

APROX is declared like so:
VECTOR* APROX;

and CircleSelector is a model that is assigned in its ent_create action to a ENTITY* CircleSelector;


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: Crash [Re: Carlos3DGS] #253707
02/26/09 07:30
02/26/09 07:30
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline
Serious User
pegamode  Offline
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Maybe you should declare APROX like this:

VECTOR* APROX = {x=0;y=0;z=0;}

Re: Crash [Re: pegamode] #253714
02/26/09 10:05
02/26/09 10:05
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline OP
User
Carlos3DGS  Offline OP
User

Joined: Oct 2008
Posts: 513
thanks grin


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: Crash [Re: Carlos3DGS] #253807
02/27/09 00:22
02/27/09 00:22
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
If there is still a problem, take note.

If you are declaring a vector OUTSIDE a function (ie global vector) it should be
VECTOR* APROX = {x=0;y=0;z=0;} like pegamode said.

If you are declaring a vector INSIDE a function (ie local vector) it should be
VECTOR APROX; vec_zero(APROX):

Getting them backwards causes strange intermittant behaviour.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial

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