summaryrefslogtreecommitdiff
path: root/Dev/resnametable.TXT
blob: 411bf6cd099e7241972d21ec7d9b332f1eb6b2a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Resnametable reading problem, testcases and description
by Akaru
------------------------------------------------------------------
EDITED Resnametable, add at the end:
aaa.gnd#valkyrie.gnd#
aaa.gat#valkyrie.gat#
aaa.rsw#valkyrie.rsw#
�����������̽�\map\aaa.bmp#�����������̽�\map\valkyrie.bmp#

At map_athena.conf, add:
map: aaa.gat

Case 1:
In data.grf there's the base resnametable without reference of aaa.gat
In sdata.grf there's no resnametable
In data folder there's an edited resnametable with aaa.gat reference
Results: Athena gives aaa.gat not found error
What this proves: Athena doesn't even use the values in the datafolder resnametable

Case 2:
In data.grf there's the base resnametable without reference of aaa.gat
In sdata.grf there's the edited resnametable aaa.gat reference
In data folder there's an edited resnametable with aaa.gat reference
Results: Athena loads aaa.gat
What this proves: Athena only checks for the existance of the datafolder resnametable, but uses value from sdata.grf resnametable

Case 3:
In data.grf there's the base resnametable without reference of aaa.gat
In sdata.grf there's the edited resnametable aaa.gat reference
In data folder there's no resnametable
BEFORE MY CHANGE: Athena exits, "data/resnametable.txt not found"
AFTER MY CHANGE: Athena loads aaa.gat
What this proves: Athena do not need the datafolder resnametable at all and it still runs from the resnametable in the GRFs

Case 4:
In data.grf there's no resnametable
In sdata.grf there's no resnametable
In data folder there's no resnametable
BEFORE MY CHANGE: Athena exits, "data/resnametable.txt not found"
AFTER MY CHANGE: Athena exits, "data/resnametable.txt not found"

How it is now:
- It searches for the datafolder resnametable:
  - If it exist, it continues but only use the resnametable from the GRF
  - If it does not exist,
    - If resnametable isn't found in data.grf/sdata.grf/adata.grf, it errors "resnametable not found" and exits
    - If resnametable is found in data.grf/sdata.grf/adata.grf, it errors "resnametable not found" and exits

What is should do:
- Check if data_folder in grf-files is enabled:
  - If it is, search for the datafolder resnametable:
    - If it exist:
      - If resnametable isn't found in data.grf/sdata.grf/adata.grf, it continues and uses this resnametable
      - If resnametable is found in data.grf/sdata.grf/adata.grf, it continues and overwrites the GRF resnametable with this one from the datafolder
    - If it does not exist:
      - If resnametable isn't found in data.grf/sdata.grf/adata.grf, it errors "resnametable not found" and exits
      - If resnametable is found in data.grf/sdata.grf/adata.grf, it continues and use the GRF resnametable
   - If it isn't, then:
      - If resnametable isn't found in data.grf/sdata.grf/adata.grf, it errors "resnametable not found" and exits
      - If resnametable is found in data.grf/sdata.grf/adata.grf, it continues and use the GRF resnametable  

------------------------------------------------------------------
Fixes, comments, discussions, etc goes below here:
------------------------------------------------------------------