Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Massive rework for .18 #16

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open

Massive rework for .18 #16

wants to merge 43 commits into from

Conversation

TimVroom
Copy link

Reworked to be up to coding standards for 0.18 / 1.0
Currently incorrect/now working: train schedules/trips.

Added a lot of stats to the exporting (force/robots etc)
Added power for exporting
Added mod/game info to the export.

TimVroom added 29 commits July 29, 2020 22:22
- More localized vars
- Proper export of values such as research queue
- Removed some unneeded events in loading
Disabled train tracking for now (instable)
Added polution tracking
Added total charging bots for every cell in a network
Updated readme.
Added example env.grafana
Make sure some gauges are reset when needed
Removed some unuseable prometheus stuff
@SnO2WMaN
Copy link

@TimVroom Your rework version works very well (at least in my env). However this original mod owners seems not to be active on GitHub for a long time, so I think this pull request may not to be merged. Do you have a thought to release your reworked version as like graftorio2?

P.S. I found some typo in README.md and mod output data.

Updated so it allows for row titles to include icons

added # option to keep - instead of replacing with _
@attrib
Copy link

attrib commented Aug 23, 2020

Also tested it quickly and all seems to work with 1.0. But I do not want to enable the whole time, as this would need all users to download it manually. So can't test it currently with multiple players online at the moment.

Make sure the export function isn't to big and causes lag spikes.
Chunked the collectors up and do it in a few ticks instead of 1.

Disabled the logistics collecting again (too intensive for big networks)
Updated tick delay and made server only save possible

See merge request thevirtualcrewprojects/graftorio!1
@wbourne0
Copy link

wbourne0 commented Sep 16, 2020

The mod does seem to work with v1.0 but we're getting this issue occasionally when saving the map:

2427.751 Error ParallelScenarioSaver.cpp:114: Saving scenario failed: The mod graftorio (1.0.25) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event graftorio::on_save()
LuaCustomTable cannot be serialized.
2427.761 Error Util.cpp:83: Attempting to create notice box in headless mode. Message: 'Cannot save map: The mod graftorio (1.0.25) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event graftorio::on_save()
LuaCustomTable cannot be serialized.'

@wbourne0
Copy link

wbourne0 commented Dec 2, 2020

@TimVroom do these fix the issue that I pointed out?

@TimVroom
Copy link
Author

TimVroom commented Dec 3, 2020

Also tested it quickly and all seems to work with 1.0. But I do not want to enable the whole time, as this would need all users to download it manually. So can't test it currently with multiple players online at the moment.

Yes it seems to work okay ish on 1.0. There is currently a setting that is enabled by default to only save on the server, so that saves a little bit of ups for the users.

@TimVroom do these fix the issue that I pointed out?

It should be yes, be aware that it might be a bit slower on bigger bases.

@jlucktay
Copy link

I recommend taking a look at the new graftorio2 fork here and recreating/adapting this PR as necessary. 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants