<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://miniscript.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Khorne</id>
	<title>MiniScript Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://miniscript.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Khorne"/>
	<link rel="alternate" type="text/html" href="http://miniscript.org/wiki/Special:Contributions/Khorne"/>
	<updated>2026-04-26T14:36:36Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>http://miniscript.org/w/index.php?title=File.makedir&amp;diff=1057</id>
		<title>File.makedir</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=File.makedir&amp;diff=1057"/>
		<updated>2022-12-25T00:45:13Z</updated>

		<summary type="html">&lt;p&gt;Khorne: Changed .delete to .makedir&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The &amp;lt;c&amp;gt;[[file]].makedir&amp;lt;/c&amp;gt; method creates a new directory on disk.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Parameter Name !! Default Value !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| path || &amp;quot;&amp;quot; || file name, partial path, or absolute path to directory to be created&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If given a file name or partial path, it will be interpreted relative to the current working directory (see &amp;lt;c&amp;gt;[[file.curdir]]&amp;lt;/c&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
=== Result ===&lt;br /&gt;
&lt;br /&gt;
If the directory was successfully deleted, this method returns [[true]] (1).&lt;br /&gt;
Otherwise, it returns [[false]] (0).  This can happen if the given path is invalid, a file or directory already exists at that location, or any other file-level error occurs.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
The following attempts to create a directory called &amp;quot;data&amp;quot; in the [[file.curdir|current directory]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt;file.makedir &amp;quot;data&amp;quot;&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mini Micro]]&lt;br /&gt;
[[Category:Command-Line MiniScript]]&lt;/div&gt;</summary>
		<author><name>Khorne</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=File.name&amp;diff=951</id>
		<title>File.name</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=File.name&amp;diff=951"/>
		<updated>2022-03-20T14:09:34Z</updated>

		<summary type="html">&lt;p&gt;Khorne: typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;As it says in the name [[File|file]].'''name''' it is used to retrieve the exact name of the file you designate in the file path that was provided as a string. &lt;br /&gt;
&lt;br /&gt;
Example: [[File|file]].'''name''' &amp;quot;/usr/startup.ms&amp;quot;&lt;/div&gt;</summary>
		<author><name>Khorne</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=File.name&amp;diff=950</id>
		<title>File.name</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=File.name&amp;diff=950"/>
		<updated>2022-03-20T14:08:56Z</updated>

		<summary type="html">&lt;p&gt;Khorne: created file.name page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;As it says in the name [[File|file]].'''name''' it is used to retrieve the exact name of the file you designate in the file path your provided as a string. &lt;br /&gt;
&lt;br /&gt;
Example: [[File|file]].'''name''' &amp;quot;/usr/startup.ms&amp;quot;&lt;/div&gt;</summary>
		<author><name>Khorne</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=File.export&amp;diff=949</id>
		<title>File.export</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=File.export&amp;diff=949"/>
		<updated>2022-03-20T13:53:45Z</updated>

		<summary type="html">&lt;p&gt;Khorne: Created page for file.export&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Similar to file.import a dialog box will appear after you type example: [[File|file]].'''export''' &amp;quot;/usr/startup.ms&amp;quot;. Note that the export path is an internal path within the Mini Micro environment. This will save to the host system the desired item to export.&lt;/div&gt;</summary>
		<author><name>Khorne</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=File.import&amp;diff=948</id>
		<title>File.import</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=File.import&amp;diff=948"/>
		<updated>2022-03-20T13:49:13Z</updated>

		<summary type="html">&lt;p&gt;Khorne: typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File]].'''import''' opens a dialog box from which you can navigate the host system and select files to import into the Mini Micro environment. This is useful if you are working in a '''minidisk''' file.&lt;/div&gt;</summary>
		<author><name>Khorne</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=File.import&amp;diff=947</id>
		<title>File.import</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=File.import&amp;diff=947"/>
		<updated>2022-03-20T13:48:51Z</updated>

		<summary type="html">&lt;p&gt;Khorne: Created page for file.import&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File]].'''import''' opens a dialog box from which you can navigate the host system and select files to import into the Mini Micro enviroment. This is useful if you are working in a '''minidisk''' file.&lt;/div&gt;</summary>
		<author><name>Khorne</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=How_to_package_a_Mini_Micro_game&amp;diff=946</id>
		<title>How to package a Mini Micro game</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=How_to_package_a_Mini_Micro_game&amp;diff=946"/>
		<updated>2022-03-13T19:34:10Z</updated>

		<summary type="html">&lt;p&gt;Khorne: Minor explanation over changing exe name&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To &amp;quot;package&amp;quot; a [[Mini Micro]] game means to bundle up all the files into a format that end-users can download (or access on the web) and play without needing anything else.&lt;br /&gt;
