code-google-com / spacebuildmodelpack

Automatically exported from code.google.com/p/spacebuildmodelpack
0 stars 0 forks source link

tiney cache can not store resources #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. in Gmod, Spacebuild2 gamemode with LS2, RD2, and the 
SpaceBuildModelPackAlpha2 installed, spawn a solar panel and a tiney cache
2. connect them with the RD2 link tool
3. observe that the tiney cache does not accumulate any energy
4. connect another storage ent and notice that the tiney cache can report 
the amount of resources on the net as well as act as a link junction, 
while still not affecting the total amount of resource storage capacity

What should happen? What actually happens?
the "tiney cache" SBMP resource storage entity should be able to store ~ 
3000 energy. it can not store any, however it does show the amount of 
resources contained in any other caches or storage attached to it 

What version are you using (if SVN give revision number)?
not using .svn, downloaded from garrysmod.org

Please provide any additional informaion.
the file that is causing the problem can be found here: 
spacebuildmodelpackalpha2\lua\weapons\gmod_tool\stools\ls_liv_mod.lua
one solution i have found is to change line #41
from:
        hash.size = math.Round(ent:BoundingRadius()/32)
to:
        hash.size = math.Round(ent:BoundingRadius()/24)
or even:
        hash.size = math.Round(ent:BoundingRadius()/16)

one minor drawback (or benefit) to these solutions is that they affect the 
storage capacity of ALL the resource storage entities, not just the tiney 
cache.

I believe that the problem is in how ent:BoundingRadius() is being scaled 
to calculate hash.size, which is then further scaled to determine the 
storage capacity of the ent, and then the math.Round() function rounds off 
the total capacity of it to 0 for all 3 resources

Original issue reported on code.google.com by sci...@aol.com on 26 Dec 2007 at 7:53

GoogleCodeExporter commented 9 years ago
nevermind, im dumb, i now see that there is a new update out

Original comment by sci...@aol.com on 26 Dec 2007 at 8:02

GoogleCodeExporter commented 9 years ago
Issue reproduced and summarily resolved in next update; therefore, a non-issue.

Therefore:  WontFix.

Original comment by Firgof.U...@gmail.com on 23 Feb 2008 at 4:03