NCBs?

What is an NCB and how do i use it?

I'm using the MissionComputer program (it's cool) to create my own plugins, but i god damned don't understand those NCB values. What do they mean.

Example from MissionComputer:

b13 & (b15 | !b72)

What does that mean?!

------------------

Quote

Originally posted by Plugmaster-i-guess:
**What is an NCB and how do i use it?

I'm using the MissionComputer program (it's cool) to create my own plugins, but i god damned don't understand those NCB values. What do they mean.

Example from MissionComputer:

b13 & (b15 | !b72)

What does that mean?!

**

That particular example means that bit 13 will be set and bit 15 will be set or bit 72 will become unset I think. I remember wondering how the hell they worked. I'll try explain. NCB's or bits have 2 values, set or unset. All the NCB's start off unset. Say you have 2 missions and you don't want the second to be available until the first is completed. So in the OnComplete field of the first mission you put "b1" and in the AvailableOn field of the second mission you put "b1". This means missions 2 won't be available until bit 1 is set and once mission 1 is completed it sets bit 1, thus making mission 2 available. This might be a bit confusing, I can be like that sometimes.

------------------
We're going on a (url="http://"http://www.saunalahti.fi/hoge/")bear hunt(/url). They'll eat you if you misbehave. They live on an island out to sea. They will chew you up and spit out your bones. We live on the beach with all their rubbish. And people. Bears. Giant bears. They will eat me and you. Run back to the house before they catch us. Wee hee hee can't catch me.

(This message has been edited by Deathmatch (edited 08-09-2004).)

NCB = Nova Control Bit.

b13 & (b15 | !b72) translates to b13 having to be set and either b15 being set or b72 not being set. For further info, see the opening pages of "The Nova Bible". NCBs are either set or not set.

