How to create BigIntegers #669
Replies: 3 comments 1 reply
-
const BigIntegerClass = SystemNumerics.class("System.Numerics.BigInteger");
const BigIntValue = BigIntegerClass.method('Parse', 1).invoke(Il2Cpp.string('999999999'))does indeed get my what seems to be a bigint, but still the same null pointer dereference error or fault addr if returned in a pointer... I'm definitely missing something here. will keep looking. |
Beta Was this translation helpful? Give feedback.
-
|
I've modified other functions with no issue but they all return ints, I want to say it's something specific about BigIntegers and pointers, but im not 100% |
Beta Was this translation helpful? Give feedback.
-
|
Uhm, would you follow this to confirm whether the app would work correctly without re-implementing |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking to overwrite a GetGold function

in reality I just want to return a really large BigInt and am unsure how to properly do this in the bridge.
I have the GetGold.implementation setup but whatever I return seems to be some wrong value. errors imply that I should be returning a Pointer?
so with that knowledge I've attempted to just make the implementation return the default value atm.
with this I get a
null pointer dereferenceerror on the first call even though my log returns the correct amount.if I change the return to
return ptr(gold)iit runs for a bit before I get some form offault addr 0x3bcccce4and your gold value is just visually at 0 during gameplay.I saw that the Numerics class has a Parse function that takes a string and returns a BigInteger, I'm going to try that and keep moving forward but maybe someone can help me solve this in 2 seconds flat lol.
Beta Was this translation helpful? Give feedback.
All reactions