&lt;br /&gt;
The basic idea is simple: Mini Micro will automatically look for a zip file (or folder) next to the executable called '''user.minidisk''', and if it finds this, it would automatically mount that as '''/usr''' and run any program it finds there as '''/usr/startup.ms'''.  So packaging amounts to taking a standard Mini Micro distribution, adding the desired '''user.minidisk''' file, and tweaking things like the app name and icon.  Exact details, though, vary with the platform you're targeting.&lt;br /&gt;
&lt;br /&gt;
Note that while the directions below include links to zip instructions/tools on the corresponding platform, it is ''not'' necessary to be on the platform you are packaging for.  In other words, it should work perfectly well to package for all platforms, from whatever platform you happen to use.  Also note that the first three steps in each section below are the same, and only need to be done once no matter how many platforms you package for.&lt;br /&gt;
&lt;br /&gt;
== Packaging for Windows Download ==&lt;br /&gt;
&lt;br /&gt;
# Make a virtual disk containing just the files needed for your game or app.&lt;br /&gt;
# Add a [[startup.ms]] script that loads and runs your program.&lt;br /&gt;
# If your virtual disk is (in the real file system) a folder, [https://www.laptopmag.com/articles/how-to-zip-files-windows-10 zip it].  Rename the zip file exactly '''user.minidisk'''.&lt;br /&gt;
# Download the Windows distribution of Mini Micro from the [https://miniscript.org/MiniMicro/ official web page].&lt;br /&gt;
# Put your '''user.minidisk''' file next to the '''Mini Micro.exe''' file.&lt;br /&gt;
# If desired, make a '''[[bootOpts.grfon]]''' file and place that in the '''Mini Micro_Data/StreamingAssets''' subfolder.&lt;br /&gt;
# If you like, rename '''Mini Micro.exe''' to the name of your game. Note: Do not forget to change the folder '''Mini Micro_data''' to the name change with the exe with '''_data'''. example: '''strat.exe''', data folder would be '''strat_data'''.&lt;br /&gt;
# Zip up (or otherwise archive, as you prefer) the whole folder containing the .exe, your '''user.minidisk''' file, and everything else that came with the original Windows distribution.&lt;br /&gt;
&lt;br /&gt;
The resulting archive file can then be uploaded to DropBox or itch.io, or otherwise distributed to your players.&lt;br /&gt;
&lt;br /&gt;
== Packaging for MacOS Download ==&lt;br /&gt;
&lt;br /&gt;
# Make a virtual disk containing just the files needed for your game or app.&lt;br /&gt;
# Add a [[startup.ms]] script that loads and runs your program.&lt;br /&gt;
# If your virtual disk is (in the real file system) a folder, [https://www.lifewire.com/how-to-zip-and-unzip-files-and-folders-on-a-mac-2260188 zip it].  Rename the zip file exactly '''user.minidisk'''.&lt;br /&gt;
# Download the MacOS distribution of Mini Micro from the [https://miniscript.org/MiniMicro/ official web page].&lt;br /&gt;
# Put your '''user.minidisk''' file next to the '''MiniMicro.app''' file.  (If you are doing this in Windows or Linux, '''MiniMicro.app''' will appear as a folder; on a Mac, the same folder appears as an app, and the .app extension may be hidden.)&lt;br /&gt;
# If desired, make a '''[[bootOpts.grfon]]''' file, and place that inside the application bundle under '''Contents/Resources/Data/StreamingAssets'''.&lt;br /&gt;
# If you like, rename '''MiniMicro.app''' to the name of your game.&lt;br /&gt;
# Zip up (or place on a [https://support.apple.com/guide/disk-utility/create-a-disk-image-dskutl11888/mac disk image]) the whole folder containing the app and your '''user.minidisk''' file.&lt;br /&gt;
&lt;br /&gt;
The resulting zip or DMG can then be uploaded to DropBox or itch.io, or otherwise distributed to your players.&lt;br /&gt;
&lt;br /&gt;
== Packaging for Linux Download ==&lt;br /&gt;
&lt;br /&gt;
# Make a virtual disk containing just the files needed for your game or app.&lt;br /&gt;
# Add a [[startup.ms]] script that loads and runs your program.&lt;br /&gt;
# If your virtual disk is (in the real file system) a folder, [https://www.cyberciti.biz/tips/how-can-i-zipping-and-unzipping-files-under-linux.html zip it].  Rename the zip file exactly '''user.minidisk'''.&lt;br /&gt;
# Download the Linux distribution of Mini Micro from the [https://miniscript.org/MiniMicro/ official web page].&lt;br /&gt;
# Put your '''user.minidisk''' file next to the '''MiniMicro.x86_64''' file.&lt;br /&gt;
# If desired, make a '''[[bootOpts.grfon]]''' file and place that in the '''MiniMicro_Data/StreamingAssets''' folder.&lt;br /&gt;
# If you like, rename '''MiniMicro.x86_64''' to the name of your game.&lt;br /&gt;
# Zip up (or otherwise archive, as you prefer) the whole folder containing the executable, your '''user.minidisk''' file, and everything else that came with the original Linux distribution.&lt;br /&gt;
&lt;br /&gt;
The resulting archive file can then be uploaded to DropBox or itch.io, or otherwise distributed to your players.&lt;br /&gt;
&lt;br /&gt;
== Packaging for the Web ==&lt;br /&gt;
&lt;br /&gt;
# Make a virtual disk containing just the files needed for your game or app.&lt;br /&gt;
# Add a [[startup.ms]] script that loads and runs your program.&lt;br /&gt;
# If your virtual disk is (in the real file system) a folder, zip it.  Rename the zip file exactly '''user.minidisk'''.&lt;br /&gt;
# Download the WebGL Template from the [https://miniscript.org/MiniMicro/ official web page].&lt;br /&gt;
# Put your '''user.minidisk''' file into the  '''StreamingAssets''' folder, replacing the (empty) user.minidisk there in the template.&lt;br /&gt;
# If desired, make a '''[[bootOpts.grfon]]''' file and place that next to '''user.minidisk'''.&lt;br /&gt;
# If uploading to itch.io, zip up the whole folder containing '''Build''', '''index.html''', and '''StreamingAssets'''.&lt;br /&gt;
# Upload that archive to itch.io, or upload the folder to your web site.  If asked for viewport dimensions, use 1024 by 768 pixels.&lt;br /&gt;
&lt;br /&gt;
[[Category:Mini Micro]]&lt;br /&gt;
[[Category:How To]]&lt;/div&gt;</summary>
		<author><name>Khorne</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=Super&amp;diff=945</id>
		<title>Super</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Super&amp;diff=945"/>
		<updated>2022-03-12T22:11:26Z</updated>

		<summary type="html">&lt;p&gt;Khorne: Fix yet another typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;c&amp;gt;super&amp;lt;/c&amp;gt; is a [[:Category:Keywords|keyword]] used to access base class methods from within a subclass method.  It is part of MiniScript's support for [[object-oriented programming]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Example code:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt;&lt;br /&gt;
