Ogre Harvest

zarobhr

Well-Known Member
I am using ogre harvest and it works great, how ever i do notice that the session counts on all harvested materials is doubled, i would like to fix it
can you tell me where (what file) to look in that determines when to update the counters

thanks
 

Kannkor

Ogre
I am using ogre harvest and it works great, how ever i do notice that the session counts on all harvested materials is doubled, i would like to fix it
can you tell me where (what file) to look in that determines when to update the counters

thanks
There isn't an easy fix to it. One of the events is getting doubled and no one has spent the time to track down how/why exactly it happens. It seems to be a little complicated, because when using a clean script (no code), can't reproduce it. It didn't used to happen, then it did, and no one knows what changed (maybe isxeq2). In the end, until someone spends the time to debug it it won't be fixed.

I believe it's the OgreHarvestMain file that does the counting, so you could just half everything it loots.
 

zarobhr

Well-Known Member
ok i did figure out that it does appear to fire the trigger 2 times thus doing the HarvestedItem function twice.

what i did to fix was modify EQ2OgreHarvestMain.iss

added

variable bool EQ2OgreHarvestSkip=FALSE

to the list of varibles at top of file

then added at top of the function HarvestedItem

if ${EQ2OgreHarvestSkip} == FALSE
{
EQ2OgreHarvestSkip:Set[TRUE]
above this line
if ${Resources}<=0

and
at bottom of the function HarvestedItem

}
else
EQ2OgreHarvestSkip:Set[FALSE]

just above
;HarvestedItem "You @TYPE@ @NUMBER@ [@RAW@] from the @RESOURCENAME@."

so what will happen on the first harvest it will execute the function and on the second false trigger will skip everything
 

Kannkor

Ogre
Thanks for the workaround. I'm interested to find out what is causing it and get that fixed (be in ogreharvest or isxeq2). Admittly, it's just so low priority that it doesn't make my list of things to do anytime soon.
 

zarobhr

Well-Known Member
Thanks for the workaround. I'm interested to find out what is causing it and get that fixed (be in ogreharvest or isxeq2). Admittly, it's just so low priority that it doesn't make my list of things to do anytime soon.
work around is fine for me
 
Top Bottom