Code: Select all
do local tf = game.player.gui.add.left.add{type = "textfield"} tf.text = "text" tf.style.font_color = {r = 1} end
Thanks,
Gerhard
PS: Thanks for fixing the underground belt bugs.
crashlog
Code: Select all
0.000 2015-11-26 10:01:52; Factorio 0.12.19 (Build 17459, linux64)
0.146 Operating system: Linux (Debian stable-updates)
0.146 Program arguments: "./bin/x64/factorio"
0.146 Read data path: /home/gheift/.local/opt/factorio.bug4/data
0.146 Write data path: /home/gheift/.local/opt/factorio.bug4
0.146 Binaries path: /home/gheift/.local/opt/factorio.bug4/bin
0.198 Available display adapters: 1
0.198 [0]: resolution 1920x1200px at [0,0]
0.198 Create display on adapter 0. Size 1280x720 at position [310, 222]. Monitor 0
0.219 Initialised OpenGL:[0] Mesa DRI Intel(R) Ivybridge Desktop ; driver: 3.0 Mesa 11.0.5
0.247 Graphics options: [FullScreen: false] [VSync: true] [UIScale: 100%] [MultiSampling: OFF] [Graphics quality: normal] [Video memory usage: all] [Light scale: 20%] [Screen: 0]
0.271 Loading mod core 0.0.0 (data.lua)
0.273 Loading mod base 0.12.19 (data.lua)
0.311 Loading mod textfield_fontcolor 0.0.1 (data.lua)
6.947 Initial atlas bitmap size is 8192
6.959 Created atlas bitmap 8192x8184
6.959 Created atlas bitmap 8192x7213
12.969 Factorio initialised
21.700 Info Scenario.cpp:123: Map version 0.12.19-0
27.303 Warning Logger.cpp:316: Symbols.size() == 38, usedSize == 27
Factorio crashed. Generating symbolized stacktrace, please wait ...
27.847 Warning Logger.cpp:316: Symbols.size() == 37, usedSize == 26
#0 0x7f0e2ab50180 in ?? at ??:0
#1 0x7f0e2ab65e2c in ?? at ??:0
#2 0x7f0e2ac10ef5 in ?? at ??:0
#3 0x446ced in vssprintf(char const*, __va_list_tag*) at /tmp/factorio-H0YmBR/src/Util/StringUtil.cpp:35
#4 0x446dae in ssprintf(char const*, ...) at /tmp/factorio-H0YmBR/src/Util/StringUtil.cpp:18
#5 0x871567 in RecoverableException::RecoverableException(std::string const&) at /tmp/factorio-H0YmBR/src/Util/Exceptions.hpp:12
#6 0x599fef in ScriptException::ScriptException(std::string const&) at /tmp/factorio-H0YmBR/src/Util/Exceptions.hpp:19
#7 0x445e7f in luaWriteFontColor at /tmp/factorio-H0YmBR/src/Script/LuaStyle.cpp:303
#8 0xaa0ece in LuaStyle::luaNewIndex(lua_State*) at /tmp/factorio-H0YmBR/src/Script/LuaBinder.hpp:208
#9 0xaa1300 in luaNewIndex at /tmp/factorio-H0YmBR/src/Script/LuaStyle.cpp:156
#10 0xa9f69b in LuaBinder<LuaStyle>::callWrapper(lua_State*) at /tmp/factorio-H0YmBR/src/Script/LuaBinder.hpp:307
#11 0xaa12de in luaD_precall(lua_State*, lua_TValue*, int) at crtstuff.c:?
#12 0xaa1e2d in luaD_call(lua_State*, lua_TValue*, int, int) at crtstuff.c:?
#13 0xa8cf58 in luaV_execute(lua_State*) at crtstuff.c:?
#14 0x49cd4a in luaD_call(lua_State*, lua_TValue*, int, int) at crtstuff.c:?
#15 0x6e232c in luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) at crtstuff.c:?
#16 0x6e2500 in lua_pcallk(lua_State*, int, int, int, int, int (*)(lua_State*)) at ??:?
#17 0x7c2447 in LuaGameScript::runEventHandler(unsigned int) at /tmp/factorio-H0YmBR/src/Script/LuaGameScript.cpp:2042
#18 0x6e688c in runEventHandler at /tmp/factorio-H0YmBR/src/Script/LuaGameScript.cpp:570
#19 0x89a8a3 in LuaEventDispatcher::run(unsigned int, unsigned int, boost::function<bool (LuaGameScript*)>) at /tmp/factorio-H0YmBR/src/Script/LuaEventDispatcher.cpp:183
#20 0xa2e399 in LuaEventDispatcher::dispatch(InputAction const&, unsigned int) at /home/build/build_environment/boost_1_58_0/output_linux64/include/boost/function/function_template.hpp:881
#21 0x6e5a98 in boost::function1<bool, LuaGameScript*>::~function1() at /home/build/build_environment/boost_1_58_0/output_linux64/include/boost/function/function_template.hpp:765
#22 0x7e2764 in boost::function<bool (LuaGameScript*)>::~function() at /home/build/build_environment/boost_1_58_0/output_linux64/include/boost/function/function_template.hpp:1056
#23 0xd4071f in dispatch at /tmp/factorio-H0YmBR/src/Script/LuaEventDispatcher.cpp:76
#24 0x7f0e2c6ea0a4 in LuaContext::actionPerformed(InputAction const&) at /tmp/factorio-H0YmBR/src/Script/LuaContext.cpp:162
#25 0x7f0e2ac0106d in InputHandler::flushActions(bool) at /tmp/factorio-H0YmBR/src/Input/InputHandler.cpp:41
27.847 Error Util.cpp:63: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.