//PLANT base class&lt;br /&gt;
PLANT = new Sprite&lt;br /&gt;
PLANT.image = Image.create(25, 25, color.lime)&lt;br /&gt;
PLANT.maxGrowth = 20&lt;br /&gt;
PLANT.scale = 0&lt;br /&gt;
PLANT.grow = function&lt;br /&gt;
	self.scale  = self.scale + .1&lt;br /&gt;
	if self.scale &amp;gt; self.maxGrowth then&lt;br /&gt;
		self.scale = self.maxGrowth&lt;br /&gt;
		return&lt;br /&gt;
	end if&lt;br /&gt;
end function&lt;br /&gt;
&lt;br /&gt;
//tree subclass&lt;br /&gt;
tree = new PLANT&lt;br /&gt;
tree.x = 480&lt;br /&gt;
tree.y = 320&lt;br /&gt;
&lt;br /&gt;
tree.grow = function //trees function that would override grow within the PLANT base class&lt;br /&gt;
	super.grow //reaches out to the PLANT base class and calls it&lt;br /&gt;
	print &amp;quot;I grew!&amp;quot; //end of the function prints after super.grow is called.&lt;br /&gt;
end function&lt;br /&gt;
&lt;br /&gt;
//pushes tree to default sprite display&lt;br /&gt;
display(4).sprites.push tree&lt;br /&gt;
&lt;br /&gt;
//loop for tree.grow&lt;br /&gt;
while not tree.scale == tree.maxGrowth&lt;br /&gt;
	tree.grow&lt;br /&gt;
	wait .5&lt;br /&gt;
