Debug: Animation error; Release: Animation ok


(Scennative) #1

Hey. When i make a Debug Version of my Mod i become then on Game these Error:

********************
ERROR: BG_IndexForString: unknown token 'MG34': (animations/scripts/human_base.script, line 20)
********************

But on a Release Version of my Mod, i become not a Error.

Here the human_base.script:
Klick

Here the bg_misc.c:
Klick

What i make wrong?


(-IronMonkey-) #2

you must set all the animations for the new weapons inside “animations/scripts/human_base.script”

PS: those are 3rd view animations


(-IronMonkey-) #3

and lol maybe try something yourself insteed continuously posting your files
or you will never learn :slight_smile:

you have:
“set weapons smg = MG34”

and also
"set weapons machineguns = MP40 AND Thompson … AND MG34

probably this is not causing your problem…
but i ask myself
what happens in this case?

weapons smg
{
legs prone_legs torso prone_mg42_idle
}

weapons machineguns
{
legs prone_legs torso prone_mg_idle
}

did you try to remove “set weapons smg = MG34” line?
and simply replacing all your:

weapons smg
{

}

with:

weapons MG34
{

}


(Scennative) #4

Must I squeeze all changed files also in the Etmain folder? Can be that the mistake? Only such a supposition.

Edit:

No, this was not also the mistake. The strange one is that only in the Debug version of the mistakes appears. But in the release version not.

I have put all weapon in the human_base.script. But he does not recognise anyhow the weapons. As if they did not exist.


(Scennative) #5

With Smg I have determined several weapons at the same time. Because I have removed these modern weapons (Ak47, etc.), file has been left in the Script.


(ailmanki) #6

A guess… you say it works when not in Debug mode, the error says unknown Token on line 20… thats the MG34 … yep, but if it works without Debug… then I bet the error is somewhere else, as this error msg is frequent when the mod is not installed correctly, or when a wrong version is used…
Not sure anymore but that error happened to me on linux when I tried to start a server locally… it just did always take the binaries from etmain instead the ones from the mod folder I wanted… took me a while to figure out…
I would check log, when the game does start up if did load your mod - or if it did take etmain’s…
(edit: if you load a mod it will load the pk3’s anyway… but the binaries it might load from etmain - to be more precise)