Skip to content
Guest Big Announcement

Mod Upgrade Chances

Featured Replies

Hi all,

 

Anyway to mod in game upgrade chances? What I'm trying to achieve is for every upgrade it either adds, doesn't take away points or is free.

 

STMFD           SP!, {R4,R10,R11,LR}
ADD             R11, SP, #8
LDR             R4, [R0,#0x18]
CMP             R4, #0
BEQ             loc_50A670
MOV             R0, R4
MOV             R1, #0
BL              sub_BCFD80
SUB             R1, R0, #1 <---------------------------------
MOV             R0, R4
MOV             R2, #0
LDMFD           SP!, {R4,R10,R11,LR}
B               sub_BCFD88

 

What I tried was replacing SUB with ADD R1, R0, #1. That did the trick visually at least, however when I go to update again it says not enough points. Does that generally mean its server side or should I go about it a different way?

 

Thanks

  • Author

@TheArmQueen

 

Just tried it with SUB R1,R0,#0  still the same result.  :(

 

I wonder if this could be achieved another way by modifying the Upgrade Chance to always 100%? With public float GetUpgradeChance(int level) 

 

GNntbJ1.png

 

I'm thinking the unk offset deals with the %. The way the game works if its never been upgraded you have a 100% chance to upgrade and goes down from there to .05%. I have no idea how or if this could be modded though, just know from what tutorials I read on here, other sites and Youtube.

 

GNntKif.png

1 minute ago, CA3LE said:

@TheArmQueen

 

Just tried it with SUB R1,R0,#0  still the same result.  :(

 

I wonder if this could be achieved another way by modifying the Upgrade Chance to always 100%? With public float GetUpgradeChance(int level) 

 

GNntbJ1.png

 

I'm thinking the unk offset deals with the %. The way the game works if its never been upgraded you have a 100% chance to upgrade and goes down from there to .05%. I have no idea how or if this could be modded though, just know from what tutorials I read on here, other sites and Youtube.

 

GNntKif.png

MOV RX,#100 ?

X being 0 , 1 , 2 , 3 or whatever 

  • Author

@TheArmQueen

 

I tried replacing MOV R1, #1 with your suggested, had no effect but not ready to give up yet. At this point I'm throwing darts blindly, will tinker with the LDR & STR instructions to see what comes about. Thank you for your suggestions :)

14 minutes ago, CA3LE said:

@TheArmQueen

 

I tried replacing MOV R1, #1 with your suggested, had no effect but not ready to give up yet. At this point I'm throwing darts blindly, will tinker with the LDR & STR instructions to see what comes about. Thank you for your suggestions :)

:) 

  • Author
3 hours ago, CA3LE said:

I wonder if this could be achieved another way by modifying the Upgrade Chance to always 100%? With public float GetUpgradeChance(int level) 

 

GNntbJ1.png

 

I'm thinking the unk offset deals with the %. The way the game works if its never been upgraded you have a 100% chance to upgrade and goes down from there to .05%. I have no idea how or if this could be modded though, just know from what tutorials I read on here, other sites and Youtube.

 

GNntKif.png

 

 

@ ZahirSher 

Does anything stand out to you that could be modded to set upgrade chance to always 100%? The few things I tried causes a crash.

 

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.