[Rseding91] why battery not charging?

This subforum contains all the issues which we already resolved.
thekoreanseal
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Dec 13, 2024 11:52 am
Contact:

[Rseding91] why battery not charging?

Post by thekoreanseal »

I am in map editor and having armor with portable fission reactor and personal battery MK 3Image

I sped up to 64x speed and battery charge is 0%
Attachments
스크린샷 2025-02-13 144855.png
스크린샷 2025-02-13 144855.png (404.86 KiB) Viewed 939 times
SirSmuggler
Fast Inserter
Fast Inserter
Posts: 110
Joined: Tue May 24, 2016 1:55 pm
Contact:

Re: why battery not charging?

Post by SirSmuggler »

"I sped up to 64x speed and battery charge is 0%"... for how long?

Any way, my guess would be that it takes quit a while to charge all the discharge defenses (if that's what it is?) and shields, and they would be charged to full before the batterys starrt to receive any charge.
Muche
Filter Inserter
Filter Inserter
Posts: 890
Joined: Fri Jun 02, 2017 6:20 pm
Contact:

Re: why battery not charging?

Post by Muche »

That was my guess as well.
However I went to try to find out the number of defenses & shields it can support and that number is undefined.
126814-EditorModePersonalBattery.jpg
126814-EditorModePersonalBattery.jpg (76.32 KiB) Viewed 907 times
There seems to be no grid electricity in the editor mode at all.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14982
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: why battery not charging?

Post by Rseding91 »

You need to unpause the game in the editor for the grid to update and produce energy.
If you want to get ahold of me I'm almost always on Discord.
Muche
Filter Inserter
Filter Inserter
Posts: 890
Joined: Fri Jun 02, 2017 6:20 pm
Contact:

Re: why battery not charging?

Post by Muche »

Rseding91 wrote: Thu Feb 13, 2025 7:21 am You need to unpause the game in the editor for the grid to update and produce energy.
I do have it unpaused.
Unless there are two ways to facilitate pausing and the way I am doing it (which allows game.tick to advance) is not enough.

Code: Select all

1562.763 Script log("tick=" .. game.tick .. ", batteries=" .. g.available_in_batteries):1: tick=1723251, batteries=0
1563.684 Script log("tick=" .. game.tick .. ", batteries=" .. g.available_in_batteries):1: tick=1726493, batteries=0
Rseding91
Factorio Staff
Factorio Staff
Posts: 14982
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: why battery not charging?

Post by Rseding91 »

In your first screenshot it shows the map editor having time paused.
If you want to get ahold of me I'm almost always on Discord.
vark111
Inserter
Inserter
Posts: 28
Joined: Fri Nov 10, 2023 4:04 pm
Contact:

Re: why battery not charging?

Post by vark111 »

Muche wrote: Thu Feb 13, 2025 1:23 pm I do have it unpaused.
Your screen shot says it's paused. The speed section in the Lab controls says "x64 (paused)"

You have to push the play button that's just below that label to unpause it.
Muche
Filter Inserter
Filter Inserter
Posts: 890
Joined: Fri Jun 02, 2017 6:20 pm
Contact:

Re: why battery not charging?

Post by Muche »

vark111 wrote: Thu Feb 13, 2025 1:55 pm
Muche wrote: Thu Feb 13, 2025 1:23 pm I do have it unpaused.
Your screen shot says it's paused. The speed section in the Lab controls says "x64 (paused)"

You have to push the play button that's just below that label to unpause it.
I am aware OP's screenshot indicates paused time. That's why I tested it myself.

Here is the result in editor mode, unpaused time:

Code: Select all

 175.434 Script log("tick=" .. game.tick .. ", batteries=" .. g.available_in_batteries):1: tick=1762634, batteries=0
 178.777 Script log("tick=" .. game.tick .. ", batteries=" .. g.available_in_batteries):1: tick=1776881, batteries=0
Editor mode, paused time:

Code: Select all

 234.772 Script log("tick=" .. game.tick .. ", batteries=" .. g.available_in_batteries):1: tick=1786335, batteries=0
 239.909 Script log("tick=" .. game.tick .. ", batteries=" .. g.available_in_batteries):1: tick=1786335, batteries=0
Player mode:

Code: Select all

 270.598 Script log("tick=" .. game.tick .. ", batteries=" .. g.available_in_batteries):1: tick=1786561, batteries=102543734.21701
 273.087 Script log("tick=" .. game.tick .. ", batteries=" .. g.available_in_batteries):1: tick=1786710, batteries=170150001.46628
Rseding91
Factorio Staff
Factorio Staff
Posts: 14982
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding91] why battery not charging?

Post by Rseding91 »

I see now, it was broken. It's now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”