|
Post by ππ³π°π΅π΄π¬πΊ on Jun 14, 2021 16:29:13 GMT
I want to show a simple trick, how you can replace a singe general image without changing images.
For my demo I want to change the image of napoleon - I have a New_Napoleon.png with a size of at least 156*156px.
Upload the image directly in assets or a subfolder. I use assets/img/general for general images (it does not exist in orig EW4)
Create an xml-file. Napoleon has the general-id 1 (in def_commander.xml) we name the file:
commander_001.xml
<Texture name="img/commander/New_Napoleon.png" /> <!-- efc-modding EW4.0 --> <Images> <Image name="Napoleon.png" x="0" y="0" w="156" h="156" refx="0" refy="0"/> </Images>
Now me must add the loading of commander_001.xml before commanders1_hd.xml.
Open device_ressource.xml and search
<PHONE> <logo> <HD>
<file name="commander/commander_001.xml" hd="true"/> or
<file name="commander_001.xml" hd="true"/>
Thats it. Except of device ressources, you don't need any other changes to the original files. The trick is: First load wins ! Works for everything loaded with device-ressource.xml
|
|
|
Post by Arthur Currie on Jun 14, 2021 18:29:28 GMT
ππ³π°π΅π΄π¬πΊ, currently working on a map of each country where the farms and Cities coordinates are there... can you help ? an example
|
|
|
Post by ππ³π°π΅π΄π¬πΊ on Jun 14, 2021 18:35:19 GMT
ππ³π°π΅π΄π¬πΊ, currently working on a map of each country where the farms and Cities coordinates are there... can you help ? an example This would be my next question about btl-files. Are the positions the "coordinates" of a hex always the same, or are they relative to the top-edge of the .btl-file ? Yes we can read the map europe.bin to make such guide.
|
|
|
Post by Arthur Currie on Jun 14, 2021 18:37:58 GMT
ππ³π°π΅π΄π¬πΊ,it can differ due to the map sometimes not including crete.. so the coordinates can change. Last question. Do you have another social Media.. I have some assets that i wanna share. I don't wanna share here due to the potential stealers...
|
|
|
Post by ππ³π°π΅π΄π¬πΊ on Jun 14, 2021 19:06:51 GMT
ππ³π°π΅π΄π¬πΊ,it can differ due to the map sometimes not including crete.. so the coordinates can change. Last question. Do you have another social Media.. I have some assets that i wanna share. I don't wanna share here due to the potential stealers... I don't have any other social media. I will open an annonymous mail account soon. With the coordinates is a very important question: Do the coordinates for the same position (hex) really differ between .btl files? I don't think so - the 'coordinates' of the hex in the next row is always 80 (0x50) (Map-width +1) bigger. If they differ, how we can make an guide with the coordinates? Don't let hex confuse - the map is a chess-board ! with all unpair rows set half the size to the right interlaced
|
|
|
Post by Arthur Currie on Jun 14, 2021 19:15:10 GMT
|
|
|
Post by ππ³π°π΅π΄π¬πΊ on Jun 14, 2021 19:19:46 GMT
|
|
|
Post by Arthur Currie on Jun 14, 2021 19:23:40 GMT
|
|
|
Post by Arthur Currie on Jun 14, 2021 19:25:16 GMT
|
|
|
Post by ππ³π°π΅π΄π¬πΊ on Jun 14, 2021 21:05:36 GMT
Yes I think it will be nice to work together Arthur Currie. My work affects for now only the UI - I just want to tune the look a little bit. 95% of my work is xml-editing, and I can't do some simple graphic edits. There is only One change you need to know early: General images are 256*256 size. You can do directly something important for the tiles: I added a zip with my mapdesign at www.mediafire.com/file/ea0lrvs273rc6j3/tiles_EW4.1.zip/fileMy graphic is missing the waves, but I can't make the image any higher to add them at the bottom. If you can add the wave images of EW4 down of the image, I will add the misssing xml. What kind of changes are You modding ?
|
|
|
Post by Arthur Currie on Jun 14, 2021 21:08:55 GMT
|
|
|
Post by Arthur Currie on Jun 14, 2021 21:20:24 GMT
|
|
|
Post by ππ³π°π΅π΄π¬πΊ on Jun 14, 2021 22:50:36 GMT
ππ³π°π΅π΄π¬πΊ, here because you shared the tiles...the apk that has the functionality to add new tiles...the only problem is HOW to add the water again Thank you for directly sharing the apk. This is really strange. Even replacing the three files tiles_hd.png, tiles_hd.xml and def_mapterrain.xml with the originals does not bring back the EW4 design. You are missing already the backgound in the mission-selection screen. Did you do any other changes ?
|
|
|
Post by Arthur Currie on Jun 14, 2021 22:54:18 GMT
ππ³π°π΅π΄π¬πΊ ,to add tiles, you need to change the first 4 bytes in europe.bin and map1_hd.bin to FF for the background..its about a tutorial to change the maps
|
|
|
Post by ππ³π°π΅π΄π¬πΊ on Jun 14, 2021 23:26:03 GMT
ππ³π°π΅π΄π¬πΊ ,to add tiles, you need to change the first 4 bytes in europe.bin and map1_hd.bin to FF for the background..its about a tutorial to change the maps I've noticed it. www.mediafire.com/file/9hsifm54b28fefw/1Z-Brstj2GtVErQL-eWYi7TolUFNf2KFB.apk/file is with the original europe.bin and map1_hd.bin. And I removed the permissions. Wich guide you mean? Crosscheck my bin-file reference. If files have header, these header have to stay intact. Maybe he means the data-part of map1_hd.bin. You removed all water textures with map1_hd.bin, and the map europe.bin. Amazing, that the game don't crash, when you load a .btl without map. Why your mission-selection background map is gone, I did not investigate.
|
|