end while&lt;br /&gt;
&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Language]]&lt;br /&gt;
[[Category:Keywords]]&lt;br /&gt;
&lt;br /&gt;
{{stub}}&lt;/div&gt;</summary>
		<author><name>Khorne</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=Super&amp;diff=944</id>
		<title>Super</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Super&amp;diff=944"/>
		<updated>2022-03-12T22:08:14Z</updated>

		<summary type="html">&lt;p&gt;Khorne: fixed typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;c&amp;gt;super&amp;lt;/c&amp;gt; is a [[:Category:Keywords|keyword]] used to access base class methods from within a subclass method.  It is part of MiniScript's support for [[object-oriented programming]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Example code:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt;&lt;br /&gt;
//PLANT base clasee&lt;br /&gt;
PLANT = new Sprite&lt;br /&gt;
PLANT.image = Image.create(25, 25, color.lime)&lt;br /&gt;
PLANT.maxGrowth = 20&lt;br /&gt;
PLANT.scale = 0&lt;br /&gt;
PLANT.grow = function&lt;br /&gt;
	self.scale  = self.scale + .1&lt;br /&gt;
	if self.scale &amp;gt; self.maxGrowth then&lt;br /&gt;
		self.scale = self.maxGrowth&lt;br /&gt;
		return&lt;br /&gt;
	end if&lt;br /&gt;
end function&lt;br /&gt;
&lt;br /&gt;
//tree subclass&lt;br /&gt;
tree = new PLANT&lt;br /&gt;
tree.x = 480&lt;br /&gt;
tree.y = 320&lt;br /&gt;
&lt;br /&gt;
tree.grow = function //trees function that would override grow within the PLANT base class&lt;br /&gt;
	super.grow //reaches out to the PLANT base class and calls it&lt;br /&gt;
	print &amp;quot;I grew!&amp;quot; //end of the function prints after super.grow is called.&lt;br /&gt;
end function&lt;br /&gt;
&lt;br /&gt;
//pushes tree to default sprite display&lt;br /&gt;
display(4).sprites.push tree&lt;br /&gt;
&lt;br /&gt;
//loop for tree.grow&lt;br /&gt;
while not tree.scale == tree.maxGrowth&lt;br /&gt;
	tree.grow&lt;br /&gt;
	wait .5&lt;br /&gt;
end while&lt;br /&gt;
&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Language]]&lt;br /&gt;
[[Category:Keywords]]&lt;br /&gt;
&lt;br /&gt;
{{stub}}&lt;/div&gt;</summary>
		<author><name>Khorne</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=Super&amp;diff=943</id>
		<title>Super</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Super&amp;diff=943"/>
		<updated>2022-03-12T22:04:34Z</updated>

		<summary type="html">&lt;p&gt;Khorne: Added example code&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;c&amp;gt;super&amp;lt;/c&amp;gt; is a [[:Category:Keywords|keyword]] used to access base class methods from within a subclass method.  It is part of MiniScript's support for [[object-oriented programming]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Example code:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt;&lt;br /&gt;
//PLANT base clasee&lt;br /&gt;
PLANT = new Sprite&lt;br /&gt;
PLANT.image = Image.create(25, 25, color.lime)&lt;br /&gt;
PLANT.maxGrowth = 20&lt;br /&gt;
PLANT.scale = 0&lt;br /&gt;
PLANT.grow = function&lt;br /&gt;
	self.scale  = self.scale + .1&lt;br /&gt;
	if self.scale &amp;gt; self.maxGrowth then&lt;br /&gt;
		self.scale = self.maxGrowth&lt;br /&gt;
		return&lt;br /&gt;
	end if&lt;br /&gt;
end function&lt;br /&gt;
&lt;br /&gt;
//tree subclass&lt;br /&gt;
tree = new PLANT&lt;br /&gt;
tree.x = 480&lt;br /&gt;
tree.y = 320&lt;br /&gt;
&lt;br /&gt;
tree.grow = function //trees function that would override grow within the PLANT base class&lt;br /&gt;
	super.grow //reaches out to the PLANT base class and calls it&lt;br /&gt;
	print &amp;quot;I grew!&amp;quot; //end of the function prints after super.grow is called.&lt;br /&gt;
end function&lt;br /&gt;
&lt;br /&gt;
//pushes tree to default sprite display&lt;br /&gt;
display(4).sprites.push tree&lt;br /&gt;
&lt;br /&gt;
//loop for tree.grow&lt;br /&gt;
while not tree.scale&lt;br /&gt;
	tree.grow&lt;br /&gt;
	wait .5&lt;br /&gt;
end while&lt;br /&gt;
&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Language]]&lt;br /&gt;
[[Category:Keywords]]&lt;br /&gt;
&lt;br /&gt;
{{stub}}&lt;/div&gt;</summary>
		<author><name>Khorne</name></author>
		
	</entry>
</feed>