Are terrains able to 32bit ?

 quaresma71


Join Date: 27 April 2020
Posts:4
Posted 2 November 2021 - 8:39 pm
Can we make terrains in 32bit color depth? Or with extra color palettes?
Link | Reply | Quote
 koandcul13


Join Date: 12 May 2020
Posts:134
Posted 2 November 2021 - 8:51 pm
[You must login to view link]

https://www.youtube.com/watch?v=6kM4Lexehw4

you could import in game your own palletes

are the 50500.bina , 57071.bina , 57083.bina , 57521.bina files. You can open them with any text editor, even notepad.
Link | Reply | Quote
 +[email protected]


Voobly Team

Join Date: 30 November 2018
Posts:1445
Posted 2 November 2021 - 11:44 pm
but I guess we can not escape the 256 colors palettes, right?
Link | Reply | Quote
 koandcul13


Join Date: 12 May 2020
Posts:134
Posted 3 November 2021 - 1:08 pm
but I guess we can not escape the 256 colors palettes, right?
I assume reverse engineering could help here, so there is always a way
Link | Reply | Quote
 +[email protected]


Voobly Team

Join Date: 30 November 2018
Posts:1445
Posted 3 November 2021 - 1:59 pm
I meant in the current coding of the game, ofc.
Link | Reply | Quote
 koandcul13


Join Date: 12 May 2020
Posts:134
Posted 3 November 2021 - 2:25 pm
I meant in the current coding of the game, ofc.
What sengoku did was to import their own palettes and this made possible a better quality for graphics

[You must login to view link]
Link | Reply | Quote
 quaresma71


Join Date: 27 April 2020
Posts:4
Edited 5 November 2021 - 8:26 pm by quaresma71
koandcul13 wrote:
[You must login to view link]

https://www.youtube.com/watch?v=6kM4Lexehw4

you could import in game your own palletes

are the 50500.bina , 57071.bina , 57083.bina , 57521.bina files. You can open them with any text editor, even notepad.

How to change color palette of a single SLP
Link | Reply | Quote
 +[email protected]


Voobly Team

Join Date: 30 November 2018
Posts:1445
Edited 6 November 2021 - 8:41 am by +[email protected]
quaresma71 wrote:
How to change color palette of a single SLP
If I wanted a single slp file to use another palette, would load the SLP into SLXStudio and use the function "apply color palette". This would asign colours in the new palette and, once I generate the SLP again, it will require the new palette to look right.

However, you'd still need to tell the game to change the palette to use for that specific SLP in the binary files. If it's a menu or a background image, you may be able to pull it off but I don't know if it's possible on an SLP fila that originally uses the "standard graphics" palette.

If you need information on how to change the palette or navigate the binary files, there are sections about it in the mod guide at [You must login to view link]
Link | Reply | Quote
 [Rohirrim]katsuie


