Modding Help

Freeform discussion about anything related to modding Transcendence.
Post Reply
Jay2Jay
Militia Commander
Militia Commander
Posts: 283
Joined: Fri Jan 11, 2013 12:57 am

So I ahve read almost all of the things here about tutorials and helo, so I wanted to make a little topic where I ask you a question so that I can be lazy and not look up the answer. Oh and if anyone else has any questions, feel free to post here (unless its gonna be some long drawn out thing) since above all, I like to include everyone in everything I do.

First Question from me: I have no idea how TLisp works and looking at the code is confusing me. I would like some sort of basics cuz im a stupid, lazy SOB :oops:

Second Question from me: Any tips for making mods? (I already read the Shrike's tips) Or maybe like some jem of divine wisdom for me?
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

#1: nobody fully understands Tlisp, only some know more than others.
#2: Protip: Perseverance.
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Jay2Jay
Militia Commander
Militia Commander
Posts: 283
Joined: Fri Jan 11, 2013 12:57 am

So why does no one fully understand TLISP? Does GEORGE fully understand TLISP?

Also, thank you for the advice!
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

TLISP is a LISP dialect. So it uses a LISP syntax. I'm not a programmer so I'll try to describe it as I see it.

Everything in LISP must be wrapped up in parenthesis, the programming language is fully parenthesized.

The common syntax of LISP is:

Code: Select all

(function variables ...)
for example

Code: Select all

(+ 1 3) returns 4
This is called Polish notation.

Let's make another example, with also a TLISP equivalent:

Code: Select all

normal infix notation
(5 − 6) * 7

Polish notation
(* (− 5 6) 7)

Equivalent in TLISP
(multiply (subtract 5 6) 7)
To write code in LISP is a bit hard at the beginning, but after you get a hang of it, you can read it by following the parenthesis :)

So, where do I practice my code? At the game console ! Run the game with the /debug command line, start up a game and press F9 to fire up the game console where you can write code to test. (for more complicated code, making a mod is better as typing everything in the console is tedious, but it's good when you have to learn)

Where do I find all the possible functions I can use in the mod ?
Here ! http://forums.kronosaur.com/viewtopic.php?f=8&t=5703

How do I learn programming ? by asking us questions and reading other mods :D
Also read the wiki and come by on IRC for real-time help :D

What is the simplest way to test some code in the game that actually have a visible effect ?
Make an item, with an <Invoke> code. Use that to run your code and do stuff. That's how I learnt it myself at the beginning in 2007 !
Jay2Jay
Militia Commander
Militia Commander
Posts: 283
Joined: Fri Jan 11, 2013 12:57 am

Thank you! I shall now make an evil mod that [lie/] spawns another ICS everytime you kill the original [/lies]
Post Reply