Hey, we have forums!

Author Topic: Node Compilation  (Read 7822 times)

0 Members and 1 Guest are viewing this topic.

Offline 1eleven

  • Mini Bit
  • **
  • Posts: 8
    • View Profile
Node Compilation
« on: December 09, 2011, 02:46:02 pm »
i noticed there are not all that many default nodes but it seems like it is fairly easy to make new nodes (although i have yet to get the hang of it ) so i was wondering if we could compile a bunch of nodes for people to implement into there mods.
so here is what i suggest if you have a node you just post it and tell us what it does and how to use.

Offline False.Genesis

  • Administrator
  • Super Bit
  • **********
  • Posts: 461
  • PRESS COMPILE FOR RAINBOWS
    • View Profile
    • My source code!
Re: Node Compilation
« Reply #1 on: December 09, 2011, 04:15:33 pm »
A better place for this would be the wiki.
Or a public repo at github
First, I suggest you script some on your own and get a bit of training, because a key point is that you understand things that others have done. Lua is an easy language but has a few key features that that are not *that* trivial, especially the table concept, and anonymous functions with upvalues; from my experience these are most confusing for people new to programming (besides the necessary syntax and logic, lol).

Before you start getting your hands dirty, get yourself an updated version of the game, with enabled script warnings. Otherwise, writing working code takes forever, because one has a hard time finding errors, as none are reported.
And if you make a mod, think about whether you want to support < 1.1.3, or 1.1.3+. The latter is stricter and more picky about the code you write, but in other aspects offers you more freedom and an improved editor. Supporting both is a pain in the ass.
(Hint: Always look forward, not behind. Please ditch the old stuff, mkaay?)

I have lots of nodes, but they are all for 1.1.3+ (bleeding edge), and will likely not run with any of the non-opensource engines; and no time right now to make a pack.
Will edit this post when i have gotten around wrapping up some scripts.
« Last Edit: December 09, 2011, 07:49:26 pm by False.Genesis »

Offline 1eleven

  • Mini Bit
  • **
  • Posts: 8
    • View Profile
Re: Node Compilation
« Reply #2 on: December 09, 2011, 06:03:28 pm »
question the link in your signature links to the newest version right

Offline False.Genesis

  • Administrator
  • Super Bit
  • **********
  • Posts: 461
  • PRESS COMPILE FOR RAINBOWS
    • View Profile
    • My source code!
Re: Node Compilation
« Reply #3 on: December 09, 2011, 07:49:12 pm »
Yep, although windows only, for now. A multi-OS update should follow shortly. ;)

Offline 1eleven

  • Mini Bit
  • **
  • Posts: 8
    • View Profile
Re: Node Compilation
« Reply #4 on: December 10, 2011, 03:22:26 am »
meh i use windows anyway cause i am a gamer