Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
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
3 registered members (7th_zorro, TipmyPip, RealSerious3D), 892 guests, and 4 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
Page 2 of 9 1 2 3 4 5 6 7 8 9
Re: Crash! With a view entity [Re: Superku] #438423
03/13/14 21:49
03/13/14 21:49
Joined: Jul 2002
Posts: 3,208
Germany
Error014 Offline OP
Expert
Error014  Offline OP
Expert

Joined: Jul 2002
Posts: 3,208
Germany
I haven't touched the script. Instead, I renamed the original "lock.mdl", then copied a different model from the project, renamed the copy to "lock.mdl", then started the script.
Sometimes it crashed, sometimes it didn't.

I believe now, though I don't remember it 100% anymore, that it crashed with two models: The original "lock.mdl", as well as a different MDL5-version of it, and a model of a treasure chest that is in the game. These are the only models I've touched with MED since I've done a reinstall of Windows on this computer.
Other models, both from my projects, as well as a testmodel from the forum, did not trigger a crash*

Quote:

I wouldn't use the seemingly problematic lock model at all anymore until I'm sure it is the reason.


I'm not sure I understood what you mean - I'm assuming the "lock.mdl"-model is the reason, but I've now replaced it by loading the original 3DS-data (the model was made in Wings3D), and saving that as a MDL. So the original faulty model isn't used at all anymore.



* - I've tried running the thing several times per model, since the crash only appears semi-regulary. However, at the time, it crashed every time with the models mentioned.


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: Crash! With a view entity [Re: Error014] #438435
03/14/14 10:50
03/14/14 10:50
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
It can indeed be a different model that is loaded before the offending lock.mdl. The "bad format" message box appears when loading a model caused a crash. If the crash happened _after_ loading the model, the compiler can not detect it and crashes without message.

A damaged file often does not crash immediately, but leads to subsequent crashes, for instance when it is damaged in a way that loading it overwrites a wrong memory area.

Re: Crash! With a view entity [Re: jcl] #438438
03/14/14 11:34
03/14/14 11:34
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
Originally Posted By: jcl
for instance when it is damaged in a way that loading it overwrites a wrong memory area.


Which should never happen. o.O
A loader has to verify the data or abort if suspicious, instead of pushing it into memory without control.


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: Crash! With a view entity [Re: Rackscha] #438441
03/14/14 13:25
03/14/14 13:25
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
You're certainly right. At least as long as you don't use real existing software, such as Windows or DirectX. wink

Re: Crash! With a view entity [Re: jcl] #438453
03/14/14 19:46
03/14/14 19:46
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
Well, i suspect, the mdl(7) file is not loaded by directx, right?
So the stage of loading and validating is before pushing it to directx wink

Last edited by Rackscha; 03/14/14 19:46.

MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: Crash! With a view entity [Re: Rackscha] #438456
03/14/14 20:12
03/14/14 20:12
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Maybe such a validation could be implemented for the development version, preferably only when forced through setting a variable to non-zero (so it does not slow the loading down that much)?


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Crash! With a view entity [Re: Superku] #438540
03/16/14 21:49
03/16/14 21:49
Joined: Jul 2002
Posts: 3,208
Germany
Error014 Offline OP
Expert
Error014  Offline OP
Expert

Joined: Jul 2002
Posts: 3,208
Germany
YES PLEASE.

A standalone tool that checks all files in a folder would be fine, too.
(I wouldn't mind if it would only check Acknex-formats.)

Also, some kind of parameter that makes it so that Acknex writes the filenames of each file loaded into the acklog would help - if it crashes, at least we know which files to look at, then. I suppose that would be easier to add.


It is a NIGHTMARE to find this bug otherwise in bigger projects, what with its random, sporadic appearances.


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: Crash! With a view entity [Re: Error014] #438541
03/17/14 07:25
03/17/14 07:25
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Surprisingly today I get the same error ("Bad File Format") in a new project, no 200 lines of code. The message does not appear when I remove the second skin and weirdly when I do the following check:

Code:
you = ent_tiles[(i+1)*tiles_dim_y+j];
if(you == NULL) error("AAA"); // <- this line
your.skill4 = k;


the engine will not crash which makes zero sense to me.
I can send this project in to the support if wanted.

EDIT: No view entities, just regular ent_created objects.

Last edited by Superku; 03/17/14 08:46.

"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Crash! With a view entity [Re: Superku] #438550
03/17/14 12:52
03/17/14 12:52
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
All engine versions do file validation - it would make not much sense to validate files only in the development version. But as you see, this can not always prevent a crash.

If a model crashes during compiling, you can see the previously loaded models in the code. All object definitions are loaded in the order of appearance.

If you have no object definitions in your code, the crash will happen at runtime, not during compiling.

Re: Crash! With a view entity [Re: jcl] #438577
03/17/14 20:31
03/17/14 20:31
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Let me emphasize this: In my case it's not a problem with a certain model or a texture (at least I'm 99.9% sure) because I just created a new model of 3 primitives, added two skins, made a new texture and it still crashes. There is only one model/ one type of models in this project.
I will now just send it to support, no matter if you want it or not.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Page 2 of 9 1 2 3 4 5 6 7 8 9

Moderated by  jcl, Nems, Spirit, 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