Join Date: 19 December 2016
Posts:490
Posted 6 November 2021 - 5:46 pm
Code:
00560710 /$ 81EC 34050000 SUB ESP,534 00560716 |. 53 PUSH EBX 00560717 |. 55 PUSH EBP 00560718 |. 56 PUSH ESI 00560719 |. 57 PUSH EDI 0056071A |. 8BBC24 4805000>MOV EDI,DWORD PTR SS:[ESP+548] 00560721 |. 8BD9 MOV EBX,ECX 00560723 |. 85FF TEST EDI,EDI 00560725 |. 74 54 JE SHORT age2_x1_.0056077B 00560727 |. 6A 2E PUSH 2E 00560729 |. 57 PUSH EDI 0056072A |. E8 314C0B00 CALL age2_x1_.00615360 0056072F |. 83C4 08 ADD ESP,8 00560732 |. 85C0 TEST EAX,EAX 00560734 |. 75 15 JNZ SHORT age2_x1_.0056074B 00560736 |. 57 PUSH EDI 00560737 |. 8D4424 44 LEA EAX,DWORD PTR SS:[ESP+44] 0056073B |. 68 60B46700 PUSH age2_x1_.0067B460 ; ASCII "%s.pal" 00560740 |. 50 PUSH EAX 00560741 |. E8 E53C0B00 CALL age2_x1_.0061442B 00560746 |. 83C4 0C ADD ESP,0C 00560749 |. EB 21 JMP SHORT age2_x1_.0056076C 0056074B |> 83C9 FF OR ECX,FFFFFFFF 0056074E |. 33C0 XOR EAX,EAX 00560750 |. F2:AE REPNE SCAS BYTE PTR ES:[EDI] 00560752 |. F7D1 NOT ECX 00560754 |. 2BF9 SUB EDI,ECX 00560756 |. 8D5424 40 LEA EDX,DWORD PTR SS:[ESP+40] 0056075A |. 8BC1 MOV EAX,ECX 0056075C |. 8BF7 MOV ESI,EDI 0056075E |. 8BFA MOV EDI,EDX 00560760 |. C1E9 02 SHR ECX,2 00560763 |. F3:A5 REP MOVS DWORD PTR ES:[EDI],DWORD PTR DS:[ESI] 00560765 |. 8BC8 MOV ECX,EAX 00560767 |. 83E1 03 AND ECX,3 0056076A |. F3:A4 REP MOVS BYTE PTR ES:[EDI],BYTE PTR DS:[ESI] 0056076C |> 8D4C24 40 LEA ECX,DWORD PTR SS:[ESP+40] 00560770 |. 51 PUSH ECX 00560771 |. E8 37020C00 CALL age2_x1_.006209AD 00560776 |. 83C4 04 ADD ESP,4 00560779 |. EB 05 JMP SHORT age2_x1_.00560780 0056077B |> C64424 40 00 MOV BYTE PTR SS:[ESP+40],0 00560780 |> 8D53 48 LEA EDX,DWORD PTR DS:[EBX+48] 00560783 |. 8D83 980A0000 LEA EAX,DWORD PTR DS:[EBX+A98] 00560789 |. 83CD FF OR EBP,FFFFFFFF 0056078C |. 33FF XOR EDI,EDI 0056078E |. 895424 10 MOV DWORD PTR SS:[ESP+10],EDX 00560792 |. 894424 14 MOV DWORD PTR SS:[ESP+14],EAX 00560796 |> 8B88 88F5FFFF /MOV ECX,DWORD PTR DS:[EAX-A78] 0056079C |. 85C9 |TEST ECX,ECX 0056079E |. 74 4B |JE SHORT age2_x1_.005607EB 005607A0 |. 8B8C24 4C05000>|MOV ECX,DWORD PTR SS:[ESP+54C] 005607A7 |. 83F9 FF |CMP ECX,-1 005607AA |. 74 04 |JE SHORT age2_x1_.005607B0 005607AC |. 3908 |CMP DWORD PTR DS:[EAX],ECX 005607AE |. 74 71 |JE SHORT age2_x1_.00560821 005607B0 |> 8B4424 10 |MOV EAX,DWORD PTR SS:[ESP+10] 005607B4 |. 8D7424 40 |LEA ESI,DWORD PTR SS:[ESP+40] 005607B8 |> 8A10 |/MOV DL,BYTE PTR DS:[EAX] 005607BA |. 8ACA ||MOV CL,DL 005607BC |. 3A16 ||CMP DL,BYTE PTR DS:[ESI] 005607BE |. 75 1C ||JNZ SHORT age2_x1_.005607DC 005607C0 |. 84C9 ||TEST CL,CL 005607C2 |. 74 14 ||JE SHORT age2_x1_.005607D8 005607C4 |. 8A50 01 ||MOV DL,BYTE PTR DS:[EAX+1] 005607C7 |. 8ACA ||MOV CL,DL 005607C9 |. 3A56 01 ||CMP DL,BYTE PTR DS:[ESI+1] 005607CC |. 75 0E ||JNZ SHORT age2_x1_.005607DC 005607CE |. 83C0 02 ||ADD EAX,2 005607D1 |. 83C6 02 ||ADD ESI,2 005607D4 |. 84C9 ||TEST CL,CL 005607D6 |.^75 E0 |\JNZ SHORT age2_x1_.005607B8 005607D8 |> 33C0 |XOR EAX,EAX 005607DA |. EB 05 |JMP SHORT age2_x1_.005607E1 005607DC |> 1BC0 |SBB EAX,EAX 005607DE |. 83D8 FF |SBB EAX,-1 005607E1 |> 85C0 |TEST EAX,EAX 005607E3 |. 74 3C |JE SHORT age2_x1_.00560821 005607E5 |. 8B4424 14 |MOV EAX,DWORD PTR SS:[ESP+14] 005607E9 |. EB 07 |JMP SHORT age2_x1_.005607F2 005607EB |> 83FD FF |CMP EBP,-1 005607EE |. 75 02 |JNZ SHORT age2_x1_.005607F2 005607F0 |. 8BEF |MOV EBP,EDI 005607F2 |> 8B5424 10 |MOV EDX,DWORD PTR SS:[ESP+10] 005607F6 |. 47 |INC EDI 005607F7 |. 83C0 04 |ADD EAX,4 005607FA |. 81C2 04010000 |ADD EDX,104 00560800 |. 83FF 0A |CMP EDI,0A 00560803 |. 894424 14 |MOV DWORD PTR SS:[ESP+14],EAX 00560807 |. 895424 10 |MOV DWORD PTR SS:[ESP+10],EDX 0056080B |.^7C 89 \JL SHORT age2_x1_.00560796 0056080D |. 83FD FF CMP EBP,-1 00560810 |. 75 2F JNZ SHORT age2_x1_.00560841 00560812 |. 5F POP EDI 00560813 |. 5E POP ESI 00560814 |. 5D POP EBP 00560815 |. 33C0 XOR EAX,EAX 00560817 |. 5B POP EBX 00560818 |. 81C4 34050000 ADD ESP,534 0056081E |. C2 0C00 RETN 0C 00560821 |> 8B84BB 700A000>MOV EAX,DWORD PTR DS:[EBX+EDI*4+A70] 00560828 |. 40 INC EAX 00560829 |. 8984BB 700A000>MOV DWORD PTR DS:[EBX+EDI*4+A70],EAX 00560830 |. 8B44BB 20 MOV EAX,DWORD PTR DS:[EBX+EDI*4+20] 00560834 |. 5F POP EDI 00560835 |. 5E POP ESI 00560836 |. 5D POP EBP 00560837 |. 5B POP EBX 00560838 |. 81C4 34050000 ADD ESP,534 0056083E |. C2 0C00 RETN 0C 00560841 |> 8B8424 5005000>MOV EAX,DWORD PTR SS:[ESP+550] 00560848 |. 8BB424 4C05000>MOV ESI,DWORD PTR SS:[ESP+54C] 0056084F |. 50 PUSH EAX 00560850 |. 8D4C24 44 LEA ECX,DWORD PTR SS:[ESP+44] 00560854 |. 56 PUSH ESI 00560855 |. 51 PUSH ECX 00560856 |. E8 F5DA0500 CALL age2_x1_.005BE350 0056085B |. 83C4 0C ADD ESP,0C 0056085E |. 8944AB 20 MOV DWORD PTR DS:[EBX+EBP*4+20],EAX 00560862 |. 85C0 TEST EAX,EAX 00560864 |. 75 0D JNZ SHORT age2_x1_.00560873 00560866 |. 5F POP EDI 00560867 |. 5E POP ESI 00560868 |. 5D POP EBP 00560869 |. 5B POP EBX 0056086A |. 81C4 34050000 ADD ESP,534 00560870 |. C2 0C00 RETN 0C 00560873 |> 8B15 A0127900 MOV EDX,DWORD PTR DS:[7912A0] 00560879 |. 8B42 6C MOV EAX,DWORD PTR DS:[EDX+6C] 0056087C |. 85C0 TEST EAX,EAX 0056087E |. 0F84 CA000000 JE age2_x1_.0056094E 00560884 |. 8078 3D 02 CMP BYTE PTR DS:[EAX+3D],2 00560888 |. 0F85 C0000000 JNZ age2_x1_.0056094E 0056088E |. 6A 00 PUSH 0 00560890 |. 8D4424 44 LEA EAX,DWORD PTR SS:[ESP+44] 00560894 |. 56 PUSH ESI 00560895 |. 50 PUSH EAX 00560896 |. E8 B5DA0500 CALL age2_x1_.005BE350 0056089B |. 8BF8 MOV EDI,EAX 0056089D |. 83C4 0C ADD ESP,0C 005608A0 |. 85FF TEST EDI,EDI 005608A2 |. 0F84 A6000000 JE age2_x1_.0056094E 005608A8 |. 8D8C24 4401000>LEA ECX,DWORD PTR SS:[ESP+144] 005608AF |. 51 PUSH ECX ; /pPaletteentry 005608B0 |. 68 00010000 PUSH 100 ; |nEntries = 100 (256.) 005608B5 |. 6A 00 PUSH 0 ; |StartIndex = 0 005608B7 |. 57 PUSH EDI ; |hPalette 005608B8 |. FF15 64506300 CALL DWORD PTR DS:[<&GDI32.GetPaletteEntries>] ; \GetPaletteEntries 005608BE |. 33C0 XOR EAX,EAX 005608C0 |> 8A9404 4801000>/MOV DL,BYTE PTR SS:[ESP+EAX+148] 005608C7 |. 8A8C04 4901000>|MOV CL,BYTE PTR SS:[ESP+EAX+149] 005608CE |. 885404 18 |MOV BYTE PTR SS:[ESP+EAX+18],DL 005608D2 |. 8A9404 4A01000>|MOV DL,BYTE PTR SS:[ESP+EAX+14A] 005608D9 |. 884C04 19 |MOV BYTE PTR SS:[ESP+EAX+19],CL 005608DD |. 885404 1A |MOV BYTE PTR SS:[ESP+EAX+1A],DL 005608E1 |. C64404 1B 00 |MOV BYTE PTR SS:[ESP+EAX+1B],0 005608E6 |. 83C0 04 |ADD EAX,4 005608E9 |. 83F8 24 |CMP EAX,24 005608EC |.^7C D2 \JL SHORT age2_x1_.005608C0 005608EE |. 8B4CAB 20 MOV ECX,DWORD PTR DS:[EBX+EBP*4+20] 005608F2 |. 8B35 74506300 MOV ESI,DWORD PTR DS:[<&GDI32.SetPaletteEntries>; GDI32.SetPaletteEntries 005608F8 |. 8D4424 18 LEA EAX,DWORD PTR SS:[ESP+18] 005608FC |. 50 PUSH EAX ; /pPaletteentry 005608FD |. 6A 09 PUSH 9 ; |nEntries = 9 005608FF |. 6A 01 PUSH 1 ; |StartIndex = 1 00560901 |. 51 PUSH ECX ; |hPalette 00560902 |. FFD6 CALL ESI ; \SetPaletteEntries 00560904 |. 33C0 XOR EAX,EAX 00560906 |> 8A9404 1C05000>/MOV DL,BYTE PTR SS:[ESP+EAX+51C] 0056090D |. 8A8C04 1D05000>|MOV CL,BYTE PTR SS:[ESP+EAX+51D] 00560914 |. 885404 18 |MOV BYTE PTR SS:[ESP+EAX+18],DL 00560918 |. 8A9404 1E05000>|MOV DL,BYTE PTR SS:[ESP+EAX+51E] 0056091F |. 884C04 19 |MOV BYTE PTR SS:[ESP+EAX+19],CL 00560923 |. 885404 1A |MOV BYTE PTR SS:[ESP+EAX+1A],DL 00560927 |. C64404 1B 00 |MOV BYTE PTR SS:[ESP+EAX+1B],0 0056092C |. 83C0 04 |ADD EAX,4 0056092F |. 83F8 24 |CMP EAX,24 00560932 |.^7C D2 \JL SHORT age2_x1_.00560906 00560934 |. 8B4CAB 20 MOV ECX,DWORD PTR DS:[EBX+EBP*4+20] 00560938 |. 8D4424 18 LEA EAX,DWORD PTR SS:[ESP+18] 0056093C |. 50 PUSH EAX 0056093D |. 6A 09 PUSH 9 0056093F |. 68 F6000000 PUSH 0F6 00560944 |. 51 PUSH ECX 00560945 |. FFD6 CALL ESI 00560947 |. 57 PUSH EDI ; /hObject 00560948 |. FF15 34506300 CALL DWORD PTR DS:[<&GDI32.DeleteObject>] ; \DeleteObject 0056094E |> 8BBCAB 700A000>MOV EDI,DWORD PTR DS:[EBX+EBP*4+A70] 00560955 |. 8BD5 MOV EDX,EBP 00560957 |. 47 INC EDI 00560958 |. 83C9 FF OR ECX,FFFFFFFF 0056095B |. 89BCAB 700A000>MOV DWORD PTR DS:[EBX+EBP*4+A70],EDI 00560962 |. 8D7C24 40 LEA EDI,DWORD PTR SS:[ESP+40] 00560966 |. C1E2 06 SHL EDX,6 00560969 |. 33C0 XOR EAX,EAX 0056096B |. 03D5 ADD EDX,EBP 0056096D |. F2:AE REPNE SCAS BYTE PTR ES:[EDI] 0056096F |. F7D1 NOT ECX 00560971 |. 2BF9 SUB EDI,ECX 00560973 |. 8D5493 48 LEA EDX,DWORD PTR DS:[EBX+EDX*4+48] 00560977 |. 8BC1 MOV EAX,ECX 00560979 |. 8BF7 MOV ESI,EDI 0056097B |. 8BFA MOV EDI,EDX 0056097D |. C1E9 02 SHR ECX,2 00560980 |. F3:A5 REP MOVS DWORD PTR ES:[EDI],DWORD PTR DS:[ESI] 00560982 |. 8BC8 MOV ECX,EAX 00560984 |. 83E1 03 AND ECX,3 00560987 |. F3:A4 REP MOVS BYTE PTR ES:[EDI],BYTE PTR DS:[ESI] 00560989 |. 8B8C24 4C05000>MOV ECX,DWORD PTR SS:[ESP+54C] 00560990 |. 5F POP EDI 00560991 |. 898CAB 980A000>MOV DWORD PTR DS:[EBX+EBP*4+A98],ECX 00560998 |. 8B44AB 20 MOV EAX,DWORD PTR DS:[EBX+EBP*4+20] 0056099C |. 5E POP ESI 0056099D |. 5D POP EBP 0056099E |. 5B POP EBX 0056099F |. 81C4 34050000 ADD ESP,534 005609A5 \. C2 0C00 RETN 0C
Link | Reply | Quote
 [Rohirrim]katsuie


Join Date: 19 December 2016
Posts:490
Posted 6 November 2021 - 5:47 pm
maybe by changing 005608B0 |. 68 00010000 PUSH 100 ; |nEntries = 100 (256.) and set an other value that can help idk
Link | Reply | Quote
 [Rohirrim]katsuie


Join Date: 19 December 2016
Posts:490
Posted 7 November 2021 - 12:13 pm
the question is did :[<&GDI32.GetPaletteEntries>] ; \GetPaletteEntries support more than 256 ?
Link | Reply | Quote
 [Rohirrim]katsuie


Join Date: 19 December 2016
Posts:490
Posted 12 November 2021 - 4:49 pm
400h = 1024 color
//005608B0 68 00040000 PUSH 400
writeByte(0x05608B3,0x40 );
Link | Reply | Quote
 quaresma71


Join Date: 27 April 2020
Posts:4
Posted 14 November 2021 - 12:52 am
400h = 1024 color
//005608B0 68 00040000 PUSH 400
writeByte(0x05608B3,0x40 );

Which file?
Link | Reply | Quote
 [Rohirrim]katsuie


Join Date: 19 December 2016
Posts:490
Posted 13 December 2021 - 5:52 pm
it is something that we can add to patch, but idk if it is possible to compile slp with 1024 color.
for existing palette you need to know 50500.bina (from interface.drs) file already have some color that aoe2 units graphics use so you need to add on existing 256 color palettes.
(50500.bina)
Code:
JASC-PAL 0100 256 0 0 0 0 74 161 0 97 155 0 74 187 0 84 176 0 90 184 0 110 176 0 110 187 180 255 180 0 98 210 0 0 0 47 47 47 200 216 255 87 87 87 37 16 6 47 26 17 0 0 82 0 21 130 19 49 161 48 93 182 74 121 208 110 166 235 151 206 255 205 250 255 64 43 23 67 51 27 70 32 6 75 57 42 84 64 43 87 69 37 87 57 27 94 74 48 65 0 0 105 11 0 160 21 0 230 11 0 255 0 0 255 100 100 255 160 160 255 220 220 97 77 67 103 58 21 113 75 51 113 75 13 115 105 84 125 97 72 125 74 0 129 116 95 0 0 0 0 7 0 0 32 0 0 59 0 0 87 0 0 114 0 0 141 0 0 169 0 134 126 118 135 64 0 136 108 79 144 100 12 146 125 105 153 106 55 159 121 88 166 74 0 80 51 26 140 78 9 191 123 0 255 199 0 255 247 37 255 255 97 255 255 166 255 255 227 167 135 102 172 144 115 175 126 36 175 151 128 185 151 146 186 166 135 187 84 0 187 156 125 110 23 0 150 36 0 210 55 0 255 80 0 255 130 1 255 180 21 255 210 75 255 235 160 189 150 111 191 169 115 195 174 156 196 170 146 196 128 88 196 166 135 197 187 176 204 160 36 0 16 16 0 37 41 0 80 80 0 120 115 0 172 150 38 223 170 109 252 191 186 255 222 206 169 133 207 105 12 207 176 156 228 162 82 215 186 155 216 162 121 217 114 24 223 234 255 47 0 46 79 0 75 133 12 121 170 47 155 211 58 201 241 108 232 255 169 255 255 210 255 218 156 105 222 177 136 225 177 90 226 195 170 232 180 120 235 202 181 235 216 190 237 199 165 28 28 28 67 67 67 106 106 106 145 145 145 185 185 185 223 223 223 247 247 247 255 255 255 247 211 191 248 201 138 255 206 157 255 225 201 255 238 217 255 226 161 216 223 255 255 255 243 24 24 0 37 37 17 27 47 0 47 57 17 67 77 7 77 77 47 44 77 3 94 84 53 95 97 39 97 97 67 67 97 29 106 115 57 116 115 75 87 116 7 118 130 65 130 136 77 138 139 87 148 155 100 156 156 139 128 157 84 149 166 97 175 165 106 176 176 159 146 176 67 194 190 148 165 196 108 166 196 77 206 187 128 206 204 155 204 217 77 221 218 166 196 226 116 243 170 92 3 28 0 7 38 0 7 47 7 19 48 0 27 57 17 47 57 47 28 62 0 14 68 14 41 69 28 33 73 18 47 87 47 77 97 57 67 97 67 87 116 77 70 119 48 189 209 253 106 136 97 196 236 166 23 53 33 43 84 64 37 116 57 23 43 53 2 33 53 2 23 53 33 64 64 0 34 97 0 51 115 43 64 74 0 43 74 4 6 9 0 123 189 64 84 84 0 115 207 23 23 74 12 23 64 255 177 98 0 64 125 2 23 84 0 138 186 64 105 105 0 146 197 94 105 105 0 74 125 0 125 207 95 133 65 84 115 125 64 105 125 0 64 146 0 53 135 115 156 156 84 146 176 146 176 187 255 201 121 105 166 197 125 197 217 156 197 217 109 126 33 113 153 36 21 118 21 51 151 39 70 181 59 89 223 89 131 245 120 152 192 240 0 255 0 0 0 255 255 255 0 255 217 0 240 240 255 240 247 255 247 247 255 247 255 255 85 119 52 129 151 49 0 255 255 255 0 255 0 139 210 0 160 243 255 255 255
after compile i dk if it will work hope


Link | Reply | Quote
[1]
Displaying 1 - 14 out of 14 posts
Forum Jump:
3 User(s) are reading this topic (in the past 30 minutes)
0 members, 3 guests

O que é popular agora:
Os tópicos mais ativos da última semana: