|
Post by lifevirus on Dec 26, 2014 19:14:25 GMT
I'm having a issue with using two Unity Assets that use pools and them not really meshing well together due to both using different names for pools. I've been wracking my brain to see if it's possible to merge them together but I'm not a programmer and I can't seem to find anything that really works well.
The best I get is when UniBulletHell launches the first bullet it works fine. Hits a enemy and then dies as if it was using the PoolBoss right. The problem is that when the bullet is reused, it stays at zero health and just passes through all enemies and deals damage according which is what I don't want since it's still pulling from the UniBulletHell pool and not the PoolBoss. I can't seem to find any way to trick Unity into naming the prefabs properly. UBH just adds (Clone) to the end and I've edited that in CGK but it's not really responding as I would like. So i'm at a impasse with getting them to work and I hoping anyone can help me.
I have no idea what to do at this point.....
|
|
|
Post by DarkTonic Dev on Dec 26, 2014 21:03:05 GMT
We don't use that plugin so I can only offer clues as to what to do.
You'll need to make sure that all code that uses pools only uses Pool Boss and not the pool in UniBulletHell. Otherwise it will be a nightmare and near impossible to fix. So find the code that does the following and modify them to use Pool Boss instead:
1) Spawn something from UniBulletHell pool. 2) Despawn something back into UniBulletHell pool.
And don't change anything in Pool Boss. If you do it this way you won't have to worry about the naming part.
|
|
|
Post by lifevirus on Dec 27, 2014 4:26:33 GMT
That's a good start but if you can tell me what aspects of the Pool Boss scripts actual call to the pool? I can get some aspects of it from the comments but it's still more or less greek to me. I'm trying to parse the code and paste it into UniBulletHell and see what happens and I can't find the exact code or functions I need to do this right.
Thanks again for the help!
|
|
|
Post by DarkTonic Dev on Dec 27, 2014 4:33:00 GMT
That's a good start but if you can tell me what aspects of the Pool Boss scripts actual call to the pool? I can get some aspects of it from the comments but it's still more or less greek to me. I'm trying to parse the code and paste it into UniBulletHell and see what happens and I can't find the exact code or functions I need to do this right. Thanks again for the help! The only methods that you need to be concerned with are: 1) PoolBoss.Despawn 2) PoolBoss.Spawn (a couple variants) So if you replace whatever is using UniBulletHell's equivalent pool for with those 2 lines, you should be good.
|
|
|
Post by lifevirus on Dec 29, 2014 1:25:19 GMT
Ok. So after trying some thing and failing miserably and having my lead programmer try some things, we got nothing. I was hoping I could send you the code for the UniBulletHell pooling (without the examples) and see if you could give us some help. Or something of that matter, cause it seems like the UniBulletHell code is referencing multiple scripts within it. I can tell it's within two scripts but any assistance you could give us would be amazing since I think if both would work together it would make both even more amazing.
Let me know if that's even remotely possible and I'll pay you if I have to.
|
|
|
Post by DarkTonic Dev on Dec 29, 2014 2:32:19 GMT
It's not a very popular plugin (only 3 reviews) even though it's really cool, so that means this request would go to the bottom of our feature roadmap unfortunately.
If we're talking "paid support" then we can probably take a look fairly soon. Let's not discuss any payment terms on this forum though. Please email support@darktonic.com to continue the discussion if you desire.
Or you might choose to contact the author of Uni Bullet Hell and ask for his technical support about his code as well. Maybe he can shed a better light on how it works and where you'd need to change the code?
|
|
|
Post by lifevirus on Dec 29, 2014 3:20:47 GMT
I've contacted the author of UniBulletHell and am still waiting a response at this point. Hopefully I get something soon and then I'll contact you at some point. I wouldn't mind waiting if I could figure out another way (and I have some ideas with UBH but it's a patch at best) but I'll get back to you on that if necessary. Thanks for being so helpful at this point. I'll make a note for UBH in the feature roadmap cause it would be REALLY nice to see those two linked at some point.
|
|
|
Post by DarkTonic Dev on Dec 29, 2014 3:53:57 GMT
Ok, thanks. Added to roadmap but it's in last place right now.
|
|
|
Post by lifevirus on Dec 30, 2014 6:08:12 GMT
Well. I got the response but it's basically this:
"To replace the object pooling system, please rewrite the "GetGameObject" method and the "ReleaseGameObject" method of "UbhObjectPool.cs"." (He doesn't have GameCore+ either)
So, assuming it's a method and not just a simple swap. I'm basically back to square one where I have no idea what i'm doing since it's more than just 2 lines of code. He seems to have two separate "GetGameObject" methods (if i'm reading the code right) and if I edit anything to use PoolBoss it ends up saying "Can't convert from object to transform" error. Or something similar to that since he's using GameObject in a list rather than a string.
My brain hurts either way I look at it. I can post the code if you'd like assuming you have time to do a quick look.
|
|
|
Post by DarkTonic Dev on Dec 30, 2014 6:13:27 GMT
We can send the guy a free copy of Core GameKit if that helps? Let him know. There's now vouchers on the Asset Store. You're not allowed to post non-free code anywhere. Ask the author if he would trade copies of plugins with us 
|
|
|
Post by lifevirus on Jan 1, 2015 15:41:10 GMT
I got a response from the UBH developer and he's fine with the voucher. I just need the confirm about the trade (I got excited and forgot to mention that like a moron....)
So at this point, is there any specific e-mail you'd like me to use to add you to the conservation e-mail i'm having with him? He's a bit slow at responding but he'll get to me in a few days but he is game for the idea as well if he gets the voucher.
Just let me know what you'd like to do at this point.
|
|
|
Post by DarkTonic Dev on Jan 1, 2015 21:03:20 GMT
Email me at brianh@darktonic.com and I'll send you the voucher #. It can only be used once so I don't want to put it in this thread. Let's send him CGK and let him integrate them. If he has any questions, he can contact me. He can also send me a voucher for his plugin at that email address.
|
|