Skip to content
Guest Big Announcement

Help With Different Kind of Code Injection

Featured Replies

Hello all and thanks for trying to help.

 

What I need help with is if there is a way to inject ASCII. I learned how to inject basic hex, but I have a mod that relies on modifying ASCII and figured this would be the place to ask.

 

Aside from boolean functions/2optiontoggles, is there a way to use a text box instead where the player can type an integer and it converts it to hex?

An example modified code can be XX 20 XX 23 58 43 70 47 for diamonds

If a player inputs 1, it becomes 01 20 01 23 58 43 70 47

If he inputs 100, it becomes 01 20 64 23 58 43 70 47

 

I would really appreciate if you can help me out with this! Thank you :thumbsup:

Solved by castix

No I don't think so because MS doesn't know the ascending order of HEX values. You can go for PSMultiValueCell or PSSegmentCell where the user gets a choice of pre-given values.

  • Author

No I don't think so because MS doesn't know the ascending order of HEX values. You can go for PSMultiValueCell or PSSegmentCell where the user gets a choice of pre-given values.

Thank you @@castix

 

For anyone else, here is a good reference to the different kinds of cells for development outlined by Apple:

https://developer.apple.com/library/ios/documentation/PreferenceSettings/Conceptual/SettingsApplicationSchemaReference/Introduction/Introduction.html#//apple_ref/doc/uid/TP40007005-SW1

 

Now I know what the .plist should look like, but I'm still struggling to make it work with my tweak.xm because all the CSCI are all boolean. I'm looking to use "PSSliderSpecifier" "PSMultiValueSpecifier" and "PSRadioGroupSpecifier" not sure what it's supposed to look like.

 

Here is an example of 2 different codes that modify the same offset that I would like to make as a PSMultiValueSpecifier/PSRadioGroupSpecifier

 

if(GetPrefBool(@"kSpirits"))
{
writeData(0xF34E0D, 0x31303031);
} else {
writeData(0xF34E0D, 0x39393935);
}
if(GetPrefBool(@"kSpirits"))
{
writeData(0xF34E11, 0x30310073);
} else {
writeData(0xF34E11, 0x30300073);
}
if(GetPrefBool(@"kIdols"))
{
writeData(0xF34E0D, 0x31303031);
} else {
writeData(0xF34E0D, 0x39393935);
}
if(GetPrefBool(@"kIdols"))
{
writeData(0xF34E11, 0x30320073);
} else {
writeData(0xF34E11, 0x30300073);
}

 

Also, what is the difference between "PSMultiValueSpecifier" and "PSRadioGroupSpecifier"? I can't tell the difference O.o

PSMultiValueCell is like PSLinkListCell :

Tick option 1

Tick option 2

Tick option 3 .. etc.

 

I never heard PSRadioGroupSpecifier :ermm:

  • Author

What is this? Because this is what I had in mind.

picker.png

Updated by Javi Tech

  • Author

Okay, THIS is what I mean:

7r5rZJI.png

So users can tick an option that they'd like.

I see what you mean is PSLinkListCell

<dict>
      <key>cell</key>
      <string>PSLinkListCell</string>
      <key>detail</key>
      <string>PSListItemsController</string>
      <key>defaults</key>
      <string>Example</string>
      <key>key</key>
      <string>kExample</string>
      <key>label</key>
      <string>Example</string>
      <key>validTitles</key>
      <array>
        <string>Option 1</string>
        <string>Option 2</string>
        <string>Option 3</string>
        <string>Option 4</string>
        <string>Option 5</string>
      </array>
      <key>validValues</key>
      <array>
        <integer>Value Of Option 1</integer>
        <integer>Value Of Option 2</integer>
        <integer>Value Of Option 3</integer>
        <integer>Value Of Option 3</integer>
        <integer>Value Of Option 4</integer>
        <integer>Value Of Option 5</integer>
      </array>
    </dict>
  • Author

 

I see what you mean is PSLinkListCell

<dict>
      <key>cell</key>
      <string>PSLinkListCell</string>
      <key>detail</key>
      <string>PSListItemsController</string>
      <key>defaults</key>
      <string>Example</string>
      <key>key</key>
      <string>kExample</string>
      <key>label</key>
      <string>Example</string>
      <key>validTitles</key>
      <array>
        <string>Option 1</string>
        <string>Option 2</string>
        <string>Option 3</string>
        <string>Option 4</string>
        <string>Option 5</string>
      </array>
      <key>validValues</key>
      <array>
        <integer>Value Of Option 1</integer>
        <integer>Value Of Option 2</integer>
        <integer>Value Of Option 3</integer>
        <integer>Value Of Option 3</integer>
        <integer>Value Of Option 4</integer>
        <integer>Value Of Option 5</integer>
      </array>
    </dict>

But how will I add it to the Tweak.xm, what changes should I make?

  • Solution

Like I said above I have no idea about HEX because HEX is not a NSIdentifier like boolean, integer or float but technically that's the Preference Specifier you want. You just need to find someone who knows how to.

 

--

 

You can use the .plist code above with the online generator now: http://armconverter.com/mshookgenerator/

Updated by DiDA

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.