Quantcast

Jump to content

» «
Photo

Cop Bikes Overhaul by Silent

Best Answer spaceeinstein, 09 August 2017 - 03:12 AM

This is how you read "1C010000". First split the string into four sections:

1C 01 00 00
Then read it backwards:
00 00 01 1C
If 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 10
Then read it backwards:
10 01 00 00
It comes out as "10010000". Go to the full post


14 replies to this topic
Dyabda
  • Dyabda

    Incognita

  • Members
  • Joined: 12 Jul 2017
  • None

#1

Posted 04 August 2017 - 03:23 AM Edited by Dyabda, 04 August 2017 - 03:27 AM.

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:
 
 

spaceeinstein
  • spaceeinstein

    Chocolate

  • GTA Mods Staff
  • Joined: 17 Jul 2003
  • Hong-Kong
  • Major Contribution Award [Mods]
    Helpfulness Awards [Mods]

#2

Posted 04 August 2017 - 04:33 PM

Can you explain what's the purpose of this topic?

Dyabda
  • Dyabda

    Incognita

  • Members
  • Joined: 12 Jul 2017
  • None

#3

Posted 05 August 2017 - 01:40 AM

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.

spaceeinstein
  • spaceeinstein

    Chocolate

  • GTA Mods Staff
  • Joined: 17 Jul 2003
  • Hong-Kong
  • Major Contribution Award [Mods]
    Helpfulness Awards [Mods]

#4

Posted 05 August 2017 - 09:05 AM Edited by spaceeinstein, 05 August 2017 - 09:20 AM.

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.

Dyabda
  • Dyabda

    Incognita

  • Members
  • Joined: 12 Jul 2017
  • None

#5

Posted 06 August 2017 - 02:46 AM Edited by Dyabda, 06 August 2017 - 11:37 AM.

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.

Dyabda
  • Dyabda

    Incognita

  • Members
  • Joined: 12 Jul 2017
  • None

#6

Posted 07 August 2017 - 07:39 PM

Help please, I do not understand this system.


gts.
  • gts.

    Gangsta

  • Members
  • Joined: 20 Jun 2015
  • United-States

#7

Posted 07 August 2017 - 08:20 PM Edited by gts., 07 August 2017 - 08:21 PM.

You need to use an unused ped ID, otherwise you will replace an already used ped ID or the game will crash.


Dyabda
  • Dyabda

    Incognita

  • Members
  • Joined: 12 Jul 2017
  • None

#8

Posted 09 August 2017 - 12:59 AM

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?


spaceeinstein
  • spaceeinstein

    Chocolate

  • GTA Mods Staff
  • Joined: 17 Jul 2003
  • Hong-Kong
  • Major Contribution Award [Mods]
    Helpfulness Awards [Mods]

#9

Posted 09 August 2017 - 03:12 AM   Best Answer Edited by spaceeinstein, 09 August 2017 - 03:15 AM.

This is how you read "1C010000". First split the string into four sections:
1C 01 00 00
Then read it backwards:
00 00 01 1C
If 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 10
Then read it backwards:
10 01 00 00
It comes out as "10010000".

Dyabda
  • Dyabda

    Incognita

  • Members
  • Joined: 12 Jul 2017
  • None

#10

Posted 09 August 2017 - 04:30 AM Edited by Dyabda, 09 August 2017 - 04:50 AM.

This is how you read "1C010000". First split the string into four sections:

1C 01 00 00
Then read it backwards:
00 00 01 1C
If 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 10
Then read it backwards:
10 01 00 00
It comes out as "10010000".

 

Okey, id 6011 in the hexadecimal calculator is 177B

 

00 00 17 7B

 

will be

 

7B 17 00 00?


OrionSR
  • OrionSR

    Chain Game Development Team

  • Feroci
  • Joined: 23 May 2007
  • None
  • Helpfulness Award [GTA & Modding]

#11

Posted 09 August 2017 - 04:55 AM Edited by OrionSR, 09 August 2017 - 04:56 AM.

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.


Dyabda
  • Dyabda

    Incognita

  • Members
  • Joined: 12 Jul 2017
  • None

#12

Posted 09 August 2017 - 05:35 AM Edited by Dyabda, 09 August 2017 - 11:47 AM.

Everything is working.
Thank you spakeeinstein.

Richie Makyura
  • Richie Makyura

    I clawed my way out of Willamette

  • Members
  • Joined: 11 Mar 2017
  • Mexico

#13

Posted 18 August 2017 - 05:51 AM

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?  :panic:

deltaCJ
  • deltaCJ

    BUSTED!

  • Members
  • Joined: 27 Dec 2013
  • None

#14

Posted 18 August 2017 - 06:23 PM

You have a 1 in your cdeput ped line. right after 1FFF there's a one. CHange that to zero

  • Richie Makyura likes this

Richie Makyura
  • Richie Makyura

    I clawed my way out of Willamette

  • Members
  • Joined: 11 Mar 2017
  • Mexico

#15

Posted 19 August 2017 - 03:42 AM

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  :happy:

  • deltaCJ likes this




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users