Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Engine crashes without explanation #218854
07/31/08 03:08
07/31/08 03:08
Joined: Mar 2003
Posts: 3,010
analysis paralysis
NITRO777 Offline OP
Expert
NITRO777  Offline OP
Expert

Joined: Mar 2003
Posts: 3,010
analysis paralysis
In programming Lite-C I have noticed that the engine crashes without notice or error message on several occasions. While I am well aware that the fault of the crashes come from bugs with my own code, it would make code easier to debug if there was some error message to read.

Is this a bug under your consideration?

It happens a lot. frown

Re: Engine crashes without explanation [Re: NITRO777] #218877
07/31/08 08:01
07/31/08 08:01
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I am not sure what "bug under consideration" is supposed to mean, but we normally don't consider bugs, we fix them.

When you experience a crash, please first read the troubleshooting section in the manual. If you think it's a bug, note down the precise circumstances and the code of the crash, and then either contact the support or make a bug report on the user forum. How to report a bug is described at the top of the bug forum.

Re: Engine crashes without explanation [Re: jcl] #218946
07/31/08 13:28
07/31/08 13:28
Joined: Mar 2003
Posts: 3,010
analysis paralysis
NITRO777 Offline OP
Expert
NITRO777  Offline OP
Expert

Joined: Mar 2003
Posts: 3,010
analysis paralysis
By "under consideration" I meant that you were already working on it, I simply didn't want to bother you with problems which you already were aware of.

This happens to be easy to reproduce on my computer, here is the code

Code:
#include <acknex.h>
#include <default.c>

ENTITY* lamp_pointer;   // lamp is an entity    
var lamp_counter = 1; // 1 for on, 0 for off. 


function main()
{
	level_load("lamp_pointer.WMB");
	wait(3);
	printf("Press [0] to move the camera!");
}


action lamp()     
{    
      me=lamp_pointer;    
      my.red  = 200; // lamp light colors    
      my.green = 200;    
      my.blue = 150;    
}    



function lamp_on ()    
{    
      if (lamp_counter == 1)     
      {    
            lamp_pointer.lightrange = 500; // turn the light on    
            lamp_counter = 0;  // reset counter    
      }    
      else    
      {    
            lamp_pointer.lightrange = 0; // turn it off    
            lamp_counter = 1;  // set counter    
      }    
}    



action light_switch()
{
	my.emask |= ENABLE_SHOOT;
	my.event = lamp_on;
} 


Notice that in action lamp() I put me=lamp_pointer instead of lamp_pointer=me so obviously that is my own fault. When I write lamp_pointer=me the code runs fine.

There are two circumstances which will occur depending upon if I am running the script from WED or directly from SED.

1)From WED: The engine will crash and I am returned to the desktop

2)From SED: The engine will crash AND SED will crash and dissapear.

In either case the windows error message will occur sometimes, sometimes it will not:



COMMERCIAL EDITION V7.07.6
INTEL PENTIUM 2 GHZ, 2 GIG RAM
NVIDIA GEFORCE GO 7800 GTX


Here is the acklog.txt, but it doesnt seem to help:

Quote:
Log of A7 Engine 7.07.6 run at Thu Jul 31 09:23:29 2008
Jason M Dube' on Windows NT/2000/XP version 5.1 Build 2600
Options lamp_pointer.c -nx 30 -diag

App C:\Program Files\GStudio7\acknex.exe in C:\Program Files\GStudio7\lamp_pointer\
MM mixer opened
DSOUND device opened
DI interface opened
Start Window opened
(c)Conitec . Dieburg . San Diego . www.3dgamestudio.com
A7 Engine - Commercial Edition V7.07.6 - Jan 7 2008
Development version
Registered to: Jason Dube

Mouse found
SigmaTel C-Major Audio opened
NVIDIA GeForce Go 7800 GTX pure T&L device 1ff9 detected
D3D device NVIDIA GeForce Go 7800 GTX 1ff9 selected.
PATH C:\Program Files\GStudio7\code\
t7.dll opened
Compiling LAMP_POINTER.C - [Esc] to abort... .... .
Running LAMP_POINTER.C.
2 objects
Main started
D3D_Init Window: 640x480 -> Window: 1x640x480x32
Video memory found: 591 MB...cmap,1 ents,591 verts,2 lmaps,4 texs,480 faces,pvs,hull
Physics restarted...ok
def_startup started
Main loop..



Last edited by TriNitroToluene; 07/31/08 13:51.
Re: Engine crashes without explanation [Re: NITRO777] #219009
07/31/08 16:53
07/31/08 16:53
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Thanks for the report. I can not reproduce the problem here - a wrong pointer in a function gives an error message. But you were using an old version, so can you update to the current version and try again?

If there is really such a problem in the recent version, can you send your complete project to the support? It might be a side effect of something else, such as a damaged level or entity file.

Re: Engine crashes without explanation [Re: jcl] #219022
07/31/08 17:12
07/31/08 17:12
Joined: Jun 2005
Posts: 87
France
MadJack Offline
Junior Member
MadJack  Offline
Junior Member

Joined: Jun 2005
Posts: 87
France
Quote:
action lamp()
{
me=lamp_pointer;
...
}

May be I am wrong, but are you sure you want that ?
Isn't it : lamp_pointer = me


Commercial A7.25b
RUGod
Re: Engine crashes without explanation [Re: MadJack] #219034
07/31/08 18:22
07/31/08 18:22
Joined: Mar 2003
Posts: 3,010
analysis paralysis
NITRO777 Offline OP
Expert
NITRO777  Offline OP
Expert

Joined: Mar 2003
Posts: 3,010
analysis paralysis
Quote:
But you were using an old version, so can you update to the current version and try again?
That was it, thanks. With the new version I get an error version and the engine continues to run. This is the message for v7.10.1:


Quote:
May be I am wrong, but are you sure you want that ?
Isn't it : lamp_pointer = me
No. You are are right, I did not want to do that, it was a mistake I made. The reason I made this bug report was not to find that mistake, it was to report on the engine crashing immediately after I tried to run the program. The engine in v7.07.6 would just shut down and exit, also, if I was running the program from SED it would also close and exit SED immediately. Now in this beta version 7.10.1 it is more of an expected behavior.


Moderated by  HeelX, Spirit 

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