Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   ToME (http://angband.oook.cz/forum/forumdisplay.php?f=9)
-   -   Lua "obsolete file error", blargh (http://angband.oook.cz/forum/showthread.php?t=3441)

Therem Harth July 3, 2010 18:01

Lua "obsolete file error", blargh
 
So I created a new skill for a new category of weapons, modifying all the right files as far as I could tell - defines.h, player_c.pkg, w_play_c.c, and s_info.txt. And now the game won't start, complaining about an "obsolete file error" in s_info.txt.

That is... pretty cryptic. What does it mean, how can I fix it, and where can I change the error message so that I get useful information when faced with similar issues in the future?

Nick July 3, 2010 23:02

Obsolete file error in my experience usually means you've got the version number wrong in one of the .txt files or in defines.h.

Therem Harth July 4, 2010 00:10

In this case though, it was the number I'd assigned to the new skill. I had made it 60 which for some reason the game didn't like. Making it 38 solved it.

ekolis July 4, 2010 12:24

Perhaps there is a MAX_SKILLS constant somewhere set to less than 60?

Slow July 4, 2010 14:02

Quote:

Originally Posted by ekolis (Post 36608)
Perhaps there is a MAX_SKILLS constant somewhere set to less than 60?

Exactly. /lib/edit/misc.txt:
Code:

# Maximum number of skills in s_info.txt
M:k:60



All times are GMT +1. The time now is 03:23.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.