perfect-tower's People
perfect-tower's Issues
String concatenation fails sometimes
(Originally reported by cl1694)
The following code:
:global string test
test = 1 . "a"
Results in: scripts/lexer.lua:181: bad argument #1 to 'floor' (number expected, got string)
Changing to
test = 1 . ""
gives a different error:
./main.lua:394: attempt to get length of a number value (field 'value')
Access to _G in lua macros
Currently it is not possible to share lua macro variables across scripts. Allowing access to _G (or making it work across scripts) will fix this issue Example:
Script1
{lua(\
_G.pie = "Dog" \
)}
Script2
{lua(\
print(_G.pie)\
)}
Another potential fix to this issue would be to allow importing another script, this could be cleaner but would possibly be more complex to implement, example:
Lib
#collapse(expr) {lua(return {expr})}
Main
import Lib
collapse(4 * 4)
Software.eratunneling not allowed for software.toggle
Software.eratunneling is flagged as disallowed by the software.toggle function, which was fixed ingame in v0.15.1 . This prevents exporting code with this function attempted.
Recent commit "Added 7 missing worker tasks and reordered" incomplete?
I see the recent commit "Added 7 missing worker tasks and reordered", but it looks like there's still one missing: task.laboratory.gems.stack
Worker.LabTech0:17: bad argument #1 to worker.assignName
worker.assignName("task.laboratory.gems.stack", 0, "LabTech0")
It does work in-game (the script was exported from the game to your editor).
Error when trying to rename workspace
./main.lua:683: Unit test imported failure! Expected:
CGltcG9ydGVkAAAAAAAAAAAAAAAA
Actual:
Auto-indent broken
Bug: Constants not updating
I have some code where the constant will not update properly:
open.factory()
:const int maxtier 2 -- changes do not propagate below
:global int ltier
ltier = 1
loop:
gotoif(end, isopen('factory') == false)
gotoif(waitMixer, active('mixer'))
gotoif(mix, count('dust', ltier) > 1004.0 && count('dust', ltier + 1) > 101.0)
return:
ltier = (ltier % maxtier) + 1 -- <-- this is where the change should be made but it's "stickied" to '3' on my editor
goto(loop)
mix:
craft('lump', ltier, min((count('dust', ltier) - 1000.0) / 4.0, count('dust', ltier + 1) - 100.0))
produce('lump', ltier, count('lump', ltier), 'mixer')
goto(loop)
waitMixer:
wait(1.0)
goto(loop)
end:
This happens across multiple scripts using the same general layout.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.