<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://te4.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Huxx</id>
		<title>Tales of Maj'Eyal - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://te4.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Huxx"/>
		<link rel="alternate" type="text/html" href="https://te4.org/wiki/Special:Contributions/Huxx"/>
		<updated>2026-04-09T13:55:28Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>https://te4.org/w/index.php?title=T4_Modules_Howto_Guide/Getting_Started&amp;diff=15045</id>
		<title>T4 Modules Howto Guide/Getting Started</title>
		<link rel="alternate" type="text/html" href="https://te4.org/w/index.php?title=T4_Modules_Howto_Guide/Getting_Started&amp;diff=15045"/>
				<updated>2018-12-05T14:11:54Z</updated>
		
		<summary type="html">&lt;p&gt;Huxx: typo: 'is to in' under long_name description&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;p&amp;gt;In order to start your own module, you need to create a new directory in the /game/modules/ directory, into which you copy the contents of either /game/modules/example/ or /game/modules/example_realtime/, which will give you bare-bones but working base to work off of.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Good existing modules to copy are Gatecrashers (contains shaders) and Hulk (tiles) - they are only slightly bigger than the example modules, but clear and readable.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==init.lua==&lt;br /&gt;
&amp;lt;p&amp;gt;The first file you need to customize is the init.lua file. This file has a few things you need to edit to make this module your own:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table class=&amp;quot;wikitable&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;th&amp;gt;Setting&amp;lt;/th&amp;gt;&lt;br /&gt;
        &amp;lt;th&amp;gt;Effect&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;name&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;This is the official name of the module as seen in module selection list.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;long_name&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;This is the long name of the module that appears in descriptions.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;short_name&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;This is a short name used internal to the module. Preferred to be lower case and should be the same as the folder name.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;author&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;Your name or pseudonym and email address.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;homepage&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;Optional homepage of the module.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;version&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;Module version. Does not automatically update. Change this between releases to differentiate them.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;engine&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;Expected engine version.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;description&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;A description of your module. Can be multiple lines and paragraphs.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;starter&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;Only change if you know what you are doing. And if you have to ask, you don't.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;show_only_on_cheat&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;If true, prevents this module from appearing in the mods list normally. This is enabled by default on the example module and should be disabled in your module.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;no_get_name&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;Prevents the new character name dialog from showing up for your module. Use this if you set the character name yourself in your module.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;no_funfacts&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;Set to true. This stops ToME4 gameplay stats from appearing on the loading screen.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;loading_wait_ticks&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;The affects the full speed of the loading bar. Set to around 30 for a small game, or tweak to get a speed that feels right to you.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;allow_userchat&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;Registers 'space' as a key to talk, joins a channel named &amp;amp;quot;module&amp;amp;quot;, and inits the chat system. If the game implements a game.logChat(str, ...) method it'll send chat listens to there.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;background_name&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;A list of filenames (without the extension) of PNG images under the data/gfx/background directory to use as startup screen backgrounds. The game will load a logo file for each background at data/gfx/background/background_name.png if it is there&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2 id=&amp;quot;toc2&amp;quot;&amp;gt;Launching your module using command line parameters&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;By now you should be able to start t-engine normally and see your module in the list when you select new game. However, when changing features then quickly wanting to see its effects, this process involves a lot of unneeded clicks and wasted time. For this reason t-engine.exe supports various command line parameters.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table class=&amp;quot;wikitable&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;th&amp;gt;Parameter&amp;lt;/th&amp;gt;&lt;br /&gt;
        &amp;lt;th&amp;gt;Effect&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;-M&amp;amp;lt;Module&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;Auto-loads the specified module '''(using the module's short_name)'''.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;-u&amp;amp;lt;name&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;Uses the specified name for the character.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;-n&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;Forces a new character, overwriting any old saves with the same name.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;To take advantage of this in windows, you need to right-click on t-engine.exe and select 'Create Shortcut'. On the created shortcut right-click again and select properties. In the dialog add the following to the Target field:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.../t-engine.exe -MMyModule -udefault -n&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Replacing MyModule with your module name and default with whichever character name you desire. Using this shortcut now will launch your module directly, saving you some time while prototyping.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Go back to [[T4 Modules Howto Guide]].&lt;br /&gt;
&lt;br /&gt;
{{Module Guides}}&lt;/div&gt;</summary>
		<author><name>Huxx</name></author>	</entry>

	</feed>