Notes |
|
|
|
|
(0002012)
|
Warmonger
|
2011-09-13 05:57
(edited on: 2011-09-13 05:59) |
|
What the hell are you doing there?
Now I got the following:
Failed to find file Data/zvs/Lib1.res/E_SPBERS.bmp
Failed to find file Data/zvs/Lib1.res/E_SPHYPN.bmp
Failed to find file Data/zvs/Lib1.res/E_SPBLIND.bmp
Failed to find file Data/zvs/Lib1.res/E_DRAGON.bmp
Data\directory is default search folder. After your patch graphics stopped working.
|
|
|
(0002013)
|
ubuntux
|
2011-09-13 13:07
(edited on: 2011-09-13 13:08) |
|
Well, that's exactly what I got before the patch. After patching I didn't get them anymore.
So there might be a linux/windows issue here.
|
|
|
|
Ahh, sorry. Now that is tricky. |
|
|
|
it's definitely a linux/windows issue, since default paths are handled differently in each system. Thus, it would be best to assign the "default" path to see the root folder, that is the folder of the executable created (and the folder containing the various dlls) and this is the trunk folder.So default should be the trunk folder and should be hardcoded explicitly in the project files for each operating system. In windows that i know, it's the path declared on the Debugging field under VC++ search paths under configuration properties for the project |
|
|
(0002016)
|
Ivan
|
2011-09-13 15:51
|
|
>> So there might be a linux/windows issue here.
Not sure. For me only version without "Data" works. Maybe you don't have these files (they're coming from WOG)
@vaderas
you're talking about DATA_DIR define - "." on Win, something like "/usr/share/vcmi" on Linux
Image loading is a bit different due to .lod files. LodHandler checks for files in 2 locations - .lod file itself and additional directory - DATA_DIR/Data/
So "Data" directory is not missing - it will be added to path later |
|
|
|
|
|
|
@ivan
i guess you 're right, i hadnt seen the lodhandler and the global header file, although i still find it a little confusing for a newcomer to see DATA_DIR defined as ./ and not as ./Data/! but, we can live with that too :) ! |
|