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

Error with loading population #1

Open
squope opened this issue Jan 17, 2020 · 1 comment
Open

Error with loading population #1

squope opened this issue Jan 17, 2020 · 1 comment

Comments

@squope
Copy link

squope commented Jan 17, 2020

GA: Loading pupulation from file
Error data/script/evolve/evolib.lua:263: attempt to concatenate local 'res' (a nil value)
What does it mean? And how to fix it?

@windo
Copy link
Owner

windo commented May 31, 2020

O ho, I haven't looked at this code in 10 years :)

Looks like it's failing to load a the population from a file:

https://github.com/windo/toribash-evolver/blob/master/src/evolve/evolib.lua#L263

I think you might need to set loadPrev to false on the first run here:

c.loadPrev = true -- continue evolving the previously saved population

Then it wouldn't try to load the population that I guess does not exist on the first run. Instead it will generate a random population and then hopefully start evolving it. But then again, is it even reasonable to expect this to work after all these years? Surely toribash will have changed?

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

No branches or pull requests

2 participants