Author Topic: Customized animations cause crash  (Read 7604 times)

0 Members and 1 Guest are viewing this topic.

Not Yet Rated!

Offline WNG

  • Forum Moderator
  • Full Member
  • *
  • Topic Author
  • Posts: 615
  • Country: ca
  • Karma: +10/-0
  • Gender: Male
    • View Profile
    • Awards
  • Time Zone: -4
Customized animations cause crash
« on: 06 March 2019, 22:11:33 »
Hi.

I've edited some dragonian animations. I extracted the breathing animation and, with a text editor, changed the special effect of the breath. I've then put them in an archive and applied them to new heroes. The thing is, whenever they attempt to use this animation, the game crashes 100% of the time.

What could be causing this?

Not Yet Rated!

Offline nargil66

  • Forum Moderator
  • Full Member
  • *
  • Posts: 2490
  • Country: bg
  • Karma: +67/-1
  • Gender: Male
  • Mesh-Texturing Beautifier :)
    • View Profile
    • Awards
  • Time Zone: ?
Re: Customized animations cause crash
« Reply #1 on: 06 March 2019, 22:52:44 »
Used Notepad++? Same problem here :(

Not Yet Rated!

Offline WNG

  • Forum Moderator
  • Full Member
  • *
  • Topic Author
  • Posts: 615
  • Country: ca
  • Karma: +10/-0
  • Gender: Male
    • View Profile
    • Awards
  • Time Zone: -4
Re: Customized animations cause crash
« Reply #2 on: 06 March 2019, 23:43:26 »
I used a different text editor, the same one I use for other coding needs : Brackets.

I don't think the editor has to do with it, though. Clearly we messed up somewhere in the process  ???

Not Yet Rated!

Offline soa

  • Modder
  • Full Member
  • *
  • Posts: 517
  • Country: fr
  • Karma: +21/-0
    • View Profile
    • Awards
  • Time Zone: +1
Re: Customized animations cause crash
« Reply #3 on: 07 March 2019, 20:13:56 »
I can't really be of assistance on this matter, but maybe if you describe step by step what you did, and what exactly you modified in the .dbr (what lines, etc.), that would help.
« Last Edit: 10 March 2019, 11:29:51 by soa »
Soulvizier for AE, Ragnarok and Atlantis [released] :
https://titanquestfans.net/index.php?topic=1201.0  / Discord : https://discord.gg/qs9t6AA
Overhaul mod with many new monsters, skills, items, features, balance and bugfixes. Increased difficulty.

Not Yet Rated!

Offline WNG

  • Forum Moderator
  • Full Member
  • *
  • Topic Author
  • Posts: 615
  • Country: ca
  • Karma: +10/-0
  • Gender: Male
    • View Profile
    • Awards
  • Time Zone: -4
Re: Customized animations cause crash
« Reply #4 on: 08 March 2019, 11:37:06 »
1. Using ARCExplorer, extracted the .anm file.

2. Using a Text Editor, edited the CreateEntity field, to put in the special effect I had made.

3. Using ARCEncryptor, packed the .anm file inside an .arc file, wich is then placed at the root of my mod.

4. Using ArtManager, applied the custom animation to the enemy (in this case, a dragonian.) The mod is built afterwards.

With this done, the dragonian always cause the game to crash when it uses the animation.

Not Yet Rated!

Offline Bumbleguppy

  • D'oh-ist Mage
  • Forum Moderator
  • Full Member
  • *
  • Posts: 884
  • Country: us
  • Karma: +42/-0
    • View Profile
    • Awards
  • Time Zone: -8
Re: Customized animations cause crash
« Reply #5 on: 09 March 2019, 20:53:45 »
Here's my step by step (I have extracted all of everything from all archives a long time ago):

1. Change the effect path in the animation file's CreateEntity code in Notepad++. If it doesn't HAVE an existing Create Entity, add a line break after the very last "?" character in the animation file and put the createentity code there.
2. Save to my mod's Documents/CustomMaps/Mod/source/whatever directory (not working directory).
3. In ArtManger menu bar click on Archive -> Build.
4. Navigate to and add animation in the CharAnimationTable or the monster's animation slot.
5. Build mod.

I don't bother moving anything when I build, so when ArtManager prompts to delete animation files on the first build after booting it up, I just click "No to all".

If there's anything I want deleted from the archive, I click "No" on every one of the hundred or so animation files one-by-one until it prompts for the file I want to delete :D

Not efficient, but I don't delete much at this point.

Not Yet Rated!

Offline Endymion

  • Modder
  • Full Member
  • *
  • Posts: 103
  • Country: aq
  • Karma: +9/-0
    • View Profile
    • Awards
  • Time Zone: ?
Re: Customized animations cause crash
« Reply #6 on: 09 March 2019, 21:07:48 »
For starters you can try to test if the effect even works at all (eg. place the effect entity on the map in Editor and see if it crashes).
Other than that it's pretty hard too say without seeing the anm & effect for yourself.

Not Yet Rated!

Offline WNG

  • Forum Moderator
  • Full Member
  • *
  • Topic Author
  • Posts: 615
  • Country: ca
  • Karma: +10/-0
  • Gender: Male
    • View Profile
    • Awards
  • Time Zone: -4
Re: Customized animations cause crash
« Reply #7 on: 10 March 2019, 02:18:50 »
Tested the effects in the Editor, and they would render correctly and the Editor wouldn't crash.

Included them the way Bumbleguppy mentionned, but alas it still fails.

I wonder where the problem could come from at this point  :-\

Not Yet Rated!

Offline Bumbleguppy

  • D'oh-ist Mage
  • Forum Moderator
  • Full Member
  • *
  • Posts: 884
  • Country: us
  • Karma: +42/-0
    • View Profile
    • Awards
  • Time Zone: -8
Re: Customized animations cause crash
« Reply #8 on: 10 March 2019, 02:29:15 »
Try using the original animation file unchanged but save and build it as though it was the altered version (name and location).

Not Yet Rated!

Offline WNG

  • Forum Moderator
  • Full Member
  • *
  • Topic Author
  • Posts: 615
  • Country: ca
  • Karma: +10/-0
  • Gender: Male
    • View Profile
    • Awards
  • Time Zone: -4
Re: Customized animations cause crash
« Reply #9 on: 10 March 2019, 13:01:12 »
Hmm, well now he could use it for one time without the game crashing, though this time its mesh was stretched a lot for a split second.

Next time he used it, he flat out dissapeared from screen. Now I'm really confused...

Not Yet Rated!

Offline Endymion

  • Modder
  • Full Member
  • *
  • Posts: 103
  • Country: aq
  • Karma: +9/-0
    • View Profile
    • Awards
  • Time Zone: ?
Re: Customized animations cause crash
« Reply #10 on: 11 March 2019, 11:28:14 »
Alright you piqued my interest. Upload the anm & fx (and related .dbrs) if you like, I'll take a look.

Not Yet Rated!

Offline WNG

  • Forum Moderator
  • Full Member
  • *
  • Topic Author
  • Posts: 615
  • Country: ca
  • Karma: +10/-0
  • Gender: Male
    • View Profile
    • Awards
  • Time Zone: -4
Re: Customized animations cause crash
« Reply #11 on: 11 March 2019, 12:05:59 »
Here it is. It includes the effects, the animations, the monsters that use it and the skills.

https://www.dropbox.com/s/x8tcg666ouykp4d/animationsPackage.zip?dl=0

Not Yet Rated!

Offline Endymion

  • Modder
  • Full Member
  • *
  • Posts: 103
  • Country: aq
  • Karma: +9/-0
    • View Profile
    • Awards
  • Time Zone: ?
Re: Customized animations cause crash
« Reply #12 on: 11 March 2019, 18:24:34 »
Well the effects are fine. Animations however crash regardless of having anything attached or not, which is fairly odd.
Try extracting original anm from the beginning and edit it with Notepad++. Or use these.

Not Yet Rated!

Offline WNG

  • Forum Moderator
  • Full Member
  • *
  • Topic Author
  • Posts: 615
  • Country: ca
  • Karma: +10/-0
  • Gender: Male
    • View Profile
    • Awards
  • Time Zone: -4
Re: Customized animations cause crash
« Reply #13 on: 11 March 2019, 18:47:54 »
Well, major progress has been done : the animation doesn't crash, the skill does inflict damage, but there's no effect displaying.

I checked the access paths and they look alright. The effect emitter still works in the Editor, though.  ???

Not Yet Rated!

Offline Bumbleguppy

  • D'oh-ist Mage
  • Forum Moderator
  • Full Member
  • *
  • Posts: 884
  • Country: us
  • Karma: +42/-0
    • View Profile
    • Awards
  • Time Zone: -8
Re: Customized animations cause crash
« Reply #14 on: 11 March 2019, 19:35:15 »
Could it be that the orientation of the emitter is pointing down? The orientation of the attachpoint could be an issue and the effect is hidden by the mesh maybe?

Tags:
 


SimplePortal 2.3.7 © 2008-2024, SimplePortal