#1 15-08-2011 21:56

DK22Pac
From: Ukraine
Registered: 26-03-2010
Posts: 447
Website

Взломать лимит

Допустим, есть массив структур (ограниченое количество). Как можно заменить этот массив на свой, и, тем самым, увеличить кол-во его элементов?
В IDA нахожу ссылки только в процедурах, которые заполняют структуры этого массива.


Plugin-SDK https://github.com/DK22Pac/plugin-sdk
Discord-сервер по plugin-sdk и программированию в GTA
RU https://discord.gg/QEesDGb
ENG https://discord.gg/zaVqFQv

Offline

#2 15-08-2011 22:56

listener
From: Vice City
Registered: 09-11-2006
Posts: 615
Website

Re: Взломать лимит


C5 - GTA IV/RDR/GTA V script compiler.
~ 60% done.

Offline

#3 15-08-2011 23:36

DK22Pac
From: Ukraine
Registered: 26-03-2010
Posts: 447
Website

Re: Взломать лимит

Спасибо, кажется, уже нашёл то место.
Вот о чём речь шла, може Вам и пригодится для базы.

0xC40430 --> старт массива структур теней 
Размер: 0x34 
Кол-во элементов: 0x30
0xC403DC [word] Создано теней в фрейме

Структура

+0x00 float X 
+0x04 float Y 
+0x08 float Z 
+0x0C float трансформация текстуры
+0x10 float трансформация текстуры
+0x14 float трансформация текстуры
+0x18 float трансформация текстуры
+0x1C float радиус действия по оси Z 
+0x20 float смещение? 
+0x24 dword RwTexture* 
+0x28 dword для теней педов - уазатель на какой-то массив. 
+0x2C word Intensity 
+0x2E byte тип эффекта
+0x2F byte Red 
+0x30 byte Green 
+0x31 byte Blue 
+0x32 word набор флагов?
sub_6E0A50 --> CVehicle__DoHeadlightReflectCoronas
sub_6E1780 --> CVehilce__DoBacklights
sub_6E1A60 --> CVehicle__DoVehicleLights
sub_707390 --> CShadows__AddPermanentShadow
sub_70C500 --> CShadows__StoreCarLightShadow

А вот то, с чем, как я понял, надо будет работать (изменять ссылки)

sub_70A960 --> _RenderShadows?

Это было разобрано мною и Den'ом-spb. Кое-каие процедуры были найдены в исходниках MTA.

Как я понял, тень - это модель, созданная с указанными вершинами, ведь так?


Plugin-SDK https://github.com/DK22Pac/plugin-sdk
Discord-сервер по plugin-sdk и программированию в GTA
RU https://discord.gg/QEesDGb
ENG https://discord.gg/zaVqFQv

Offline

#4 16-08-2011 11:43

DK22Pac
From: Ukraine
Registered: 26-03-2010
Posts: 447
Website

Re: Взломать лимит

Сделал в CLEO, вроде бы работает.

// Shadow limit adjust

{$CLEO .cs}

const
    field_0  = 0@
    field_4  = 1@
    field_8  = 2@
    field_C  = 3@
    field_10 = 4@
    field_14 = 5@
    field_18 = 6@
    field_1C = 7@
    field_20 = 8@
    field_24 = 9@
    field_28 = 10@
    field_2C = 11@
    field_2E = 12@
    field_2F = 13@
    field_30 = 14@
    field_31 = 15@
    field_32 = 16@
end

