Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (blaurock), 750 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
sys_marker #449636
03/26/15 21:17
03/26/15 21:17
Joined: Jul 2002
Posts: 3,208
Germany
Error014 Offline OP
Expert
Error014  Offline OP
Expert

Joined: Jul 2002
Posts: 3,208
Germany
This might be more of a feature request than a "Blame the manual". But anyways, sys_marker's entry in the manual states:

Quote:

The marker is also displayed in script error messages, allowing to find the precise location of the error


Which is a great feature for debugging!
Unfortunately, it isn't triggered anytime. In "Engine error messages", its implied to only appear for "Error E1513: Script crash in..." and "Error E1516: Invalid memory area".
Other errors, such as "Error E1515: Invalid arguments" do *NOT* show the marker. So this should be corrected in the manual. Or, better yet...

If there's no good reason against this, would it be possibly to display the sys_marker-content in every error message?

Here's a quick test for you, if you need it. Runs with no assets.
Uncomment the first line to get a "Script crash" (shows sys_marker), uncomment the second for an "Invalid argument" error (does not show sys_marker):

Code:
void main() {
	ENTITY* notinuse=NULL;

	sys_marker("TST");

	//notinuse.skill1 = 1; //Gives a "Script Crash".
	//c_move(notinuse,vector(1,0,0),nullvector,0); //Gives an "Invalid argument"
}



Perhaps this post will get me points for originality at least.

Check out Dungeon Deities! It's amazing and will make you happy, successful and almost certainly more attractive! It might be true!
Re: sys_marker [Re: Error014] #449672
03/28/15 02:49
03/28/15 02:49
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Have you set warn_level >=2 ?


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: sys_marker [Re: alibaba] #449687
03/28/15 22:35
03/28/15 22:35
Joined: Jul 2002
Posts: 3,208
Germany
Error014 Offline OP
Expert
Error014  Offline OP
Expert

Joined: Jul 2002
Posts: 3,208
Germany
Makes no difference. sys_marker is only shown for the "Script Crash"-error, regardless of warn_level.


Perhaps this post will get me points for originality at least.

Check out Dungeon Deities! It's amazing and will make you happy, successful and almost certainly more attractive! It might be true!
Re: sys_marker [Re: Error014] #449688
03/28/15 22:38
03/28/15 22:38
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Oh, you´re right! Nevermind.


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: sys_marker [Re: alibaba] #449739
03/30/15 17:02
03/30/15 17:02
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
This makes sense. We'll include the sys_marker in any error message in a future version, not only in crash messages.


Moderated by  aztec, Inestical, Matt_Coles, Tobias 

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