This wiki has been moved to into the mediawiki branch.

Difference between revisions of "Talk:Editor FAQ"

From SuperTux
Jump to: navigation, search
(Missing brushes)
Line 101: Line 101:
Here's a screenshot of it.
Here's a screenshot of it.
<a href="" target="_blank"><img src="" border="0" alt="Image and video hosting by TinyPic"></a>
What did you set the data folder?
What did you set the data folder?

Revision as of 22:25, 19 March 2011

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)
Okay, but where is the mac level editor? --AnQueser 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.
@I have same problem on my Ubuntu 8.04. ATI graphic card can be problem?
No, MacPro's come with those and they're powerful. I get that stupid problem too.

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 reply---10/5/10 I had a problem like that. try uninstalling your editor, then reinstalling. if it asked for your directory, remember to select the data folder. But now I have a black box where the tlemap should be... someone can hep me with that I hope.


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

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

Thanks! Okay, but there is a bunch of them. The one that has the right stuff is [url=]here[/url] so just select the right one for your OS. --Queser 11:32, 6 October 2010

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)
Um, there is a bunch of them... which one? -[Queser]-

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)
world2/village.stl looks like it is using level persistent variables. --Superdev 14:52, 25 December 2008 (UTC)
No, those are sector-persistent, since they disappear once you switch sectors. (I assume you mean hint_displayed and bridge_active?) That level illustrates another problem: Tux falls off the screen during cutscenes. (Comment out Camera code and turn on debug_collrects to see) --Mathnerd314 01:54, 26 December 2008 (UTC)

Bug on SuperTux Level Editor crashes while attempting to play the levels that I made

I am on Linux Ubuntu 10.04 lucid 32 bit. The supertux level editor is labeled as supertux-editor-svn in the synaptic package manager. I don't know have to do a "Full Backtrace" or the version "Mono, GTK, or GTK#" With further instructions, I would post that info. -- unsigned request by User:Aaron 01:22, 13 September 2010

       I figured it out.

Level Editor help!!!

I don't have a PC so I can't use the level editor for the new version of ST. Could some one compile a version and send the link to me? (I have a intel mac BTW.)

Mac Super Tux editor (Intel)

I read the post about where to find ST LE for MAc intel but I didn't understand it. please help ASAP!!!

Editor error

When I launch the editor, I select "Tiles" but nothing show up! I went to settings (under editor) and I selected the data file and the actual game, restarted level editor but nothing happened. just blackness.

Windows XP Editor for 0.3.0

Here's a screenshot of it.


What did you set the data folder? --Hume 09:45, 23 January 2011 (UTC)

Missing DLLs

Hello, It seems that I'm missing some DLL files for the editor. One of them is GLU.dll. If you could please give me the files, I would really appreciate it. Thanks!

Missing brushes

When he looked jesm editor-in help how to use brushes, I found there that I find the brushes in the "trunk / SuperTux-sharp / data / brushes". What nonsense! This folder doesn't exist! Moreover, it will not know the structure of the file, so I do not know what to do! Can I at least know the structure of the document, as I saw it in a text editor, so I could make a brush? --Hume 09:48, 23 January 2011 (UTC)