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

[2.5.6] Testing #2

Open
thebgpikester opened this issue Feb 16, 2020 · 0 comments
Open

[2.5.6] Testing #2

thebgpikester opened this issue Feb 16, 2020 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@thebgpikester
Copy link
Owner

env.info("BUG REPORT")
local function checkIsExist(Name)
local static = StaticObject.getByName(Name)
if static:isExist() == false then
env.info("BUG REPORT: "..Name.." does not exist (but getByName() works)")
else
env.info("BUG REPORT: "..Name.." returns true for both getByName() and isExist()")
end
end
env.info("BUG REPORT: trying a techcombine")
checkIsExist('techCombine')--returns true
env.info("BUG REPORT: trying a cargo barrel")
checkIsExist('Barrels')--returns true
env.info("BUG REPORT: trying an animal")
checkIsExist('cow')--returns true
env.info("BUG REPORT: trying a farp")
checkIsExist('farp')--returns true
env.info("BUG REPORT: trying an oilrig")
checkIsExist('oilrig')--returns true

Now returns correctly in 2.5.6

Continuing testing to see if there are more changes and adapt script as required.

@thebgpikester thebgpikester added the question Further information is requested label Feb 16, 2020
@thebgpikester thebgpikester self-assigned this Feb 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant