Git Product home page Git Product logo

Comments (14)

jaredlll08 avatar jaredlll08 commented on June 2, 2024 1

put that import at the beginning of the file please

from crafttweaker.

jaredlll08 avatar jaredlll08 commented on June 2, 2024

I'm not sure on loops, but are you sure it is meant to be for i, thedprmlog? Do me a favor and remove "thedprmlog" from the loop.

On Sep 3, 2016 7:39 PM, "Raymond Tremblay" [email protected] wrote:

I got this code http://pastebin.com/2fg2qTyN

which doesn't output error in chat, but in minetweaker.log
http://pastebin.com/zCsmw15x

I tried with import minetweaker.item.IItemStack; as stated on the wiki, bt
I got a chat error with that


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#51, or mute the thread
https://github.com/notifications/unsubscribe-auth/AFS9xfBwxZbhrYHZz9MsJp0dpQ8EHeiVks5qmbDtgaJpZM4J0WnA
.

from crafttweaker.

drakray avatar drakray commented on June 2, 2024

can try, but I copy/paste from the wiki and adapted my variable to be clear so.
I'll try

EDIT: got the same error
ERROR: Error executing modDRPMedieval.zs: Bad type on operand stack

from crafttweaker.

jaredlll08 avatar jaredlll08 commented on June 2, 2024

ok, yea, I found the wiki thing, ok so try make the arrays var instead of val please

from crafttweaker.

drakray avatar drakray commented on June 2, 2024

Tried that at first, retried live, same error

from crafttweaker.

jaredlll08 avatar jaredlll08 commented on June 2, 2024

ok, yea, weird, could you try the loop with just these lines?

 var theMCLog = listMCLog[i];
  var theMCPlank = listMCPlank[i];
  var theDRPMPlank = listDRPMPlank[i];
print(theMCLog.displayName);
print(theMCPlank .displayName);
print(theDRPMPlank .displayName);

I have a feeling that one of those is null, so this should tell us which one

from crafttweaker.

drakray avatar drakray commented on June 2, 2024

ERROR: modDRPMedieval.zs22 > any value not yet supported
ERROR: modDRPMedieval.zs23 > any value not yet supported
ERROR: modDRPMedieval.zs24 > any value not yet supported
ERROR: Error executing modDRPMedieval.zs: minetweaker/api/item/IItemStackAny

from crafttweaker.

drakray avatar drakray commented on June 2, 2024

full .log relevant code
http://pastebin.com/5SNf4SJR

from crafttweaker.

jaredlll08 avatar jaredlll08 commented on June 2, 2024

uh, is this with

import minetweaker.item.IItemStack;

?

from crafttweaker.

drakray avatar drakray commented on June 2, 2024

ERROR: Error parsing modDRPMedieval.zs:3 -- Invalid expression, last token: import

from crafttweaker.

jaredlll08 avatar jaredlll08 commented on June 2, 2024

uh, post your whole script please

from crafttweaker.

drakray avatar drakray commented on June 2, 2024

http://pastebin.com/raw/yPgs6NJS

from crafttweaker.

drakray avatar drakray commented on June 2, 2024

seems to work as intended, at last! :D
should have a disclaimer somewhere to say that IMPORT must ALWAYS be at absolute begining of file, even before PRINTs

Thank you!

from crafttweaker.

drakray avatar drakray commented on June 2, 2024

Final file, al working well, fully optimized
http://pastebin.com/raw/UTBmuw8i

from crafttweaker.

Related Issues (20)

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.