For a list of used NCBs, see either (url="http://"http://www.ambrosiasw.com/cgi-bin/vftp/dl-redirect.pl/ResUsedList_v1.0.6.txt.sit?path=evn/guides&file;=ResUsedList_v1.0.6.txt.sit")this(/url) or (url="http://"http://www.ambrosiasw.com/cgi-bin/vftp/dl-redirect.pl/EV_Nova_Reference.zip?path=evn/guides&file;=EV_Nova_Reference.zip")this(/url).

N.b., I have downloaded neither one, so I cannot personally vouch for either one.

Lit Nerd

------------------
For Books are not absolutely dead things, but doe contain a potencie of life in them to be as active as that soule was whose progeny they are; nay they do preserve as in a violl the purest efficacie and extraction of that living intellect that bred them. John Milton, (url="http://"http://www.dartmouth.edu/~milton/reading_room/areopagitica/index.shtml")"Areopagitica"(/url).

(url="http://"http://www.ambrosiasw.com/webboard/Forum9/HTML/005474.html#")This guide could help.(/url) That, and the Nova bible, of course. ๐Ÿ™‚

------------------
(url="http://"http://home.comcast.net/~drtrowel/")Dr. Trowel's E.S.W.P.(/url) -- Cold Fusion graphics for EVN Override, EVN:O bug fixes, 'n more.
Very Good Stuff: (url="http://"http://www.evula.com/escape_velocity/")EVula(/url) (url="http://"http://w00tware.ev-nova.net/")NovaTools(/url) (url="http://"http://www.evula.org/infernostudios/search.html")EVPlugSearcher(/url) Play FAQs: (url="http://"http://ev-nova.net/forums/viewtopic.php?t=2832&sid;=43627ead61761e7f19060b00c14c739c")N(/url) (url="http://"http://www.AmbrosiaSW.com/cgi-bin/ubb/forumdisplay.cgi?action=topics&forum;=EV+Nova+FAQs&number;=30&DaysPrune;=20&LastLogin;=")N(/url) (url="http://"http://www.AmbrosiaSW.com/cgi-bin/ubb/forumdisplay.cgi?action=topics&forum;=EV+Override+FAQs&number;=53&DaysPrune;=20&LastLogin;=")O(/url) (url="http://"http://www.AmbrosiaSW.com/cgi-bin/ubb/forumdisplay.cgi?action=topics&forum;=Escape+Velocity+FAQs&number;=28&DaysPrune;=20&LastLogin;=")C(/url) Dev FAQs: (url="http://"http://www.AmbrosiaSW.com/cgi-bin/ubb/forumdisplay.cgi?action=topics&forum;=EV+Plug-in+Developer+FAQs&number;=29&DaysPrune;=20&LastLogin;=")A(/url) (url="http://"http://www.ambrosiasw.com/cgi-bin/ubb/forumdisplay.cgi?action=topics&number;=31&SUBMIT;=Go")B(/url)
For a Limited Time Only: (url="http://"http://www.ambrosiasw.com/webboard/Forum9/HTML/005565.html#")Enter the Silly Plug Contest!(/url)

Hehe...I understood the ncb's immediately thanks to my programming background, where the if loops in any language are extremely similar to Nova's ncb's (in fact, I'd bet $1000 each one of those is translated into one or more C if loops).

------------------
The programmer's code of entomology: there's always another bug.
There are 10 types of people in the world: those who understand binary and those who have friends.
Windows users: stop asking for plugins. (url="http://"http://www.aznt.com/EVN/EVNEW/")Make one yourself.(/url)
(url="http://"http://www.cwssoftware.com")Sephil Saga Website(/url) | (url="http://"http://www.evula.org/infernostudios/search.html")Add-ons Search Engine(/url)

I think that the Nova engine needs a programming language. Not just NCB's.

------------------
Drinking causes hangovers.
(url="http://"http://www.freewebs.com/rmx256/index.htm")Kemet T.C. Website(/url)

Quote

Originally posted by rmx256:
I think that the Nova engine needs a programming language. Not just NCB's.

That would be extremely w00t, but it could also be difficult to implement. Of course, we could also type actual C code into, say, a cรถde resource, which could then be evaluated by the engine (C has an "eval" or similar function, right?). But I think an AppleScript-ish or JavaScript-ish language would probably be better, just in case someone doesn't wqant to learn C but is willing to learn a simple language.

------------------
The programmer's code of entomology: there's always another bug.
There are 10 types of people in the world: those who understand binary and those who have friends.
Windows users: stop asking for plugins. (url="http://"http://www.aznt.com/EVN/EVNEW/")Make one yourself.(/url)
(url="http://"http://www.cwssoftware.com")Sephil Saga Website(/url) | (url="http://"http://www.evula.org/infernostudios/search.html")Add-ons Search Engine(/url)

Right, something kind of unstructured and sequentially implemented like BASIC. With basic I/O, string functions, arrays and please god MATH! I've designed sooooo many NCB evals that are supposed to do simple binary counts and addition/subtraction but I am terrified to implement them. Having these things would simplify the coding of my TC tremendously.

------------------
Drinking causes hangovers.
(url="http://"http://www.freewebs.com/rmx256/index.htm")Kemet T.C. Website(/url)

We'd probably have to do some serious MacsBugging to find out where to patch new CODE's into the engine, especially since probably there are a few discrete functions per each seemingly similar looking engine feature (I know that my code is like that, instances everywhere)... Then we'd have to figure out how to DOSsercise it which might be damn near impossible since I'm certain that PPC assembler will have 0% chancve of being cross-assemblable into X86.

------------------
Drinking causes hangovers.
(url="http://"http://www.freewebs.com/rmx256/index.htm")Kemet T.C. Website(/url)

It's be nice if such a scripting language was at least somewhat object oriented, so you could do things like:

target.fuel =- 100

(remove 100 units of fuel from target)

for a fuel draining weapon, something that I don't think is currently possible.

EDIT: but this is highly unlikely to happen...

(This message has been edited by brindyblitz (edited 08-10-2004).)

Quote

Originally posted by rmx256:
**We'd probably have to do some serious MacsBugging to find out where to patch new CODE's into the engine, especially since probably there are a few discrete functions per each seemingly similar looking engine feature (I know that my code is like that, instances everywhere)... Then we'd have to figure out how to DOSsercise it which might be damn near impossible since I'm certain that PPC assembler will have 0% chancve of being cross-assemblable into X86.

**

MacsBugs is only good for 680x0 FAT applications, as I recall... Nova is Cocoa/PPC.

And no, PPC assembly cannot be cross-assembled to x86. ๐Ÿ˜›
~ SP

------------------
Fear the SpacePirate,
He made a (url="http://"http://www.evula.org/infernostudios/search.html")plug-in search page(/url)...
And he'll board your ship!
-mrxak
*** (url="http://"http://www.evula.org/infernostudios/")InfernoStudios(/url) was last updated 06 June, 2004. ***

Quote

Originally posted by orcaloverbri9:
**C has an "eval" or similar function, right?
**

No. No compiled language does - it's simply not possible to insert high level variables that could result in code in to a low level language. You'd essentially have to implement your own scripting language, or get an ECMA Script interpreter or something.

------------------
--sitharus
(url="http://"http://www.sitharus.com/")Me, online!(/url)
Insults are the arguments employed by those who are in the wrong. Jean-Jacques Rousseau

Quote

Originally posted by blackhole:
No. No compiled language does - it's simply not possible to insert high level variables that could result in code in to a low level language. You'd essentially have to implement your own scripting language, or get an ECMA Script interpreter or something.

Hmm...somehow I managed to forget that C was a compiled language, while basically all the programming experience I've had (which inludes very minimal C) has been interpreted languages. It's a pity; that can be a useful feature.

------------------
The programmer's code of entomology: there's always another bug.
There are 10 types of people in the world: those who understand binary and those who have friends.
Windows users: stop asking for plugins. (url="http://"http://www.aznt.com/EVN/EVNEW/")Make one yourself.(/url)
(url="http://"http://www.cwssoftware.com")Sephil Saga Website(/url) | (url="http://"http://www.evula.org/infernostudios/search.html")Add-ons Search Engine(/url)

Yes C is compiled...

Spacepirate, thank you. Now I know why I can no longer break into the debugger on my 8500... For some reason I thought that version 6.something was PPC compatible?

BTW, I read somewhere on the EV-Nova.net webboard that there was a 68k pre-release version of Nova? Does anyone have it still?

------------------
Drinking causes hangovers.
(url="http://"http://www.freewebs.com/rmx256/index.htm")Kemet T.C. Website(/url)