1 registered members (AndrewAMD),
466
guests, and 2
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Crash! With a view entity
[Re: jcl]
#457655
01/25/16 22:30
01/25/16 22:30
|
Joined: May 2008
Posts: 2,113 NRW/Germany
alibaba
Expert
|
Expert
Joined: May 2008
Posts: 2,113
NRW/Germany
|
Could it be (a wild guess) that since you are using ent_for_name (where you aren't allowed to change any parameter of that entity if it's static) it's crashing because you're changing it's emask? Commenting that line out prevents crashing, but as you said, maybe it's not because of that, but another problem.
EDIT: Nevermind, as you said any change will "fix" it.
Last edited by alibaba; 01/25/16 22:37.
|
|
|
Re: Crash! With a view entity
[Re: Superku]
#458064
02/15/16 12:42
02/15/16 12:42
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
Well I've just realised that my new player model has 2 additional no texture skins (with UV mapping) again which the old one didn't. I'm pretty sure the error only appeared on/ with models which have skins with no textures. Can you please double and triple check that part in the engine again? (Btw. the error happens between "LevelReady" and "def_startup started" but I assume you are aware of that.) EDIT: The mini example from some time ago still crashes on my machine. Is there something I can do with it (except strapping it down a little more) that helps you in finding the cause of the error (including stuff you may send me which I test)? EDIT2: Made the old example even smaller: http://superku.de/mdl_crashNew.zip The error does not appear regularly, sometimes on the first try, sometimes it doesn't appear 7-8 starts in a row (with this linked example). - Crashes without the view entity too:
///////////////////////////////
#include <acknex.h>
#include <default.c>
///////////////////////////////
void main()
{
fps_max = 60;
video_mode = 9;
level_load("test.wmb");
wait(4);
ent_create("tile3.mdl",vector(128,0,32),NULL);
vec_set(sky_color,COLOR_BLACK);
}
And even smaller: http://superku.de/mdl_crashNew2.zipNow it's only a few lines of code, a NULL level and one entity ("tile3.mdl"). If you remove the empty skin(s) (or load "tile3b.mdl") the crash is gone. Otherwise, after 5-6 starts at the latest the error should appear.
Last edited by Superku; 02/15/16 14:58.
"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]
#458083
02/16/16 08:58
02/16/16 08:58
|
Joined: May 2009
Posts: 5,370 Caucasus
3run
Senior Expert
|
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
Now it's only a few lines of code, a NULL level and one entity ("tile3.mdl"). If you remove the empty skin(s) (or load "tile3b.mdl") the crash is gone. Otherwise, after 5-6 starts at the latest the error should appear. Tried about 20 times with both models ('tile3.mdl' and 'tile3b.mdl'), but it did not crash for me. Greets
|
|
|
Re: Crash! With a view entity
[Re: 3run]
#458086
02/16/16 11:38
02/16/16 11:38
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
Oh no. Thanks anyway for testing. I'd post my system config but it used to crash on my laptop too which has completely different components (and Windows version - EDIT: Wait, that's not true. My old laptop had Windows 7, too.). EDIT: @alibaba: I've now downloaded it again and seen that per default it tries to create "tile3b.mdl", the one that doesn't crash. That's a bad mistake on my part, have you tested that file or "tile3.mdl"? (This has now been fixed and uploaded under the same download link.)
Last edited by Superku; 02/16/16 11:41.
"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]
#458087
02/16/16 12:03
02/16/16 12:03
|
Joined: May 2009
Posts: 5,370 Caucasus
3run
Senior Expert
|
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
I got the crash now, but only if I press 'Run current script' button in the SED! I used to launch it with F5 before (which is test run as far as I know), and it did not crash at all. Also I found out that it actually crashes only if I press 'Run current script' button in SED, if I press F6 (which is 'Run current' too, according to the hotkeys) it won't crash... I tried to run the script about 20 time with both F5 (Test run) and F6 (Run current) hotkeys and it did not crash at all. This is really weird. Here is the crash screen: Best regards!
|
|
|
Re: Crash! With a view entity
[Re: Superku]
#458089
02/16/16 12:13
02/16/16 12:13
|
Joined: May 2009
Posts: 5,370 Caucasus
3run
Senior Expert
|
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
I've clicked both "Run current script" as well as "Test Run" and it crashed on both. I just tried to click on 'Test Run' button and it crashed, but it took more tries (about 8-9). Really weird part is that it doesn't crash with hotkeys (F5 and F6).
|
|
|
|