some basic questions for George

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

George can you give us a list of objects and their relationships in Transcendence?
I can guess the basic number, list, and string but what are the limitations on those?
Crying is not a proper retort!
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

Not sure exactly what you mean (the question is very broad).

The Transcendence script uses:

integers (32-bit signed numbers)
strings (arbitrary sized arrays of characters)
lists (arbitrary sized arrays of any type)
functions (either built-in primitives or user-defined)

Things like ship and station pointers are just integers that happen to be the underlying C++ pointer for the actual object.
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

Well what kinds of things do functions expect? I know a pointer is an int but that doesn't help me in defining the function. So if a function is expecting a ship I should pass it a pointer to a ship object. Those are the kinds of things I want.

strings are lists? hmm can list functions work on strings too? that could be very helpful.
Crying is not a proper retort!
User avatar
Ttech
Fleet Admiral
Fleet Admiral
Posts: 2767
Joined: Tue Nov 06, 2007 12:03 am
Location: Traveling in the TARDIS
Contact:

george moromisato wrote:Not sure exactly what you mean (the question is very broad).

The Transcendence script uses:

integers (32-bit signed numbers)
strings (arbitrary sized arrays of characters)
lists (arbitrary sized arrays of any type)
functions (either built-in primitives or user-defined)

Things like ship and station pointers are just integers that happen to be the underlying C++ pointer for the actual object.
So we can do functions?
Image
Image
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

in lisp nearly everything is a function. Every one of those things in the function list is a function. You can even create your own (see the code examples thread)
Crying is not a proper retort!
User avatar
Ttech
Fleet Admiral
Fleet Admiral
Posts: 2767
Joined: Tue Nov 06, 2007 12:03 am
Location: Traveling in the TARDIS
Contact:

Betelgeuse wrote:in lisp nearly everything is a function. Every one of those things in the function list is a function. You can even create your own (see the code examples thread)
cool
Image
Image
Post Reply