0.3e SetObjectMaterial
#1

Bug with SetObjectMaterial and recolor. If you use to mush objects on the same place and recolor the textures likes
pawn Код:
SetObjectMaterial(XXXXXX, 0, 6099, "law_doontoon", "gz_lawbuilda_2", 0xFF424242);
or whatever you get a all the time gamecrashes.
If you use
pawn Код:
SetObjectMaterial(XXXXXX, 0, 19362, "all_walls", "la_carp3", 0);
you don't have any problems with the same amount of objects.
Reply
#2

Same problem, when you use color your game crash, but what is interesting, Im using IG map editor and apply color nothing happens, when I /q and come back game crash.
Reply
#3

Hey! This could be the same issue I'm having, I'm changing the color of the missile object and the texture http://forum.sa-mp.com/showpost.php?...8&postcount=11 and the game crashes! is the crash reason the same??

pawn Код:
SetObjectMaterial(Vehicle_Missile[id][slot], 0, 3790, "missiles_sfs", "white", 0xB51BE0AA);
It doesn't always crash though
Reply
#4

If you get the problem again, please post the crash report text.
Reply
#5

Some of my players are reporting similar problems, but I don't.
Reply
#6

Quote:
Originally Posted by Kalcor
Посмотреть сообщение
If you get the problem again, please post the crash report text.
ok. I will do it later today after my work. Its not a problem to reproduce this.

Greetings
-----------------------------------------------------

UPDATE:
ok here is the crash report after change color of texture

pawn Код:
new BSNWindow = CreateObject(19325, 1189.1470, -920.3230, 44.8900, 90.0000, 0.0000, 278.3000);
    SetObjectMaterial(BSNWindow, 0, 6133, "venice_law", "law_terra2", 0x88382D2D);
Код:
SA-MP 0.3e
Exception At Address: 0x00757DBE

Registers:
EAX: 0x00000000	EBX: 0x00000002	ECX: 0x00000000	EDX: 0x00000000
ESI: 0x00000002	EDI: 0x087FC1F8	EBP: 0x0022FCB8	ESP: 0x0022FBD0
EFLAGS: 0x00010202

Stack:
+0000: 0x0022FC00   0x00000800   0x087FC1F8   0x12B06D14
+0010: 0x087FC25C   0x00000000   0x00000001   0x12A71198
+0020: 0x00000002   0x00000FFF   0x00000008   0x00000067
+0030: 0x00000000   0x00000000   0x00000000   0x00000001
+0040: 0x00000000   0x00000080   0x00000001   0x00000002
+0050: 0x000C0001   0x00050001   0x000000FF   0x00000011
+0060: 0x00000010   0x056187B8   0x00000010   0x00000000
+0070: 0x056187B8   0x056187B8   0x00000010   0x0022FCA8
+0080: 0x6CD12875   0x0562418C   0x0022FC9C   0x0000000C
+0090: 0x056187B8   0x0022FC9C   0x087FC25C   0x6CD14069
+00A0: 0x0022FCA8   0x6CD1407F   0x00000000   0x04C771E8
+00B0: 0x152E05F0   0x61E07A29   0x056187B8   0x0022FC9C
+00C0: 0x087FC25C   0x087FC1F8   0x0FA6D740   0x159F8F10
+00D0: 0x00000000   0x00000001   0x0022FCC0   0x61E36CED
+00E0: 0x0022FCB8   0x12B06D14   0x087FC260   0x00756D75
+00F0: 0x133741BC   0x087FC1F8   0x00000000   0x12A71198
+0100: 0x00757910   0x0452F778   0x133741BC   0x087FC1E0
+0110: 0x00000000   0x00000000   0x00000000   0x12B06D14
+0120: 0x00000000   0x087FC200   0x0075778B   0x133741BC
+0130: 0x0F5A3A8E   0x087FC25C   0x00000017   0x12B06CF8
+0140: 0x00757910   0x00000000   0x00000000   0x044B513C
+0150: 0x763180E0   0x00000000   0x007F1240   0x763180E0
+0160: 0x035FBE4E   0x008057A9   0x00000067   0x00C9BC50
+0170: 0x00000002   0x133741BC   0x00749234   0x044B513C
+0180: 0x133741BC   0x00000001   0x0B8FCAB0   0x0053439A
+0190: 0x133741BC   0x0B8FCAB0   0x00000000   0x035F959B
+01A0: 0x00553308   0x0B8FCAB0   0x00553C57   0x0B8FCA00
+01B0: 0x0000001A   0x00000001   0x00000311   0x0053DFE2
+01C0: 0x00000000   0x0053EAA6   0x044AB1AC   0x0053EAC4
+01D0: 0x44200000   0x44000000   0x0053ECC2   0x00000001
+01E0: 0x00619B71   0x0000001A   0x00000001   0x00000001
+01F0: 0x0000000A   0x00748DF0   0x0000001A   0x00000001
+0200: 0x7784D8F3   0x00000000   0x0022FF88   0x7FFD9000
+0210: 0x01000001   0x4F4C3ABE   0x015B22E0   0x00000008
+0220: 0x00000100   0x00000008   0x00000102   0x44200000
+0230: 0x44000000   0x00000000   0x00000000   0x00000500
+0240: 0x00000400   0x00000000   0x00000001   0x0038066E
+0250: 0x00000101   0x00000060   0x80520001   0x020F6D0E
+0260: 0x00000280   0x00000200   0x0000002C   0x7784D8F3
+0270: 0x00000246   0x00000000   0x00000000   0x00000000

