|
Post by kwanzaabot on May 25, 2021 5:50:44 GMT -5
I'm making a mod at the moment that adds bank loans--I know there's other mods out there that do this, but I haven't yet seen one that uses the already-existing debt system from Discover University. My plan is: - Do the interaction
- Sim disappears off the lot
- Waits a few hours
- Comes back
- Influence (Eco Lifestyle) is subtracted
- Simoleons are added
This part all works perfectly. The part that doesn't, is that the Sim is then supposed to take on an amount equal to the Simoleons gained, plus change, in the form of a debt, which can then be paid at any mailbox or else you risk the repo man coming. And I have no idea why it doesn't work. Discover University comes with a debug interaction, "debug_Debt_Add10000" that provides the Sim with some loot ("loot_Statistic_Loans_Set10000"). The loot in this case being 10,000 Simoleons in debt, and I've used that loot as a stepping stone for my own "add debt to a Sim" mechanic. This is the mod: www.simfileshare.net/download/2509959/(Requires the XML Injector) If anyone can figure out where I went wrong and how to fix it, I would be eternally grateful. I've been hitting my head against this wall for a month now!
|
|
|
Post by frankk on May 25, 2021 20:46:15 GMT -5
Did you forget to add your loot to line 137 of abutt_InfluentialInteractions_ApplyForSmallLoan?
Other than not including the loot, it looks like you might have a mismatch of participants. The target type of your interaction is ACTOR, but the target type of your loot is OBJECT. Add the loot to line 137, and switch the participant on 428 to OBJECT and that should do it.
|
|
|
Post by kwanzaabot on May 25, 2021 23:16:16 GMT -5
Did you forget to add your loot to line 137 of abutt_InfluentialInteractions_ApplyForSmallLoan? Other than not including the loot, it looks like you might have a mismatch of participants. The target type of your interaction is ACTOR, but the target type of your loot is OBJECT. Add the loot to line 137, and switch the participant on 428 to OBJECT and that should do it. Hmm, that doesn't seem to do anything. The mismatched participants was a good catch--thank you! But I'm still not seeing the debt. My Sim isn't a university graduate btw, I didn't think that could be a cause, as Discover University's "mailbox_payloans" interaction (ie the interaction that allows Sims to pay back their loans) only requires a Sim have a debt for it to appear--but I'm wondering now if that could be a problem somehow?
|
|
|
Post by kwanzaabot on Jun 6, 2021 18:44:48 GMT -5
Bumping this one more time. :(
|
|
|
Post by MizoreYukii on Jun 7, 2021 1:48:16 GMT -5
Hi, I just spent some time tracking how this works, it seems that the university system is using two different stats to keep track of the debt. They don't seem to activate without university being involved, based on the sims.loan_tuning file that I found and because I tried adding the second commodity, similar to what happens when you drop out or graduate to start the loan process, to see if it would finally trigger the system but it didn't. The second commodity I found was 226644<!--commodity_DebtProgression--> btw. Sorry you had to wait that long to just hear that. Also, for future reference in your SocialMixer your allow_autonomous has false instead of False, and you can combine your XML Injector snippets into one. Also, I recommend downloading XML Extractor and it's companion File Finder as this will allow you to find file references for situations like this. I also recommend grabbing MCCC or Show Sim Info so you can look at sim data to see if hidden stuff like these stats are being added.
|
|
|
Post by kwanzaabot on Jun 7, 2021 21:46:14 GMT -5
Hi, I just spent some time tracking how this works, it seems that the university system is using two different stats to keep track of the debt. They don't seem to activate without university being involved, based on the sims.loan_tuning file that I found and because I tried adding the second commodity, similar to what happens when you drop out or graduate to start the loan process, to see if it would finally trigger the system but it didn't. The second commodity I found was 226644<!--commodity_DebtProgression--> btw. Sorry you had to wait that long to just hear that. Also, for future reference in your SocialMixer your allow_autonomous has false instead of False, and you can combine your XML Injector snippets into one. Also, I recommend downloading XML Extractor and it's companion File Finder as this will allow you to find file references for situations like this. I also recommend grabbing MCCC or Show Sim Info so you can look at sim data to see if hidden stuff like these stats are being added. When you say "they don't activate without university being involved", do you mean it won't activate without applying to university? That's really disappointing. Funnily enough I tried commodity_DebtProgression back when I was first trying to get this to work, and it didn't do anything so I just naturally assumed it wasn't meant to be used that way. Also I have XML Extractor & File Finder, but they're not much use unless you know the exact wording used in the file you're searching for lol, can't search for something if I don't know what it's called, y'know? And yeah I know I can combine my snippets, I just find it's easier to keep them separate temporarily, in cases like this where I hit a dead end and I need to delete some XML that won't be in my final mod. Since I can't put my Sims into debt unless they got that debt from applying to university, I won't need it anymore. Thanks for your help, shame it's bad news.
|
|
|
Post by MizoreYukii on Jun 8, 2021 12:53:53 GMT -5
Hi, I just spent some time tracking how this works, it seems that the university system is using two different stats to keep track of the debt. They don't seem to activate without university being involved, based on the sims.loan_tuning file that I found and because I tried adding the second commodity, similar to what happens when you drop out or graduate to start the loan process, to see if it would finally trigger the system but it didn't. The second commodity I found was 226644<!--commodity_DebtProgression--> btw. Sorry you had to wait that long to just hear that. Also, for future reference in your SocialMixer your allow_autonomous has false instead of False, and you can combine your XML Injector snippets into one. Also, I recommend downloading XML Extractor and it's companion File Finder as this will allow you to find file references for situations like this. I also recommend grabbing MCCC or Show Sim Info so you can look at sim data to see if hidden stuff like these stats are being added. When you say "they don't activate without university being involved", do you mean it won't activate without applying to university? That's really disappointing. Funnily enough I tried commodity_DebtProgression back when I was first trying to get this to work, and it didn't do anything so I just naturally assumed it wasn't meant to be used that way. Also I have XML Extractor & File Finder, but they're not much use unless you know the exact wording used in the file you're searching for lol, can't search for something if I don't know what it's called, y'know? And yeah I know I can combine my snippets, I just find it's easier to keep them separate temporarily, in cases like this where I hit a dead end and I need to delete some XML that won't be in my final mod. Since I can't put my Sims into debt unless they got that debt from applying to university, I won't need it anymore. Thanks for your help, shame it's bad news. Yes, it seems that the Python is controlling/checking for University related stuff in order to trigger the debt, what specifically I'm not sure without digging. The strange part is that it seems all sims have the commodity_DebtProgression on them stuck at 100 (it goes down to 0 when active) but it didn't move with the adjusted loot, which is why I suspect the Python has a block on it somewhere. Or I could be wrong, but I won't know without extensive testing unfortunately and I'm not sure what else to test at the moment. If I learn more I'll reply to this thread! Not exactly, you don't need exact wording as a starting point. Just by typing in "loan" or "debt" you get a list of potential files to dig through, then it's just a matter of trying to find what you need. But for me, what I did was copy/paste the stat you were attempting to use into the tool, right clicked and selected "Browse References" and this opened the list of connected files. I then backtracked by opening more "Browse References" on each one and also opened files in my editor to see what they were, and used the TDESC to help me understand anything new I came across. With that I was able to find sims.loan_tuning and mostly understand how the system was functioning.
|
|