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 msg that i don't understand #1450

Closed
Tigertye opened this Issue Aug 31, 2018 · 17 comments

Comments

Projects
None yet
5 participants
@Tigertye

Tigertye commented Aug 31, 2018

Describe the issue

deprecated variable definition in the level file.'%LevelFile' has been renamed to '%MapFile

what does this mean and why do so many maps in the map pack have this msg? I've only played one of them so far and all was going just fine until the end of the year when it suddenly claimed i lost due to a drop below 200 in rep. my rep at the time was 568. it's the only error msg i have gotten yet.

thanks,
Tigertye

@TheCycoONE

This comment has been minimized.

Show comment
Hide comment
@TheCycoONE

TheCycoONE Sep 4, 2018

Member

The warning doesn't relate to you losing. It means that the levels were never updated to our new format from several versions ago. It is harmless.

Member

TheCycoONE commented Sep 4, 2018

The warning doesn't relate to you losing. It means that the levels were never updated to our new format from several versions ago. It is harmless.

@Tigertye

This comment has been minimized.

Show comment
Hide comment
@Tigertye

Tigertye Sep 5, 2018

interesting. So it should play properly then? hmmm Now I just have to figure out why the sudden and unexplained drop in rep. Thanks :)

Tigertye commented Sep 5, 2018

interesting. So it should play properly then? hmmm Now I just have to figure out why the sudden and unexplained drop in rep. Thanks :)

@MarkL1961

This comment has been minimized.

Show comment
Hide comment
@MarkL1961

MarkL1961 Sep 6, 2018

Contributor

Where elements of a map file are missing the defaults take over so look in base_config.lua to see what the default is.

Contributor

MarkL1961 commented Sep 6, 2018

Where elements of a map file are missing the defaults take over so look in base_config.lua to see what the default is.

@TheCycoONE

This comment has been minimized.

Show comment
Hide comment
@TheCycoONE

TheCycoONE Sep 7, 2018

Member

So far there is nothing for us to go on in this ticket. Can you reproduce the loss with one of your saves you could attach?

Member

TheCycoONE commented Sep 7, 2018

So far there is nothing for us to go on in this ticket. Can you reproduce the loss with one of your saves you could attach?

@Tigertye

This comment has been minimized.

Show comment
Hide comment
@Tigertye

Tigertye Sep 8, 2018

As for what you suggested MarkL, I have never looked at any of the files so I have no idea what the default is. Will it be easy to find in there?

Tigertye commented Sep 8, 2018

As for what you suggested MarkL, I have never looked at any of the files so I have no idea what the default is. Will it be easy to find in there?

@Tigertye

This comment has been minimized.

Show comment
Hide comment
@Tigertye

Tigertye Sep 8, 2018

TheCycoOne, I probably can I will see which file it is that does this. How do I get the save file to you? can I attch it here or do I need to upload it somewhere then provide the link?

Tigertye commented Sep 8, 2018

TheCycoOne, I probably can I will see which file it is that does this. How do I get the save file to you? can I attch it here or do I need to upload it somewhere then provide the link?

@TheCycoONE

This comment has been minimized.

Show comment
Hide comment
@TheCycoONE

TheCycoONE Sep 8, 2018

Member

@Tigertye you will need to upload it somewhere. Dropbox or similar.

Member

TheCycoONE commented Sep 8, 2018

@Tigertye you will need to upload it somewhere. Dropbox or similar.

@Tigertye

This comment has been minimized.

Show comment
Hide comment
@Tigertye

Tigertye Sep 9, 2018

@TheCycoONE dropbox. ok this is confusing. not a fan of this site. I have no desire to install their software on my puter. the file is only 530k. can I email it to you instead?

Tigertye commented Sep 9, 2018

@TheCycoONE dropbox. ok this is confusing. not a fan of this site. I have no desire to install their software on my puter. the file is only 530k. can I email it to you instead?

@wolfy1339

This comment has been minimized.

Show comment
Hide comment
@wolfy1339

wolfy1339 Sep 10, 2018

Contributor

You don't have to install their software.
In fact, if you create a zip file with the requested file inside, you can upload it directly to GitHub, and attach it to this issue.
https://help.github.com/articles/file-attachments-on-issues-and-pull-requests/

Contributor

wolfy1339 commented Sep 10, 2018

You don't have to install their software.
In fact, if you create a zip file with the requested file inside, you can upload it directly to GitHub, and attach it to this issue.
https://help.github.com/articles/file-attachments-on-issues-and-pull-requests/

