Official Codex Discord Server

  1. Welcome to rpgcodex.net, a site dedicated to discussing computer based role-playing games in a free and open fashion. We're less strict than other forums, but please refer to the rules.

    "This message is awaiting moderator approval": All new users must pass through our moderation queue before they will be able to post normally. Until your account has "passed" your posts will only be visible to yourself (and moderators) until they are approved. Give us a week to get around to approving / deleting / ignoring your mundane opinion on crap before hassling us about it. Once you have passed the moderation period (think of it as a test), you will be able to post normally, just like all the other retards.
    Dismiss Notice

Pathfinder: Kingmaker Modding Thread

Discussion in 'Codex Workshop' started by Pink Eye, May 10, 2020.

Tags:
  1. Pink Eye Monk Patron

    Pink Eye
    Joined:
    Oct 10, 2019
    Messages:
    3,124
    Location:
    The Stolen Lands
    Pathfinder: Kingmaker
    I am going to rebuild my calculator in c#
     
    ^ Top  
  2. Efe Arbiter

    Efe
    Joined:
    Dec 27, 2015
    Messages:
    1,602
    do your calculator in unity.
    it would be a lot more helpful
     
    ^ Top  
  3. Pink Eye Monk Patron

    Pink Eye
    Joined:
    Oct 10, 2019
    Messages:
    3,124
    Location:
    The Stolen Lands
    Pathfinder: Kingmaker
    >do your calculator in unity.
    How do I do that?
     
    • it is a mystery it is a mystery x 1
    ^ Top  
  4. Efe Arbiter

    Efe
    Joined:
    Dec 27, 2015
    Messages:
    1,602
    download unity.
    draw a calculator.
    code the same logic but with clickable buttons and shit.
    just create a dozen or so buttons and assign them a job.
    so value is 0.
    press NUMBER (0-9) button. value is multiplied by 10 and added NUMBER.
    so press 1: 0*10 +1 = 1
    press 1 again: 10 +1 = 11
    you can go from then on i believe in you.

    this adds toughness feat for player character.
    i hope whitestuff anon comes with good news on feat making
     
    ^ Top  
  5. Pink Eye Monk Patron

    Pink Eye
    Joined:
    Oct 10, 2019
    Messages:
    3,124
    Location:
    The Stolen Lands
    Pathfinder: Kingmaker
    Okay. My Calculator is working again. Saving this in a pastebin and posting here, so I don't accidentally delete it.
    https://pastebin.com/jQX9ZUH8
     
    ^ Top  
  6. Pink Eye Monk Patron

    Pink Eye
    Joined:
    Oct 10, 2019
    Messages:
    3,124
    Location:
    The Stolen Lands
    Pathfinder: Kingmaker
    Okay. I'll try that too.
     
    ^ Top  
  7. WhiteScreenAnon Novice

    WhiteScreenAnon
    Joined:
    May 10, 2020
    Messages:
    56
    Hopefully he will be free to talk
     
    ^ Top  
  8. Pink Eye Monk Patron

    Pink Eye
    Joined:
    Oct 10, 2019
    Messages:
    3,124
    Location:
    The Stolen Lands
    Pathfinder: Kingmaker
    Can't we just look at the source code of the mod? And go from there? All we really need is the actual source file, right?
     
    • it is a mystery it is a mystery x 1
    ^ Top  
  9. Efe Arbiter

    Efe
    Joined:
    Dec 27, 2015
    Messages:
    1,602
    ^ Top  
  10. WhiteScreenAnon Novice

    WhiteScreenAnon
    Joined:
    May 10, 2020
    Messages:
    56
    ^ Top  
  11. Pink Eye Monk Patron

    Pink Eye
    Joined:
    Oct 10, 2019
    Messages:
    3,124
    Location:
    The Stolen Lands
    Pathfinder: Kingmaker
    Nope. We're going to have to contact the actual modder. I can't make sense of it either.
     
    ^ Top  
  12. Pink Eye Monk Patron

    Pink Eye
    Joined:
    Oct 10, 2019
    Messages:
    3,124
    Location:
    The Stolen Lands
    Pathfinder: Kingmaker
    Efe How did you figure out that this adds toughness?
    Show Spoiler

    UnitEntityData unitEntityData = Game.Instance.Player.MainCharacter;

    unitEntityData.Descriptor.AddFact((BlueprintUnitFact)Utilities.GetBlueprintByGuid<BlueprintFeature>("d09b20029e9abfe4480b356c92095623"), (MechanicsContext)null, new FeatureParam());
     
    ^ Top  
  13. Efe Arbiter

    Efe
    Joined:
    Dec 27, 2015
    Messages:
    1,602
    they stored every string into MenuText.cs, searched the string to find where he added feats, found the line.
    he stored a lot of pointers in storage.cs for quick use later. replaced that with Game.Instance.Player.MainCharacter to target player.
    he also got the added feat id from storage where he put it there earlier, removed that and entered toughness manually.

    i got toughness from bag of tricks itself inside game mod menu. got the idea from the guy from way back that tried to improve beneath the stolen lands.
     
    • honk honk! honk honk! x 1
    ^ Top  
  14. WhiteScreenAnon Novice

    WhiteScreenAnon
    Joined:
    May 10, 2020
    Messages:
    56
    https://imgur.com/a/4AmSTsP
    This is one of the feats in cotw, how the feats work seem pretty easy to understand, I have no idea about librarys though so I think i'm going to do some c practise and thensee if anyone on discord can explain
     
    ^ Top  
  15. Pink Eye Monk Patron

    Pink Eye
    Joined:
    Oct 10, 2019
    Messages:
    3,124
    Location:
    The Stolen Lands
    Pathfinder: Kingmaker
    Anyone have any idea on how I can modify the Gold mod to give BP instead? Also how does one go about adding user input for the Gold Mod? Like allowing the user to type how much gold they want to add. I know how to do it in Console. But it's different here.
     
    Last edited: May 11, 2020
    ^ Top  
  16. Efe Arbiter

    Efe
    Joined:
    Dec 27, 2015
    Messages:
    1,602
    • Thanks! Thanks! x 1
    ^ Top  
  17. Pink Eye Monk Patron

    Pink Eye
    Joined:
    Oct 10, 2019
    Messages:
    3,124
    Location:
    The Stolen Lands
    Pathfinder: Kingmaker
    I think I created a text box..
    [​IMG]
     
    ^ Top  
  18. WhiteScreenAnon Novice

    WhiteScreenAnon
    Joined:
    May 10, 2020
    Messages:
    56
    ^ Top  
  19. WhiteScreenAnon Novice

    WhiteScreenAnon
    Joined:
    May 10, 2020
    Messages:
    56
    does it work?
     
    ^ Top  
  20. Pink Eye Monk Patron

    Pink Eye
    Joined:
    Oct 10, 2019
    Messages:
    3,124
    Location:
    The Stolen Lands
    Pathfinder: Kingmaker
    Don't know. I'm trying to figure out how to convert the string into a numerical value.
     
    ^ Top  
  21. NJClaw Ontopolover Patron

    NJClaw
    Joined:
    Aug 30, 2016
    Messages:
    1,486
    Location:
    Bologna, Italy
    Pathfinder: Kingmaker
    ^ Top  
  22. WhiteScreenAnon Novice

    WhiteScreenAnon
    Joined:
    May 10, 2020
    Messages:
    56
    Convert.ToInt32("STRING")
    This will convert it into a int
     
    ^ Top  
  23. Pink Eye Monk Patron

    Pink Eye
    Joined:
    Oct 10, 2019
    Messages:
    3,124
    Location:
    The Stolen Lands
    Pathfinder: Kingmaker
    Oi oi. My brain hurts. Alright. Now how do we get the game to spawn the gold that the user requested? Do we write an if function?
     
    Last edited: May 11, 2020
    ^ Top  
  24. WhiteScreenAnon Novice

    WhiteScreenAnon
    Joined:
    May 10, 2020
    Messages:
    56
    I think I've begun to understand how blueprints are improtant...
    If you want to use somthing thats already being used by the base game you must first call it using a blueprint
    https://github.com/spacehamster/KingmakerCustomBlueprints/releases/tag/blueprints
    Even if you want to use somthing as basic as a icon it must first be called.
    This is important when we are setting requirements like "player mus have weapon finesse"

    I think i've learnt enough to give edit a script and make a feat nothing complicated though
     
    ^ Top  
  25. Pink Eye Monk Patron

    Pink Eye
    Joined:
    Oct 10, 2019
    Messages:
    3,124
    Location:
    The Stolen Lands
    Pathfinder: Kingmaker
    Anon help me. My dumb ass needs help.
     
    ^ Top