resnametable.TXT 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. Resnametable reading problem, testcases and description
  2. by Akaru
  3. ------------------------------------------------------------------
  4. EDITED Resnametable, add at the end:
  5. aaa.gnd#valkyrie.gnd#
  6. aaa.gat#valkyrie.gat#
  7. aaa.rsw#valkyrie.rsw#
  8. 유저인터페이스\map\aaa.bmp#유저인터페이스\map\valkyrie.bmp#
  9. At map_athena.conf, add:
  10. map: aaa.gat
  11. Case 1:
  12. In data.grf there's the base resnametable without reference of aaa.gat
  13. In sdata.grf there's no resnametable
  14. In data folder there's an edited resnametable with aaa.gat reference
  15. Results: Athena gives aaa.gat not found error
  16. What this proves: Athena doesn't even use the values in the datafolder resnametable
  17. Case 2:
  18. In data.grf there's the base resnametable without reference of aaa.gat
  19. In sdata.grf there's the edited resnametable aaa.gat reference
  20. In data folder there's an edited resnametable with aaa.gat reference
  21. Results: Athena loads aaa.gat
  22. What this proves: Athena only checks for the existance of the datafolder resnametable, but uses value from sdata.grf resnametable
  23. Case 3:
  24. In data.grf there's the base resnametable without reference of aaa.gat
  25. In sdata.grf there's the edited resnametable aaa.gat reference
  26. In data folder there's no resnametable
  27. BEFORE MY CHANGE: Athena exits, "data/resnametable.txt not found"
  28. AFTER MY CHANGE: Athena loads aaa.gat
  29. What this proves: Athena do not need the datafolder resnametable at all and it still runs from the resnametable in the GRFs
  30. Case 4:
  31. In data.grf there's no resnametable
  32. In sdata.grf there's no resnametable
  33. In data folder there's no resnametable
  34. BEFORE MY CHANGE: Athena exits, "data/resnametable.txt not found"
  35. AFTER MY CHANGE: Athena exits, "data/resnametable.txt not found"
  36. How it is now:
  37. - It searches for the datafolder resnametable:
  38. - If it exist, it continues but only use the resnametable from the GRF
  39. - If it does not exist,
  40. - If resnametable isn't found in data.grf/sdata.grf/adata.grf, it errors "resnametable not found" and exits
  41. - If resnametable is found in data.grf/sdata.grf/adata.grf, it errors "resnametable not found" and exits
  42. What is should do:
  43. - Check if data_folder in grf-files is enabled:
  44. - If it is, search for the datafolder resnametable:
  45. - If it exist:
  46. - If resnametable isn't found in data.grf/sdata.grf/adata.grf, it continues and uses this resnametable
  47. - If resnametable is found in data.grf/sdata.grf/adata.grf, it continues and overwrites the GRF resnametable with this one from the datafolder
  48. - If it does not exist:
  49. - If resnametable isn't found in data.grf/sdata.grf/adata.grf, it errors "resnametable not found" and exits
  50. - If resnametable is found in data.grf/sdata.grf/adata.grf, it continues and use the GRF resnametable
  51. - If it isn't, then:
  52. - If resnametable isn't found in data.grf/sdata.grf/adata.grf, it errors "resnametable not found" and exits
  53. - If resnametable is found in data.grf/sdata.grf/adata.grf, it continues and use the GRF resnametable
  54. ------------------------------------------------------------------
  55. Fixes, comments, discussions, etc goes below here:
  56. ------------------------------------------------------------------