SCM Op: 0x685, lDbg: 0

Game Version: EU 1.0

State Information: Ped Context: 0
P0 (0,0) P1 (0,0) P2 (65,0) P3 (0,0) 
P4 (0,0) P5 (0,0) P6 (0,0)
Reply
#7

I managed to crash again, heres the address...

pawn Код:
SA-MP 0.3e
Exception At Address: 0x0075803C

Registers:
EAX: 0x00000687 EBX: 0x00000001 ECX: 0x12FDE320 EDX: 0x00000000
ESI: 0x00000008 EDI: 0x0321E918 EBP: 0x0022FC6C ESP: 0x0022FB88
EFLAGS: 0x00210207

Stack:
+0000: 0x12FDE320   0x0321E900   0x13814194   0x00000001
+0010: 0x3DD0E560   0x12FDE320   0x00000001   0x00000008
+0020: 0x00000008   0x0000006F   0x00000000   0x00000000
+0030: 0x00000000   0x00000001   0x00009FB3   0x006E99D3
+0040: 0x00000000   0x00000002   0x000C0000   0x00050001
+0050: 0x000000FF   0x00000011   0xFFFFFD70   0x438A0000
+0060: 0x00000114   0x00000240   0x006E8713   0x0000012C
+0070: 0x3F800000   0x440D8000   0x00000000   0x0022FC58
+0080: 0x0022FC50   0x0022FC54   0xFFFFFE10   0x00000236
+0090: 0x00000282   0xFFFFFE50   0x00C21884   0x006EAA49
+00A0: 0xC3F80000   0x440D8000   0x00000000   0x0022FC58
+00B0: 0x0022FC50   0x0022FC54   0x0022FC5C   0x00000236
+00C0: 0x0160DAA0   0x440D8000   0x0022FC78   0x4FE73E5B
+00D0: 0x015B17C0   0x015B17C0   0x00000000   0x00000000
+00E0: 0x0022FC88   0x02C66140   0x007582D2   0x13814194
+00F0: 0x0321E918   0x00000001   0x12FDE320   0x00757690
+0100: 0x13814194   0x0321E900   0x007578C0   0x00000000
+0110: 0x02BF0C6C   0x13814194   0x0000002F   0x007FDE14
+0120: 0x027B7C18   0x00000000   0x00805769   0x0000006F
+0130: 0x00C9BC50   0x12FDE320   0x13814194   0x007491E4
+0140: 0x02BF0C6C   0x13814194   0x00000001   0x00000003
+0150: 0x007324D8   0x13814194   0x023DCC48   0x023DCC48
+0160: 0x00000004   0x00000000   0x00FFFFFF   0x000003E4
+0170: 0x00000290   0x00C4D958   0x00000018   0x036AC108
+0180: 0x00000004   0x00000001   0x00000000   0xBCF5C28F
+0190: 0x00C9BC50   0x00000000   0x02BE05EC   0x007EF657
+01A0: 0x02BF0ACC   0x02BE05EC   0x00000000   0x00C22856
+01B0: 0x3DDDFB94   0x00000000   0x015B17C0   0x4FE66626
+01C0: 0x00000000   0x0000001C   0x015B17C0   0x00000001
+01D0: 0x015B17C0   0x4FE66626   0xBE8BC790   0x0000001C
+01E0: 0x015B17C0   0x0022FD9C   0x00000005   0x00000000
+01F0: 0x40974387   0x0000001A   0x00000001   0x77D50554
+0200: 0x00732639   0x13814194   0x00000004   0x04FD01A0
+0210: 0x00732BDC   0x023DCC48   0x13814194   0x00000004
+0220: 0x77D50554   0x0000001A   0x02C1E924   0x00733F2A
+0230: 0x04FD0100   0x4360845F   0x00000001   0x0053E01E
+0240: 0x00000000   0x0053EAA6   0x0025F11C   0x0053EAC4
+0250: 0x43C80000   0x43960000   0x0053ECC2   0x00000001
+0260: 0x00619B71   0x0000001A   0x00000001   0x00000001
+0270: 0x0000000A   0x00748DA0   0x0000001A   0x00000001

SCM Op: 0x685, lDbg: 0

Game Version: US 1.0

State Information: Ped Context: 0
Reply
#8

I'm getting an issue in my script where some objects (Not defined ones) are switching to random colours around San Fierro, never got this before using SetObjectMaterial.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)