Cheshire Posted April 1, 2020 Posted April 1, 2020 Spreading out loot upon Entity death  Description: This Patch modifies how loot is dropped from dying Entities (ie Players and NPCs). The server will attempt to find all available tiles around the Entity that is dying and spawn its loot in a random one. If none are found, the default location of under the Entity will be used instead.  NOTE: This uses a modified piece of code from Resources.cs, namely the method SpawnResourceItems.  Update: The latest release now lets you configure the range of tiles this mod will search for for possible loot spawns!  Media:  Git Patch: Download (For 0.6.1.245  Commit 3ff3d7dd5ba0d33d193297a98c36cf6a2f8406b8 onwards)  Older versions*: Download (For 0.6.1.240)  *= May not contain all features listed.  Based On: Version: 0.6.1.245  Setup: Download and apply the patch, then simply build your server and find the nearest punching bag to dispense loot from!  In your server's config.json you can find the following option under CombatOpts to tweak for the drop range: ItemDropRange hiroman, Shenmue, George and 5 others 8
Miharukun Posted April 1, 2020 Posted April 1, 2020 Any option to make the loot go straight into the player bag?Â
Cheshire Posted April 1, 2020 Author Posted April 1, 2020 10 minutes ago, Miharukun said: Any option to make the loot go straight into the player bag?  that would be a whole other request, unrelated to this particular change. Beefy Kasplant 1
Blestro Posted April 4, 2020 Posted April 4, 2020 I am trying to install this patch and Quote error: corrupt patch at line 61 Â
Cheshire Posted April 4, 2020 Author Posted April 4, 2020 3 minutes ago, Blestro said: I am trying to install this patch and  Sorry, how about this fiile?  https://s3.us-east-2.amazonaws.com/ascensiongamedev/filehost/be9fde251e824e8ab39e573ec8267e96.patch
Blestro Posted April 4, 2020 Posted April 4, 2020 2 minutes ago, Joyce said: Sorry, how about this fiile?  https://github.com/Chronos-92/Intersect-Engine/commit/86e9deeeb80342c2a6ae4087410c2d22ffedfa12.patch Perfect... its working.. thanks @Joyce Cheshire 1
Cheshire Posted April 4, 2020 Author Posted April 4, 2020 6 minutes ago, Gibier said: Does the loot can spawn on a blocked tile?  It can't, it tries to find open tiles (ie not blocked and no players/npcs on it) If there are none, it drops under the NPC. Gibier 1
Cheshire Posted April 6, 2020 Author Posted April 6, 2020 Updated this patch for the latest builds and added a configuration option called ItemDropRange to the server config.json for people to tweak the range of tiles to search for around the NPC to drop items on.  https://www.ascensiongamedev.com/resources/filehost/c7e77b729dac06bfc5afac93ce8b5725.patch
Cheshire Posted April 6, 2020 Author Posted April 6, 2020 6 minutes ago, Celtos said: Work in lastest dev build? Â Maybe, maybe not. I develop against the stable branch. Â You're free to try though.
Cheshire Posted April 6, 2020 Author Posted April 6, 2020 2 minutes ago, Hitz said: About last dev build: Â Â II think you're using an old version of this patch. Because Globals.Rand is no longer used in the new version. Â You can go fix that error by replacing Globals.Rand with Randomization though.
Hitz Posted April 6, 2020 Posted April 6, 2020 10 minutes ago, Joyce said: Â II think you're using an old version of this patch. Because Globals.Rand is no longer used in the new version. Â You can go fix that error by replacing Globals.Rand with Randomization though. Â I deleted my old branch and fetch origin/development, last history change was 7 hours ago #100, i'll try again
Cheshire Posted April 6, 2020 Author Posted April 6, 2020 2 minutes ago, Hitz said:  I deleted my old branch and fetch origin/development, last history change was 7 hours ago #100, i'll try again  I urge you to read my post again, an old version of the PATCH.  The new version doesn't even include Globals.Rand anymore: https://diffy.org/diff/yzpcv7zuojhdne1axezv9529
Hitz Posted April 6, 2020 Posted April 6, 2020 Oh, sorry I downloaded the last version but it didn't go to the right directory and I ended up using the old version again! Now i'ts working!
Hitz Posted April 21, 2020 Posted April 21, 2020 Hey, i'm merging some mods and got this... I tried some ways to resolve the conflict but not success! Â Quote Â
Guest Posted April 22, 2020 Posted April 22, 2020 can you help me to add this patch? Quote G:\Celtos Online\Intersect-Engine>git apply --check Spread.patch error: patch failed: Intersect.Server/Entities/Entity.cs:2417 error: Intersect.Server/Entities/Entity.cs: patch does not apply G:\Celtos Online\Intersect-Engine>   http://prntscr.com/s3ov9y  http://prntscr.com/s3ovgn   EDIT: I learned to manually add HAHA NOW NOBODY SAVES ME
Shenmue Posted April 22, 2020 Posted April 22, 2020 1 hour ago, Celtos said: can you help me to add this patch?  http://prntscr.com/s3ov9y  http://prntscr.com/s3ovgn   EDIT: I learned to manually add HAHA NOW NOBODY SAVES ME Soon you will be sharing mods too haha
Tron Posted November 21, 2020 Posted November 21, 2020 For noobies like myself that are using the 6.2 development branch you will want to install this patch with: git apply -3 ./<filename>.patch  Once installed you will have an error in your build but here is how I fixed it:  Explaination: Lines 2697 and 2701 use 'var map' which isn't allowed because it already exists on line 2690. You will have to change the name but make sure to update the corresponding line below. If this is all you do you will have an issue where your loot takes 5 seconds to appear, this is because you need to add the lootOwner variable at the end of line 2697. You should also add it to line 2702 as well (I just got this working so I wanted to share it before I forgot to)  Thanks @Cheshire for helping me with the 5 second spawn issue. HelenaToDev and Shenmue 2
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now