Random Load issue

aL BeasTie

Well-known member
I keep having a problem with this mod, sometimes it will not load the mod at all, even when there has been no changes.  Often I have to run openbor several times until it will finally load the mod.  Most of the time there is no errors, but occasionally it will give errors like this.

Fatal Error in load_cached_model, file: data/chars/leo/leo.txt, line 335, message: Invalid animation name!

I seem to only get this error message when using build 4077, again it's random so most of the time the mod loads without issue, or simply crashes with no error.  The other build I was using previously was 4055.

on inspection there appears to be no issues with any chars, disabling this char will often make it give the same error for a different char.

there is nothing our of the ordinary  I can see, when you check the line numbers given by the Log, nothing is apparent.

line 335 leo.txt -
Code:
@cmd	dasher 1 0 0 0

line 286 donblade.txt

Code:
move	0

In both chars these lines are very close to the anims BLOCK and BLOCKPAIN - I suspect the latter could be the issue.


I can't confirm if this is even an openbor problem or some kind of memory or other hardware issue, or simply another program interfering with openbor.  I've tried disabling anything that could affect it like AV scanners etc. 

I don't get this problem on other mods, much larger mods load everytime without problems.

EDIT: Forgot to mention the mod is on my dropbox and others have had the same issue, or it loads for them while at the same time it won't load for me etc.  I tried moving the mod out of dropbox and the problem still persists. 
 
You can probably ignore this....

My system got infected again, likely this was the source of the problems.
 
BeasTie said:
You can probably ignore this....

My system got infected again, likely this was the source of the problems.

Well I was wrong, I was just being paranoid, I found an infected file I'd missed, but the system was not affected by any virus.  Still having this problem and it's definitely just this mod.  I can confirm it because people on my dropbox have the same problem with it.

I'm at the point I can't do any work because it takes me several minutes sometimes just to load the mod.  Sometimes I'm lucky and it will work for a while without problems.  Other times it's impossible to get it to load.

I've noticed that sometimes deleting the saves and config files will make it load up, thou it's not always the case.

I've tried numerous versions of openbor and it doesn't seem to make any difference.


EDIT: I'm systematically disabling scripts, entire entities, disabled all players.  Still the problem persists!

I think some of these erroneous errors would be easier to track down if the log file would tell you what the last file accessed was, or the last model accessed. (or something of this nature)
 
Instead of disabling, try a new mod and start adding 1 stage, 1 player, 1 enemy, with all the scripts, and start from there. I think it's more easy that way to find what is causing the crash.
 
Yeah that's what I will have to do next, but it might be engine bug that we can eventually track down.  Proper errors should cause it to crash every time, not just sometimes.  So I figure there is actually something 'broken' in the engine.

The simplest explanation could be that some file is corrupted, but it still manages to load it sometimes.
 
BeasTie said:
Proper errors should cause it to crash every time, not just sometimes.

This, sort of. OpenBOR does not crash at all (well it CAN, but rarely ever does) and I wish people would quit saying that because it's a serious misconception and leads to a lot of confusion. What it does do is throw an error and exit - precisely to avoid an inevitable crash later on.

The error trapping is actually pretty darn effective, I've seen the engine actually crash maybe ~10 times in 6 years. Now all that said, the error reporting most certainly sucks. What information you do get is often misleading, if you get anything useful at all. Fixing that is unfortunately a lot more involved than just sticking some text into the code here and there, but I am working on it. It's part of the larger overhaul I started last winter and hope to get back on this coming winter.

Now all that said, your problem here is one I've never seen or heard of. Is it on multiple modules? It really does sound like file corruption, and that's a sneaky thing. Text copy/paste and other transfer methods more often than not take corruption along for the ride like a virus, so you are necessarily getting clean copies with the stuff you've done.

DC
 
remove half of the anims to see if problem exists, leave only required ones or swap all frames to one blank frame, it would be easy to find what causes the problem, if you know what it is then avoid it and try some workarounds.
 
No worries DC, I understand it's not actually crashing, I guess I'm using the term as slang, I just meant it's not loading. 

I realize there's not much that can be done to help,  I mainly I thought I should post because of the invalid animation name error.  It just seemed odd that it only said this sometimes. 

It probably is just a bad file or I did something wrong with some code or script.  It's only happening with this module



 
Maybe somewhere you have the same script function on different files. I had that problem before, that's why I suggested to try your player in a "blank mod"with basic animations and some scripts, and gradually adding all the scripts until you find the error.
 
I'm at the point I can't do any work because it takes me several minutes sometimes just to load the mod.  Sometimes I'm lucky and it will work for a while without problems.  Other times it's impossible to get it to load.

I found this error at your mod just now. At the first time I launched it, it crashed while loading (at 52%). The log had nothing wrong, it was loading the content then just stopped to write the log. No signal of any known error, like any not found sprite or whatever. It even haven't reached this part:

Loading models............... Done!
Object engine init........... Done!
Input init................... No Joystick(s) Found!
Done!
Create blending tables....... Done!
Save settings so far........ Done!

Which was pretty weird. It just stopped to load and closed.

Then I simple launched the game again and it begans to load, jumped to 52% and loaded all the game just fine.
 
That exactly happened to me, not only with my mod but also with others' like bWWd's He-Man, ZVitor's Justice League and Mortal Kombat as well. At first i assumed it was some kind of "Memory Conflict" stuff since bWWd's He-Man mod is HUGE but strangely ZVitor's Marvel Infinity War runs perfectly despite the quantity of material storaged.

Anyway in my case I thought it was some kind of mess from my characters since i started to create them on OpenborStats, then i eventually figured it out about its buggy nature and I re arranged their animations manually mostly from scratch, yet the problem is still there.  The animations are named perfectly and since the Log is pretty vague about the error it's really frustrating.

The question is, on my PC mods work perfectly but on Android it's pretty common problem including the mentioned mods. I'd say it's more a matter of bad luck because it's pretty random. Some mods work great, others simply will crash the APK on Android.

- My android build is Openbor V3.0 Build 4161
- My PC build is Openbor  V3.0 Although there are no specifications regarding the Build in the Log. It's empty.
 
Back
Top Bottom