add tag on map dissapear
add tag on map dissapear
adding tags then they stay alive for a while
but after a long time they dissapear
probably due to save dysync?
maybe after many hours of the game being on getting desync? (50+ hours online)
not sure
kinda hard to reproduce will look into it more
but after a long time they dissapear
probably due to save dysync?
maybe after many hours of the game being on getting desync? (50+ hours online)
not sure
kinda hard to reproduce will look into it more
Re: add tag on map dissapear
are you actually getting desynced?
Re: add tag on map dissapear
bump
this is really annoying
today i discovered all tags gone from the map
again
wtf is triggering deletion of these things
any1 else getting this?
this is really annoying
today i discovered all tags gone from the map
again
wtf is triggering deletion of these things
any1 else getting this?
Re: add tag on map dissapear
Are you playing with mods? Or is it a public multiplayer game?
If you want to get ahold of me I'm almost always on Discord.
Re: add tag on map dissapear
no mods
no multiplayer
sorry for the late answer need to find enable notifications in email
do tags are saved in a different file like blueprints? maybe i moved the save into a different computer or something
no multiplayer
sorry for the late answer need to find enable notifications in email
do tags are saved in a different file like blueprints? maybe i moved the save into a different computer or something
Re: add tag on map dissapear
They aren't. Are you using any lua commands?
If you want to get ahold of me I'm almost always on Discord.
Re: add tag on map dissapear
Hmmmmmmm
Maybe thats it. I was using commands to remove pollution and shrink the map. Will do some tests tomorrow
Maybe thats it. I was using commands to remove pollution and shrink the map. Will do some tests tomorrow
Re: add tag on map dissapear
Re: add tag on map dissapear
Tags are on the chart per-chunk so if the chunk is deleted the chart for that chunk is also removed and subsequently the tags on that chunk. If you're deleting the chart that will also also delete the tags on the chart.
It all depends what command you are using. It's entirely likely the command is doing more than it needs to and that's why you are having issues. Can you post the command you're using here?
If you want to get ahold of me I'm almost always on Discord.
Re: add tag on map dissapear
Rseding91 wrote: ↑Tue Mar 08, 2022 4:13 pmTags are on the chart per-chunk so if the chunk is deleted the chart for that chunk is also removed and subsequently the tags on that chunk. If you're deleting the chart that will also also delete the tags on the chart.
It all depends what command you are using. It's entirely likely the command is doing more than it needs to and that's why you are having issues. Can you post the command you're using here?
I am pretty sure i used the “hide all map command” not the “destroy all hidden chinks” command
Let me find it
####%%%#############
/c local surface = game.player.surface
local force = game.player.force
for chunk in surface.get_chunks() do
force.unchart_chunk({x = chunk.x, y = chunk.y}, surface)
end
##############
So i am using this to hide everything
This hides tags as well. And when the map is revealed after sone hours tags are gone.
Then after 1-2 hours i am using this
#####%%%%%%#######
/c local surface = game.player.surface
local force = game.player.force
for chunk in surface.get_chunks() do
if not force.is_chunk_charted(surface, chunk) then
surface.delete_chunk(chunk)
end
end
#############
So i can remove the extra uselsss map so i can shrink my save from 200mb to 100
I understand that the 2nd command deletes everything so probably deletes the properties of the chunks and the tags accociated with.
But the first command shouldnt trigger such violent aggressive behaviour since its not really that violent command. I mean u just hide the whole map. Nothing really changes below the fog.
Re: add tag on map dissapear
This deletes the entire chart and all tags on the chart. It does not "hide" anything: it just deletes them all.napouser wrote: ↑Tue Mar 08, 2022 4:35 pmI am pretty sure i used the “hide all map command” not the “destroy all hidden chinks” command
####%%%#############
/c local surface = game.player.surface
local force = game.player.force
for chunk in surface.get_chunks() do
force.unchart_chunk({x = chunk.x, y = chunk.y}, surface)
end
##############
If you want to get ahold of me I'm almost always on Discord.
Re: add tag on map dissapear
Rseding91 wrote: ↑Tue Mar 08, 2022 5:15 pmThis deletes the entire chart and all tags on the chart. It does not "hide" anything: it just deletes them all.napouser wrote: ↑Tue Mar 08, 2022 4:35 pmI am pretty sure i used the “hide all map command” not the “destroy all hidden chinks” command
####%%%#############
/c local surface = game.player.surface
local force = game.player.force
for chunk in surface.get_chunks() do
force.unchart_chunk({x = chunk.x, y = chunk.y}, surface)
end
##############
Whats the difference between deleting charts and deleting chunks?
Re: add tag on map dissapear
Deleting a chunk deletes the tiles and entities on that chunk + the chart. Deleting the chart deletes the image you see on the map and all tags that are on that section of the image.
If you want to get ahold of me I'm almost always on Discord.
Re: add tag on map dissapear
Would be nice if the behavior was documented. https://lua-api.factorio.com/latest/Lua ... hart_chunk doesn't explain what it does at all, and the term "unchart" isn't defined there.
The function add_chart_tag(surface, tag) is defined though and does provide the necessary info:
But if someone not familiar with all of the API tries to look up the functions used in a command they read, it would be nice if the documentation linked to an explanation of what charting means. I could find it, but I already knew that tags were saved with the charted chunks themselves. I'm not sure how I would find that out from the docs except just reading all of it.Adds a custom chart tag to the given surface and returns the new tag or nil if the given position isn't valid for a chart tag.
Note:
The chunk must be charted for a tag to be valid at that location.