|
Post by Lancetier on Feb 12, 2022 8:46:27 GMT
So... I want to make a mod where I edit the stars and skill of generals to my liking, buffing napoleon and suvorov, change the rolls of units lower to make generals more powerful, lalala but the only apk unlock available I could find on the site does not fit my screen size... I am very new to modding and can only edit numbers on the xml files but I have no idea how to make the screen size fit drive.google.com/file/d/1fTbracN_e68kzkHWgNj0ocqAPaFJGZuq/viewimgur.com/a/SUbtUhOAny way to make it detect and just snap to any screen resolution or size? I'm on Pixel 4XL
|
|
|
Post by ππ³π°π΅π΄π¬πΊ on Feb 12, 2022 15:08:35 GMT
So... I want to make a mod where I edit the stars and skill of generals to my liking, buffing napoleon and suvorov, change the rolls of units lower to make generals more powerful, lalala but the only apk unlock available I could find on the site does not fit my screen size... I am very new to modding and can only edit numbers on the xml files but I have no idea how to make the screen size fit drive.google.com/file/d/1fTbracN_e68kzkHWgNj0ocqAPaFJGZuq/viewimgur.com/a/SUbtUhOAny way to make it detect and just snap to any screen resolution or size? I'm on Pixel 4XL Welcome EW4 modder Lancetier ! All EW4 unlocked APK, that I know, base on BJ's WW1 mod. This is one of the first EW4 versions that were released by ET (Build 3). I recommend you using the Vanilla-Light unlock apk. It is basing on the same APK, but I removed unused files and changed all pkm textures to png. We use MT for modding. Your screenshoot was already very helpful - if You are interrested, we both can try to fix this old old bug together for future modding. The bug is related to layout*.xml. Newer EW4 builds (latest is build 30) have more layout - files to support newer devices. I can't test this bug with my devices, but I have some Ideas to get around this glitch. If you are interrested, I will post some changed layout*.xml here that you need to replace in the apk and try out. For a start it would be helpfull to get your screeninfo: f-droid.org/en/packages/com.jotabout.screeninfo/ (FOSS) or from gxxly play.google.com/store/apps/details?id=com.jotabout.screeninfo
|
|
|
Post by Lancetier on Feb 12, 2022 18:18:47 GMT
Hello Trotsky ! Thank you for replying, I see a lot of your work on this forum you have a lot of useful information and explanations, I downloaded screeninfo and took screenshots of what it says. Yes I do want to try your layout.xml please! Device Name: Pixel 4 XL Android Version: 12 Screen class: normal Density class: Unknown Total Width (px): 3040 Total Height (px): 1440 App-usable Width (px): 2574 App-usable Height (px): 1384 Width (dp): 735 Height (dp): 411 Smallest DP: 411 Long or Wide: Yes Natural Orientation: Landscape Current Orientation: 90 Touchscreen: Finger Screen DPI: 560 X DPI: 537.882 Y DPI: 539.972 Logical Density: 3.5 Font Scale Density: 3.5 Calculated Diagonal (inches): 5.4 Calculated Diagonal (mm): 138.0 Pixel Format: Not Available Refresh Rate (fps): 90.0 Report prepared by ScreenInfo. Get yourself a copy: play.google.com/store/apps/details?id=com.jotabout.screeninfo
|
|
|
Post by Lancetier on Feb 12, 2022 18:24:50 GMT
...We use MT for modding. I use MT too
|
|
|
Post by ππ³π°π΅π΄π¬πΊ on Feb 12, 2022 19:58:01 GMT
Nice, I have your data, I will explain what we need to do. As I said before, the problem must be fixed in the layout*.xml file. First we must find out which is your file. Info: EW4 used folr different screen aspects (4:3, 16:19 ...etc) different layout files. The 'Basic' EW4 has a h-resolution of 480*320px (layout.xml). As dispays become wider, et keept the height of 320 and added layouts with different width (Build 3: layout534 (534*320), layout568) It is not 100% clear which one you get - check it the brutal way: 1) rename layout586.xml to layout586.xml_off 2) Sign, install and test. if you get a black screen, or the game is crashing thats your layout. if not: 3) rename layout586.xml_off back to layout586.xml 4) rename layout534.xml to layout534.xml_off 5) Sign, install and test. if you get a black screen, or the game is crashing thats your layout. if not: -- this is rare, test layout.xml 6,7,8 .... RENAME ALL _off file back to its origins ! It seems that EW4 counts with your real screen with, but for the notch or smtg else (Btw, a nice device You have) Your gaming-screen is smaller. Later you may need to edit your xml-file - I don't use the MT editor, but the last MT update had finally a multifile editor on board. Enjoy
|
|
|
Post by Lancetier on Feb 12, 2022 20:01:18 GMT
Nice, I have your data, I will explain what we need to do. As I said before, the problem must be fixed in the layout*.xml file. First we must find out which is your file. Info: EW4 used folr different screen aspects (4:3, 16:19 ...etc) different layout files. The 'Basic' EW4 has a h-resolution of 480*320px (layout.xml). As dispays become wider, et keept the height of 320 and added layouts with different width (Build 3: layout534 (534*320), layout568) It is not 100% clear which one you get - check it the brutal way: 1) rename layout586.xml to layout586.xml_off 2) Sign, install and test. if you get a black screen, or the game is crashing thats your layout. if not: 3) rename layout586.xml_off back to layout586.xml 4) rename layout534.xml to layout534.xml_off 5) Sign, install and test. if you get a black screen, or the game is crashing thats your layout. if not: -- this is rare, test layout.xml 6,7,8 .... RENAME ALL _off file back to its origins ! It seems that EW4 counts with your real screen with, but for the notch or smtg else (Btw, a nice device You have) Your gaming-screen is smaller. Later you may need to edit your xml-file - I don't use the MT editor, but the last MT update had finally a multifile editor on board. Enjoy Okay I'll start working on this right away Edit: 568 is the one that made screen black when renamed
|
|
|
Post by Lancetier on Feb 12, 2022 20:15:31 GMT
Since renaming 568 layout made my screen blaxk and keep auto exiting the game, is my problem with 568 layout file?
|
|
|
Post by ππ³π°π΅π΄π¬πΊ on Feb 12, 2022 20:19:42 GMT
Okay I'll start working on this right away Edit: 568 is the one that made screen black when renamed You have a backup: Easiest hack: 1 rename 568.xml off 2 copy the 534 layout to layout568.xml Probable this fits directly for you. -- edit -- Probable you get some trash at thr right side... then we also add aadditional params inside the layout...
|
|
|
Post by Lancetier on Feb 12, 2022 20:29:05 GMT
You have a backup: Easiest hack: 1 rename 568.xml off 2 copy the 534 layout to layout568.xml Probable this fits directly for you I did this, the screen appears to fit better but not all the way imgur.com/a/LhuNSc8Can you see the imgur link?
|
|
|
Post by ππ³π°π΅π΄π¬πΊ on Feb 12, 2022 20:37:16 GMT
[...] I did this, the screen appears to fit better but not all the way imgur.com/a/LhuNSc8Can you see the imgur link? I've seen it - do you have the black border left and right ? It seems better but still to wide. You have only the 480 - layout.xml in the Build 3 - this seems very small, but you can try it. The 1.5.6 has layout512.xml if necessary (better the 480 and you don't need to edit anything)
|
|
|
Post by Lancetier on Feb 12, 2022 20:51:14 GMT
I've seen it - do you have the black border left and right ? It seems better but still to wide. You have only the 480 - layout.xml in the Build 3 - this seems very small, but you can try it. The 1.5.6 has layout512.xml if necessary (better the 480 and you don't need to edit anything) Yes I have black border, I don't see any 480 but I saw 512, I tried it and it was still too big imgur.com/a/aRzlc4N
|
|
|
Post by ππ³π°π΅π΄π¬πΊ on Feb 12, 2022 21:11:26 GMT
I've seen it - do you have the black border left and right ? It seems better but still to wide. You have only the 480 - layout.xml in the Build 3 - this seems very small, but you can try it. The 1.5.6 has layout512.xml if necessary (better the 480 and you don't need to edit anything) Yes I have black border, I don't see any 480 but I saw 512, I tried it and it was still too big imgur.com/a/aRzlc4NTry this please: www.mediafire.com/file/8jbo119kt00xfec/layout-568h.xml/fileThe layout.xml is the original 480 layout, but I didn't notice the border on your first posting (but nicer !) This layout is my 4.1 bugfix
|
|
|
Post by Lancetier on Feb 12, 2022 21:31:13 GMT
|
|
|
Post by Lancetier on Feb 12, 2022 21:34:34 GMT
|
|
|
Post by ππ³π°π΅π΄π¬πΊ on Feb 12, 2022 21:47:26 GMT
Is there a way to get rid of the black margins? They are way too big[/quote]And these margins were all the time the same size right? Does this appear with other ET-titles?
|
|