@Tigertye

This comment has been minimized.

Show comment
Hide comment
@Tigertye

Tigertye Sep 11, 2018

1A Abscence Central.sav.zip
well that sounds easy enough. let's see if I did that right. It's my first time zipping a file in linux.
Thank you wolfy :)

Tigertye commented Sep 11, 2018

1A Abscence Central.sav.zip
well that sounds easy enough. let's see if I did that right. It's my first time zipping a file in linux.
Thank you wolfy :)

@Tigertye

This comment has been minimized.

Show comment
Hide comment
@Tigertye

Tigertye Sep 20, 2018

@TheCycoONE is that not the file you wanted?

Tigertye commented Sep 20, 2018

@TheCycoONE is that not the file you wanted?

@TheCycoONE

This comment has been minimized.

Show comment
Hide comment
@TheCycoONE

TheCycoONE Sep 20, 2018

Member

I haven't checked yet. I or another developer will update the ticket either way when we do.

Member

TheCycoONE commented Sep 20, 2018

I haven't checked yet. I or another developer will update the ticket either way when we do.

@Tigertye

This comment has been minimized.

Show comment
Hide comment
@Tigertye

Tigertye Sep 20, 2018

cool. thanks

Tigertye commented Sep 20, 2018

cool. thanks

@mugmuggy

This comment has been minimized.

Show comment
Hide comment
@mugmuggy

mugmuggy Sep 21, 2018

Contributor

Appears the level file is incorrect, it is configured to lose if reputation is above 200.
goal.max_min_lose == 1, therefore 569 - 200 * 1 > 0, needs to be set to 0 to lose when rep falls below 200.

for _, goal in ipairs(self.goals) do
local current_value = hospital[goal.name]
-- If max_min is 1 the value must be > than the goal condition.
-- If 0 it must be < than the goal condition.
if goal.lose_value then
local max_min = goal.max_min_lose == 1 and 1 or -1
-- Is this a minimum/maximum that has been passed?
-- This is actually not entirely correct. A lose condition
-- for balance at -1000 will make you lose if you have exactly
-- -1000 too, but how often does that happen? Probably not more often
-- than having exactly e.g. 200 in reputation,
-- which is handled correctly.
if (current_value - goal.lose_value) * max_min > 0 then
result.state = "lose"
result.reason = goal.name
result.limit = goal.lose_value

Contributor

mugmuggy commented Sep 21, 2018

Appears the level file is incorrect, it is configured to lose if reputation is above 200.
goal.max_min_lose == 1, therefore 569 - 200 * 1 > 0, needs to be set to 0 to lose when rep falls below 200.

for _, goal in ipairs(self.goals) do
local current_value = hospital[goal.name]
-- If max_min is 1 the value must be > than the goal condition.
-- If 0 it must be < than the goal condition.
if goal.lose_value then
local max_min = goal.max_min_lose == 1 and 1 or -1
-- Is this a minimum/maximum that has been passed?
-- This is actually not entirely correct. A lose condition
-- for balance at -1000 will make you lose if you have exactly
-- -1000 too, but how often does that happen? Probably not more often
-- than having exactly e.g. 200 in reputation,
-- which is handled correctly.
if (current_value - goal.lose_value) * max_min > 0 then
result.state = "lose"
result.reason = goal.name
result.limit = goal.lose_value

@TheCycoONE

This comment has been minimized.

Show comment
Hide comment
@TheCycoONE

TheCycoONE Sep 21, 2018

Member

Thanks @mugmuggy

Was it one of our maps, or one from the internet?

Member

TheCycoONE commented Sep 21, 2018

Thanks @mugmuggy

Was it one of our maps, or one from the internet?

@mugmuggy

This comment has been minimized.

Show comment
Hide comment
@mugmuggy

mugmuggy Sep 21, 2018

Contributor

interwebs

Contributor

mugmuggy commented Sep 21, 2018

interwebs

@TheCycoONE TheCycoONE closed this Sep 21, 2018

@TheCycoONE

This comment has been minimized.

Show comment
Hide comment
@TheCycoONE

TheCycoONE Sep 21, 2018

Member

Thanks mugmuggy. Closing as this is a 3rd party map issue

Member

TheCycoONE commented Sep 21, 2018

Thanks mugmuggy. Closing as this is a 3rd party map issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment