Use luabundle (Current version 1.6), with the following batch file :
luabundler bundle Kdm\Global.ttslua ^
-p "?.ttslua" ^
-o bundle.lua
It requires the folder of the source files to be called Kdm, and the bundle.bat executable to be outside of it.
I then use a Json Escaper (this one works well : https://www.freeformatter.com/json-escape.html#ad-output) to get a single string of my bundle.lua file.
I then open the save I want to edit, and replace the LuaScript Json Entry with my String instead.
That's it!
Light: #d3cdc3ff Mid: #71624cff Dark: #453824ff
Light: #bbb4a1ff Mid: #7f7059ff Dark: #453824ff
- Gear: 600x600
- Card: 800x1240
- Settlement Event: 1200x2000
- Settlement Location: 1024x2048
** Gear: 600x600
- Card: 800x1240
- Settlement Event: 1200x2000 1230x2048
- Settlement Location: 747x1513 1024x2048
- Rules: 1500x1159
2.0254350736278447121820615796519 1275x2475 1.9411764705882352941176470588235
*** BOOKMARK: -> 1783x3383 -> 1054x2000 *** *** SETTLEMENT EVENT: 2030x3383 -> 1200x2000 *** *** SETTLEMENT LOCATION: 2350x4760 -> 1400x2836 *** *** CARD: 1310X2030 -> 800x1240 *** *** GEAR: 1170x1170 -> 600x600 1 mm = 14.285714285714285714285714285714
2500x1818 -> 113.63636363636363636363636363636 x 113.625
Banner: 4mm from left, 7mm wide, 11mm tall = 57/100/157 Title: 6mm from top = 88 Subtitle: 11mm from top = 157 FA Art: 17mm from top, 32mm high = 243/457 Disorder Head: 15mm from top, 28.5mm tall = 214/407 Disorder Text = 4mm from bottom of head = 57 FA Text: 5mm from bottom of art Margin: 5mm = 71
sloc: 4.814575 x 9.751407 332x672 338 x 672 sevent: 3.548889 x 5.914705 244x408 card: 2.697159 x 4.18051 186x286 68.961451660803089473034403978408