This wiki has been moved to into the mediawiki branch.

Talk:Editor FAQ

From SuperTux
Revision as of 09:28, 24 December 2008 by Mathnerd314 (Talk | contribs)

Jump to: navigation, search

Attention: Please click on the "+" above or use this link if you want to ask about a separate issue.

Reset point/checkpoint

Hi. I don't want to be a pain, so I apologize if this is stupid. How do you place the checkpoint or midpoint of a level?

I assume you mean a reset point (that is a point that if you die at you will start again at it). Place a "Reset Point" object where you want it. Can be found in the object list just below the bad guys.
Note that this FAQ is for the SuperTux-sharp editor for SVN and not for the editor built into SuperTux 0.1.2/0.1.3. If you are using the 0.1.3 built in editor: you can't place a reset point, use flexlay instead or edit the file by hand.
--AnMaster 16:03, 24 Oct 2006 (CEST)

Windows: Path problems

I wasn't able to get the windows version of the SVN level editor as linked at [1] to work, as it will not accept the provided directory defaults - I think it may be due to the dos directory convention of using "\" instead of "/"  ? (my windows pc is out of action at the moment but it appeared to say something to the effect of "cannot find E:\SuperTux\/whatever") -R A

The full error message is needed for us to help you. It worked for me last time I tested on windows. And as far as I remember the editor converts \ to / and vice versa as needed. Anyway please use the bug tracker for bugs. It should not go on the editor faq talk page. --AnMaster 07:29, 19 January 2007 (PST)

Ubuntu: Old mono

The version of Mono in the Ubuntu repositories seems to be to old to run the editor, resulting in the "Object reference not set to an instance of an object" error. How can I get a version of Mono in Ubuntu that works with the editor?

Hm I don't run Ubuntu so I don't know, I will ask people some who use Ubuntu next time I see them. --AnMaster 08:02, 1 February 2007 (UTC)
Runs fine for me on Ubuntu 6.06 LTS. I don't recall installing anything specific (other than the Mono packages from Ubuntu but possibly Multiverse - can't remember)

Mac OS X: Intel

Is there any way to run this under Mac OS X (@Intel)? -Shylence 19:28, 13 March 2007 (UTC)

Yes if you can get Mono working, see also the section Does the editor work under Mac OS X? --AnMaster 08:07, 11 June 2007 (UTC)

OpenSuse: GTK# version

Re:the comments about OpenSuse - version 10.2 comes with gtk-sharp2-2.8.0* etc and afaics this is what generates the problem - installing gtk-sharp2-2.10.* glade-sharp2-2.10.* and glib-sharp2-2.10.* from the appropriate architecture in seems to do the trick! - Derek 19:14, 4 August 2007 (UTC)

White Box

I'm sorry if this is stupid, but my editor is working fine. There's just one small problem: there's a white box sort of on the map where you draw the tiles in and I can't see what I've already done. It's there, but I just can't see it! Who can help me???

I have same problem on my Ubuntu 8.04. ATI graphic card can be problem?
I have the same problem, Ubuntu 8.04. -- 15:28, 20 June 2008 (UTC)
It works fine if I compile from source, svn. -- 16:23, 20 June 2008 (UTC)
I can't compile :( is there easier way?
Which editor did you try? The Autopackage from Download/Unstable#Release_0.3.0 or one that comes with your distribution? --WolfgangB 18:47, 27 June 2008 (UTC)
I can't find a supertux-editor package in the repositories; so i belive it was intalled from autopackage... I have the same white box, it only displays (for .2 seg) when changing the window or left clicking. It seems it is a distro/library problem. Ubuntu 8.04.

scrolling and no thing under bad guys

hi, dont want to be annoying. how do you make the level scroll in the editor? and, i cant find anything else apart from bad guys in the menu. HELP!!!! i am using the built in editor. 0.1.3.

There should be some arrows in the top left/right corners to let you scroll. Tiles are under various categories from the tilegroups portion. Have you tried reading the editor help? --Mathnerd314 23:53, 5 May 2008 (UTC)

Windows vista

I have installed mono, but when I try to open the editor it suddenly closes. What other gtk packages are you mentioning in the FAQ.( I´m using supertux editor 3.0


Where do you get mono? -- unsigned comment by Jacob.

You can get mono from --AnMaster 11:47, 8 July 2008 (UTC)


Script Question

Can someone find all the actions that can happen in a script.

This sentence had no verb.
Look at the Scripting reference pages for the list (or the source code in the src/scripting folder for most-up-to-date) --Mathnerd314 01:46, 23 December 2008 (UTC)

Another scripting question

How do you register local variables when a badguy execs "DeadScript"?.And How to use control statements (if,while...)?

That would be in the Documentation; also try looking at any of the existing scripts in current levels.
Local variables are something like local a, creating variables is a <- 0 (the variable will stay around as long as the current sector), and to assign an already-created value is a = 0. (<- also works for assignment, however)
You can create global (currently lasting over the lifetime of execution) variables by getting the parent of the sector table: ::parent.whatever. There is currently no way to create level-persistent or world-persistent variables. --Mathnerd314 01:33, 24 December 2008 (UTC)
No world-persistent variables? Then why do the keys still work? --Superdev 08:36, 24 December 2008 (UTC)
I used "persistent" to mean that the variable is shared across running instances. The keys are currently execution-persistent, meaning that they stay loaded until you close the game. (Try going to world1 and world2, then to the main screen. You can still do display(state), the persistent table)
The state table is also persistent in that it is saved and reloaded by world.cpp into the saved game data, which is why the keys work. The problem is that currently data is either sector-persistent, which is too short for any cross-sector scripting, or execution-persistent, which is much too long a time. --Mathnerd314 16:28, 24 December 2008 (UTC)
Miniswig also needs a bit of a rewrite, as Squirrel 2.2 adds true constants to the language (const x = 4; a <- x will compile directly to a <- 4), and templates could eliminate most of miniswig's work, if anyone is interested. (Try looking at create_wrapper.cpp create_*_constant_* code) --Mathnerd314 16:28, 24 December 2008 (UTC)