B1ack_Wh1te Posted August 4, 2017 Share Posted August 4, 2017 (edited) Hi What you need to change in the script, that he worked for other police IDs? Example: 5384, lvpdm1, lvpdm1, COP, STAT_COP, swat, 1FFF, 0, null, 9,9, PED_TYPE_EMG,VOICE_EMG_MCOP1 ,VOICE_EMG_MCOP6 5385, sfpdm1, sfpdm1, COP, STAT_COP, swat, 1FFF, 0, null, 9,9, PED_TYPE_EMG,VOICE_EMG_MCOP1 ,VOICE_EMG_MCOP6 Script: Topic: http://gtaforums.com/topic/470474-relsacleo-cop-bikers-overhaul/ GTA Garage: http://www.gtagarage.com/mods/show.php?id=15230 Edited August 4, 2017 by Dyabda Link to comment Share on other sites More sharing options...
spaceeinstein Posted August 4, 2017 Share Posted August 4, 2017 Can you explain what's the purpose of this topic? Link to comment Share on other sites More sharing options...
B1ack_Wh1te Posted August 5, 2017 Author Share Posted August 5, 2017 Can you explain what's the purpose of this topic? If you change the ID of moto police, the game will not work. I'm trying to find out what needs to be changed for the game to work stably. Link to comment Share on other sites More sharing options...
spaceeinstein Posted August 5, 2017 Share Posted August 5, 2017 (edited) Ah, now I understand. I did a quick skim through the source code and it seems like the mod was designed to support only very specific ped IDs and not just any IDs. At the very end of the code, there are four IDs that you could change to support your own IDs. I'm unsure if there are more code that needs changing. Edited August 5, 2017 by spaceeinstein Link to comment Share on other sites More sharing options...
B1ack_Wh1te Posted August 6, 2017 Author Share Posted August 6, 2017 (edited) Ah, now I understand. I did a quick skim through the source code and it seems like the mod was designed to support only very specific ped IDs and not just any IDs. At the very end of the code, there are four IDs that you could change to support your own IDs. I'm unsure if there are more code that needs changing. Thank you, but I do not understand what to change these numbers, "1C010000" "10010000" "11010000" If you know how to find the numbers of other IDs please write. Edited August 6, 2017 by Dyabda Link to comment Share on other sites More sharing options...
B1ack_Wh1te Posted August 7, 2017 Author Share Posted August 7, 2017 Help please, I do not understand this system. Link to comment Share on other sites More sharing options...
gts. Posted August 7, 2017 Share Posted August 7, 2017 (edited) You need to use an unused ped ID, otherwise you will replace an already used ped ID or the game will crash. Edited August 7, 2017 by gts. Link to comment Share on other sites More sharing options...
B1ack_Wh1te Posted August 9, 2017 Author Share Posted August 9, 2017 You need to use an unused ped ID, otherwise you will replace an already used ped ID or the game will crash. I understand, but how can I replace it? Link to comment Share on other sites More sharing options...
spaceeinstein Posted August 9, 2017 Share Posted August 9, 2017 (edited) This is how you read "1C010000". First split the string into four sections: 1C 01 00 00Then read it backwards: 00 00 01 1CIf you type "11C" into a hex-to-decimal calculator, it comes out as "284". You can do the reverse. Use a decimal-to-hex calculator on "272" and it comes out as "110". Pad the string with 0s until the string is 8-characters long then split it into four sections: 00 00 01 10Then read it backwards: 10 01 00 00It comes out as "10010000". Edited August 9, 2017 by spaceeinstein Link to comment Share on other sites More sharing options...
B1ack_Wh1te Posted August 9, 2017 Author Share Posted August 9, 2017 (edited) This is how you read "1C010000". First split the string into four sections: 1C 01 00 00Then read it backwards: 00 00 01 1CIf you type "11C" into a hex-to-decimal calculator, it comes out as "284". You can do the reverse. Use a decimal-to-hex calculator on "272" and it comes out as "110". Pad the string with 0s until the string is 8-characters long then split it into four sections: 00 00 01 10Then read it backwards: 10 01 00 00It comes out as "10010000". Okey, id 6011 in the hexadecimal calculator is 177B 00 00 17 7B will be 7B 17 00 00? Edited August 9, 2017 by Dyabda Link to comment Share on other sites More sharing options...
OrionSR Posted August 9, 2017 Share Posted August 9, 2017 (edited) Not quite. The bytes are reversed but not the nibbles (half byte characters). 6011 = 0x177B = 0x0000177B = 7B 17 00 00 Something larger, a 32 bit CRC checksum: 13754837 = 0x00D1E1D5 = D5 E1 D1 00 Look into little-endian format for more details. Edited August 9, 2017 by OrionSR Link to comment Share on other sites More sharing options...
B1ack_Wh1te Posted August 9, 2017 Author Share Posted August 9, 2017 (edited) Everything is working. Thank you spakeeinstein. Edited August 9, 2017 by Dyabda Link to comment Share on other sites More sharing options...
Richie Makyura Posted August 18, 2017 Share Posted August 18, 2017 Where can see free ids for peds, i have the same problem with cdeput and my bikers works. 3230, cdeput, cdeput, COP, STAT_COP, swat, 1FFF, 1, null, 9, 9, PED_TYPE_EMG, VOICE_EMG_RCOP1, VOICE_EMG_RCOP4 The cop bikers: 3247, lapdm2, lapdm2, COP, STAT_COP, swat, 1FFF, 0, null, 9, 9, PED_TYPE_EMG, VOICE_EMG_MCOP1, VOICE_EMG_MCOP6 3248, sfpdm1, sfpdm1, COP, STAT_COP, swat, 1FFF, 0, null, 9, 9, PED_TYPE_EMG, VOICE_EMG_MCOP1, VOICE_EMG_MCOP6 3251, lvpdm1, lvpdm1, COP, STAT_COP, swat, 1FFF, 0, null, 9, 9, PED_TYPE_EMG, VOICE_EMG_MCOP1, VOICE_EMG_MCOP6 how can edit the exe? Link to comment Share on other sites More sharing options...
deltaCJ Posted August 18, 2017 Share Posted August 18, 2017 You have a 1 in your cdeput ped line. right after 1FFF there's a one. CHange that to zero Richie Makyura 1 Link to comment Share on other sites More sharing options...
Richie Makyura Posted August 19, 2017 Share Posted August 19, 2017 You have a 1 in your cdeput ped line. right after 1FFF there's a one. CHange that to zero Thanks, now works the flint cop deltaCJ 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now