Frodo45127 / rpfm

Rusted PackFile Manager (RPFM) is a... reimplementation in Rust and Qt5 of PackFile Manager (PFM), one of the best modding tools for Total War Games.
MIT License
357 stars 57 forks source link

Animations errors causing game to crash at start up #275

Closed Ding-adong closed 10 months ago

Ding-adong commented 10 months ago

If i so much to open any animations txt file, it will add LF for no apparent reason.

I.E.

fragment Archer_axe_melee_fragment default_equipment_display = secondary_weapon

becomes

fragment Archer_axe_melee_fragment default_equipment_display = secondary_weapon

giving unrecognised keyword secondary_weapon error.

Notepad++ show that a LF was introduced. Had a backup of course and tried copy and paste the correct version and no luck.

Had to revert back to PFM 5.2.4 to fix it.

Frodo45127 commented 10 months ago

what game?

Ding-adong commented 10 months ago

Sorry, Empire.

Frodo45127 commented 10 months ago

mmm are you sure it's rpfm's fault?

I mean, LF is a unix line ending character, added when you press enter to jump to the next line. And in your example line, the only difference seems to be the extra space before secondary_weapon. If that's where the LF character has been added, 99% sure it's not due to rpfm adding it, as it doesn't add them anywhere, other that at the end of the line if it has to replace a CRLF.

Also, just checked to be sure and the empire animation_tables.txt (I assume that's the file you're checking) it's read correctly in RPFM.

Ding-adong commented 10 months ago

Change Settings - text editor - open/save - end of line from unix to dos/windows.

Also updated to latest version.

No longer replicate the problem and all is well. Not sure which of the above was the issue.

Consider it close now.