Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Akow, AndrewAMD), 567 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Unexplainable error E1198 Bad file format #386214
10/30/11 20:16
10/30/11 20:16
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline OP
Serious User
MrGuest  Offline OP
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
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.
Code:
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
Code:
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)

Re: Unexplainable error E1198 Bad file format [Re: MrGuest] #386231
10/31/11 07:51
10/31/11 07:51
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
This is probably not related to your code: Error 1198 means that the file, or some other file read before, causes an engine crash. After such a crash, the memory is messed up and all things can happen. Find the guilty file and delete it.

Re: Unexplainable error E1198 Bad file format [Re: jcl] #386289
11/01/11 02:11
11/01/11 02:11
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline OP
Serious User
MrGuest  Offline OP
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
I've updated all the models from known previous working versions and redrawn them but to no avail so tried reverting back to V8.30.3 and all of these errors are gone (I probably should have tried this first).

As I only know of one possible error causing this found by EvilSOB I've removed all the sizeof macros but still having 101 issues.

Am I able to send the project over to see if there's soemthing I've done wrong my end and so far managed to get away with it or if the error does lie in this latest version?

Cheers

Re: Unexplainable error E1198 Bad file format [Re: MrGuest] #386296
11/01/11 10:17
11/01/11 10:17
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Sure, but please check your models and levels first. Replace them not with your previous versions that probably already have that bug, but with a dummy model and level, for instance some model that comes with Gamestudio. This has a good chance to eliminate the problem, as all what you posted hints to a model with damaged internal tables.

If the problem then still happens, please send us that project with the replaced models and we'll look into it.

Re: Unexplainable error E1198 Bad file format [Re: jcl] #386313
11/01/11 14:48
11/01/11 14:48
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline OP
Serious User
MrGuest  Offline OP
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
Testing it this morning has lead to different problems though now none about the file format.

The project is uploading to ftp.coniserver.net and the main problems I'm having now weren't present in 8.03.3.

Pressing shift and 1 should floodfill the tiles on the level but now I'm getting an invalid pointer error.
Drawing with the mouse over the tiles should create walls and automatically fix the edges, although no error is prompted the wall mesh is no longer being manipulated.

Any insight into these problems would be appreciated.

Thanks again

Re: Unexplainable error E1198 Bad file format [Re: MrGuest] #386461
11/03/11 09:27
11/03/11 09:27
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline OP
Serious User
MrGuest  Offline OP
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
Hi,

Did you manage to take a look into this?

Cheers

Re: Unexplainable error E1198 Bad file format [Re: MrGuest] #386471
11/03/11 12:43
11/03/11 12:43
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Yes. I see in the debugger that you're getting an error due to calling vec_set() with an invalid pointer for the first vector. Should not be hard to find, check the vec_set commands in the code.

Re: Unexplainable error E1198 Bad file format [Re: jcl] #386511
11/04/11 00:47
11/04/11 00:47
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline OP
Serious User
MrGuest  Offline OP
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
Thanks for this, though I'm still unsure why I never encountered these problem on 8.30.3, any ideas?

Re: Unexplainable error E1198 Bad file format [Re: MrGuest] #386526
11/04/11 10:43
11/04/11 10:43
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Correct scripts behave the same way with all versions. But bugs can behave different dependent on the version, or on whether it's Friday.

Re: Unexplainable error E1198 Bad file format [Re: jcl] #386537
11/04/11 13:34
11/04/11 13:34
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline OP
Serious User
MrGuest  Offline OP
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
lol,
Thanks, I'll look into it laugh


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