Hi,
I'm having some issues with this error occuring when there are no problems creating the model in other parts of code.
The error occurs when I release the mouse to create the entity with ent_create(). Though if I've already created the model in code after pressing/releasing a key the model will be created with no errors and then allowing the model to be created on releasing the mouse.
After plenty of debugging I've noticed another problem with one of my functions which solves the problem, though how, I can't explain.
I have one function to retrieve a number based on Vector co-ordinates.
var id_for_pos(VECTOR* vec){
return((vec.z * (LEVEL_MAX_Y+1) * (LEVEL_MAX_X+1)) + (vec.y * (LEVEL_MAX_X+1)) + vec.x);
}
and call it with this function
var tileID;
tileID = id_for_pos(pos);
If I change either of these data-types to 'int' the problem goes away. I can send you a link to the program but can't reproduce it if I start stripping down chunks of code or trying to just rewrite a test demo.
Thanks for your time,
James (MrGuest)