Jump to content

Shtivi

Recognized Creator
  • Joined

  • Last visited

Everything posted by Shtivi

  1. Shtivi commented on Shtivi's comment on a file in Red Dead Redemption 2 Scripts
    Thanks 🙂 We're going to release a new version soon. Stay tuned!
  2. So that's an excellent question. Knowing how to find the balance between scalable code and over-engineered code is probably what makes a good programmer to a professional and it's a skill learnt in time and experience. Basically, it all depends on your plan. In my mod I wanted every bounty hunting mission to have it's on unique features. How would you design it? I created an abstract class which used as a template (https://sourcemaking.com/design_patterns/template_method) and each mission inherits it and overrides it with it's own logic. The other option would be to create one class of bounty mission and force it to handle a lot of different logics. That would probably minimize the amount of classes you create, but also make it extermely difficault to scale. Even when it is only you who is working on it. In this case, adding new bounties easily is one of the core features of the mod, and therefore I had to consider all of the options and decide which one of them is the easiest to maintain. Think about it, how a class containing the code of three dozens classes is going to look? How can you keep track of what is going on inside? In general, you just need to have a good plan and stick to it. Like Dutch 🙂
  3. Hi. My advice to you as a mod developer is to look at other mods' source code. Me and LonesomeBullboy are developing a mod which called "Bounties Expansion" for the last few months. When I just started getting into this business, I was looking everywhere for complex open source mods. And from what I can tell, these are pretty rare. With that being said, here is the link for Bounties Expansion source code. https://github.com/Shtivi/RDR2-Bounties-Expansion And finally: your mod looks good. I would very like to take a look at it's code, I might learn some new things. Good job!
  4. Shtivi commented on Shtivi's comment on a file in Red Dead Redemption 2 Scripts
    4, for now. Thanks, glad you liked it 🙂
  5. Shtivi commented on Shtivi's comment on a file in Red Dead Redemption 2 Scripts
    It's okay, have fun
  6. Shtivi commented on Shtivi's comment on a file in Red Dead Redemption 2 Scripts
    Why are you taking it so hard? Of course I'm gonna help you. But how am I suppose to be able to help without any error message, screenshot or something? I have attached the zipped files to this reply. BountiesExpansion.asi BountiesExpansion.dat README.txt
  7. Shtivi commented on Shtivi's comment on a file in Red Dead Redemption 2 Scripts
    Well just unziped it
    • 8,867 downloads
    • Version 1.0.1
    Installation: Download and install AB's ScripthookRDR2: http://www.dev-c.com/rdr2/scripthookrdr2/ (make sure you install the asi loader). Remove previous versions of the mod, if you have any installed. Copy BountiesExpansion.asi and BountiesExpansion.dat to the game's main installation folder. How To Play: Get to one of the new bounty poster appeared on you map. It's in a different spot from the game builtin bounty posters to prevent collisions. Collect it. Head for the new bounty area added to your map. Locate and hogtie the target. Get to the police department. Drop the target by the cell and get your reward. Known Issues: Sometimes some of the blips are not removed. You're welcome to report if you encouter other issues, and please add the log file (BountiesExpansion.log) Special Thanks To: S.T.R.I.K.E.R for helping with the research. LMS for helping with the research and having a lot of patience 🙂 jedijosh920 for helping with the research cad5150 for testing the mod
  8. Shtivi commented on admin's comment in TASK
    In the scripts they use it like that: TASK_MOUNT_ANIMAL(ped, horse, -1, -1, 2f, 1, 0, 0) will make the ped mount the driver seat
  9. And just another one 🙂 Do you know the task id of carrying an entity?
  10. Do you know anything about that, too? TASK_PLACE_CARRIED_ENTITY_AT_COORD
  11. Yes I guess, tested it with a wagon before and it did'nt work (kinda guessed the params). Thanks 🙂
  12. 1) Do you know if it should work with a vehicle / wagon too? or with a horse only? 2) Maybe, I will look into it .
  13. Hi, Two questions 🙂 1. Does anybody has any idea how to get this function to work: TASK_PLACE_CARRIED_ENTITY_ON_MOUNT 2. How do you place an object on a wagon? thanks
    • 53,817 downloads
    • Version 3.2.0
    # RDR2-Tie-Your-Lasso - Hangman Edition 3.1.0 This mod allows you to hitch your lasso, along with the peds tied to it, to the surface your are standing on. ### Installation: - Download and install AB's ScripthookRDR2 - Make sure you have an asi loader, it usually comes along with Scripthook. - Remove previous versions of the mod, if you have any installed. - Copy TieYourLasso.asi to the game's main installation folder. ### How to use: - Use your lasso just as usual. - Press the key ("Look Back" key) when on foot to hitch the lasso to the ground. - After you hogtie a npc, get close to him and then you can attach him to the ground (without lassoing it). You're also able to give him a little push. - It's also possible to attach the ped you carry to the ground. - After attaching a ped to the ground, you can wind the rope by standing near it and pressing E or unwinding it by pressing R. - Hang peds by hogting them and stand under a bridge or a tree. Then press V. Try to keep the player's front area clear because there the rope will be hitched so you can control it. - Hang peds from gallows: pick up an hogtied ped and get under the gallows' beam. Use the Tie Noose prompt to noose the ped properly. Then approach the lever and pull it. Supported gallows: Valentine, Strawberry, Rhodes, Blackwater and Saint Denis.
  14. thanks for your help, i hope ill get to it soon.
  15. 020 12:52:00 AM.130] Error while loading plugin D:\Program Files\Rockstar Games\Red Dead Redemption 2\C#Plugins\NPCTaxi.dll. Plugin is skipped during reload. Exception: System.TypeLoadException: Could not load type 'Rage.RemotePlugin' from assembly 'RagePluginHook2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. [3/7/2020 12:52:00 AM.133] at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type) [3/7/2020 12:52:00 AM.135] at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) [3/7/2020 12:52:00 AM.136] at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark) [3/7/2020 12:52:00 AM.138] at System.Activator.CreateInstance(String assemblyName, String typeName) [3/7/2020 12:52:00 AM.139] at System.AppDomain.CreateInstance(String assemblyName, String typeName) [3/7/2020 12:52:00 AM.140] at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName) [3/7/2020 12:52:00 AM.142] at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName) [3/7/2020 12:52:00 AM.144] at fM7yR2zBHiex_gZtaRbuPZI.hAXm7XcRP$RWRq$eZKmJrSQ(String ) [3/7/2020 12:52:00 AM.145] at sZJr2G73PwZLF8_nux5f$_7868mrTfTzroq6LRMLvXbH.XWuRhz3fzgg04umooyTjKpQ(String , Boolean ) [3/7/2020 12:52:00 AM.146] at sZJr2G73PwZLF8_nux5f$_7868mrTfTzroq6LRMLvXbH.fAltt4B2I3Ao5ZsqcOCa0zrGOSaklOzaTN2O3ndiuSwC(Boolean ) thats what i get
  16. I know, i tried the tutorial of the NPC taxi. extracted everything, placed NPC_taxi.dll and pdb in the c#plugins folder, launched the game and then launched RPH.exe. The game crushes when i try to load the my script... dont know what to do. Also, does RPH is able to run along side with script hook?
  17. Thanks for the help. Anybody knows the native of help message?
  18. Is it possible to look into the source code of rph?
  19. https://github.com/Saltyq/ScriptHookRDR2DotNet But I guess that there are native functions which can help
  20. Hi, I'm trying to get these things to work and dont know how: 1. show a help message 2. Show a prompt of an available action like when you lasso someone, get close to him and you have on the right bottom corner a hogtie prompt. I've seen it in the Hunting wagon mode, you can press "Z" to call the hunting wagon. How did he added it to the menu?
  21. Shtivi replied to Shtivi's post in a topic in RDR2 Mods Discussion
    Yep id 399 indeed. Thank you!
  22. Shtivi posted a post in a topic in RDR2 Mods Discussion
    Hi there I'm looking for a native function which tells if a ped is hogtied, can't find anything (trying IS_PED_CUFFED, didnt work). And also, anybody knows how to programmaticlly tie a ped with a lasso? I'm not talking about TASK_LASSO_PED, but to make the lasso just appear around a ped's bone.