Giter VIP home page Giter VIP logo

perfect-tower's People

Contributors

42njaber avatar ahvonenj avatar d0sboots avatar dfirestorm avatar flkone avatar jeremymerkur avatar kerulis avatar kyromyr avatar smk4664 avatar troylaurin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

perfect-tower's Issues

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).

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)

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.

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')

Auto-indent broken

Auto-indent always indents with spaces no matter what it's set to

the editor switched workspaces, reloaded and even tried in a new script but nothing permits indenting with tabs
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.