// patch CShadows_AddPermanentShadow
0A8C: 0x70739B 1 0xFE 1      // cmp   si, FEh
0AC6: field_0 = label @_shadows_struct_array offset
0A8C: 0x7073B1 4 field_0 1   // add   eax, offset field_0
// patch _renderShadows
0A8E: field_32 = field_0 + 0x32
0A8C: 0x70A9EF 4 field_32 1   // mov   eax, offset field_32
0A8C: 0x70AA12 4 field_32 1   // mov   al,  ss:byte_field_32[ebp]
0A8E: field_24 = field_0 + 0x24
0A8C: 0x70AA1A 4 field_24 1   // lea   esi, dword_field_24[ebp]
0A8E: field_2C = field_0 + 0x2C
0A8C: 0x70B0F2 4 field_2C 1   // ss:word_field_2C[ebp] ; Intensity
0A8E: field_31 = field_0 + 0x31
0A8C: 0x70B169 4 field_31 1   // ss:byte_field_31[ebp] ; Red
0A8E: field_31 = field_0 + 0x30
0A8C: 0x70B17D 4 field_30 1   // ss:byte_field_30[ebp] ; Green
0A8E: field_31 = field_0 + 0x2F
0A8C: 0x70B18F 4 field_2F 1   // ss:byte_field_2F[ebp] ; Blue
0A8C: 0x70B23D 4 field_2C 1   // ss:word_field_2C[ebp] ; Intensity
0A8C: 0x70B2C5 4 field_31 1   // ss:byte_field_31[ebp] ; Red
0A8C: 0x70B2B4 4 field_30 1   // ss:byte_field_30[ebp] ; Green
0A8C: 0x70B2D3 4 field_2F 1   // ss:byte_field_2F[ebp] ; Blue
0A8C: 0x70B391 4 field_2C 1   // ss:word_field_2C[ebp] ; Intensity
0A8C: 0x70B427 4 field_31 1   // ss:byte_field_31[ebp] ; Red
0A8C: 0x70B407 4 field_30 1   // ss:byte_field_30[ebp] ; Green
0A8C: 0x70B411 4 field_2F 1   // ss:byte_field_2F[ebp] ; Blue
0A8C: 0x70B4ED 4 field_2C 1   // ss:word_field_2C[ebp] ; Intensity
0A8C: 0x70B57B 4 field_31 1   // ss:byte_field_31[ebp] ; Red
0A8C: 0x70B56C 4 field_30 1   // ss:byte_field_30[ebp] ; Green
0A8C: 0x70B596 4 field_2F 1   // ss:byte_field_2F[ebp] ; Blue
0A93:

:_shadows_struct_array
hex
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0 0 0 0 00
end

Plugin-SDK https://github.com/DK22Pac/plugin-sdk
Discord-сервер по plugin-sdk и программированию в GTA
RU https://discord.gg/QEesDGb
ENG https://discord.gg/zaVqFQv

Offline

#5 21-08-2011 20:51

DK22Pac
From: Ukraine
Registered: 26-03-2010
Posts: 447
Website

Re: Взломать лимит

Есть такая проблема - с этим кодом вылетает, когда выкл. HD-тени для автомобилей (т.е. ур. графики - Low, и вместо тени по образу авто создаётся тень с текстурой shad_car). Не знаете, с чем это может біть свзяано?

Вылетает только в такой ситуации, когда включен выскокий ур. графики, вылетов нету.

