Gamestudio Links
Zorro Links
Newest Posts
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
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (ozgur, TipmyPip, AndrewAMD), 1,209 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
"ent_getmesh" crash #174645
12/24/07 20:17
12/24/07 20:17
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
When I use "ent_getmesh(NULL, i, 0);" to get the mesh of the level, instead of returning 0 for an invalid mesh it crashes the entire engine

So I cannot loop through the entire levels mesh until there is an invalid one, the only way to do it is to look at how many level blocks are in WED, acknowledge the grouped mesh and calculate myself how many mesh there should be and input that into SED and compile... which is not right! I need to be able to tell dynamically.

Am I doing something wrong? I compile with "Create Meshes" on. Is there something else I am missing?
I am using A7.07 and Windows Vista Ultimate.

Re: "ent_getmesh" crash [Re: sheefo] #174646
12/26/07 13:44
12/26/07 13:44
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
Anyone!? This function crashes the engine, "ent_getmesh(NULL, i, 0);" when i is not a valid mesh index, instead of returning NULL.

Re: "ent_getmesh" crash [Re: sheefo] #174647
12/29/07 13:22
12/29/07 13:22
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
I gave this topic a boring title, and I ask my questions even more boring-ly. But this is a serious question... can anyone help?

Why does the engine crash instead of the function 'ent_getmesh' returning NULL, when you try to access an invalid mesh? I only ask you because the manual says that it should return NULL, but it only crashes.

Re: "ent_getmesh" crash [Re: sheefo] #174648
12/30/07 11:17
12/30/07 11:17
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
You should have asked this question in a different forum like "Bug Hunt" or "Scripting", because asking Conitec makes not much sense, because they are most probably not in office these days!

Re: "ent_getmesh" crash [Re: Pappenheimer] #174649
12/30/07 13:40
12/30/07 13:40
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
I've tried elsewere but no one gives a damn.

Thanks for the reply. I will try again in a different forum in a week or so.


Moderated by  old_bill, 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