AUNIS icon indicating copy to clipboard operation
AUNIS copied to clipboard

Power not drawn until gate is closed (investigate)

Open Manglefan opened this issue 3 years ago • 9 comments

in the latest beta when i dialed the gate the power drains the longer its open but in the latest alpha when i dial the gate the power doesnt drain or it doesnt lose power till the gate is shut down

Manglefan avatar Apr 06 '21 21:04 Manglefan

It seems that this commit from @slava110 has broken power draw. After some investigation I found out that extractEnergy in StargateAbstractEnergyStorage doesn't work because energy property in this class is always 0.

@MrJake222

xnerhu avatar May 16 '21 15:05 xnerhu

Also I think it has something with amount of naquadah in DHD. If it's around 0-700 then power draw is 0.

xnerhu avatar May 16 '21 16:05 xnerhu

ive tried with a full DHD and it doesnt work what do i set the StargateAbstractEnergyStorage to

Manglefan avatar May 16 '21 16:05 Manglefan

@slava110

MrJake222 avatar May 17 '21 07:05 MrJake222

After some investigation I found out that extractEnergy in StargateAbstractEnergyStorage doesn't work because energy property in this class is always 0.

StargateAbstractEnergyStorage wasn't modified in this commit And energy shouldn't be always 0 if deserialization and serialization works properly Checked code and it might be the problem https://github.com/sentialx/AUNIS/blob/7029efdcb88b49583520a0b49e76553ee8996fa6/src/main/java/mrjake/aunis/stargate/power/StargateItemEnergyStorage.java#L26

slava110 avatar May 17 '21 07:05 slava110

Why y'all posting links to the sentialx repo?

MrJake222 avatar May 17 '21 08:05 MrJake222

Why y'all posting links to the sentialx repo?

He sent link to my commit so it's easier for me to click on this link to find the problem

slava110 avatar May 17 '21 08:05 slava110

Why y'all posting links to the sentialx repo?

Yeah, sorry xd. I'm working with Sentialx to fix and add some stuff.

xnerhu avatar May 17 '21 09:05 xnerhu

So this'll be fixed and how do I add it to my version

Manglefan avatar May 17 '21 11:05 Manglefan