Bob.jar ignoring custom settings via --settings flag (#4226)(SOLVED)

Hello! I’m trying to override custom variables in game.project file during build phase
Simple project

main.script:

function init(self)
	print(sys.get_config("custom_section.variable"))
end

game.project:

[bootstrap]
main_collection = /main/main.collectionc

[script]
shared_state = 1

[display]
width = 960
height = 640

[android]
input_method = HiddenInputField

[project]
title = settings_override


[custom_section]
variable = hello

file.ini:

[custom_section]
variable = hello world

bob cmd:

java -jar ../bob157.jar --version
bob.jar version: 1.2.157  sha1: d7042d5368c338ed5d66b6dff9c60a20924385ac  built: 2019-06-25 13:37:04
java -jar ../bob157.jar --settings file.ini --platform x86_64-linux --archive --variant debug resolve distclean build bundle

output from executable:

...
DEBUG:SCRIPT: hello
...

expected behavior:

...
DEBUG:SCRIPT: hello world
...
5 Likes

Yes, this seems odd. Added issue #4226 for this.

2 Likes

Solved in 1.2.158 Defold 1.2.158 has been released

2 Likes

Awesome! Thanks!

2 Likes