PS Странно, что в GTA IV эти лимиты (корон, теней) в десятки раз превышают лимиты унылой SA(


Plugin-SDK https://github.com/DK22Pac/plugin-sdk
Discord-сервер по plugin-sdk и программированию в GTA
RU https://discord.gg/QEesDGb
ENG https://discord.gg/zaVqFQv

Offline

#6 22-09-2011 02:23

VintProg_Pro
Registered: 17-06-2010
Posts: 153

Re: Взломать лимит

Опять пытаемся CLEO скриптом править память, ну зачем же...
Выделаешь свой массив в C++, заменяешь все ссылки на свой массив... Массив должен быть из верных элементов, например из структур...

Last edited by VintProg_Pro (22-09-2011 02:25)

Offline

#7 24-09-2011 21:17

DK22Pac
From: Ukraine
Registered: 26-03-2010
Posts: 447
Website

Re: Взломать лимит

Ну да, ещё скажи, что это решит все проблемы.
Что я теряю, если делаю этот "взлом" через CLEO-скрипт?

Рабочий вариант

{$CLEO .cs}
const
    field_0  = 0@
    field_24 = 9@
    field_2C = 11@
    field_2F = 13@
    field_30 = 14@
    field_31 = 15@
    field_32 = 16@
end
// patch CShadows_AddPermanentShadow
0A8C: 0x70739B 1 0xFF 1      // cmp   si, FFh
0AC8: field_0 = allocate_memory_size 0x31CE
0A8C: field_0 0x31CE 0 0
0A8C: 0x7073B1 4 field_0 1   // add   eax, offset field_0
// patch _renderShadows
0A8E: field_32 = field_0 + 0x32
0A8C: 0x70A9EF 4 field_32 1   // mov   eax, offset field_32
0A8C: 0x70AA12 4 field_32 1   // mov   al,  ss:byte_field_32[ebp]
0A8E: field_24 = field_0 + 0x24
0A8C: 0x70AA1A 4 field_24 1   // lea   esi, dword_field_24[ebp]
0A8E: field_2C = field_0 + 0x2C
0A8C: 0x70B0F2 4 field_2C 1   // ss:word_field_2C[ebp] ; Intensity
0A8E: field_31 = field_0 + 0x31
0A8C: 0x70B169 4 field_31 1   // ss:byte_field_31[ebp] ; Red
0A8E: field_30 = field_0 + 0x30
0A8C: 0x70B17D 4 field_30 1   // ss:byte_field_30[ebp] ; Green
0A8E: field_2F = field_0 + 0x2F
0A8C: 0x70B18F 4 field_2F 1   // ss:byte_field_2F[ebp] ; Blue
0A8C: 0x70B23D 4 field_2C 1   // ss:word_field_2C[ebp] ; Intensity
0A8C: 0x70B2C5 4 field_31 1   // ss:byte_field_31[ebp] ; Red
0A8C: 0x70B2B4 4 field_30 1   // ss:byte_field_30[ebp] ; Green
0A8C: 0x70B2D3 4 field_2F 1   // ss:byte_field_2F[ebp] ; Blue
0A8C: 0x70B391 4 field_2C 1   // ss:word_field_2C[ebp] ; Intensity
0A8C: 0x70B427 4 field_31 1   // ss:byte_field_31[ebp] ; Red
0A8C: 0x70B407 4 field_30 1   // ss:byte_field_30[ebp] ; Green
0A8C: 0x70B411 4 field_2F 1   // ss:byte_field_2F[ebp] ; Blue
0A8C: 0x70B4ED 4 field_2C 1   // ss:word_field_2C[ebp] ; Intensity
0A8C: 0x70B57B 4 field_31 1   // ss:byte_field_31[ebp] ; Red
0A8C: 0x70B56C 4 field_30 1   // ss:byte_field_30[ebp] ; Green
0A8C: 0x70B596 4 field_2F 1   // ss:byte_field_2F[ebp] ; Blue
0A93:

Last edited by DK22Pac (25-09-2011 10:17)


Plugin-SDK https://github.com/DK22Pac/plugin-sdk
Discord-сервер по plugin-sdk и программированию в GTA
RU https://discord.gg/QEesDGb
ENG https://discord.gg/zaVqFQv

Offline

#8 24-09-2011 22:16

DK22Pac
From: Ukraine
Registered: 26-03-2010
Posts: 447
Website

Re: Взломать лимит

Ну можно было и 500, просто тогда надо было бы инжект делать и менять si на esi, к примеру.

Большое кол-во теней понадобилось для мода с проекциями света от задних фар (также я сделал, чтобы проекции света от передних фар создавались для всех авто в игре, а не только для тех, которые находятся "возле" камеры). Вот и нарисовался вопрос о поднятии лимита (в оригинале это - 48 теней).


Plugin-SDK https://github.com/DK22Pac/plugin-sdk
Discord-сервер по plugin-sdk и программированию в GTA
RU https://discord.gg/QEesDGb
ENG https://discord.gg/zaVqFQv

Offline

Board footer

Powered by FluxBB